@pittorica/sheet-react 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +18 -0
- package/LICENSE +21 -0
- package/dist/Sheet.d.ts +26 -0
- package/dist/Sheet.d.ts.map +1 -0
- package/dist/index.cjs +18716 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18673 -0
- package/dist/index.js.map +1 -0
- package/dist/sheet.css.d.ts +22 -0
- package/dist/sheet.css.d.ts.map +1 -0
- package/package.json +46 -0
- package/src/Sheet.tsx +163 -0
- package/src/index.ts +2 -0
- package/src/sheet.css.ts +163 -0
- package/tsconfig.app.json +33 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +26 -0
- package/vite.config.ts +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__commonJSMin","cb","mod","exports","__copyProps","to","from","except","desc","keys","i","n","length","key","call","get","k","bind","enumerable","__toESM","isNodeMode","target","__esModule","value","stylesheets","injectStyles","_ref","fileScope","css","fileScopeId","packageName","filePath","join","stylesheet","styleEl","document","createElement","setAttribute","head","appendChild","innerHTML","require_vanilla_extract_private_cjs_prod","getVarName","variable","matches","match","obj","path","result","Error","concat","walkObject","fn","arguments","clone","_value","currentPath","Array","isArray","console","warn","require_vanilla_extract_private_cjs_dev","require_vanilla_extract_private_cjs","module","process","env","NODE_ENV","require_cssesc","merge","options","defaults","regexAnySingleEscape","regexSingleEscape","regexExcessiveSpaces","cssesc","string","quotes","quote","isIdentifier","firstChar","charAt","output","counter","character","codePoint","charCodeAt","extra","toString","toUpperCase","escapeEverything","test","slice","replace","$0","$1","$2","wrap","version","import_cssesc","import_vanilla_extract_private_cjs","AhoCorasick","constructor","keywords","failure","gotoFn","_buildTables","state","word","curr","l","push","xs","state2","r","shift","s","fs","search","str","results","foundStrs","mockAdapter","appendCss","registerClassName","onEndFileScope","registerComposition","markCompositionUsed","getIdentOption","adapterStack","currentAdapter","hasConfiguredAdapter","setAdapterIfNotSet","newAdapter","setAdapter","adapter","_taggedTemplateLiteral","strings","raw","freeze","defineProperties","require_types","AttributeAction","IgnoreCaseMode","SelectorType","Unknown","QuirksMode","IgnoreCase","CaseSensitive","require_parse","parse","isTraversal","types_1","reName","reEscape","actionTypes","Map","Element","Start","End","Any","Not","Hyphen","unpackPseudos","Set","selector","type","Adjacent","Child","Descendant","Parent","Sibling","ColumnCombinator","stripQuotesFromPseudos","funescape","_","escaped","escapedWhitespace","high","parseInt","String","fromCharCode","unescapeCSS","isQuote","c","isWhitespace","subselects","endIndex","parseSelector","selectorIndex","tokens","getName","offset","name","stripWhitespace","readValueWithParenthesis","start","isEscaped","pos","slashCount","ensureNotTraversal","addTraversal","addSpecialAttribute","action","Attribute","namespace","ignoreCase","finalizeSubselector","pop","loop","Equals","name_1","startsWith","Exists","possibleAction","sectionEnd","valueStart","forceIgnore","attributeSelector","PseudoElement","toLowerCase","data","name_2","has","quot","Pseudo","indexOf","name_3","Universal","Tag","require_stringify","__spreadArray","pack","ar","stringify","attribValChars","pseudoValChars","charsToEscapeInAttributeValue","map","charsToEscapeInPseudoValue","charsToEscapeInName","token","stringifyToken","index","arr","getNamespace","getNamespacedName","escapeName","getActionValue","charsToEscape","lastIdx","ret","require_commonjs","__createBinding","o","m","k2","writable","configurable","__exportStar","exports$1","p","parse_1","stringify_1","import_commonjs","ownKeys$2","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","apply","_objectSpread","source","forEach","_defineProperty$2","getOwnPropertyDescriptors","_toPropertyKey","arg","_toPrimitive","input","hint","prim","Symbol","toPrimitive","res","TypeError","Number","dedent","createDedent","dedent_default","withOptions","newOptions","values","alignValues","escapeSpecialCharacters","trimWhitespace","next","alignValue","lines","split","mindent","indent","Math","min","trim","Bun","braced","unbraced","hex","fromCodePoint","precedingText","includes","indentMatch","lastIndexOf","require_dist","__assign","assign","t","__rest","e","propertyIsEnumerable","__values","iterator","done","__read","error","weirdNewlines","nullOrSurrogates","commentRegex","lexicalAnalysis","code","code_1","consumeString","_a","lastIndex","nextCode","flag","wouldStartIdentifier","consumeIdentUnsafe","_b","_c","plusNumeric","consumeNumeric","_d","tokenTuple","unit","minusNumeric","_e","nextNextCode","consumeIdentLike","_f","_g","nextNextNextCode","consumeIdent","_h","consumeEscape","_j","_k","_l","firstCode","charCodes","charCode","hexCharCodes","code_2","code_3","numberResult","consumeNumber","numberEndIndex","numberValue","numberFlag","identResult","numberChars","nextNextIsDigit","numberString","parseFloat","isNaN","identChars","code_4","code_5","consumeUrl","urlChars","hasFinishedWord","result_1","simplifyAST","ast","simplifyMediaQuery","mediaQuery","mediaCondition","simplifyMediaCondition","operator","children","mediaPrefix","mediaType","unsimplifiedChild","child","spliceArgs","i_1","splice","createError","message","err","toAST","toUnflattenedAST","tokenList","startIndex","syntacticAnalysis","removeWhitespace","newTokenList","before","wsAfter","wsBefore","e_1","mediaQueryList","mediaQueries","mediaQueryTokens","tokenizeMediaQuery","nonNullMediaQueryTokens","mediaQueryTokens_1","mediaQueryTokens_1_1","mediaQueryToken","e_1_1","firstToken","tokenizeMediaCondition","firstIndex","firstNonUnaryToken","value_1","tokensWithParens","secondNonUnaryToken","mayContainOr","previousOperator","endIndexOfFirstFeature","maxDepth","count","max","featureTokens","tokenizeMediaFeature","nextToken","siblings","rawTokens","a","b","numerator","denominator","context","feature","valueToken","prefix","range","tokenizeRange","featureName","leftToken","leftOp","rightOp","rightToken","hasLeft","tokenIndexAfterFirstOp","tokenAfterFirstOp","secondOpToken","followingToken","validRange","lt","rt","import_dist","toPrimitive$1","toPropertyKey$1","_defineProperty$1","ownKeys$1","_objectSpread2$1","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","_key","omit","omitKeys","_key2","mapKeys","_key3","composeStylesIntoSet","set","_len","classNames","_key5","className","add","dedupeAndJoinClassList","_templateObject$1","escapeRegex","validateSelector","targetClassName","replaceTarget","targetRegex","RegExp","default","selectorParts","cause","ConditionalRuleset","ruleset","precedenceLookup","findOrCreateCondition","conditionQuery","targetCondition","query","rules","getConditionalRulesetByPath","conditionPath","currRuleset","addRule","rule","addConditionPrecedence","conditionOrder","_ruleset$precedenceLo","conditionPrecedence","lowerPrecedenceCondition","isCompatible","incomingRuleset","condition","orderPrecedence","entries","_incomingRuleset$prec","matchingCondition","incomingOrderPrecedence","_this$precedenceLooku","mergeIfCompatible","getSortedRuleset","_this","sortedRuleset","_loop","dependents","conditionForQuery","firstMatchingDependent","findIndex","renderToArray","selectors","simplePseudoMap","simplePseudos","simplePseudoLookup","_templateObject$2","createMediaQueryError","msg","validateMediaQuery","_excluded$1","_excluded2","DECLARATION","UNITLESS","animationIterationCount","borderImage","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","columnCount","columns","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","initialLetter","lineClamp","lineHeight","maxLines","opacity","order","orphans","scale","tabSize","WebkitLineClamp","widows","zIndex","zoom","fillOpacity","floodOpacity","maskBorder","maskBorderOutset","maskBorderSlice","maskBorderWidth","shapeImageThreshold","stopOpacity","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","dashify","replaceBetweenIndexes","replacement","end","DOUBLE_SPACE","specialKeys","Stylesheet","localClassNames","composedClassLists","conditionalRulesets","fontFaceRules","keyframesRules","propertyRules","localClassNamesMap","localClassName","localClassNamesSearch","layers","identifier","classList","regex","reverse","processCssObj","root","fromEntries","_ref2","keyframe","transformVars","transformProperties","currConditionalRuleset","layerDefinition","addLayer","mainRule","transformLayer","transformMedia","transformSupports","transformContainer","transformStartingStyle","transformSimplePseudos","transformSelectors","addConditionalRule","cssRule","conditions","transformSelector","parentConditions","layer","uniqueLayerKey","transformContent","pixelifyProperties","_ref3","vars","rest","_ref4","content","transformClassname","transformedSelector","lastReplaceIndex","firstMatch","selectorRule","selectorRoot","_this$currConditional","mediaRule","_this$currConditional2","containerRule","containerQuery","_this$currConditional3","layerRule","_this$currConditional4","supportsRule","_this$currConditional5","nestedAtRuleKey","find","toCss","fontFaceRule","renderCss","property","definition","nesting","cssObj","part","conditionalRuleset","conditionalRule","Boolean","v","_loop2","transformCss","_ref5","cssObjs","murmur2","h","len","_templateObject","refCounter","fileScopes","hasFileScope","getFileScope","getAndIncrementRefCounter","perf","performance","now","Date","warned","PROCESS","emitWarning","AC","globalThis","AbortController","AS","AbortSignal","onabort","_onabort","reason","aborted","addEventListener","warnACPolyfill","signal","abort","printACPolyfillWarning","LRU_CACHE_IGNORE_AC_WARNING","shouldWarn","isPosInt","floor","isFinite","getUintArray","pow","Uint8Array","Uint16Array","Uint32Array","MAX_SAFE_INTEGER","ZeroArray","size","fill","Stack","heap","constructing","HeapCls","LRUCache","maxSize","dispose","disposeAfter","fetchMethod","memoMethod","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","noDisposeOnSet","noUpdateTTL","maxEntrySize","sizeCalculation","noDeleteOnFetchRejection","noDeleteOnStaleGet","allowStaleOnFetchAbort","allowStaleOnFetchRejection","ignoreFetchAbort","calculatedSize","keyMap","keyList","valList","prev","tail","free","disposed","sizes","starts","ttls","hasDispose","hasFetchMethod","hasDisposeAfter","unsafeExposeInternals","isBackgroundFetch","backgroundFetch","moveToTail","indexes","rindexes","isStale","UintArray","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","Infinity","#initializeTTLTracking","setItemTTL","setTimeout","delete","unref","updateItemAge","statusTTL","status","cachedNow","getNow","remainingTTL","#updateItemAge","#statusTTL","#setItemTTL","#isStale","#initializeSizeTracking","removeItemSize","requireSize","addItemSize","evict","entrySize","totalCalculatedSize","_i","#addItemSize","_s","_st","#requireSize","_v","#indexes","isValidIndex","#rindexes","#isValidIndex","rentries","rkeys","rvalues","toStringTag","getOptions","__staleWhileFetching","thisp","rforEach","purgeStale","deleted","info","entry","dump","age","unshift","load","clear","setOptions","maxEntrySizeExceeded","oldVal","__abortController","oldValue","dt","task","val","#evict","hasOptions","peek","peekOptions","#backgroundFetch","ac","fetchOpts","updateCache","ignoreAbort","fetchAborted","fetchError","fetchAbortIgnored","fetchResolved","fetchFail","bf","fetchUpdated","eb","er","fetchRejected","allowStaleAborted","noDelete","returnedStale","__returned","pcall","rej","fmp","Promise","then","fetchDispatched","#isBackgroundFetch","fetch","fetchOptions","forceRefresh","stale","staleVal","forceFetch","memo","memoOptions","vv","fetching","connect","#connect","#moveToTail","#delete","pi","ni","#clear","isDate","d","isEmpty","isObject","args","isEmptyObject","makeObjectWithoutPrototype","diff","lhs","rhs","deletedValues","reduce","acc","valueOf","difference","diff_default","require_picocolors","argv","isColorSupported","NO_COLOR","FORCE_COLOR","platform","stdout","isTTY","TERM","CI","formatter","open","close","replaceClose","cursor","substring","createColors","enabled","f","reset","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","require_cjs","isMergeableObject","isNonNullObject","isSpecial","stringValue","isReactElement","REACT_ELEMENT_TYPE","for","$$typeof","emptyTarget","cloneUnlessOtherwiseSpecified","deepmerge","defaultArrayMerge","element","getMergeFunction","customMerge","getEnumerableOwnPropertySymbols","symbol","getKeys","propertyIsOnObject","propertyIsUnsafe","mergeObject","destination","arrayMerge","sourceIsArray","all","deepmergeAll","array","deepmerge_1","import_picocolors","import_cjs","bufferedCSSObjs","browserRuntimeAdapter","composition","window","getLastSlashBeforeIndex","pathIndex","_getDebugFileName","file","lastIndexOfDotCss","lastSlashIndex","secondLastSlashIndex","dir","memoizedGetDebugFileName","cache","cachedResult","getDebugFileName","getDevPrefix","debugId","debugFileName","parts","_debugFileName","normalizeIdentifier","generateIdentifier","identOption","refCount","fileScopeHash","devPrefix","hash","normaliseObject","validateContract","contract","theDiff","valid","diffString","renderDiff","diffLine","whitespace","line","orig","innerNesting","sort","buildPropertyRule","syntax","inherits","initialValue","createVar","debugIdOrDeclaration","cssVarName","assignVars","varContract","varSetters","createThemeContract","_excluded","createGlobalTheme","arg2","arg3","themeContractProvided","layerName","extractLayerFromTokens","themeContract","composedStyle","styleRules","sourceArray","style","composeStyles","compose","borderContract","radius","none","xsmall","small","medium","large","xlarge","xxlarge","full","SCALABLE_COLOR_TOKENS","PURE_COLOR_TOKENS","COLOR_SCALES","colorScaleContract","color","onColor","colorContract","transparent","brand","success","warning","fontSizeScale","fontContract","family","sans","mono","serif","weight","light","regular","semibold","extrabold","lineHeights","tight","normal","loose","body","label","title","headline","display","SPACING_TOKENS","spacingContract","xxxlarge","xxxxlarge","pitto","border","font","spacing","PALETTE","addFunctionSerializer","recipe","toPropertyKey","_defineProperty","ownKeys","_objectSpread2","createSprinkles$1","sprinklesStyles","styles","sprinklesKeys","shorthandNames","sprinklesFn","props","shorthands","nonShorthands","hasShorthands","shorthand","sprinkle","propMapping","mappings","finalProps","propValue","prop","defaultClass","responsiveIndex","responsiveValue","conditionName","responsiveArray","_conditionName","SprinklesError","format","invalidPropValue","possibleValues","breakpointCount","_responsiveValue","_conditionName2","_value2","properties","processValue","valueName","defaultConditions","defaultCondition","defaultClasses","styleValue","_styleValue","conditionNames","mockComposeStyles","createSprinkles","config","importPath","importName","borderProperties","borderRadius","generateColorMap","colorMap","baseKey","colorScale","safeScale","levelKey","typedLevelKey","levelTokens","colorKey","onColorKey","scaledColorKey","onScaledColorKey","flatColorMap","COLOR_TOKEN_KEYS","BG_COLOR_TOKENS","colorProperties","backgroundColor","bg","sizeMap","auto","responsiveProperties","mobile","tablet","desktop","wide","gridTemplateColumns","gridAutoFlow","flexDirection","alignItems","justifyContent","flexWrap","width","maxWidth","height","placeItems","spacingProperties","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","paddingX","paddingY","margin","marginTop","marginBottom","marginLeft","marginRight","marginX","marginY","gap","columnGap","rowGap","pt","pb","pl","pr","px","py","mt","mb","ml","mr","mx","my","g","cg","rg","fontWeightMap","fontSizeMap","bodyXsmall","bodySmall","bodyMedium","bodyLarge","bodyXlarge","bodyXxlarge","labelXsmall","labelSmall","labelMedium","labelLarge","labelXlarge","labelXxlarge","titleXsmall","titleSmall","titleMedium","titleLarge","titleXlarge","titleXxlarge","headlineXsmall","headlineSmall","headlineMedium","headlineLarge","headlineXlarge","headlineXxlarge","displayXsmall","displaySmall","displayMedium","displayLarge","displayXlarge","displayXxlarge","typographyProperties","fontSize","sprinkles","borderTheme","colors","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","color_name_default","reverseNames","hasOwn","cs","model","hsl","hwb","rgb","abbr","rgba","per","keyword","hexAlpha","i2","round","clamp","alpha","hexDouble","percent","hsla","hwba","number_","string_","color_string_default","reverseKeywords","convert$1","channels","labels","hsv","cmyk","xyz","lab","oklab","lch","oklch","ansi16","ansi256","hcg","apple","conversions_default","LAB_FT","srgbNonlinearTransform","cc","srgbNonlinearTransformInv","delta","rdif","gdif","bdif","diffc","w","lp","cbrt","mp","sp","aa","bb","y","comparativeDistance","x","reversed","currentClosestDistance","POSITIVE_INFINITY","currentClosestKeyword","distance","z","t3","t2","t1","smin","lmin","hi","q","vmin","sl","wh","bl","ratio","ll","y2","x2","z2","atan2","PI","sqrt","hr","cos","sin","saturation","ansi","mult","trunc","rem","colorString","char","integer","chroma","hue","grayscale","pure","mg","buildGraph","graph","models","parent","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","wrapConversion","toModel","cur","conversion","route","route_default","convert","wrapRaw","wrappedFn","arg0","wrapRounded","routes","routeModels","color_convert_default","skippedModels","hashedModelKeys","limiters","Color","valpha","zeroArray","hashedKeys","JSON","limit","toJSON","places","self","arguments_","percentString","unitArray","unitObject","roundToPlace","getset","maxfn","saturationl","lightness","saturationv","wblack","hexa","rgbArray","alphaHex","rgbNumber","luminosity","lum","chan","contrast","color2","lum1","lum2","level","contrastRatio","isDark","isLight","negate","lighten","darken","saturate","desaturate","whiten","blacken","fade","opaquer","rotate","degrees","mix","mixinColor","color1","w1","w2","assertArray","roundTo","number","toFixed","channel","modifier","color_default","getContrastTextColor","hexColor","blackColor","whiteColor","contrastWithBlack","getScaleValue","baseColorHex","amount","finalColorHex","createColorScale","colorName","createColorScaleTheme","colorTheme","fontTheme","spacingTheme","theme","hasOwnProperty","merge","cssesc","r","appendCss","registerClassName","registerComposition","markCompositionUsed","getIdentOption","ownKeys","_defineProperty","dedent","hex","__assign","r","lexicalAnalysis","_c","consumeString","wouldStartIdentifier","consumeEscape","consumeNumeric","consumeNumber","consumeIdentUnsafe","consumeIdent","consumeUrl","consumeIdentLike","simplifyAST","simplifyMediaQuery","simplifyMediaCondition","createError","toAST","toUnflattenedAST","removeWhitespace","syntacticAnalysis","mediaQueryTokens","tokenizeMediaQuery","tokenizeMediaCondition","maxDepth","tokenizeMediaFeature","tokenizeRange","toPrimitive","r","toPropertyKey","_defineProperty","ownKeys","_objectSpread2","dedent","_loop","dependents","_templateObject","localClassNames","composedClassLists","content","identifier","rule","query","_loop2","key","v","dedent","warned","AbortController","#constructing","#starts","#ttls","#sizes","#keyMap","#keyList","#valList","#next","#prev","#head","#tail","#free","#isBackgroundFetch","#backgroundFetch","#moveToTail","#indexes","#rindexes","#isStale","#max","#maxSize","#calculatedSize","#size","#fetchMethod","#memoMethod","#dispose","#disposeAfter","#hasFetchMethod","#disposed","#hasDispose","#hasDisposeAfter","#initializeSizeTracking","#initializeTTLTracking","#setItemTTL","#delete","#updateItemAge","#statusTTL","sizes","#removeItemSize","#requireSize","#addItemSize","#evict","#isValidIndex","v","bf","#connect","#clear","isMergeableObject","REACT_ELEMENT_TYPE","deepmerge","_objectSpread2","hash","deepmerge","recipe","r","addRecipe","pitto","style","recipe","sizes","small","medium","large","xlarge","xxlarge","zIndex","overlay","sheet","position","inset","backgroundColor","backdropFilter","sheetRecipe","base","display","flexDirection","boxShadow","overflow","maxHeight","willChange","boxSizing","color","brand","onColor","variants","side","bottom","left","right","borderTopLeftRadius","borderTopRightRadius","top","width","maxWidth","borderBottomLeftRadius","borderBottomRightRadius","full","marginInline","defaultVariants","dragHandle","height","gray","borderRadius","border","radius","margin","marginTop","spacing","marginBottom","flexShrink","header","paddingLeft","paddingRight","paddingTop","paddingBottom","alignItems","justifyContent","titleStyle","fontFamily","font","family","sans","fontSize","size","headline","fontWeight","weight","content","flex","overflowY","closeButton","background","cursor","padding","opacity","transition","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","Component","noop","ReactSharedInternals","isValidElement","Children","Component","getIteratorFn","MAYBE_ITERATOR_SYMBOL","emptyObject","ReactNoopUpdateQueue","ComponentDummy","PureComponent","noop","REACT_FRAGMENT_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","ReactSharedInternals","hasOwnProperty","ReactElement","REACT_ELEMENT_TYPE","cloneAndReplaceKey","isValidElement","escape","getElementKey","resolveThenable","mapIntoArray","userProvidedKeyEscapeRegex","isArrayImpl","mapChildren","lazyInitializer","assign","reportGlobalError","ReactSharedInternals","ReactSharedInternals","React","noop","noop","createPortal$1","REACT_PORTAL_TYPE","ReactSharedInternals","React","Internals","Component","color","REACT_FRAGMENT_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","ReactSharedInternals","hasOwnProperty","ReactElement","REACT_ELEMENT_TYPE","isArrayImpl","isValidElement","React","useLayoutEffect","useEffect","ease","frameData","process","alpha","r","getAnimatableNone","progress","color","mixNumber","mixNumber$1","scale","progress","undampedFreq","progress","keyframes","ease","ease","isNotNull","getFinalKeyframe","keyframes","percent","motionValue","delay","progress","keyframes","getFinalKeyframe","now","keyframes","motionValue","keyframes","ease","keyframes","getFinalKeyframe","delay","motionValue","keyframes","motionValue","keyframes","motionValue","delay","getFinalKeyframe","keyframes","keyframes","delay","animations","animations","delay","animations","number","motionValue","isBrowser","now","style","transformPoint","scale","scaleX","scaleY","scale","distance","transformPoint","rootProjectionNode","hasTransform","style","style","layout","scrapeMotionValuesFromProps","style","getComputedStyle","scrapeMotionValuesFromProps","isSVGTag","style","context","animations","motionValue","layout","scale","rotate","progress","keyframes","id","layout","createProjectionNode","now","progress","createProjectionNode","createProjectionNode","id","style","id","id","Fragment","featureDefinitions","style","Component","Component","Component","Fragment","scrapeMotionValuesFromProps","scrapeHTMLMotionValuesFromProps","scrapeSVGMotionValuesFromProps","Component","drag","layout","Component","MeasureLayout","drag","layout","Component","Component","Fragment","event","point","style","time","layout","drag","isDragging","layout","inertia","motionValue","Component","drag","React","useEffect","createPortal","clsx","IconX","AnimatePresence","motion","PanInfo","RecipeVariants","closeButton","content","dragHandle","header","overlay","sheetRecipe","titleStyle","SheetVariants","SheetProps","isOpen","onClose","side","NonNullable","maxWidth","color","textColor","title","ReactNode","showHandle","children","className","sheetVariants","bottom","hidden","y","visible","right","x","left","Sheet","FC","t0","$","_c","t1","t2","t3","undefined","t4","t5","handleEsc","e","key","document","body","style","overflow","globalThis","addEventListener","removeEventListener","unlockScroll","_temp","t6","_","info","offset","velocity","handleDragEnd","appliedWidth","t7","opacity","duration","width","backgroundColor","type","damping","stiffness","mass","top","t8"],"sources":["../../styles/dist/index.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js","../../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js","../../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js","../../../node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.browser.esm.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-8e47dbd7.browser.esm.js","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js","../../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js","../../../node_modules/.pnpm/dedent@1.7.1/node_modules/dedent/dist/dedent.mjs","../../../node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/transformCss-20240126.browser.esm.js","../../../node_modules/.pnpm/@emotion+hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js","../../../node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js","../../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.browser.esm.js","../../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.browser.esm.js","../../../node_modules/.pnpm/@vanilla-extract+recipes@0.5.7_@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js","../../../node_modules/.pnpm/@vanilla-extract+recipes@0.5.7_@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js","../src/sheet.css.ts","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-compiler-runtime.production.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-compiler-runtime.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/compiler-runtime.js","../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.production.js","../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js","../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../../../node_modules/.pnpm/@tabler+icons-react@3.36.1_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs","../../../node_modules/.pnpm/@tabler+icons-react@3.36.1_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs","../../../node_modules/.pnpm/@tabler+icons-react@3.36.1_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-constant.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-browser.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/array.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/clamp.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/format-error-message.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/errors.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/global-config.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/is-numerical-string.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/is-object.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/is-zero-value-string.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/memo.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/noop.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/pipe.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/progress.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/subscription-manager.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/time-conversion.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/velocity-per-second.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/warn-once.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/back.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/anticipate.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/circ.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/ease.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs","../../../node_modules/.pnpm/motion-utils@12.27.2/node_modules/motion-utils/dist/es/easing/utils/map.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/order.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/stats/buffer.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/stats/animation-count.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/utils.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/complex/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/color.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/mix/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/setters.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/will-change/is.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/auto.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/test.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/dimensions.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/int.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/maps/number.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/frameloop/microtask.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/hover.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/types/utils/find.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/models.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/store.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/Feature.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/html/utils/render.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/utils/delay.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/node/state.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs","../../../node_modules/.pnpm/motion-dom@12.29.0/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LazyContext.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../__vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-props.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/animations.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/event-info.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/get-context-window.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/distance.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/drag.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/hover.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/focus.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/press.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/layout.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs","../../../node_modules/.pnpm/framer-motion@12.29.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs","../src/Sheet.tsx"],"sourcesContent":["//#region rolldown:runtime\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.esm.js\nvar stylesheets = {};\nvar injectStyles = (_ref) => {\n\tvar { fileScope, css } = _ref;\n\tvar fileScopeId = fileScope.packageName ? [fileScope.packageName, fileScope.filePath].join(\"/\") : fileScope.filePath;\n\tvar stylesheet = stylesheets[fileScopeId];\n\tif (!stylesheet) {\n\t\tvar styleEl = document.createElement(\"style\");\n\t\tif (fileScope.packageName) styleEl.setAttribute(\"data-package\", fileScope.packageName);\n\t\tstyleEl.setAttribute(\"data-file\", fileScope.filePath);\n\t\tstyleEl.setAttribute(\"type\", \"text/css\");\n\t\tstylesheet = stylesheets[fileScopeId] = styleEl;\n\t\tdocument.head.appendChild(styleEl);\n\t}\n\tstylesheet.innerHTML = css;\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.cjs.prod.js\nvar require_vanilla_extract_private_cjs_prod = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tfunction getVarName(variable) {\n\t\tvar matches = variable.match(/^var\\((.*)\\)$/);\n\t\tif (matches) return matches[1];\n\t\treturn variable;\n\t}\n\tfunction get(obj, path) {\n\t\tvar result = obj;\n\t\tfor (var key of path) {\n\t\t\tif (!(key in result)) throw new Error(\"Path \".concat(path.join(\" -> \"), \" does not exist in object\"));\n\t\t\tresult = result[key];\n\t\t}\n\t\treturn result;\n\t}\n\tfunction walkObject(obj, fn) {\n\t\tvar path = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tvar clone = {};\n\t\tfor (var key in obj) {\n\t\t\tvar _value = obj[key];\n\t\t\tvar currentPath = [...path, key];\n\t\t\tif (typeof _value === \"string\" || typeof _value === \"number\" || _value == null) clone[key] = fn(_value, currentPath);\n\t\t\telse if (typeof _value === \"object\" && !Array.isArray(_value)) clone[key] = walkObject(_value, fn, currentPath);\n\t\t\telse console.warn(\"Skipping invalid key \\\"\".concat(currentPath.join(\".\"), \"\\\". Should be a string, number, null or object. Received: \\\"\").concat(Array.isArray(_value) ? \"Array\" : typeof _value, \"\\\"\"));\n\t\t}\n\t\treturn clone;\n\t}\n\texports.get = get;\n\texports.getVarName = getVarName;\n\texports.walkObject = walkObject;\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.cjs.dev.js\nvar require_vanilla_extract_private_cjs_dev = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.cjs.js\nvar require_vanilla_extract_private_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tif (process.env.NODE_ENV === \"production\") module.exports = require_vanilla_extract_private_cjs_prod();\n\telse module.exports = require_vanilla_extract_private_cjs_dev();\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js\n/*! https://mths.be/cssesc v3.0.0 by @mathias */\nvar require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tvar merge = function merge(options, defaults) {\n\t\tif (!options) return defaults;\n\t\tvar result = {};\n\t\tfor (var key in defaults) result[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];\n\t\treturn result;\n\t};\n\tvar regexAnySingleEscape = /[ -,\\.\\/:-@\\[-\\^`\\{-~]/;\n\tvar regexSingleEscape = /[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/;\n\tvar regexExcessiveSpaces = /(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g;\n\tvar cssesc = function cssesc(string, options) {\n\t\toptions = merge(options, cssesc.options);\n\t\tif (options.quotes != \"single\" && options.quotes != \"double\") options.quotes = \"single\";\n\t\tvar quote = options.quotes == \"double\" ? \"\\\"\" : \"'\";\n\t\tvar isIdentifier = options.isIdentifier;\n\t\tvar firstChar = string.charAt(0);\n\t\tvar output = \"\";\n\t\tvar counter = 0;\n\t\tvar length = string.length;\n\t\twhile (counter < length) {\n\t\t\tvar character = string.charAt(counter++);\n\t\t\tvar codePoint = character.charCodeAt();\n\t\t\tvar value = void 0;\n\t\t\tif (codePoint < 32 || codePoint > 126) {\n\t\t\t\tif (codePoint >= 55296 && codePoint <= 56319 && counter < length) {\n\t\t\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\t\t\tif ((extra & 64512) == 56320) codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;\n\t\t\t\t\telse counter--;\n\t\t\t\t}\n\t\t\t\tvalue = \"\\\\\" + codePoint.toString(16).toUpperCase() + \" \";\n\t\t\t} else if (options.escapeEverything) if (regexAnySingleEscape.test(character)) value = \"\\\\\" + character;\n\t\t\telse value = \"\\\\\" + codePoint.toString(16).toUpperCase() + \" \";\n\t\t\telse if (/[\\t\\n\\f\\r\\x0B]/.test(character)) value = \"\\\\\" + codePoint.toString(16).toUpperCase() + \" \";\n\t\t\telse if (character == \"\\\\\" || !isIdentifier && (character == \"\\\"\" && quote == character || character == \"'\" && quote == character) || isIdentifier && regexSingleEscape.test(character)) value = \"\\\\\" + character;\n\t\t\telse value = character;\n\t\t\toutput += value;\n\t\t}\n\t\tif (isIdentifier) {\n\t\t\tif (/^-[-\\d]/.test(output)) output = \"\\\\-\" + output.slice(1);\n\t\t\telse if (/\\d/.test(firstChar)) output = \"\\\\3\" + firstChar + \" \" + output.slice(1);\n\t\t}\n\t\toutput = output.replace(regexExcessiveSpaces, function($0, $1, $2) {\n\t\t\tif ($1 && $1.length % 2) return $0;\n\t\t\treturn ($1 || \"\") + $2;\n\t\t});\n\t\tif (!isIdentifier && options.wrap) return quote + output + quote;\n\t\treturn output;\n\t};\n\tcssesc.options = {\n\t\t\"escapeEverything\": false,\n\t\t\"isIdentifier\": false,\n\t\t\"quotes\": \"single\",\n\t\t\"wrap\": false\n\t};\n\tcssesc.version = \"3.0.0\";\n\tmodule.exports = cssesc;\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js\nvar import_cssesc = /* @__PURE__ */ __toESM(require_cssesc());\nvar import_vanilla_extract_private_cjs = require_vanilla_extract_private_cjs();\nvar AhoCorasick = class {\n\tconstructor(keywords) {\n\t\tconst { failure, gotoFn, output } = this._buildTables(keywords);\n\t\tthis.gotoFn = gotoFn;\n\t\tthis.output = output;\n\t\tthis.failure = failure;\n\t}\n\t_buildTables(keywords) {\n\t\tconst gotoFn = { 0: {} };\n\t\tconst output = {};\n\t\tlet state = 0;\n\t\tfor (const word of keywords) {\n\t\t\tlet curr = 0;\n\t\t\tfor (const l of word) if (gotoFn[curr] && l in gotoFn[curr]) curr = gotoFn[curr][l];\n\t\t\telse {\n\t\t\t\tstate++;\n\t\t\t\tgotoFn[curr][l] = state;\n\t\t\t\tgotoFn[state] = {};\n\t\t\t\tcurr = state;\n\t\t\t\toutput[state] = [];\n\t\t\t}\n\t\t\toutput[curr].push(word);\n\t\t}\n\t\tconst failure = {};\n\t\tconst xs = [];\n\t\tfor (const l in gotoFn[0]) {\n\t\t\tconst state2 = gotoFn[0][l];\n\t\t\tfailure[state2] = 0;\n\t\t\txs.push(state2);\n\t\t}\n\t\twhile (xs.length > 0) {\n\t\t\tconst r = xs.shift();\n\t\t\tif (r !== void 0) for (const l in gotoFn[r]) {\n\t\t\t\tconst s = gotoFn[r][l];\n\t\t\t\txs.push(s);\n\t\t\t\tlet state2 = failure[r];\n\t\t\t\twhile (state2 > 0 && !(l in gotoFn[state2])) state2 = failure[state2];\n\t\t\t\tif (l in gotoFn[state2]) {\n\t\t\t\t\tconst fs = gotoFn[state2][l];\n\t\t\t\t\tfailure[s] = fs;\n\t\t\t\t\toutput[s] = [...output[s], ...output[fs]];\n\t\t\t\t} else failure[s] = 0;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tgotoFn,\n\t\t\toutput,\n\t\t\tfailure\n\t\t};\n\t}\n\tsearch(str) {\n\t\tlet state = 0;\n\t\tconst results = [];\n\t\tfor (let i = 0; i < str.length; i++) {\n\t\t\tconst l = str[i];\n\t\t\twhile (state > 0 && !(l in this.gotoFn[state])) state = this.failure[state];\n\t\t\tif (!(l in this.gotoFn[state])) continue;\n\t\t\tstate = this.gotoFn[state][l];\n\t\t\tif (this.output[state].length > 0) {\n\t\t\t\tconst foundStrs = this.output[state];\n\t\t\t\tresults.push([i, foundStrs]);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}\n\tmatch(str) {\n\t\tlet state = 0;\n\t\tfor (let i = 0; i < str.length; i++) {\n\t\t\tconst l = str[i];\n\t\t\twhile (state > 0 && !(l in this.gotoFn[state])) state = this.failure[state];\n\t\t\tif (!(l in this.gotoFn[state])) continue;\n\t\t\tstate = this.gotoFn[state][l];\n\t\t\tif (this.output[state].length > 0) return true;\n\t\t}\n\t\treturn false;\n\t}\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.esm.js\nvar mockAdapter = {\n\tappendCss: () => {},\n\tregisterClassName: () => {},\n\tonEndFileScope: () => {},\n\tregisterComposition: () => {},\n\tmarkCompositionUsed: () => {},\n\tgetIdentOption: () => process.env.NODE_ENV === \"production\" ? \"short\" : \"debug\"\n};\nvar adapterStack = [mockAdapter];\nvar currentAdapter = () => {\n\tif (adapterStack.length < 1) throw new Error(\"No adapter configured\");\n\treturn adapterStack[adapterStack.length - 1];\n};\nvar hasConfiguredAdapter = false;\nvar setAdapterIfNotSet = (newAdapter) => {\n\tif (!hasConfiguredAdapter) setAdapter(newAdapter);\n};\nvar setAdapter = (newAdapter) => {\n\tif (!newAdapter) throw new Error(\"No adapter provided when calling \\\"setAdapter\\\"\");\n\thasConfiguredAdapter = true;\n\tadapterStack.push(newAdapter);\n};\nvar appendCss = function appendCss() {\n\treturn currentAdapter().appendCss(...arguments);\n};\nvar registerClassName = function registerClassName() {\n\treturn currentAdapter().registerClassName(...arguments);\n};\nvar registerComposition = function registerComposition() {\n\treturn currentAdapter().registerComposition(...arguments);\n};\nvar markCompositionUsed = function markCompositionUsed() {\n\treturn currentAdapter().markCompositionUsed(...arguments);\n};\nvar getIdentOption = function getIdentOption() {\n\tvar adapter = currentAdapter();\n\tif (!(\"getIdentOption\" in adapter)) return process.env.NODE_ENV === \"production\" ? \"short\" : \"debug\";\n\treturn adapter.getIdentOption(...arguments);\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-10998315.esm.js\nfunction _taggedTemplateLiteral(strings, raw) {\n\tif (!raw) raw = strings.slice(0);\n\treturn Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } }));\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.js\nvar require_types = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.AttributeAction = exports.IgnoreCaseMode = exports.SelectorType = void 0;\n\t(function(SelectorType) {\n\t\tSelectorType[\"Attribute\"] = \"attribute\";\n\t\tSelectorType[\"Pseudo\"] = \"pseudo\";\n\t\tSelectorType[\"PseudoElement\"] = \"pseudo-element\";\n\t\tSelectorType[\"Tag\"] = \"tag\";\n\t\tSelectorType[\"Universal\"] = \"universal\";\n\t\tSelectorType[\"Adjacent\"] = \"adjacent\";\n\t\tSelectorType[\"Child\"] = \"child\";\n\t\tSelectorType[\"Descendant\"] = \"descendant\";\n\t\tSelectorType[\"Parent\"] = \"parent\";\n\t\tSelectorType[\"Sibling\"] = \"sibling\";\n\t\tSelectorType[\"ColumnCombinator\"] = \"column-combinator\";\n\t})(exports.SelectorType || (exports.SelectorType = {}));\n\t/**\n\t* Modes for ignore case.\n\t*\n\t* This could be updated to an enum, and the object is\n\t* the current stand-in that will allow code to be updated\n\t* without big changes.\n\t*/\n\texports.IgnoreCaseMode = {\n\t\tUnknown: null,\n\t\tQuirksMode: \"quirks\",\n\t\tIgnoreCase: true,\n\t\tCaseSensitive: false\n\t};\n\t(function(AttributeAction) {\n\t\tAttributeAction[\"Any\"] = \"any\";\n\t\tAttributeAction[\"Element\"] = \"element\";\n\t\tAttributeAction[\"End\"] = \"end\";\n\t\tAttributeAction[\"Equals\"] = \"equals\";\n\t\tAttributeAction[\"Exists\"] = \"exists\";\n\t\tAttributeAction[\"Hyphen\"] = \"hyphen\";\n\t\tAttributeAction[\"Not\"] = \"not\";\n\t\tAttributeAction[\"Start\"] = \"start\";\n\t})(exports.AttributeAction || (exports.AttributeAction = {}));\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.js\nvar require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.parse = exports.isTraversal = void 0;\n\tvar types_1 = require_types();\n\tvar reName = /^[^\\\\#]?(?:\\\\(?:[\\da-f]{1,6}\\s?|.)|[\\w\\-\\u00b0-\\uFFFF])+/;\n\tvar reEscape = /\\\\([\\da-f]{1,6}\\s?|(\\s)|.)/gi;\n\tvar actionTypes = new Map([\n\t\t[126, types_1.AttributeAction.Element],\n\t\t[94, types_1.AttributeAction.Start],\n\t\t[36, types_1.AttributeAction.End],\n\t\t[42, types_1.AttributeAction.Any],\n\t\t[33, types_1.AttributeAction.Not],\n\t\t[124, types_1.AttributeAction.Hyphen]\n\t]);\n\tvar unpackPseudos = new Set([\n\t\t\"has\",\n\t\t\"not\",\n\t\t\"matches\",\n\t\t\"is\",\n\t\t\"where\",\n\t\t\"host\",\n\t\t\"host-context\"\n\t]);\n\t/**\n\t* Checks whether a specific selector is a traversal.\n\t* This is useful eg. in swapping the order of elements that\n\t* are not traversals.\n\t*\n\t* @param selector Selector to check.\n\t*/\n\tfunction isTraversal(selector) {\n\t\tswitch (selector.type) {\n\t\t\tcase types_1.SelectorType.Adjacent:\n\t\t\tcase types_1.SelectorType.Child:\n\t\t\tcase types_1.SelectorType.Descendant:\n\t\t\tcase types_1.SelectorType.Parent:\n\t\t\tcase types_1.SelectorType.Sibling:\n\t\t\tcase types_1.SelectorType.ColumnCombinator: return true;\n\t\t\tdefault: return false;\n\t\t}\n\t}\n\texports.isTraversal = isTraversal;\n\tvar stripQuotesFromPseudos = new Set([\"contains\", \"icontains\"]);\n\tfunction funescape(_, escaped, escapedWhitespace) {\n\t\tvar high = parseInt(escaped, 16) - 65536;\n\t\treturn high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);\n\t}\n\tfunction unescapeCSS(str) {\n\t\treturn str.replace(reEscape, funescape);\n\t}\n\tfunction isQuote(c) {\n\t\treturn c === 39 || c === 34;\n\t}\n\tfunction isWhitespace(c) {\n\t\treturn c === 32 || c === 9 || c === 10 || c === 12 || c === 13;\n\t}\n\t/**\n\t* Parses `selector`, optionally with the passed `options`.\n\t*\n\t* @param selector Selector to parse.\n\t* @param options Options for parsing.\n\t* @returns Returns a two-dimensional array.\n\t* The first dimension represents selectors separated by commas (eg. `sub1, sub2`),\n\t* the second contains the relevant tokens for that selector.\n\t*/\n\tfunction parse(selector) {\n\t\tvar subselects = [];\n\t\tvar endIndex = parseSelector(subselects, \"\".concat(selector), 0);\n\t\tif (endIndex < selector.length) throw new Error(\"Unmatched selector: \".concat(selector.slice(endIndex)));\n\t\treturn subselects;\n\t}\n\texports.parse = parse;\n\tfunction parseSelector(subselects, selector, selectorIndex) {\n\t\tvar tokens = [];\n\t\tfunction getName(offset) {\n\t\t\tvar match = selector.slice(selectorIndex + offset).match(reName);\n\t\t\tif (!match) throw new Error(\"Expected name, found \".concat(selector.slice(selectorIndex)));\n\t\t\tvar name = match[0];\n\t\t\tselectorIndex += offset + name.length;\n\t\t\treturn unescapeCSS(name);\n\t\t}\n\t\tfunction stripWhitespace(offset) {\n\t\t\tselectorIndex += offset;\n\t\t\twhile (selectorIndex < selector.length && isWhitespace(selector.charCodeAt(selectorIndex))) selectorIndex++;\n\t\t}\n\t\tfunction readValueWithParenthesis() {\n\t\t\tselectorIndex += 1;\n\t\t\tvar start = selectorIndex;\n\t\t\tvar counter = 1;\n\t\t\tfor (; counter > 0 && selectorIndex < selector.length; selectorIndex++) if (selector.charCodeAt(selectorIndex) === 40 && !isEscaped(selectorIndex)) counter++;\n\t\t\telse if (selector.charCodeAt(selectorIndex) === 41 && !isEscaped(selectorIndex)) counter--;\n\t\t\tif (counter) throw new Error(\"Parenthesis not matched\");\n\t\t\treturn unescapeCSS(selector.slice(start, selectorIndex - 1));\n\t\t}\n\t\tfunction isEscaped(pos) {\n\t\t\tvar slashCount = 0;\n\t\t\twhile (selector.charCodeAt(--pos) === 92) slashCount++;\n\t\t\treturn (slashCount & 1) === 1;\n\t\t}\n\t\tfunction ensureNotTraversal() {\n\t\t\tif (tokens.length > 0 && isTraversal(tokens[tokens.length - 1])) throw new Error(\"Did not expect successive traversals.\");\n\t\t}\n\t\tfunction addTraversal(type) {\n\t\t\tif (tokens.length > 0 && tokens[tokens.length - 1].type === types_1.SelectorType.Descendant) {\n\t\t\t\ttokens[tokens.length - 1].type = type;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tensureNotTraversal();\n\t\t\ttokens.push({ type });\n\t\t}\n\t\tfunction addSpecialAttribute(name, action) {\n\t\t\ttokens.push({\n\t\t\t\ttype: types_1.SelectorType.Attribute,\n\t\t\t\tname,\n\t\t\t\taction,\n\t\t\t\tvalue: getName(1),\n\t\t\t\tnamespace: null,\n\t\t\t\tignoreCase: \"quirks\"\n\t\t\t});\n\t\t}\n\t\t/**\n\t\t* We have finished parsing the current part of the selector.\n\t\t*\n\t\t* Remove descendant tokens at the end if they exist,\n\t\t* and return the last index, so that parsing can be\n\t\t* picked up from here.\n\t\t*/\n\t\tfunction finalizeSubselector() {\n\t\t\tif (tokens.length && tokens[tokens.length - 1].type === types_1.SelectorType.Descendant) tokens.pop();\n\t\t\tif (tokens.length === 0) throw new Error(\"Empty sub-selector\");\n\t\t\tsubselects.push(tokens);\n\t\t}\n\t\tstripWhitespace(0);\n\t\tif (selector.length === selectorIndex) return selectorIndex;\n\t\tloop: while (selectorIndex < selector.length) {\n\t\t\tvar firstChar = selector.charCodeAt(selectorIndex);\n\t\t\tswitch (firstChar) {\n\t\t\t\tcase 32:\n\t\t\t\tcase 9:\n\t\t\t\tcase 10:\n\t\t\t\tcase 12:\n\t\t\t\tcase 13:\n\t\t\t\t\tif (tokens.length === 0 || tokens[0].type !== types_1.SelectorType.Descendant) {\n\t\t\t\t\t\tensureNotTraversal();\n\t\t\t\t\t\ttokens.push({ type: types_1.SelectorType.Descendant });\n\t\t\t\t\t}\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 62:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Child);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 60:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Parent);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 126:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Sibling);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 43:\n\t\t\t\t\taddTraversal(types_1.SelectorType.Adjacent);\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 46:\n\t\t\t\t\taddSpecialAttribute(\"class\", types_1.AttributeAction.Element);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 35:\n\t\t\t\t\taddSpecialAttribute(\"id\", types_1.AttributeAction.Equals);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 91:\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tvar name_1 = void 0;\n\t\t\t\t\tvar namespace = null;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124) name_1 = getName(1);\n\t\t\t\t\telse if (selector.startsWith(\"*|\", selectorIndex)) {\n\t\t\t\t\t\tnamespace = \"*\";\n\t\t\t\t\t\tname_1 = getName(2);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tname_1 = getName(0);\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 61) {\n\t\t\t\t\t\t\tnamespace = name_1;\n\t\t\t\t\t\t\tname_1 = getName(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstripWhitespace(0);\n\t\t\t\t\tvar action = types_1.AttributeAction.Exists;\n\t\t\t\t\tvar possibleAction = actionTypes.get(selector.charCodeAt(selectorIndex));\n\t\t\t\t\tif (possibleAction) {\n\t\t\t\t\t\taction = possibleAction;\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) !== 61) throw new Error(\"Expected `=`\");\n\t\t\t\t\t\tstripWhitespace(2);\n\t\t\t\t\t} else if (selector.charCodeAt(selectorIndex) === 61) {\n\t\t\t\t\t\taction = types_1.AttributeAction.Equals;\n\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t}\n\t\t\t\t\tvar value = \"\";\n\t\t\t\t\tvar ignoreCase = null;\n\t\t\t\t\tif (action !== \"exists\") {\n\t\t\t\t\t\tif (isQuote(selector.charCodeAt(selectorIndex))) {\n\t\t\t\t\t\t\tvar quote = selector.charCodeAt(selectorIndex);\n\t\t\t\t\t\t\tvar sectionEnd = selectorIndex + 1;\n\t\t\t\t\t\t\twhile (sectionEnd < selector.length && (selector.charCodeAt(sectionEnd) !== quote || isEscaped(sectionEnd))) sectionEnd += 1;\n\t\t\t\t\t\t\tif (selector.charCodeAt(sectionEnd) !== quote) throw new Error(\"Attribute value didn't end\");\n\t\t\t\t\t\t\tvalue = unescapeCSS(selector.slice(selectorIndex + 1, sectionEnd));\n\t\t\t\t\t\t\tselectorIndex = sectionEnd + 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar valueStart = selectorIndex;\n\t\t\t\t\t\t\twhile (selectorIndex < selector.length && (!isWhitespace(selector.charCodeAt(selectorIndex)) && selector.charCodeAt(selectorIndex) !== 93 || isEscaped(selectorIndex))) selectorIndex += 1;\n\t\t\t\t\t\t\tvalue = unescapeCSS(selector.slice(valueStart, selectorIndex));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstripWhitespace(0);\n\t\t\t\t\t\tvar forceIgnore = selector.charCodeAt(selectorIndex) | 32;\n\t\t\t\t\t\tif (forceIgnore === 115) {\n\t\t\t\t\t\t\tignoreCase = false;\n\t\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t\t} else if (forceIgnore === 105) {\n\t\t\t\t\t\t\tignoreCase = true;\n\t\t\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) !== 93) throw new Error(\"Attribute selector didn't terminate\");\n\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\tvar attributeSelector = {\n\t\t\t\t\t\ttype: types_1.SelectorType.Attribute,\n\t\t\t\t\t\tname: name_1,\n\t\t\t\t\t\taction,\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t\tnamespace,\n\t\t\t\t\t\tignoreCase\n\t\t\t\t\t};\n\t\t\t\t\ttokens.push(attributeSelector);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 58:\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 58) {\n\t\t\t\t\t\ttokens.push({\n\t\t\t\t\t\t\ttype: types_1.SelectorType.PseudoElement,\n\t\t\t\t\t\t\tname: getName(2).toLowerCase(),\n\t\t\t\t\t\t\tdata: selector.charCodeAt(selectorIndex) === 40 ? readValueWithParenthesis() : null\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tvar name_2 = getName(1).toLowerCase();\n\t\t\t\t\tvar data = null;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 40) if (unpackPseudos.has(name_2)) {\n\t\t\t\t\t\tif (isQuote(selector.charCodeAt(selectorIndex + 1))) throw new Error(\"Pseudo-selector \".concat(name_2, \" cannot be quoted\"));\n\t\t\t\t\t\tdata = [];\n\t\t\t\t\t\tselectorIndex = parseSelector(data, selector, selectorIndex + 1);\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex) !== 41) throw new Error(\"Missing closing parenthesis in :\".concat(name_2, \" (\").concat(selector, \")\"));\n\t\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdata = readValueWithParenthesis();\n\t\t\t\t\t\tif (stripQuotesFromPseudos.has(name_2)) {\n\t\t\t\t\t\t\tvar quot = data.charCodeAt(0);\n\t\t\t\t\t\t\tif (quot === data.charCodeAt(data.length - 1) && isQuote(quot)) data = data.slice(1, -1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdata = unescapeCSS(data);\n\t\t\t\t\t}\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\ttype: types_1.SelectorType.Pseudo,\n\t\t\t\t\t\tname: name_2,\n\t\t\t\t\t\tdata\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 44:\n\t\t\t\t\tfinalizeSubselector();\n\t\t\t\t\ttokens = [];\n\t\t\t\t\tstripWhitespace(1);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (selector.startsWith(\"/*\", selectorIndex)) {\n\t\t\t\t\t\tvar endIndex = selector.indexOf(\"*/\", selectorIndex + 2);\n\t\t\t\t\t\tif (endIndex < 0) throw new Error(\"Comment was not terminated\");\n\t\t\t\t\t\tselectorIndex = endIndex + 2;\n\t\t\t\t\t\tif (tokens.length === 0) stripWhitespace(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvar namespace = null;\n\t\t\t\t\tvar name_3 = void 0;\n\t\t\t\t\tif (firstChar === 42) {\n\t\t\t\t\t\tselectorIndex += 1;\n\t\t\t\t\t\tname_3 = \"*\";\n\t\t\t\t\t} else if (firstChar === 124) {\n\t\t\t\t\t\tname_3 = \"\";\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 124) {\n\t\t\t\t\t\t\taddTraversal(types_1.SelectorType.ColumnCombinator);\n\t\t\t\t\t\t\tstripWhitespace(2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (reName.test(selector.slice(selectorIndex))) name_3 = getName(0);\n\t\t\t\t\telse break loop;\n\t\t\t\t\tif (selector.charCodeAt(selectorIndex) === 124 && selector.charCodeAt(selectorIndex + 1) !== 124) {\n\t\t\t\t\t\tnamespace = name_3;\n\t\t\t\t\t\tif (selector.charCodeAt(selectorIndex + 1) === 42) {\n\t\t\t\t\t\t\tname_3 = \"*\";\n\t\t\t\t\t\t\tselectorIndex += 2;\n\t\t\t\t\t\t} else name_3 = getName(1);\n\t\t\t\t\t}\n\t\t\t\t\ttokens.push(name_3 === \"*\" ? {\n\t\t\t\t\t\ttype: types_1.SelectorType.Universal,\n\t\t\t\t\t\tnamespace\n\t\t\t\t\t} : {\n\t\t\t\t\t\ttype: types_1.SelectorType.Tag,\n\t\t\t\t\t\tname: name_3,\n\t\t\t\t\t\tnamespace\n\t\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tfinalizeSubselector();\n\t\treturn selectorIndex;\n\t}\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.js\nvar require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tvar __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {\n\t\tif (pack || arguments.length === 2) {\n\t\t\tfor (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {\n\t\t\t\tif (!ar) ar = Array.prototype.slice.call(from, 0, i);\n\t\t\t\tar[i] = from[i];\n\t\t\t}\n\t\t}\n\t\treturn to.concat(ar || Array.prototype.slice.call(from));\n\t};\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.stringify = void 0;\n\tvar types_1 = require_types();\n\tvar attribValChars = [\"\\\\\", \"\\\"\"];\n\tvar pseudoValChars = __spreadArray(__spreadArray([], attribValChars, true), [\"(\", \")\"], false);\n\tvar charsToEscapeInAttributeValue = new Set(attribValChars.map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\tvar charsToEscapeInPseudoValue = new Set(pseudoValChars.map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\tvar charsToEscapeInName = new Set(__spreadArray(__spreadArray([], pseudoValChars, true), [\n\t\t\"~\",\n\t\t\"^\",\n\t\t\"$\",\n\t\t\"*\",\n\t\t\"+\",\n\t\t\"!\",\n\t\t\"|\",\n\t\t\":\",\n\t\t\"[\",\n\t\t\"]\",\n\t\t\" \",\n\t\t\".\"\n\t], false).map(function(c) {\n\t\treturn c.charCodeAt(0);\n\t}));\n\t/**\n\t* Turns `selector` back into a string.\n\t*\n\t* @param selector Selector to stringify.\n\t*/\n\tfunction stringify(selector) {\n\t\treturn selector.map(function(token) {\n\t\t\treturn token.map(stringifyToken).join(\"\");\n\t\t}).join(\", \");\n\t}\n\texports.stringify = stringify;\n\tfunction stringifyToken(token, index, arr) {\n\t\tswitch (token.type) {\n\t\t\tcase types_1.SelectorType.Child: return index === 0 ? \"> \" : \" > \";\n\t\t\tcase types_1.SelectorType.Parent: return index === 0 ? \"< \" : \" < \";\n\t\t\tcase types_1.SelectorType.Sibling: return index === 0 ? \"~ \" : \" ~ \";\n\t\t\tcase types_1.SelectorType.Adjacent: return index === 0 ? \"+ \" : \" + \";\n\t\t\tcase types_1.SelectorType.Descendant: return \" \";\n\t\t\tcase types_1.SelectorType.ColumnCombinator: return index === 0 ? \"|| \" : \" || \";\n\t\t\tcase types_1.SelectorType.Universal: return token.namespace === \"*\" && index + 1 < arr.length && \"name\" in arr[index + 1] ? \"\" : \"\".concat(getNamespace(token.namespace), \"*\");\n\t\t\tcase types_1.SelectorType.Tag: return getNamespacedName(token);\n\t\t\tcase types_1.SelectorType.PseudoElement: return \"::\".concat(escapeName(token.name, charsToEscapeInName)).concat(token.data === null ? \"\" : \"(\".concat(escapeName(token.data, charsToEscapeInPseudoValue), \")\"));\n\t\t\tcase types_1.SelectorType.Pseudo: return \":\".concat(escapeName(token.name, charsToEscapeInName)).concat(token.data === null ? \"\" : \"(\".concat(typeof token.data === \"string\" ? escapeName(token.data, charsToEscapeInPseudoValue) : stringify(token.data), \")\"));\n\t\t\tcase types_1.SelectorType.Attribute:\n\t\t\t\tif (token.name === \"id\" && token.action === types_1.AttributeAction.Equals && token.ignoreCase === \"quirks\" && !token.namespace) return \"#\".concat(escapeName(token.value, charsToEscapeInName));\n\t\t\t\tif (token.name === \"class\" && token.action === types_1.AttributeAction.Element && token.ignoreCase === \"quirks\" && !token.namespace) return \".\".concat(escapeName(token.value, charsToEscapeInName));\n\t\t\t\tvar name_1 = getNamespacedName(token);\n\t\t\t\tif (token.action === types_1.AttributeAction.Exists) return \"[\".concat(name_1, \"]\");\n\t\t\t\treturn \"[\".concat(name_1).concat(getActionValue(token.action), \"=\\\"\").concat(escapeName(token.value, charsToEscapeInAttributeValue), \"\\\"\").concat(token.ignoreCase === null ? \"\" : token.ignoreCase ? \" i\" : \" s\", \"]\");\n\t\t}\n\t}\n\tfunction getActionValue(action) {\n\t\tswitch (action) {\n\t\t\tcase types_1.AttributeAction.Equals: return \"\";\n\t\t\tcase types_1.AttributeAction.Element: return \"~\";\n\t\t\tcase types_1.AttributeAction.Start: return \"^\";\n\t\t\tcase types_1.AttributeAction.End: return \"$\";\n\t\t\tcase types_1.AttributeAction.Any: return \"*\";\n\t\t\tcase types_1.AttributeAction.Not: return \"!\";\n\t\t\tcase types_1.AttributeAction.Hyphen: return \"|\";\n\t\t\tcase types_1.AttributeAction.Exists: throw new Error(\"Shouldn't be here\");\n\t\t}\n\t}\n\tfunction getNamespacedName(token) {\n\t\treturn \"\".concat(getNamespace(token.namespace)).concat(escapeName(token.name, charsToEscapeInName));\n\t}\n\tfunction getNamespace(namespace) {\n\t\treturn namespace !== null ? \"\".concat(namespace === \"*\" ? \"*\" : escapeName(namespace, charsToEscapeInName), \"|\") : \"\";\n\t}\n\tfunction escapeName(str, charsToEscape) {\n\t\tvar lastIdx = 0;\n\t\tvar ret = \"\";\n\t\tfor (var i = 0; i < str.length; i++) if (charsToEscape.has(str.charCodeAt(i))) {\n\t\t\tret += \"\".concat(str.slice(lastIdx, i), \"\\\\\").concat(str.charAt(i));\n\t\t\tlastIdx = i + 1;\n\t\t}\n\t\treturn ret.length > 0 ? ret + str.slice(lastIdx) : str;\n\t}\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.js\nvar require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tvar __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {\n\t\tif (k2 === void 0) k2 = k;\n\t\tvar desc = Object.getOwnPropertyDescriptor(m, k);\n\t\tif (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn m[k];\n\t\t\t}\n\t\t};\n\t\tObject.defineProperty(o, k2, desc);\n\t}) : (function(o, m, k, k2) {\n\t\tif (k2 === void 0) k2 = k;\n\t\to[k2] = m[k];\n\t}));\n\tvar __exportStar = exports && exports.__exportStar || function(m, exports$1) {\n\t\tfor (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);\n\t};\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\texports.stringify = exports.parse = exports.isTraversal = void 0;\n\t__exportStar(require_types(), exports);\n\tvar parse_1 = require_parse();\n\tObject.defineProperty(exports, \"isTraversal\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn parse_1.isTraversal;\n\t\t}\n\t});\n\tObject.defineProperty(exports, \"parse\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn parse_1.parse;\n\t\t}\n\t});\n\tvar stringify_1 = require_stringify();\n\tObject.defineProperty(exports, \"stringify\", {\n\t\tenumerable: true,\n\t\tget: function() {\n\t\t\treturn stringify_1.stringify;\n\t\t}\n\t});\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/dedent@1.7.1/node_modules/dedent/dist/dedent.mjs\nvar import_commonjs = require_commonjs();\nfunction ownKeys$2(object, enumerableOnly) {\n\tvar keys = Object.keys(object);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar symbols = Object.getOwnPropertySymbols(object);\n\t\tenumerableOnly && (symbols = symbols.filter(function(sym) {\n\t\t\treturn Object.getOwnPropertyDescriptor(object, sym).enumerable;\n\t\t})), keys.push.apply(keys, symbols);\n\t}\n\treturn keys;\n}\nfunction _objectSpread(target) {\n\tfor (var i = 1; i < arguments.length; i++) {\n\t\tvar source = null != arguments[i] ? arguments[i] : {};\n\t\ti % 2 ? ownKeys$2(Object(source), !0).forEach(function(key) {\n\t\t\t_defineProperty$2(target, key, source[key]);\n\t\t}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function(key) {\n\t\t\tObject.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n\t\t});\n\t}\n\treturn target;\n}\nfunction _defineProperty$2(obj, key, value) {\n\tkey = _toPropertyKey(key);\n\tif (key in obj) Object.defineProperty(obj, key, {\n\t\tvalue,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\telse obj[key] = value;\n\treturn obj;\n}\nfunction _toPropertyKey(arg) {\n\tvar key = _toPrimitive(arg, \"string\");\n\treturn typeof key === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n\tif (typeof input !== \"object\" || input === null) return input;\n\tvar prim = input[Symbol.toPrimitive];\n\tif (prim !== void 0) {\n\t\tvar res = prim.call(input, hint || \"default\");\n\t\tif (typeof res !== \"object\") return res;\n\t\tthrow new TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (hint === \"string\" ? String : Number)(input);\n}\nconst dedent = createDedent({});\nvar dedent_default = dedent;\nfunction createDedent(options) {\n\tdedent.withOptions = (newOptions) => createDedent(_objectSpread(_objectSpread({}, options), newOptions));\n\treturn dedent;\n\tfunction dedent(strings, ...values) {\n\t\tconst raw = typeof strings === \"string\" ? [strings] : strings.raw;\n\t\tconst { alignValues = false, escapeSpecialCharacters = Array.isArray(strings), trimWhitespace = true } = options;\n\t\tlet result = \"\";\n\t\tfor (let i = 0; i < raw.length; i++) {\n\t\t\tlet next = raw[i];\n\t\t\tif (escapeSpecialCharacters) next = next.replace(/\\\\\\n[ \\t]*/g, \"\").replace(/\\\\`/g, \"`\").replace(/\\\\\\$/g, \"$\").replace(/\\\\\\{/g, \"{\");\n\t\t\tresult += next;\n\t\t\tif (i < values.length) {\n\t\t\t\tconst value = alignValues ? alignValue(values[i], result) : values[i];\n\t\t\t\tresult += value;\n\t\t\t}\n\t\t}\n\t\tconst lines = result.split(\"\\n\");\n\t\tlet mindent = null;\n\t\tfor (const l of lines) {\n\t\t\tconst m = l.match(/^(\\s+)\\S+/);\n\t\t\tif (m) {\n\t\t\t\tconst indent = m[1].length;\n\t\t\t\tif (!mindent) mindent = indent;\n\t\t\t\telse mindent = Math.min(mindent, indent);\n\t\t\t}\n\t\t}\n\t\tif (mindent !== null) {\n\t\t\tconst m = mindent;\n\t\t\tresult = lines.map((l) => l[0] === \" \" || l[0] === \"\t\" ? l.slice(m) : l).join(\"\\n\");\n\t\t}\n\t\tif (trimWhitespace) result = result.trim();\n\t\tif (escapeSpecialCharacters) result = result.replace(/\\\\n/g, \"\\n\");\n\t\tif (typeof Bun !== \"undefined\") result = result.replace(/\\\\u(?:\\{([\\da-fA-F]{1,6})\\}|([\\da-fA-F]{4}))/g, (_, braced, unbraced) => {\n\t\t\tvar _ref;\n\t\t\tconst hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : \"\";\n\t\t\treturn String.fromCodePoint(parseInt(hex, 16));\n\t\t});\n\t\treturn result;\n\t}\n}\n/**\n* Adjusts the indentation of a multi-line interpolated value to match the current line.\n*/\nfunction alignValue(value, precedingText) {\n\tif (typeof value !== \"string\" || !value.includes(\"\\n\")) return value;\n\tconst indentMatch = precedingText.slice(precedingText.lastIndexOf(\"\\n\") + 1).match(/^(\\s+)/);\n\tif (indentMatch) {\n\t\tconst indent = indentMatch[1];\n\t\treturn value.replace(/\\n/g, `\\n${indent}`);\n\t}\n\treturn value;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/index.js\n/*! @license MediaQueryParser - MIT License - Tom Golden (github@tbjgolden.com) */\nvar require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\t/*! *****************************************************************************\n\tCopyright (c) Microsoft Corporation.\n\t\n\tPermission to use, copy, modify, and/or distribute this software for any\n\tpurpose with or without fee is hereby granted.\n\t\n\tTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n\tREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n\tAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n\tINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n\tLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n\tOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n\tPERFORMANCE OF THIS SOFTWARE.\n\t***************************************************************************** */\n\tvar __assign = function() {\n\t\t__assign = Object.assign || function __assign(t) {\n\t\t\tfor (var s, i = 1, n = arguments.length; i < n; i++) {\n\t\t\t\ts = arguments[i];\n\t\t\t\tfor (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n\t\t\t}\n\t\t\treturn t;\n\t\t};\n\t\treturn __assign.apply(this, arguments);\n\t};\n\tfunction __rest(s, e) {\n\t\tvar t = {};\n\t\tfor (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n\t\tif (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n\t\t\tfor (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n\t\t}\n\t\treturn t;\n\t}\n\tfunction __values(o) {\n\t\tvar s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n\t\tif (m) return m.call(o);\n\t\tif (o && typeof o.length === \"number\") return { next: function() {\n\t\t\tif (o && i >= o.length) o = void 0;\n\t\t\treturn {\n\t\t\t\tvalue: o && o[i++],\n\t\t\t\tdone: !o\n\t\t\t};\n\t\t} };\n\t\tthrow new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n\t}\n\tfunction __read(o, n) {\n\t\tvar m = typeof Symbol === \"function\" && o[Symbol.iterator];\n\t\tif (!m) return o;\n\t\tvar i = m.call(o), r, ar = [], e;\n\t\ttry {\n\t\t\twhile ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n\t\t} catch (error) {\n\t\t\te = { error };\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (r && !r.done && (m = i[\"return\"])) m.call(i);\n\t\t\t} finally {\n\t\t\t\tif (e) throw e.error;\n\t\t\t}\n\t\t}\n\t\treturn ar;\n\t}\n\tvar weirdNewlines = /(\\u000D|\\u000C|\\u000D\\u000A)/g;\n\tvar nullOrSurrogates = /[\\u0000\\uD800-\\uDFFF]/g;\n\tvar commentRegex = /(\\/\\*)[\\s\\S]*?(\\*\\/)/g;\n\tvar lexicalAnalysis = function lexicalAnalysis(str, index) {\n\t\tif (index === void 0) index = 0;\n\t\tstr = str.replace(weirdNewlines, \"\\n\").replace(nullOrSurrogates, \"�\");\n\t\tstr = str.replace(commentRegex, \"\");\n\t\tvar tokens = [];\n\t\tfor (; index < str.length; index += 1) {\n\t\t\tvar code = str.charCodeAt(index);\n\t\t\tif (code === 9 || code === 32 || code === 10) {\n\t\t\t\tvar code_1 = str.charCodeAt(++index);\n\t\t\t\twhile (code_1 === 9 || code_1 === 32 || code_1 === 10) code_1 = str.charCodeAt(++index);\n\t\t\t\tindex -= 1;\n\t\t\t\ttokens.push({ type: \"<whitespace-token>\" });\n\t\t\t} else if (code === 34) {\n\t\t\t\tvar result = consumeString(str, index);\n\t\t\t\tif (result === null) return null;\n\t\t\t\tvar _a = __read(result, 2), lastIndex = _a[0], value = _a[1];\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<string-token>\",\n\t\t\t\t\tvalue\n\t\t\t\t});\n\t\t\t\tindex = lastIndex;\n\t\t\t} else if (code === 35) {\n\t\t\t\tif (index + 1 < str.length) {\n\t\t\t\t\tvar nextCode = str.charCodeAt(index + 1);\n\t\t\t\t\tif (nextCode === 95 || nextCode >= 65 && nextCode <= 90 || nextCode >= 97 && nextCode <= 122 || nextCode >= 128 || nextCode >= 48 && nextCode <= 57 || nextCode === 92 && index + 2 < str.length && str.charCodeAt(index + 2) !== 10) {\n\t\t\t\t\t\tvar flag = wouldStartIdentifier(str, index + 1) ? \"id\" : \"unrestricted\";\n\t\t\t\t\t\tvar result = consumeIdentUnsafe(str, index + 1);\n\t\t\t\t\t\tif (result !== null) {\n\t\t\t\t\t\t\tvar _b = __read(result, 2), lastIndex = _b[0], value = _b[1];\n\t\t\t\t\t\t\ttokens.push({\n\t\t\t\t\t\t\t\ttype: \"<hash-token>\",\n\t\t\t\t\t\t\t\tvalue: value.toLowerCase(),\n\t\t\t\t\t\t\t\tflag\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t} else if (code === 39) {\n\t\t\t\tvar result = consumeString(str, index);\n\t\t\t\tif (result === null) return null;\n\t\t\t\tvar _c = __read(result, 2), lastIndex = _c[0], value = _c[1];\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<string-token>\",\n\t\t\t\t\tvalue\n\t\t\t\t});\n\t\t\t\tindex = lastIndex;\n\t\t\t} else if (code === 40) tokens.push({ type: \"<(-token>\" });\n\t\t\telse if (code === 41) tokens.push({ type: \"<)-token>\" });\n\t\t\telse if (code === 43) {\n\t\t\t\tvar plusNumeric = consumeNumeric(str, index);\n\t\t\t\tif (plusNumeric === null) tokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t\telse {\n\t\t\t\t\tvar _d = __read(plusNumeric, 2), lastIndex = _d[0], tokenTuple = _d[1];\n\t\t\t\t\tif (tokenTuple[0] === \"<dimension-token>\") tokens.push({\n\t\t\t\t\t\ttype: \"<dimension-token>\",\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tunit: tokenTuple[2].toLowerCase(),\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\telse if (tokenTuple[0] === \"<number-token>\") tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: tokenTuple[2]\n\t\t\t\t\t});\n\t\t\t\t\telse tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t}\n\t\t\t} else if (code === 44) tokens.push({ type: \"<comma-token>\" });\n\t\t\telse if (code === 45) {\n\t\t\t\tvar minusNumeric = consumeNumeric(str, index);\n\t\t\t\tif (minusNumeric !== null) {\n\t\t\t\t\tvar _e = __read(minusNumeric, 2), lastIndex = _e[0], tokenTuple = _e[1];\n\t\t\t\t\tif (tokenTuple[0] === \"<dimension-token>\") tokens.push({\n\t\t\t\t\t\ttype: \"<dimension-token>\",\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tunit: tokenTuple[2].toLowerCase(),\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\telse if (tokenTuple[0] === \"<number-token>\") tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: tokenTuple[2]\n\t\t\t\t\t});\n\t\t\t\t\telse tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (index + 2 < str.length) {\n\t\t\t\t\tvar nextCode = str.charCodeAt(index + 1);\n\t\t\t\t\tvar nextNextCode = str.charCodeAt(index + 2);\n\t\t\t\t\tif (nextCode === 45 && nextNextCode === 62) {\n\t\t\t\t\t\ttokens.push({ type: \"<CDC-token>\" });\n\t\t\t\t\t\tindex += 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar result = consumeIdentLike(str, index);\n\t\t\t\tif (result !== null) {\n\t\t\t\t\tvar _f = __read(result, 3), lastIndex = _f[0], value = _f[1], type = _f[2];\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tvalue\n\t\t\t\t\t});\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t} else if (code === 46) {\n\t\t\t\tvar minusNumeric = consumeNumeric(str, index);\n\t\t\t\tif (minusNumeric === null) tokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t\telse {\n\t\t\t\t\tvar _g = __read(minusNumeric, 2), lastIndex = _g[0], tokenTuple = _g[1];\n\t\t\t\t\tif (tokenTuple[0] === \"<dimension-token>\") tokens.push({\n\t\t\t\t\t\ttype: \"<dimension-token>\",\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tunit: tokenTuple[2].toLowerCase(),\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\telse if (tokenTuple[0] === \"<number-token>\") tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: tokenTuple[2]\n\t\t\t\t\t});\n\t\t\t\t\telse tokens.push({\n\t\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\t\tflag: \"number\"\n\t\t\t\t\t});\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else if (code === 58) tokens.push({ type: \"<colon-token>\" });\n\t\t\telse if (code === 59) tokens.push({ type: \"<semicolon-token>\" });\n\t\t\telse if (code === 60) {\n\t\t\t\tif (index + 3 < str.length) {\n\t\t\t\t\tvar nextCode = str.charCodeAt(index + 1);\n\t\t\t\t\tvar nextNextCode = str.charCodeAt(index + 2);\n\t\t\t\t\tvar nextNextNextCode = str.charCodeAt(index + 3);\n\t\t\t\t\tif (nextCode === 33 && nextNextCode === 45 && nextNextNextCode === 45) {\n\t\t\t\t\t\ttokens.push({ type: \"<CDO-token>\" });\n\t\t\t\t\t\tindex += 3;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t} else if (code === 64) {\n\t\t\t\tvar result = consumeIdent(str, index + 1);\n\t\t\t\tif (result !== null) {\n\t\t\t\t\tvar _h = __read(result, 2), lastIndex = _h[0], value = _h[1];\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\ttype: \"<at-keyword-token>\",\n\t\t\t\t\t\tvalue: value.toLowerCase()\n\t\t\t\t\t});\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\t\tvalue: code\n\t\t\t\t});\n\t\t\t} else if (code === 91) tokens.push({ type: \"<[-token>\" });\n\t\t\telse if (code === 92) {\n\t\t\t\tvar result = consumeEscape(str, index);\n\t\t\t\tif (result === null) return null;\n\t\t\t\tvar _j = __read(result, 2), lastIndex = _j[0], value = _j[1];\n\t\t\t\tstr = str.slice(0, index) + value + str.slice(lastIndex + 1);\n\t\t\t\tindex -= 1;\n\t\t\t} else if (code === 93) tokens.push({ type: \"<]-token>\" });\n\t\t\telse if (code === 123) tokens.push({ type: \"<{-token>\" });\n\t\t\telse if (code === 125) tokens.push({ type: \"<}-token>\" });\n\t\t\telse if (code >= 48 && code <= 57) {\n\t\t\t\tvar result = consumeNumeric(str, index);\n\t\t\t\tvar _k = __read(result, 2), lastIndex = _k[0], tokenTuple = _k[1];\n\t\t\t\tif (tokenTuple[0] === \"<dimension-token>\") tokens.push({\n\t\t\t\t\ttype: \"<dimension-token>\",\n\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\tunit: tokenTuple[2].toLowerCase(),\n\t\t\t\t\tflag: \"number\"\n\t\t\t\t});\n\t\t\t\telse if (tokenTuple[0] === \"<number-token>\") tokens.push({\n\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\tflag: tokenTuple[2]\n\t\t\t\t});\n\t\t\t\telse tokens.push({\n\t\t\t\t\ttype: tokenTuple[0],\n\t\t\t\t\tvalue: tokenTuple[1],\n\t\t\t\t\tflag: \"number\"\n\t\t\t\t});\n\t\t\t\tindex = lastIndex;\n\t\t\t} else if (code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 128) {\n\t\t\t\tvar result = consumeIdentLike(str, index);\n\t\t\t\tif (result === null) return null;\n\t\t\t\tvar _l = __read(result, 3), lastIndex = _l[0], value = _l[1], type = _l[2];\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype,\n\t\t\t\t\tvalue\n\t\t\t\t});\n\t\t\t\tindex = lastIndex;\n\t\t\t} else tokens.push({\n\t\t\t\ttype: \"<delim-token>\",\n\t\t\t\tvalue: code\n\t\t\t});\n\t\t}\n\t\ttokens.push({ type: \"<EOF-token>\" });\n\t\treturn tokens;\n\t};\n\tvar consumeString = function consumeString(str, index) {\n\t\tif (str.length <= index + 1) return null;\n\t\tvar firstCode = str.charCodeAt(index);\n\t\tvar charCodes = [];\n\t\tfor (var i = index + 1; i < str.length; i += 1) {\n\t\t\tvar code = str.charCodeAt(i);\n\t\t\tif (code === firstCode) return [i, String.fromCharCode.apply(null, charCodes)];\n\t\t\telse if (code === 92) {\n\t\t\t\tvar result = consumeEscape(str, i);\n\t\t\t\tif (result === null) return null;\n\t\t\t\tvar _a = __read(result, 2), lastIndex = _a[0], charCode = _a[1];\n\t\t\t\tcharCodes.push(charCode);\n\t\t\t\ti = lastIndex;\n\t\t\t} else if (code === 10) return null;\n\t\t\telse charCodes.push(code);\n\t\t}\n\t\treturn null;\n\t};\n\tvar wouldStartIdentifier = function wouldStartIdentifier(str, index) {\n\t\tif (str.length <= index) return false;\n\t\tvar code = str.charCodeAt(index);\n\t\tif (code === 45) {\n\t\t\tif (str.length <= index + 1) return false;\n\t\t\tvar nextCode = str.charCodeAt(index + 1);\n\t\t\tif (nextCode === 45 || nextCode === 95 || nextCode >= 65 && nextCode <= 90 || nextCode >= 97 && nextCode <= 122 || nextCode >= 128) return true;\n\t\t\telse if (nextCode === 92) {\n\t\t\t\tif (str.length <= index + 2) return false;\n\t\t\t\treturn str.charCodeAt(index + 2) !== 10;\n\t\t\t} else return false;\n\t\t} else if (code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 128) return true;\n\t\telse if (code === 92) {\n\t\t\tif (str.length <= index + 1) return false;\n\t\t\tvar nextCode = str.charCodeAt(index + 1);\n\t\t\treturn nextCode !== 10;\n\t\t} else return false;\n\t};\n\tvar consumeEscape = function consumeEscape(str, index) {\n\t\tif (str.length <= index + 1) return null;\n\t\tif (str.charCodeAt(index) !== 92) return null;\n\t\tvar code = str.charCodeAt(index + 1);\n\t\tif (code === 10) return null;\n\t\telse if (code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102) {\n\t\t\tvar hexCharCodes = [code];\n\t\t\tvar min = Math.min(index + 7, str.length);\n\t\t\tvar i = index + 2;\n\t\t\tfor (; i < min; i += 1) {\n\t\t\t\tvar code_2 = str.charCodeAt(i);\n\t\t\t\tif (code_2 >= 48 && code_2 <= 57 || code_2 >= 65 && code_2 <= 70 || code_2 >= 97 && code_2 <= 102) hexCharCodes.push(code_2);\n\t\t\t\telse break;\n\t\t\t}\n\t\t\tif (i < str.length) {\n\t\t\t\tvar code_3 = str.charCodeAt(i);\n\t\t\t\tif (code_3 === 9 || code_3 === 32 || code_3 === 10) i += 1;\n\t\t\t}\n\t\t\treturn [i - 1, parseInt(String.fromCharCode.apply(null, hexCharCodes), 16)];\n\t\t} else return [index + 1, code];\n\t};\n\tvar consumeNumeric = function consumeNumeric(str, index) {\n\t\tvar numberResult = consumeNumber(str, index);\n\t\tif (numberResult === null) return null;\n\t\tvar _a = __read(numberResult, 3), numberEndIndex = _a[0], numberValue = _a[1], numberFlag = _a[2];\n\t\tvar identResult = consumeIdent(str, numberEndIndex + 1);\n\t\tif (identResult !== null) {\n\t\t\tvar _b = __read(identResult, 2);\n\t\t\treturn [_b[0], [\n\t\t\t\t\"<dimension-token>\",\n\t\t\t\tnumberValue,\n\t\t\t\t_b[1]\n\t\t\t]];\n\t\t}\n\t\tif (numberEndIndex + 1 < str.length && str.charCodeAt(numberEndIndex + 1) === 37) return [numberEndIndex + 1, [\"<percentage-token>\", numberValue]];\n\t\treturn [numberEndIndex, [\n\t\t\t\"<number-token>\",\n\t\t\tnumberValue,\n\t\t\tnumberFlag\n\t\t]];\n\t};\n\tvar consumeNumber = function consumeNumber(str, index) {\n\t\tif (str.length <= index) return null;\n\t\tvar flag = \"integer\";\n\t\tvar numberChars = [];\n\t\tvar firstCode = str.charCodeAt(index);\n\t\tif (firstCode === 43 || firstCode === 45) {\n\t\t\tindex += 1;\n\t\t\tif (firstCode === 45) numberChars.push(45);\n\t\t}\n\t\twhile (index < str.length) {\n\t\t\tvar code = str.charCodeAt(index);\n\t\t\tif (code >= 48 && code <= 57) {\n\t\t\t\tnumberChars.push(code);\n\t\t\t\tindex += 1;\n\t\t\t} else break;\n\t\t}\n\t\tif (index + 1 < str.length) {\n\t\t\tvar nextCode = str.charCodeAt(index);\n\t\t\tvar nextNextCode = str.charCodeAt(index + 1);\n\t\t\tif (nextCode === 46 && nextNextCode >= 48 && nextNextCode <= 57) {\n\t\t\t\tnumberChars.push(nextCode, nextNextCode);\n\t\t\t\tflag = \"number\";\n\t\t\t\tindex += 2;\n\t\t\t\twhile (index < str.length) {\n\t\t\t\t\tvar code = str.charCodeAt(index);\n\t\t\t\t\tif (code >= 48 && code <= 57) {\n\t\t\t\t\t\tnumberChars.push(code);\n\t\t\t\t\t\tindex += 1;\n\t\t\t\t\t} else break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (index + 1 < str.length) {\n\t\t\tvar nextCode = str.charCodeAt(index);\n\t\t\tvar nextNextCode = str.charCodeAt(index + 1);\n\t\t\tvar nextNextNextCode = str.charCodeAt(index + 2);\n\t\t\tif (nextCode === 69 || nextCode === 101) {\n\t\t\t\tvar nextNextIsDigit = nextNextCode >= 48 && nextNextCode <= 57;\n\t\t\t\tif (nextNextIsDigit || (nextNextCode === 43 || nextNextCode === 45) && nextNextNextCode >= 48 && nextNextNextCode <= 57) {\n\t\t\t\t\tflag = \"number\";\n\t\t\t\t\tif (nextNextIsDigit) {\n\t\t\t\t\t\tnumberChars.push(69, nextNextCode);\n\t\t\t\t\t\tindex += 2;\n\t\t\t\t\t} else if (nextNextCode === 45) {\n\t\t\t\t\t\tnumberChars.push(69, 45, nextNextNextCode);\n\t\t\t\t\t\tindex += 3;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnumberChars.push(69, nextNextNextCode);\n\t\t\t\t\t\tindex += 3;\n\t\t\t\t\t}\n\t\t\t\t\twhile (index < str.length) {\n\t\t\t\t\t\tvar code = str.charCodeAt(index);\n\t\t\t\t\t\tif (code >= 48 && code <= 57) {\n\t\t\t\t\t\t\tnumberChars.push(code);\n\t\t\t\t\t\t\tindex += 1;\n\t\t\t\t\t\t} else break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tvar numberString = String.fromCharCode.apply(null, numberChars);\n\t\tvar value = flag === \"number\" ? parseFloat(numberString) : parseInt(numberString);\n\t\tif (value === -0) value = 0;\n\t\treturn Number.isNaN(value) ? null : [\n\t\t\tindex - 1,\n\t\t\tvalue,\n\t\t\tflag\n\t\t];\n\t};\n\tvar consumeIdentUnsafe = function consumeIdentUnsafe(str, index) {\n\t\tif (str.length <= index) return null;\n\t\tvar identChars = [];\n\t\tfor (var code = str.charCodeAt(index); index < str.length; code = str.charCodeAt(++index)) {\n\t\t\tif (code === 45 || code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 128 || code >= 48 && code <= 57) {\n\t\t\t\tidentChars.push(code);\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tvar result = consumeEscape(str, index);\n\t\t\t\tif (result !== null) {\n\t\t\t\t\tvar _a = __read(result, 2), lastIndex = _a[0], code_4 = _a[1];\n\t\t\t\t\tidentChars.push(code_4);\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn index === 0 ? null : [index - 1, String.fromCharCode.apply(null, identChars)];\n\t};\n\tvar consumeIdent = function consumeIdent(str, index) {\n\t\tif (str.length <= index || !wouldStartIdentifier(str, index)) return null;\n\t\tvar identChars = [];\n\t\tfor (var code = str.charCodeAt(index); index < str.length; code = str.charCodeAt(++index)) {\n\t\t\tif (code === 45 || code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 128 || code >= 48 && code <= 57) {\n\t\t\t\tidentChars.push(code);\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tvar result = consumeEscape(str, index);\n\t\t\t\tif (result !== null) {\n\t\t\t\t\tvar _a = __read(result, 2), lastIndex = _a[0], code_5 = _a[1];\n\t\t\t\t\tidentChars.push(code_5);\n\t\t\t\t\tindex = lastIndex;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn [index - 1, String.fromCharCode.apply(null, identChars)];\n\t};\n\tvar consumeUrl = function consumeUrl(str, index) {\n\t\tvar code = str.charCodeAt(index);\n\t\twhile (code === 9 || code === 32 || code === 10) code = str.charCodeAt(++index);\n\t\tvar urlChars = [];\n\t\tvar hasFinishedWord = false;\n\t\twhile (index < str.length) {\n\t\t\tif (code === 41) return [index, String.fromCharCode.apply(null, urlChars)];\n\t\t\telse if (code === 34 || code === 39 || code === 40) return null;\n\t\t\telse if (code === 9 || code === 32 || code === 10) {\n\t\t\t\tif (!hasFinishedWord && urlChars.length !== 0) hasFinishedWord = true;\n\t\t\t} else if (code === 92) {\n\t\t\t\tvar result = consumeEscape(str, index);\n\t\t\t\tif (result === null || hasFinishedWord) return null;\n\t\t\t\tvar _a = __read(result, 2), lastIndex = _a[0], value = _a[1];\n\t\t\t\turlChars.push(value);\n\t\t\t\tindex = lastIndex;\n\t\t\t} else {\n\t\t\t\tif (hasFinishedWord) return null;\n\t\t\t\turlChars.push(code);\n\t\t\t}\n\t\t\tcode = str.charCodeAt(++index);\n\t\t}\n\t\treturn null;\n\t};\n\tvar consumeIdentLike = function consumeIdentLike(str, index) {\n\t\tvar result = consumeIdent(str, index);\n\t\tif (result === null) return null;\n\t\tvar _a = __read(result, 2), lastIndex = _a[0], value = _a[1];\n\t\tif (value.toLowerCase() === \"url\") {\n\t\t\tif (str.length > lastIndex + 1) {\n\t\t\t\tvar nextCode = str.charCodeAt(lastIndex + 1);\n\t\t\t\tif (nextCode === 40) {\n\t\t\t\t\tfor (var offset = 2; lastIndex + offset < str.length; offset += 1) {\n\t\t\t\t\t\tvar nextNextCode = str.charCodeAt(lastIndex + offset);\n\t\t\t\t\t\tif (nextNextCode === 34 || nextNextCode === 39) return [\n\t\t\t\t\t\t\tlastIndex + 1,\n\t\t\t\t\t\t\tvalue.toLowerCase(),\n\t\t\t\t\t\t\t\"<function-token>\"\n\t\t\t\t\t\t];\n\t\t\t\t\t\telse if (nextNextCode !== 9 && nextNextCode !== 32 && nextNextCode !== 10) {\n\t\t\t\t\t\t\tvar result_1 = consumeUrl(str, lastIndex + offset);\n\t\t\t\t\t\t\tif (result_1 === null) return null;\n\t\t\t\t\t\t\tvar _b = __read(result_1, 2);\n\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t_b[0],\n\t\t\t\t\t\t\t\t_b[1],\n\t\t\t\t\t\t\t\t\"<url-token>\"\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn [\n\t\t\t\t\t\tlastIndex + 1,\n\t\t\t\t\t\tvalue.toLowerCase(),\n\t\t\t\t\t\t\"<function-token>\"\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (str.length > lastIndex + 1) {\n\t\t\tvar nextCode = str.charCodeAt(lastIndex + 1);\n\t\t\tif (nextCode === 40) return [\n\t\t\t\tlastIndex + 1,\n\t\t\t\tvalue.toLowerCase(),\n\t\t\t\t\"<function-token>\"\n\t\t\t];\n\t\t}\n\t\treturn [\n\t\t\tlastIndex,\n\t\t\tvalue.toLowerCase(),\n\t\t\t\"<ident-token>\"\n\t\t];\n\t};\n\tvar simplifyAST = function simplifyAST(ast) {\n\t\tfor (var i = ast.length - 1; i >= 0; i--) ast[i] = simplifyMediaQuery(ast[i]);\n\t\treturn ast;\n\t};\n\tvar simplifyMediaQuery = function simplifyMediaQuery(mediaQuery) {\n\t\tif (mediaQuery.mediaCondition === null) return mediaQuery;\n\t\tvar mediaCondition = simplifyMediaCondition(mediaQuery.mediaCondition);\n\t\tif (mediaCondition.operator === null && mediaCondition.children.length === 1 && \"children\" in mediaCondition.children[0]) mediaCondition = mediaCondition.children[0];\n\t\treturn {\n\t\t\tmediaPrefix: mediaQuery.mediaPrefix,\n\t\t\tmediaType: mediaQuery.mediaType,\n\t\t\tmediaCondition\n\t\t};\n\t};\n\tvar simplifyMediaCondition = function simplifyMediaCondition(mediaCondition) {\n\t\tfor (var i = mediaCondition.children.length - 1; i >= 0; i--) {\n\t\t\tvar unsimplifiedChild = mediaCondition.children[i];\n\t\t\tif (!(\"context\" in unsimplifiedChild)) {\n\t\t\t\tvar child = simplifyMediaCondition(unsimplifiedChild);\n\t\t\t\tif (child.operator === null && child.children.length === 1) mediaCondition.children[i] = child.children[0];\n\t\t\t\telse if (child.operator === mediaCondition.operator && (child.operator === \"and\" || child.operator === \"or\")) {\n\t\t\t\t\tvar spliceArgs = [i, 1];\n\t\t\t\t\tfor (var i_1 = 0; i_1 < child.children.length; i_1++) spliceArgs.push(child.children[i_1]);\n\t\t\t\t\tmediaCondition.children.splice.apply(mediaCondition.children, spliceArgs);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mediaCondition;\n\t};\n\tvar createError = function createError(message, err) {\n\t\tif (err instanceof Error) return new Error(\"\".concat(err.message.trim(), \"\\n\").concat(message.trim()));\n\t\telse return new Error(message.trim());\n\t};\n\tvar toAST = function toAST(str) {\n\t\treturn simplifyAST(toUnflattenedAST(str));\n\t};\n\tvar toUnflattenedAST = function toUnflattenedAST(str) {\n\t\tvar tokenList = lexicalAnalysis(str.trim());\n\t\tif (tokenList === null) throw createError(\"Failed tokenizing\");\n\t\tvar startIndex = 0;\n\t\tvar endIndex = tokenList.length - 1;\n\t\tif (tokenList[0].type === \"<at-keyword-token>\" && tokenList[0].value === \"media\") {\n\t\t\tif (tokenList[1].type !== \"<whitespace-token>\") throw createError(\"Expected whitespace after media\");\n\t\t\tstartIndex = 2;\n\t\t\tfor (var i = 2; i < tokenList.length - 1; i++) {\n\t\t\t\tvar token = tokenList[i];\n\t\t\t\tif (token.type === \"<{-token>\") {\n\t\t\t\t\tendIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (token.type === \"<semicolon-token>\") throw createError(\"Expected '{' in media query but found ';'\");\n\t\t\t}\n\t\t}\n\t\ttokenList = tokenList.slice(startIndex, endIndex);\n\t\treturn syntacticAnalysis(tokenList);\n\t};\n\tvar removeWhitespace = function removeWhitespace(tokenList) {\n\t\tvar newTokenList = [];\n\t\tvar before = false;\n\t\tfor (var i = 0; i < tokenList.length; i++) if (tokenList[i].type === \"<whitespace-token>\") {\n\t\t\tbefore = true;\n\t\t\tif (newTokenList.length > 0) newTokenList[newTokenList.length - 1].wsAfter = true;\n\t\t} else {\n\t\t\tnewTokenList.push(__assign(__assign({}, tokenList[i]), {\n\t\t\t\twsBefore: before,\n\t\t\t\twsAfter: false\n\t\t\t}));\n\t\t\tbefore = false;\n\t\t}\n\t\treturn newTokenList;\n\t};\n\tvar syntacticAnalysis = function syntacticAnalysis(tokenList) {\n\t\tvar e_1, _a;\n\t\tvar mediaQueryList = [[]];\n\t\tfor (var i = 0; i < tokenList.length; i++) {\n\t\t\tvar token = tokenList[i];\n\t\t\tif (token.type === \"<comma-token>\") mediaQueryList.push([]);\n\t\t\telse mediaQueryList[mediaQueryList.length - 1].push(token);\n\t\t}\n\t\tvar mediaQueries = mediaQueryList.map(removeWhitespace);\n\t\tif (mediaQueries.length === 1 && mediaQueries[0].length === 0) return [{\n\t\t\tmediaCondition: null,\n\t\t\tmediaPrefix: null,\n\t\t\tmediaType: \"all\"\n\t\t}];\n\t\telse {\n\t\t\tvar mediaQueryTokens = mediaQueries.map(function(mediaQueryTokens) {\n\t\t\t\tif (mediaQueryTokens.length === 0) return null;\n\t\t\t\telse return tokenizeMediaQuery(mediaQueryTokens);\n\t\t\t});\n\t\t\tvar nonNullMediaQueryTokens = [];\n\t\t\ttry {\n\t\t\t\tfor (var mediaQueryTokens_1 = __values(mediaQueryTokens), mediaQueryTokens_1_1 = mediaQueryTokens_1.next(); !mediaQueryTokens_1_1.done; mediaQueryTokens_1_1 = mediaQueryTokens_1.next()) {\n\t\t\t\t\tvar mediaQueryToken = mediaQueryTokens_1_1.value;\n\t\t\t\t\tif (mediaQueryToken !== null) nonNullMediaQueryTokens.push(mediaQueryToken);\n\t\t\t\t}\n\t\t\t} catch (e_1_1) {\n\t\t\t\te_1 = { error: e_1_1 };\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (mediaQueryTokens_1_1 && !mediaQueryTokens_1_1.done && (_a = mediaQueryTokens_1[\"return\"])) _a.call(mediaQueryTokens_1);\n\t\t\t\t} finally {\n\t\t\t\t\tif (e_1) throw e_1.error;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (nonNullMediaQueryTokens.length === 0) throw createError(\"No valid media queries\");\n\t\t\treturn nonNullMediaQueryTokens;\n\t\t}\n\t};\n\tvar tokenizeMediaQuery = function tokenizeMediaQuery(tokens) {\n\t\tvar firstToken = tokens[0];\n\t\tif (firstToken.type === \"<(-token>\") try {\n\t\t\treturn {\n\t\t\t\tmediaPrefix: null,\n\t\t\t\tmediaType: \"all\",\n\t\t\t\tmediaCondition: tokenizeMediaCondition(tokens, true)\n\t\t\t};\n\t\t} catch (err) {\n\t\t\tthrow createError(\"Expected media condition after '('\", err);\n\t\t}\n\t\telse if (firstToken.type === \"<ident-token>\") {\n\t\t\tvar mediaPrefix = null;\n\t\t\tvar mediaType = void 0;\n\t\t\tvar value = firstToken.value;\n\t\t\tif (value === \"only\" || value === \"not\") mediaPrefix = value;\n\t\t\tvar firstIndex = mediaPrefix === null ? 0 : 1;\n\t\t\tif (tokens.length <= firstIndex) throw createError(\"Expected extra token in media query\");\n\t\t\tvar firstNonUnaryToken = tokens[firstIndex];\n\t\t\tif (firstNonUnaryToken.type === \"<ident-token>\") {\n\t\t\t\tvar value_1 = firstNonUnaryToken.value;\n\t\t\t\tif (value_1 === \"all\") mediaType = \"all\";\n\t\t\t\telse if (value_1 === \"print\" || value_1 === \"screen\") mediaType = value_1;\n\t\t\t\telse if (value_1 === \"tty\" || value_1 === \"tv\" || value_1 === \"projection\" || value_1 === \"handheld\" || value_1 === \"braille\" || value_1 === \"embossed\" || value_1 === \"aural\" || value_1 === \"speech\") {\n\t\t\t\t\tmediaPrefix = mediaPrefix === \"not\" ? null : \"not\";\n\t\t\t\t\tmediaType = \"all\";\n\t\t\t\t} else throw createError(\"Unknown ident '\".concat(value_1, \"' in media query\"));\n\t\t\t} else if (mediaPrefix === \"not\" && firstNonUnaryToken.type === \"<(-token>\") {\n\t\t\t\tvar tokensWithParens = [{\n\t\t\t\t\ttype: \"<(-token>\",\n\t\t\t\t\twsBefore: false,\n\t\t\t\t\twsAfter: false\n\t\t\t\t}];\n\t\t\t\ttokensWithParens.push.apply(tokensWithParens, tokens);\n\t\t\t\ttokensWithParens.push({\n\t\t\t\t\ttype: \"<)-token>\",\n\t\t\t\t\twsBefore: false,\n\t\t\t\t\twsAfter: false\n\t\t\t\t});\n\t\t\t\ttry {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmediaPrefix: null,\n\t\t\t\t\t\tmediaType: \"all\",\n\t\t\t\t\t\tmediaCondition: tokenizeMediaCondition(tokensWithParens, true)\n\t\t\t\t\t};\n\t\t\t\t} catch (err) {\n\t\t\t\t\tthrow createError(\"Expected media condition after '('\", err);\n\t\t\t\t}\n\t\t\t} else throw createError(\"Invalid media query\");\n\t\t\tif (firstIndex + 1 === tokens.length) return {\n\t\t\t\tmediaPrefix,\n\t\t\t\tmediaType,\n\t\t\t\tmediaCondition: null\n\t\t\t};\n\t\t\telse if (firstIndex + 4 < tokens.length) {\n\t\t\t\tvar secondNonUnaryToken = tokens[firstIndex + 1];\n\t\t\t\tif (secondNonUnaryToken.type === \"<ident-token>\" && secondNonUnaryToken.value === \"and\") try {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmediaPrefix,\n\t\t\t\t\t\tmediaType,\n\t\t\t\t\t\tmediaCondition: tokenizeMediaCondition(tokens.slice(firstIndex + 2), false)\n\t\t\t\t\t};\n\t\t\t\t} catch (err) {\n\t\t\t\t\tthrow createError(\"Expected media condition after 'and'\", err);\n\t\t\t\t}\n\t\t\t\telse throw createError(\"Expected 'and' after media prefix\");\n\t\t\t} else throw createError(\"Expected media condition after media prefix\");\n\t\t} else throw createError(\"Expected media condition or media prefix\");\n\t};\n\tvar tokenizeMediaCondition = function tokenizeMediaCondition(tokens, mayContainOr, previousOperator) {\n\t\tif (previousOperator === void 0) previousOperator = null;\n\t\tif (tokens.length < 3 || tokens[0].type !== \"<(-token>\" || tokens[tokens.length - 1].type !== \"<)-token>\") throw new Error(\"Invalid media condition\");\n\t\tvar endIndexOfFirstFeature = tokens.length - 1;\n\t\tvar maxDepth = 0;\n\t\tvar count = 0;\n\t\tfor (var i = 0; i < tokens.length; i++) {\n\t\t\tvar token = tokens[i];\n\t\t\tif (token.type === \"<(-token>\") {\n\t\t\t\tcount += 1;\n\t\t\t\tmaxDepth = Math.max(maxDepth, count);\n\t\t\t} else if (token.type === \"<)-token>\") count -= 1;\n\t\t\tif (count === 0) {\n\t\t\t\tendIndexOfFirstFeature = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count !== 0) throw new Error(\"Mismatched parens\\nInvalid media condition\");\n\t\tvar child;\n\t\tvar featureTokens = tokens.slice(0, endIndexOfFirstFeature + 1);\n\t\tif (maxDepth === 1) child = tokenizeMediaFeature(featureTokens);\n\t\telse if (featureTokens[1].type === \"<ident-token>\" && featureTokens[1].value === \"not\") child = tokenizeMediaCondition(featureTokens.slice(2, -1), true, \"not\");\n\t\telse child = tokenizeMediaCondition(featureTokens.slice(1, -1), true);\n\t\tif (endIndexOfFirstFeature === tokens.length - 1) return {\n\t\t\toperator: previousOperator,\n\t\t\tchildren: [child]\n\t\t};\n\t\telse {\n\t\t\tvar nextToken = tokens[endIndexOfFirstFeature + 1];\n\t\t\tif (nextToken.type !== \"<ident-token>\") throw new Error(\"Invalid operator\\nInvalid media condition\");\n\t\t\telse if (previousOperator !== null && previousOperator !== nextToken.value) throw new Error(\"'\".concat(nextToken.value, \"' and '\").concat(previousOperator, \"' must not be at same level\\nInvalid media condition\"));\n\t\t\telse if (nextToken.value === \"or\" && !mayContainOr) throw new Error(\"Cannot use 'or' at top level of a media query\\nInvalid media condition\");\n\t\t\telse if (nextToken.value !== \"and\" && nextToken.value !== \"or\") throw new Error(\"Invalid operator: '\".concat(nextToken.value, \"'\\nInvalid media condition\"));\n\t\t\tvar siblings = tokenizeMediaCondition(tokens.slice(endIndexOfFirstFeature + 2), mayContainOr, nextToken.value);\n\t\t\treturn {\n\t\t\t\toperator: nextToken.value,\n\t\t\t\tchildren: [child].concat(siblings.children)\n\t\t\t};\n\t\t}\n\t};\n\tvar tokenizeMediaFeature = function tokenizeMediaFeature(rawTokens) {\n\t\tif (rawTokens.length < 3 || rawTokens[0].type !== \"<(-token>\" || rawTokens[rawTokens.length - 1].type !== \"<)-token>\") throw new Error(\"Invalid media feature\");\n\t\tvar tokens = [rawTokens[0]];\n\t\tfor (var i = 1; i < rawTokens.length; i++) {\n\t\t\tif (i < rawTokens.length - 2) {\n\t\t\t\tvar a = rawTokens[i];\n\t\t\t\tvar b = rawTokens[i + 1];\n\t\t\t\tvar c = rawTokens[i + 2];\n\t\t\t\tif (a.type === \"<number-token>\" && a.value > 0 && b.type === \"<delim-token>\" && b.value === 47 && c.type === \"<number-token>\" && c.value > 0) {\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\ttype: \"<ratio-token>\",\n\t\t\t\t\t\tnumerator: a.value,\n\t\t\t\t\t\tdenominator: c.value,\n\t\t\t\t\t\twsBefore: a.wsBefore,\n\t\t\t\t\t\twsAfter: c.wsAfter\n\t\t\t\t\t});\n\t\t\t\t\ti += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttokens.push(rawTokens[i]);\n\t\t}\n\t\tvar nextToken = tokens[1];\n\t\tif (nextToken.type === \"<ident-token>\" && tokens.length === 3) return {\n\t\t\tcontext: \"boolean\",\n\t\t\tfeature: nextToken.value\n\t\t};\n\t\telse if (tokens.length === 5 && tokens[1].type === \"<ident-token>\" && tokens[2].type === \"<colon-token>\") {\n\t\t\tvar valueToken = tokens[3];\n\t\t\tif (valueToken.type === \"<number-token>\" || valueToken.type === \"<dimension-token>\" || valueToken.type === \"<ratio-token>\" || valueToken.type === \"<ident-token>\") {\n\t\t\t\tvar feature = tokens[1].value;\n\t\t\t\tvar prefix = null;\n\t\t\t\tvar slice = feature.slice(0, 4);\n\t\t\t\tif (slice === \"min-\") {\n\t\t\t\t\tprefix = \"min\";\n\t\t\t\t\tfeature = feature.slice(4);\n\t\t\t\t} else if (slice === \"max-\") {\n\t\t\t\t\tprefix = \"max\";\n\t\t\t\t\tfeature = feature.slice(4);\n\t\t\t\t}\n\t\t\t\tvalueToken.wsBefore;\n\t\t\t\tvalueToken.wsAfter;\n\t\t\t\tvar value = __rest(valueToken, [\"wsBefore\", \"wsAfter\"]);\n\t\t\t\treturn {\n\t\t\t\t\tcontext: \"value\",\n\t\t\t\t\tprefix,\n\t\t\t\t\tfeature,\n\t\t\t\t\tvalue\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (tokens.length >= 5) try {\n\t\t\tvar range = tokenizeRange(tokens);\n\t\t\treturn {\n\t\t\t\tcontext: \"range\",\n\t\t\t\tfeature: range.featureName,\n\t\t\t\trange\n\t\t\t};\n\t\t} catch (err) {\n\t\t\tthrow createError(\"Invalid media feature\", err);\n\t\t}\n\t\tthrow new Error(\"Invalid media feature\");\n\t};\n\tvar tokenizeRange = function tokenizeRange(tokens) {\n\t\tvar _a, _b, _c, _d;\n\t\tif (tokens.length < 5 || tokens[0].type !== \"<(-token>\" || tokens[tokens.length - 1].type !== \"<)-token>\") throw new Error(\"Invalid range\");\n\t\tvar range = {\n\t\t\tleftToken: null,\n\t\t\tleftOp: null,\n\t\t\tfeatureName: \"\",\n\t\t\trightOp: null,\n\t\t\trightToken: null\n\t\t};\n\t\tvar hasLeft = tokens[1].type === \"<number-token>\" || tokens[1].type === \"<dimension-token>\" || tokens[1].type === \"<ratio-token>\" || tokens[1].type === \"<ident-token>\" && tokens[1].value === \"infinite\";\n\t\tif (tokens[2].type === \"<delim-token>\") {\n\t\t\tif (tokens[2].value === 60) if (tokens[3].type === \"<delim-token>\" && tokens[3].value === 61 && !tokens[3].wsBefore) range[hasLeft ? \"leftOp\" : \"rightOp\"] = \"<=\";\n\t\t\telse range[hasLeft ? \"leftOp\" : \"rightOp\"] = \"<\";\n\t\t\telse if (tokens[2].value === 62) if (tokens[3].type === \"<delim-token>\" && tokens[3].value === 61 && !tokens[3].wsBefore) range[hasLeft ? \"leftOp\" : \"rightOp\"] = \">=\";\n\t\t\telse range[hasLeft ? \"leftOp\" : \"rightOp\"] = \">\";\n\t\t\telse if (tokens[2].value === 61) range[hasLeft ? \"leftOp\" : \"rightOp\"] = \"=\";\n\t\t\telse throw new Error(\"Invalid range\");\n\t\t\tif (hasLeft) range.leftToken = tokens[1];\n\t\t\telse if (tokens[1].type === \"<ident-token>\") range.featureName = tokens[1].value;\n\t\t\telse throw new Error(\"Invalid range\");\n\t\t\tvar tokenIndexAfterFirstOp = 2 + ((_b = (_a = range[hasLeft ? \"leftOp\" : \"rightOp\"]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);\n\t\t\tvar tokenAfterFirstOp = tokens[tokenIndexAfterFirstOp];\n\t\t\tif (hasLeft) if (tokenAfterFirstOp.type === \"<ident-token>\") {\n\t\t\t\trange.featureName = tokenAfterFirstOp.value;\n\t\t\t\tif (tokens.length >= 7) {\n\t\t\t\t\tvar secondOpToken = tokens[tokenIndexAfterFirstOp + 1];\n\t\t\t\t\tvar followingToken = tokens[tokenIndexAfterFirstOp + 2];\n\t\t\t\t\tif (secondOpToken.type === \"<delim-token>\") {\n\t\t\t\t\t\tvar charCode = secondOpToken.value;\n\t\t\t\t\t\tif (charCode === 60) if (followingToken.type === \"<delim-token>\" && followingToken.value === 61 && !followingToken.wsBefore) range.rightOp = \"<=\";\n\t\t\t\t\t\telse range.rightOp = \"<\";\n\t\t\t\t\t\telse if (charCode === 62) if (followingToken.type === \"<delim-token>\" && followingToken.value === 61 && !followingToken.wsBefore) range.rightOp = \">=\";\n\t\t\t\t\t\telse range.rightOp = \">\";\n\t\t\t\t\t\telse throw new Error(\"Invalid range\");\n\t\t\t\t\t\trange.rightToken = tokens[tokenIndexAfterFirstOp + 1 + ((_d = (_c = range.rightOp) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0)];\n\t\t\t\t\t} else throw new Error(\"Invalid range\");\n\t\t\t\t} else if (tokenIndexAfterFirstOp + 2 !== tokens.length) throw new Error(\"Invalid range\");\n\t\t\t} else throw new Error(\"Invalid range\");\n\t\t\telse range.rightToken = tokenAfterFirstOp;\n\t\t\tvar validRange = null;\n\t\t\tvar lt = range.leftToken, leftOp = range.leftOp, featureName = range.featureName, rightOp = range.rightOp, rt = range.rightToken;\n\t\t\tvar leftToken = null;\n\t\t\tif (lt !== null) {\n\t\t\t\tif (lt.type === \"<ident-token>\") {\n\t\t\t\t\tvar type = lt.type, value = lt.value;\n\t\t\t\t\tif (value === \"infinite\") leftToken = {\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tvalue\n\t\t\t\t\t};\n\t\t\t\t} else if (lt.type === \"<number-token>\" || lt.type === \"<dimension-token>\" || lt.type === \"<ratio-token>\") {\n\t\t\t\t\tlt.wsBefore;\n\t\t\t\t\tlt.wsAfter;\n\t\t\t\t\tleftToken = __rest(lt, [\"wsBefore\", \"wsAfter\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar rightToken = null;\n\t\t\tif (rt !== null) {\n\t\t\t\tif (rt.type === \"<ident-token>\") {\n\t\t\t\t\tvar type = rt.type, value = rt.value;\n\t\t\t\t\tif (value === \"infinite\") rightToken = {\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tvalue\n\t\t\t\t\t};\n\t\t\t\t} else if (rt.type === \"<number-token>\" || rt.type === \"<dimension-token>\" || rt.type === \"<ratio-token>\") {\n\t\t\t\t\trt.wsBefore;\n\t\t\t\t\trt.wsAfter;\n\t\t\t\t\trightToken = __rest(rt, [\"wsBefore\", \"wsAfter\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (leftToken !== null && rightToken !== null) if ((leftOp === \"<\" || leftOp === \"<=\") && (rightOp === \"<\" || rightOp === \"<=\")) validRange = {\n\t\t\t\tleftToken,\n\t\t\t\tleftOp,\n\t\t\t\tfeatureName,\n\t\t\t\trightOp,\n\t\t\t\trightToken\n\t\t\t};\n\t\t\telse if ((leftOp === \">\" || leftOp === \">=\") && (rightOp === \">\" || rightOp === \">=\")) validRange = {\n\t\t\t\tleftToken,\n\t\t\t\tleftOp,\n\t\t\t\tfeatureName,\n\t\t\t\trightOp,\n\t\t\t\trightToken\n\t\t\t};\n\t\t\telse throw new Error(\"Invalid range\");\n\t\t\telse if (leftToken === null && leftOp === null && rightOp !== null && rightToken !== null) validRange = {\n\t\t\t\tleftToken,\n\t\t\t\tleftOp,\n\t\t\t\tfeatureName,\n\t\t\t\trightOp,\n\t\t\t\trightToken\n\t\t\t};\n\t\t\telse if (leftToken !== null && leftOp !== null && rightOp === null && rightToken === null) validRange = {\n\t\t\t\tleftToken,\n\t\t\t\tleftOp,\n\t\t\t\tfeatureName,\n\t\t\t\trightOp,\n\t\t\t\trightToken\n\t\t\t};\n\t\t\treturn validRange;\n\t\t} else throw new Error(\"Invalid range\");\n\t};\n\texports.toAST = toAST;\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/transformCss-fd0786e1.esm.js\nvar import_dist = require_dist();\nfunction toPrimitive$1(t, r) {\n\tif (\"object\" != typeof t || !t) return t;\n\tvar e = t[Symbol.toPrimitive];\n\tif (void 0 !== e) {\n\t\tvar i = e.call(t, r || \"default\");\n\t\tif (\"object\" != typeof i) return i;\n\t\tthrow new TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (\"string\" === r ? String : Number)(t);\n}\nfunction toPropertyKey$1(t) {\n\tvar i = toPrimitive$1(t, \"string\");\n\treturn \"symbol\" == typeof i ? i : String(i);\n}\nfunction _defineProperty$1(obj, key, value) {\n\tkey = toPropertyKey$1(key);\n\tif (key in obj) Object.defineProperty(obj, key, {\n\t\tvalue,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\telse obj[key] = value;\n\treturn obj;\n}\nfunction ownKeys$1(e, r) {\n\tvar t = Object.keys(e);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar o = Object.getOwnPropertySymbols(e);\n\t\tr && (o = o.filter(function(r) {\n\t\t\treturn Object.getOwnPropertyDescriptor(e, r).enumerable;\n\t\t})), t.push.apply(t, o);\n\t}\n\treturn t;\n}\nfunction _objectSpread2$1(e) {\n\tfor (var r = 1; r < arguments.length; r++) {\n\t\tvar t = null != arguments[r] ? arguments[r] : {};\n\t\tr % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {\n\t\t\t_defineProperty$1(e, r, t[r]);\n\t\t}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {\n\t\t\tObject.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n\t\t});\n\t}\n\treturn e;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n\tif (source == null) return {};\n\tvar target = {};\n\tvar sourceKeys = Object.keys(source);\n\tvar key, i;\n\tfor (i = 0; i < sourceKeys.length; i++) {\n\t\tkey = sourceKeys[i];\n\t\tif (excluded.indexOf(key) >= 0) continue;\n\t\ttarget[key] = source[key];\n\t}\n\treturn target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n\tif (source == null) return {};\n\tvar target = _objectWithoutPropertiesLoose(source, excluded);\n\tvar key, i;\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\t\tfor (i = 0; i < sourceSymbolKeys.length; i++) {\n\t\t\tkey = sourceSymbolKeys[i];\n\t\t\tif (excluded.indexOf(key) >= 0) continue;\n\t\t\tif (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n\t\t\ttarget[key] = source[key];\n\t\t}\n\t}\n\treturn target;\n}\nfunction forEach(obj, fn) {\n\tfor (var _key in obj) fn(obj[_key], _key);\n}\nfunction omit(obj, omitKeys) {\n\tvar result = {};\n\tfor (var _key2 in obj) if (omitKeys.indexOf(_key2) === -1) result[_key2] = obj[_key2];\n\treturn result;\n}\nfunction mapKeys(obj, fn) {\n\tvar result = {};\n\tfor (var _key3 in obj) result[fn(obj[_key3], _key3)] = obj[_key3];\n\treturn result;\n}\nfunction composeStylesIntoSet(set) {\n\tfor (var _len = arguments.length, classNames = new Array(_len > 1 ? _len - 1 : 0), _key5 = 1; _key5 < _len; _key5++) classNames[_key5 - 1] = arguments[_key5];\n\tfor (var className of classNames) {\n\t\tif (className.length === 0) continue;\n\t\tif (typeof className === \"string\") if (className.includes(\" \")) composeStylesIntoSet(set, ...className.trim().split(\" \"));\n\t\telse set.add(className);\n\t\telse if (Array.isArray(className)) composeStylesIntoSet(set, ...className);\n\t}\n}\nfunction dedupeAndJoinClassList(classNames) {\n\tvar set = /* @__PURE__ */ new Set();\n\tcomposeStylesIntoSet(set, ...classNames);\n\treturn Array.from(set).join(\" \");\n}\nvar _templateObject$1;\nfunction escapeRegex(string) {\n\treturn string.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n}\nvar validateSelector = (selector, targetClassName) => {\n\tvar replaceTarget = () => {\n\t\tvar targetRegex = new RegExp(\".\".concat(escapeRegex((0, import_cssesc.default)(targetClassName, { isIdentifier: true }))), \"g\");\n\t\treturn selector.replace(targetRegex, \"&\");\n\t};\n\tvar selectorParts;\n\ttry {\n\t\tselectorParts = (0, import_commonjs.parse)(selector);\n\t} catch (err) {\n\t\tthrow new Error(\"Invalid selector: \".concat(replaceTarget()), { cause: err });\n\t}\n\tselectorParts.forEach((tokens) => {\n\t\ttry {\n\t\t\tfor (var i = tokens.length - 1; i >= -1; i--) {\n\t\t\t\tif (!tokens[i]) throw new Error();\n\t\t\t\tvar token = tokens[i];\n\t\t\t\tif (token.type === \"child\" || token.type === \"parent\" || token.type === \"sibling\" || token.type === \"adjacent\" || token.type === \"descendant\") throw new Error();\n\t\t\t\tif (token.type === \"attribute\" && token.name === \"class\" && token.value === targetClassName) return;\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tthrow new Error(dedent_default(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral([\n\t\t\t\t\"\\n Invalid selector: \",\n\t\t\t\t\"\\n \\n Style selectors must target the '&' character (along with any modifiers), e.g. \",\n\t\t\t\t\" or \",\n\t\t\t\t\".\\n \\n This is to ensure that each style block only affects the styling of a single class.\\n \\n If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of \",\n\t\t\t\t\") to 'parent', you should add \",\n\t\t\t\t\" to 'child').\\n \\n If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write \",\n\t\t\t\t\", you should instead write 'globalStyle(\",\n\t\t\t\t\", { ... })'\\n \"\n\t\t\t])), replaceTarget(), \"`${parent} &`\", \"`${parent} &:hover`\", \"`& ${child}`\", \"`${parent} &`\", \"`& h1`\", \"`${parent} h1`\"), { cause: err });\n\t\t}\n\t});\n};\n/** e.g. @media screen and (min-width: 500px) */\nvar ConditionalRuleset = class ConditionalRuleset {\n\t/**\n\t* Stores information about where conditions must be in relation to other conditions\n\t*\n\t* e.g. mobile -> tablet, desktop\n\t*/\n\tconstructor() {\n\t\tthis.ruleset = /* @__PURE__ */ new Map();\n\t\tthis.precedenceLookup = /* @__PURE__ */ new Map();\n\t}\n\tfindOrCreateCondition(conditionQuery) {\n\t\tvar targetCondition = this.ruleset.get(conditionQuery);\n\t\tif (!targetCondition) {\n\t\t\ttargetCondition = {\n\t\t\t\tquery: conditionQuery,\n\t\t\t\trules: [],\n\t\t\t\tchildren: new ConditionalRuleset()\n\t\t\t};\n\t\t\tthis.ruleset.set(conditionQuery, targetCondition);\n\t\t}\n\t\treturn targetCondition;\n\t}\n\tgetConditionalRulesetByPath(conditionPath) {\n\t\tvar currRuleset = this;\n\t\tfor (var query of conditionPath) currRuleset = currRuleset.findOrCreateCondition(query).children;\n\t\treturn currRuleset;\n\t}\n\taddRule(rule, conditionQuery, conditionPath) {\n\t\tvar targetCondition = this.getConditionalRulesetByPath(conditionPath).findOrCreateCondition(conditionQuery);\n\t\tif (!targetCondition) throw new Error(\"Failed to add conditional rule\");\n\t\ttargetCondition.rules.push(rule);\n\t}\n\taddConditionPrecedence(conditionPath, conditionOrder) {\n\t\tvar ruleset = this.getConditionalRulesetByPath(conditionPath);\n\t\tfor (var i = 0; i < conditionOrder.length; i++) {\n\t\t\tvar _ruleset$precedenceLo;\n\t\t\tvar query = conditionOrder[i];\n\t\t\tvar conditionPrecedence = (_ruleset$precedenceLo = ruleset.precedenceLookup.get(query)) !== null && _ruleset$precedenceLo !== void 0 ? _ruleset$precedenceLo : /* @__PURE__ */ new Set();\n\t\t\tfor (var lowerPrecedenceCondition of conditionOrder.slice(i + 1)) conditionPrecedence.add(lowerPrecedenceCondition);\n\t\t\truleset.precedenceLookup.set(query, conditionPrecedence);\n\t\t}\n\t}\n\tisCompatible(incomingRuleset) {\n\t\tfor (var [condition, orderPrecedence] of this.precedenceLookup.entries()) for (var lowerPrecedenceCondition of orderPrecedence) {\n\t\t\tvar _incomingRuleset$prec;\n\t\t\tif ((_incomingRuleset$prec = incomingRuleset.precedenceLookup.get(lowerPrecedenceCondition)) !== null && _incomingRuleset$prec !== void 0 && _incomingRuleset$prec.has(condition)) return false;\n\t\t}\n\t\tfor (var { query, children } of incomingRuleset.ruleset.values()) {\n\t\t\tvar matchingCondition = this.ruleset.get(query);\n\t\t\tif (matchingCondition && !matchingCondition.children.isCompatible(children)) return false;\n\t\t}\n\t\treturn true;\n\t}\n\tmerge(incomingRuleset) {\n\t\tfor (var { query, rules, children } of incomingRuleset.ruleset.values()) {\n\t\t\tvar matchingCondition = this.ruleset.get(query);\n\t\t\tif (matchingCondition) {\n\t\t\t\tmatchingCondition.rules.push(...rules);\n\t\t\t\tmatchingCondition.children.merge(children);\n\t\t\t} else this.ruleset.set(query, {\n\t\t\t\tquery,\n\t\t\t\trules,\n\t\t\t\tchildren\n\t\t\t});\n\t\t}\n\t\tfor (var [condition, incomingOrderPrecedence] of incomingRuleset.precedenceLookup.entries()) {\n\t\t\tvar _this$precedenceLooku;\n\t\t\tvar orderPrecedence = (_this$precedenceLooku = this.precedenceLookup.get(condition)) !== null && _this$precedenceLooku !== void 0 ? _this$precedenceLooku : /* @__PURE__ */ new Set();\n\t\t\tthis.precedenceLookup.set(condition, new Set([...orderPrecedence, ...incomingOrderPrecedence]));\n\t\t}\n\t}\n\t/**\n\t* Merge another ConditionalRuleset into this one if they are compatible\n\t*\n\t* @returns true if successful, false if the ruleset is incompatible\n\t*/\n\tmergeIfCompatible(incomingRuleset) {\n\t\tif (!this.isCompatible(incomingRuleset)) return false;\n\t\tthis.merge(incomingRuleset);\n\t\treturn true;\n\t}\n\tgetSortedRuleset() {\n\t\tvar _this = this;\n\t\tvar sortedRuleset = [];\n\t\tvar _loop = function _loop(dependents) {\n\t\t\tvar conditionForQuery = _this.ruleset.get(query);\n\t\t\tif (!conditionForQuery) throw new Error(\"Can't find condition for \".concat(query));\n\t\t\tvar firstMatchingDependent = sortedRuleset.findIndex((condition) => dependents.has(condition.query));\n\t\t\tif (firstMatchingDependent > -1) sortedRuleset.splice(firstMatchingDependent, 0, conditionForQuery);\n\t\t\telse sortedRuleset.push(conditionForQuery);\n\t\t};\n\t\tfor (var [query, dependents] of this.precedenceLookup.entries()) _loop(dependents);\n\t\treturn sortedRuleset;\n\t}\n\trenderToArray() {\n\t\tvar arr = [];\n\t\tfor (var { query, rules, children } of this.getSortedRuleset()) {\n\t\t\tvar selectors = {};\n\t\t\tfor (var rule of rules) selectors[rule.selector] = _objectSpread2$1(_objectSpread2$1({}, selectors[rule.selector]), rule.rule);\n\t\t\tObject.assign(selectors, ...children.renderToArray());\n\t\t\tarr.push({ [query]: selectors });\n\t\t}\n\t\treturn arr;\n\t}\n};\nvar simplePseudoMap = {\n\t\":-moz-any-link\": true,\n\t\":-moz-full-screen\": true,\n\t\":-moz-placeholder\": true,\n\t\":-moz-read-only\": true,\n\t\":-moz-read-write\": true,\n\t\":-ms-fullscreen\": true,\n\t\":-ms-input-placeholder\": true,\n\t\":-webkit-any-link\": true,\n\t\":-webkit-full-screen\": true,\n\t\"::-moz-color-swatch\": true,\n\t\"::-moz-list-bullet\": true,\n\t\"::-moz-list-number\": true,\n\t\"::-moz-page-sequence\": true,\n\t\"::-moz-page\": true,\n\t\"::-moz-placeholder\": true,\n\t\"::-moz-progress-bar\": true,\n\t\"::-moz-range-progress\": true,\n\t\"::-moz-range-thumb\": true,\n\t\"::-moz-range-track\": true,\n\t\"::-moz-scrolled-page-sequence\": true,\n\t\"::-moz-selection\": true,\n\t\"::-ms-backdrop\": true,\n\t\"::-ms-browse\": true,\n\t\"::-ms-check\": true,\n\t\"::-ms-clear\": true,\n\t\"::-ms-fill-lower\": true,\n\t\"::-ms-fill-upper\": true,\n\t\"::-ms-fill\": true,\n\t\"::-ms-reveal\": true,\n\t\"::-ms-thumb\": true,\n\t\"::-ms-ticks-after\": true,\n\t\"::-ms-ticks-before\": true,\n\t\"::-ms-tooltip\": true,\n\t\"::-ms-track\": true,\n\t\"::-ms-value\": true,\n\t\"::-webkit-backdrop\": true,\n\t\"::-webkit-calendar-picker-indicator\": true,\n\t\"::-webkit-inner-spin-button\": true,\n\t\"::-webkit-input-placeholder\": true,\n\t\"::-webkit-meter-bar\": true,\n\t\"::-webkit-meter-even-less-good-value\": true,\n\t\"::-webkit-meter-inner-element\": true,\n\t\"::-webkit-meter-optimum-value\": true,\n\t\"::-webkit-meter-suboptimum-value\": true,\n\t\"::-webkit-outer-spin-button\": true,\n\t\"::-webkit-progress-bar\": true,\n\t\"::-webkit-progress-inner-element\": true,\n\t\"::-webkit-progress-inner-value\": true,\n\t\"::-webkit-progress-value\": true,\n\t\"::-webkit-resizer\": true,\n\t\"::-webkit-scrollbar-button\": true,\n\t\"::-webkit-scrollbar-corner\": true,\n\t\"::-webkit-scrollbar-thumb\": true,\n\t\"::-webkit-scrollbar-track-piece\": true,\n\t\"::-webkit-scrollbar-track\": true,\n\t\"::-webkit-scrollbar\": true,\n\t\"::-webkit-search-cancel-button\": true,\n\t\"::-webkit-search-results-button\": true,\n\t\"::-webkit-slider-runnable-track\": true,\n\t\"::-webkit-slider-thumb\": true,\n\t\"::after\": true,\n\t\"::backdrop\": true,\n\t\"::before\": true,\n\t\"::cue\": true,\n\t\"::file-selector-button\": true,\n\t\"::first-letter\": true,\n\t\"::first-line\": true,\n\t\"::grammar-error\": true,\n\t\"::marker\": true,\n\t\"::placeholder\": true,\n\t\"::selection\": true,\n\t\"::spelling-error\": true,\n\t\"::target-text\": true,\n\t\"::view-transition-group\": true,\n\t\"::view-transition-image-pair\": true,\n\t\"::view-transition-new\": true,\n\t\"::view-transition-old\": true,\n\t\"::view-transition\": true,\n\t\":active\": true,\n\t\":after\": true,\n\t\":any-link\": true,\n\t\":before\": true,\n\t\":blank\": true,\n\t\":checked\": true,\n\t\":default\": true,\n\t\":defined\": true,\n\t\":disabled\": true,\n\t\":empty\": true,\n\t\":enabled\": true,\n\t\":first-child\": true,\n\t\":first-letter\": true,\n\t\":first-line\": true,\n\t\":first-of-type\": true,\n\t\":first\": true,\n\t\":focus-visible\": true,\n\t\":focus-within\": true,\n\t\":focus\": true,\n\t\":fullscreen\": true,\n\t\":hover\": true,\n\t\":in-range\": true,\n\t\":indeterminate\": true,\n\t\":invalid\": true,\n\t\":last-child\": true,\n\t\":last-of-type\": true,\n\t\":left\": true,\n\t\":link\": true,\n\t\":only-child\": true,\n\t\":only-of-type\": true,\n\t\":optional\": true,\n\t\":out-of-range\": true,\n\t\":placeholder-shown\": true,\n\t\":read-only\": true,\n\t\":read-write\": true,\n\t\":required\": true,\n\t\":right\": true,\n\t\":root\": true,\n\t\":scope\": true,\n\t\":target\": true,\n\t\":valid\": true,\n\t\":visited\": true\n};\nvar simplePseudos = Object.keys(simplePseudoMap);\nvar simplePseudoLookup = simplePseudoMap;\nvar _templateObject$2;\nvar createMediaQueryError = (mediaQuery, msg) => new Error(dedent_default(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral([\n\t\"\\n Invalid media query: \\\"\",\n\t\"\\\"\\n\\n \",\n\t\"\\n\\n Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\\n \"\n])), mediaQuery, msg));\nvar validateMediaQuery = (mediaQuery) => {\n\tif (mediaQuery === \"@media \") throw createMediaQueryError(mediaQuery, \"Query is empty\");\n\ttry {\n\t\t(0, import_dist.toAST)(mediaQuery);\n\t} catch (e) {\n\t\tthrow createMediaQueryError(mediaQuery, e.message);\n\t}\n};\nvar _excluded$1 = [\"vars\"], _excluded2 = [\"content\"];\nvar DECLARATION = \"__DECLARATION\";\nvar UNITLESS = {\n\tanimationIterationCount: true,\n\tborderImage: true,\n\tborderImageOutset: true,\n\tborderImageSlice: true,\n\tborderImageWidth: true,\n\tboxFlex: true,\n\tboxFlexGroup: true,\n\tcolumnCount: true,\n\tcolumns: true,\n\tflex: true,\n\tflexGrow: true,\n\tflexShrink: true,\n\tfontWeight: true,\n\tgridArea: true,\n\tgridColumn: true,\n\tgridColumnEnd: true,\n\tgridColumnStart: true,\n\tgridRow: true,\n\tgridRowEnd: true,\n\tgridRowStart: true,\n\tinitialLetter: true,\n\tlineClamp: true,\n\tlineHeight: true,\n\tmaxLines: true,\n\topacity: true,\n\torder: true,\n\torphans: true,\n\tscale: true,\n\ttabSize: true,\n\tWebkitLineClamp: true,\n\twidows: true,\n\tzIndex: true,\n\tzoom: true,\n\tfillOpacity: true,\n\tfloodOpacity: true,\n\tmaskBorder: true,\n\tmaskBorderOutset: true,\n\tmaskBorderSlice: true,\n\tmaskBorderWidth: true,\n\tshapeImageThreshold: true,\n\tstopOpacity: true,\n\tstrokeDashoffset: true,\n\tstrokeMiterlimit: true,\n\tstrokeOpacity: true,\n\tstrokeWidth: true\n};\nfunction dashify(str) {\n\treturn str.replace(/([A-Z])/g, \"-$1\").replace(/^ms-/, \"-ms-\").toLowerCase();\n}\nfunction replaceBetweenIndexes(target, startIndex, endIndex, replacement) {\n\tvar start = target.slice(0, startIndex);\n\tvar end = target.slice(endIndex);\n\treturn \"\".concat(start).concat(replacement).concat(end);\n}\nvar DOUBLE_SPACE = \" \";\nvar specialKeys = [\n\t...simplePseudos,\n\t\"@layer\",\n\t\"@media\",\n\t\"@supports\",\n\t\"@container\",\n\t\"@starting-style\",\n\t\"selectors\"\n];\nvar Stylesheet = class {\n\tconstructor(localClassNames, composedClassLists) {\n\t\tthis.rules = [];\n\t\tthis.conditionalRulesets = [new ConditionalRuleset()];\n\t\tthis.fontFaceRules = [];\n\t\tthis.keyframesRules = [];\n\t\tthis.propertyRules = [];\n\t\tthis.localClassNamesMap = new Map(localClassNames.map((localClassName) => [localClassName, localClassName]));\n\t\tthis.localClassNamesSearch = new AhoCorasick(localClassNames);\n\t\tthis.layers = /* @__PURE__ */ new Map();\n\t\tthis.composedClassLists = composedClassLists.map((_ref) => {\n\t\t\tvar { identifier, classList } = _ref;\n\t\t\treturn {\n\t\t\t\tidentifier,\n\t\t\t\tregex: RegExp(\"(\".concat(classList, \")\"), \"g\")\n\t\t\t};\n\t\t}).reverse();\n\t}\n\tprocessCssObj(root) {\n\t\tif (root.type === \"fontFace\") {\n\t\t\tthis.fontFaceRules.push(root.rule);\n\t\t\treturn;\n\t\t}\n\t\tif (root.type === \"property\") {\n\t\t\tthis.propertyRules.push(root);\n\t\t\treturn;\n\t\t}\n\t\tif (root.type === \"keyframes\") {\n\t\t\troot.rule = Object.fromEntries(Object.entries(root.rule).map((_ref2) => {\n\t\t\t\tvar [keyframe, rule] = _ref2;\n\t\t\t\treturn [keyframe, this.transformVars(this.transformProperties(rule))];\n\t\t\t}));\n\t\t\tthis.keyframesRules.push(root);\n\t\t\treturn;\n\t\t}\n\t\tthis.currConditionalRuleset = new ConditionalRuleset();\n\t\tif (root.type === \"layer\") {\n\t\t\tvar layerDefinition = \"@layer \".concat(root.name);\n\t\t\tthis.addLayer([layerDefinition]);\n\t\t} else {\n\t\t\tvar mainRule = omit(root.rule, specialKeys);\n\t\t\tthis.addRule({\n\t\t\t\tselector: root.selector,\n\t\t\t\trule: mainRule\n\t\t\t});\n\t\t\tthis.transformLayer(root, root.rule[\"@layer\"]);\n\t\t\tthis.transformMedia(root, root.rule[\"@media\"]);\n\t\t\tthis.transformSupports(root, root.rule[\"@supports\"]);\n\t\t\tthis.transformContainer(root, root.rule[\"@container\"]);\n\t\t\tthis.transformStartingStyle(root, root.rule[\"@starting-style\"]);\n\t\t\tthis.transformSimplePseudos(root, root.rule);\n\t\t\tthis.transformSelectors(root, root.rule);\n\t\t}\n\t\tif (!this.conditionalRulesets[this.conditionalRulesets.length - 1].mergeIfCompatible(this.currConditionalRuleset)) this.conditionalRulesets.push(this.currConditionalRuleset);\n\t}\n\taddConditionalRule(cssRule, conditions) {\n\t\tvar rule = this.transformVars(this.transformProperties(cssRule.rule));\n\t\tvar selector = this.transformSelector(cssRule.selector);\n\t\tif (!this.currConditionalRuleset) throw new Error(\"Couldn't add conditional rule\");\n\t\tvar conditionQuery = conditions[conditions.length - 1];\n\t\tvar parentConditions = conditions.slice(0, conditions.length - 1);\n\t\tthis.currConditionalRuleset.addRule({\n\t\t\tselector,\n\t\t\trule\n\t\t}, conditionQuery, parentConditions);\n\t}\n\taddRule(cssRule) {\n\t\tvar rule = this.transformVars(this.transformProperties(cssRule.rule));\n\t\tvar selector = this.transformSelector(cssRule.selector);\n\t\tthis.rules.push({\n\t\t\tselector,\n\t\t\trule\n\t\t});\n\t}\n\taddLayer(layer) {\n\t\tvar uniqueLayerKey = layer.join(\" - \");\n\t\tthis.layers.set(uniqueLayerKey, layer);\n\t}\n\ttransformProperties(cssRule) {\n\t\treturn this.transformContent(this.pixelifyProperties(cssRule));\n\t}\n\tpixelifyProperties(cssRule) {\n\t\tforEach(cssRule, (value, key) => {\n\t\t\tif (typeof value === \"number\" && value !== 0 && !UNITLESS[key]) cssRule[key] = \"\".concat(value, \"px\");\n\t\t});\n\t\treturn cssRule;\n\t}\n\ttransformVars(_ref3) {\n\t\tvar { vars } = _ref3, rest = _objectWithoutProperties(_ref3, _excluded$1);\n\t\tif (!vars) return rest;\n\t\treturn _objectSpread2$1(_objectSpread2$1({}, mapKeys(vars, (_value, key) => (0, import_vanilla_extract_private_cjs.getVarName)(key))), rest);\n\t}\n\ttransformContent(_ref4) {\n\t\tvar { content } = _ref4, rest = _objectWithoutProperties(_ref4, _excluded2);\n\t\tif (typeof content === \"undefined\") return rest;\n\t\treturn _objectSpread2$1({ content: (Array.isArray(content) ? content : [content]).map((value) => value && (value.includes(\"\\\"\") || value.includes(\"'\") || /^([A-Za-z-]+\\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\\s|$)/.test(value)) ? value : \"\\\"\".concat(value, \"\\\"\")) }, rest);\n\t}\n\ttransformClassname(identifier) {\n\t\treturn \".\".concat((0, import_cssesc.default)(identifier, { isIdentifier: true }));\n\t}\n\ttransformSelector(selector) {\n\t\tvar transformedSelector = selector;\n\t\tvar _loop = function _loop(identifier) {\n\t\t\ttransformedSelector = transformedSelector.replace(regex, () => {\n\t\t\t\tmarkCompositionUsed(identifier);\n\t\t\t\treturn identifier;\n\t\t\t});\n\t\t};\n\t\tfor (var { identifier, regex } of this.composedClassLists) _loop(identifier);\n\t\tif (this.localClassNamesMap.has(transformedSelector)) return this.transformClassname(transformedSelector);\n\t\tvar results = this.localClassNamesSearch.search(transformedSelector);\n\t\tvar lastReplaceIndex = transformedSelector.length;\n\t\tfor (var i = results.length - 1; i >= 0; i--) {\n\t\t\tvar [endIndex, [firstMatch]] = results[i];\n\t\t\tvar startIndex = endIndex - firstMatch.length + 1;\n\t\t\tif (lastReplaceIndex <= endIndex) continue;\n\t\t\tlastReplaceIndex = startIndex;\n\t\t\tif (transformedSelector[startIndex - 1] !== \".\") transformedSelector = replaceBetweenIndexes(transformedSelector, startIndex, endIndex + 1, this.transformClassname(firstMatch));\n\t\t}\n\t\treturn transformedSelector;\n\t}\n\ttransformSelectors(root, rule, conditions) {\n\t\tforEach(rule.selectors, (selectorRule, selector) => {\n\t\t\tif (root.type !== \"local\") throw new Error(\"Selectors are not allowed within \".concat(root.type === \"global\" ? \"\\\"globalStyle\\\"\" : \"\\\"selectors\\\"\"));\n\t\t\tvar transformedSelector = this.transformSelector(selector.replace(RegExp(\"&\", \"g\"), root.selector));\n\t\t\tvalidateSelector(transformedSelector, root.selector);\n\t\t\tvar rule = {\n\t\t\t\tselector: transformedSelector,\n\t\t\t\trule: omit(selectorRule, specialKeys)\n\t\t\t};\n\t\t\tif (conditions) this.addConditionalRule(rule, conditions);\n\t\t\telse this.addRule(rule);\n\t\t\tvar selectorRoot = {\n\t\t\t\ttype: \"selector\",\n\t\t\t\tselector: transformedSelector,\n\t\t\t\trule: selectorRule\n\t\t\t};\n\t\t\tthis.transformLayer(selectorRoot, selectorRule[\"@layer\"], conditions);\n\t\t\tthis.transformSupports(selectorRoot, selectorRule[\"@supports\"], conditions);\n\t\t\tthis.transformMedia(selectorRoot, selectorRule[\"@media\"], conditions);\n\t\t\tthis.transformContainer(selectorRoot, selectorRule[\"@container\"], conditions);\n\t\t\tthis.transformStartingStyle(selectorRoot, selectorRule[\"@starting-style\"], conditions);\n\t\t});\n\t}\n\ttransformMedia(root, rules) {\n\t\tvar parentConditions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tif (rules) {\n\t\t\tvar _this$currConditional;\n\t\t\t(_this$currConditional = this.currConditionalRuleset) === null || _this$currConditional === void 0 || _this$currConditional.addConditionPrecedence(parentConditions, Object.keys(rules).map((query) => \"@media \".concat(query)));\n\t\t\tfor (var [query, mediaRule] of Object.entries(rules)) {\n\t\t\t\tvar mediaQuery = \"@media \".concat(query);\n\t\t\t\tvalidateMediaQuery(mediaQuery);\n\t\t\t\tvar conditions = [...parentConditions, mediaQuery];\n\t\t\t\tthis.addConditionalRule({\n\t\t\t\t\tselector: root.selector,\n\t\t\t\t\trule: omit(mediaRule, specialKeys)\n\t\t\t\t}, conditions);\n\t\t\t\tif (root.type === \"local\") {\n\t\t\t\t\tthis.transformSimplePseudos(root, mediaRule, conditions);\n\t\t\t\t\tthis.transformSelectors(root, mediaRule, conditions);\n\t\t\t\t}\n\t\t\t\tthis.transformLayer(root, mediaRule[\"@layer\"], conditions);\n\t\t\t\tthis.transformSupports(root, mediaRule[\"@supports\"], conditions);\n\t\t\t\tthis.transformContainer(root, mediaRule[\"@container\"], conditions);\n\t\t\t\tthis.transformStartingStyle(root, mediaRule[\"@starting-style\"], conditions);\n\t\t\t}\n\t\t}\n\t}\n\ttransformContainer(root, rules) {\n\t\tvar parentConditions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tif (rules) {\n\t\t\tvar _this$currConditional2;\n\t\t\t(_this$currConditional2 = this.currConditionalRuleset) === null || _this$currConditional2 === void 0 || _this$currConditional2.addConditionPrecedence(parentConditions, Object.keys(rules).map((query) => \"@container \".concat(query)));\n\t\t\tforEach(rules, (containerRule, query) => {\n\t\t\t\tvar containerQuery = \"@container \".concat(query);\n\t\t\t\tvar conditions = [...parentConditions, containerQuery];\n\t\t\t\tthis.addConditionalRule({\n\t\t\t\t\tselector: root.selector,\n\t\t\t\t\trule: omit(containerRule, specialKeys)\n\t\t\t\t}, conditions);\n\t\t\t\tif (root.type === \"local\") {\n\t\t\t\t\tthis.transformSimplePseudos(root, containerRule, conditions);\n\t\t\t\t\tthis.transformSelectors(root, containerRule, conditions);\n\t\t\t\t}\n\t\t\t\tthis.transformLayer(root, containerRule[\"@layer\"], conditions);\n\t\t\t\tthis.transformSupports(root, containerRule[\"@supports\"], conditions);\n\t\t\t\tthis.transformMedia(root, containerRule[\"@media\"], conditions);\n\t\t\t\tthis.transformStartingStyle(root, containerRule[\"@starting-style\"], conditions);\n\t\t\t});\n\t\t}\n\t}\n\ttransformLayer(root, rules) {\n\t\tvar parentConditions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tif (rules) {\n\t\t\tvar _this$currConditional3;\n\t\t\t(_this$currConditional3 = this.currConditionalRuleset) === null || _this$currConditional3 === void 0 || _this$currConditional3.addConditionPrecedence(parentConditions, Object.keys(rules).map((name) => \"@layer \".concat(name)));\n\t\t\tforEach(rules, (layerRule, name) => {\n\t\t\t\tvar conditions = [...parentConditions, \"@layer \".concat(name)];\n\t\t\t\tthis.addLayer(conditions);\n\t\t\t\tthis.addConditionalRule({\n\t\t\t\t\tselector: root.selector,\n\t\t\t\t\trule: omit(layerRule, specialKeys)\n\t\t\t\t}, conditions);\n\t\t\t\tif (root.type === \"local\") {\n\t\t\t\t\tthis.transformSimplePseudos(root, layerRule, conditions);\n\t\t\t\t\tthis.transformSelectors(root, layerRule, conditions);\n\t\t\t\t}\n\t\t\t\tthis.transformMedia(root, layerRule[\"@media\"], conditions);\n\t\t\t\tthis.transformSupports(root, layerRule[\"@supports\"], conditions);\n\t\t\t\tthis.transformContainer(root, layerRule[\"@container\"], conditions);\n\t\t\t\tthis.transformStartingStyle(root, layerRule[\"@starting-style\"], conditions);\n\t\t\t});\n\t\t}\n\t}\n\ttransformSupports(root, rules) {\n\t\tvar parentConditions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tif (rules) {\n\t\t\tvar _this$currConditional4;\n\t\t\t(_this$currConditional4 = this.currConditionalRuleset) === null || _this$currConditional4 === void 0 || _this$currConditional4.addConditionPrecedence(parentConditions, Object.keys(rules).map((query) => \"@supports \".concat(query)));\n\t\t\tforEach(rules, (supportsRule, query) => {\n\t\t\t\tvar conditions = [...parentConditions, \"@supports \".concat(query)];\n\t\t\t\tthis.addConditionalRule({\n\t\t\t\t\tselector: root.selector,\n\t\t\t\t\trule: omit(supportsRule, specialKeys)\n\t\t\t\t}, conditions);\n\t\t\t\tif (root.type === \"local\") {\n\t\t\t\t\tthis.transformSimplePseudos(root, supportsRule, conditions);\n\t\t\t\t\tthis.transformSelectors(root, supportsRule, conditions);\n\t\t\t\t}\n\t\t\t\tthis.transformLayer(root, supportsRule[\"@layer\"], conditions);\n\t\t\t\tthis.transformMedia(root, supportsRule[\"@media\"], conditions);\n\t\t\t\tthis.transformContainer(root, supportsRule[\"@container\"], conditions);\n\t\t\t\tthis.transformStartingStyle(root, supportsRule[\"@starting-style\"], conditions);\n\t\t\t});\n\t\t}\n\t}\n\ttransformSimplePseudos(root, rule, conditions) {\n\t\tfor (var key of Object.keys(rule)) if (simplePseudoLookup[key]) {\n\t\t\tif (root.type !== \"local\") throw new Error(\"Simple pseudos are not valid in \".concat(root.type === \"global\" ? \"\\\"globalStyle\\\"\" : \"\\\"selectors\\\"\"));\n\t\t\tif (conditions) this.addConditionalRule({\n\t\t\t\tselector: \"\".concat(root.selector).concat(key),\n\t\t\t\trule: rule[key]\n\t\t\t}, conditions);\n\t\t\telse this.addRule({\n\t\t\t\tconditions,\n\t\t\t\tselector: \"\".concat(root.selector).concat(key),\n\t\t\t\trule: rule[key]\n\t\t\t});\n\t\t}\n\t}\n\ttransformStartingStyle(root, rules) {\n\t\tvar parentConditions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n\t\tif (rules) {\n\t\t\tvar _this$currConditional5;\n\t\t\tvar nestedAtRuleKey = Object.keys(rules).find((key) => key.startsWith(\"@\"));\n\t\t\tif (nestedAtRuleKey) throw new Error(\"Nested at-rules (e.g. \\\"\".concat(nestedAtRuleKey, \"\\\") are not allowed inside @starting-style.\"));\n\t\t\t(_this$currConditional5 = this.currConditionalRuleset) === null || _this$currConditional5 === void 0 || _this$currConditional5.addConditionPrecedence(parentConditions, [\"@starting-style\"]);\n\t\t\tvar conditions = [...parentConditions, \"@starting-style\"];\n\t\t\tthis.addConditionalRule({\n\t\t\t\tselector: root.selector,\n\t\t\t\trule: omit(rules, specialKeys)\n\t\t\t}, conditions);\n\t\t\tif (root.type === \"local\") {\n\t\t\t\tthis.transformSimplePseudos(root, rules, conditions);\n\t\t\t\tthis.transformSelectors(root, rules, conditions);\n\t\t\t}\n\t\t}\n\t}\n\ttoCss() {\n\t\tvar css = [];\n\t\tfor (var fontFaceRule of this.fontFaceRules) css.push(renderCss({ \"@font-face\": fontFaceRule }));\n\t\tfor (var property of this.propertyRules) css.push(renderCss({ [\"@property \".concat(property.name)]: property.rule }));\n\t\tfor (var keyframe of this.keyframesRules) css.push(renderCss({ [\"@keyframes \".concat(keyframe.name)]: keyframe.rule }));\n\t\tfor (var layer of this.layers.values()) {\n\t\t\tvar [definition, ...nesting] = layer.reverse();\n\t\t\tvar cssObj = { [definition]: DECLARATION };\n\t\t\tfor (var part of nesting) cssObj = { [part]: cssObj };\n\t\t\tcss.push(renderCss(cssObj));\n\t\t}\n\t\tfor (var rule of this.rules) css.push(renderCss({ [rule.selector]: rule.rule }));\n\t\tfor (var conditionalRuleset of this.conditionalRulesets) for (var conditionalRule of conditionalRuleset.renderToArray()) css.push(renderCss(conditionalRule));\n\t\treturn css.filter(Boolean);\n\t}\n};\nfunction renderCss(v) {\n\tvar indent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\";\n\tvar rules = [];\n\tvar _loop2 = function _loop2(key) {\n\t\tvar value = v[key];\n\t\tif (value && Array.isArray(value)) rules.push(...value.map((v) => renderCss({ [key]: v }, indent)));\n\t\telse if (value && typeof value === \"object\") {\n\t\t\tif (!(Object.keys(value).length === 0)) rules.push(\"\".concat(indent).concat(key, \" {\\n\").concat(renderCss(value, indent + DOUBLE_SPACE), \"\\n\").concat(indent, \"}\"));\n\t\t} else if (value === DECLARATION) rules.push(\"\".concat(indent).concat(key, \";\"));\n\t\telse rules.push(\"\".concat(indent).concat(key.startsWith(\"--\") ? key : dashify(key), \": \").concat(value, \";\"));\n\t};\n\tfor (var key of Object.keys(v)) _loop2(key);\n\treturn rules.join(\"\\n\");\n}\nfunction transformCss(_ref5) {\n\tvar { localClassNames, cssObjs, composedClassLists } = _ref5;\n\tvar stylesheet = new Stylesheet(localClassNames, composedClassLists);\n\tfor (var root of cssObjs) stylesheet.processCssObj(root);\n\treturn stylesheet.toCss();\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/@emotion+hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js\nfunction murmur2(str) {\n\tvar h = 0;\n\tvar k, i = 0, len = str.length;\n\tfor (; len >= 4; ++i, len -= 4) {\n\t\tk = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;\n\t\tk = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);\n\t\tk ^= k >>> 24;\n\t\th = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);\n\t}\n\tswitch (len) {\n\t\tcase 3: h ^= (str.charCodeAt(i + 2) & 255) << 16;\n\t\tcase 2: h ^= (str.charCodeAt(i + 1) & 255) << 8;\n\t\tcase 1:\n\t\t\th ^= str.charCodeAt(i) & 255;\n\t\t\th = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);\n\t}\n\th ^= h >>> 13;\n\th = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);\n\treturn ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js\nvar _templateObject;\nvar refCounter = 0;\nvar fileScopes = [];\nfunction hasFileScope() {\n\treturn fileScopes.length > 0;\n}\nfunction getFileScope() {\n\tif (fileScopes.length === 0) throw new Error(dedent_default(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n Styles were unable to be assigned to a file. This is generally caused by one of the following:\\n\\n - You may have created styles outside of a '.css.ts' context\\n - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started\\n \"]))));\n\treturn fileScopes[0];\n}\nfunction getAndIncrementRefCounter() {\n\treturn refCounter++;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js\n/**\n* @module LRUCache\n*/\nconst perf = typeof performance === \"object\" && performance && typeof performance.now === \"function\" ? performance : Date;\nconst warned = /* @__PURE__ */ new Set();\n/* c8 ignore start */\nconst PROCESS = typeof process === \"object\" && !!process ? process : {};\n/* c8 ignore start */\nconst emitWarning = (msg, type, code, fn) => {\n\ttypeof PROCESS.emitWarning === \"function\" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);\n};\nlet AC = globalThis.AbortController;\nlet AS = globalThis.AbortSignal;\n/* c8 ignore start */\nif (typeof AC === \"undefined\") {\n\tAS = class AbortSignal {\n\t\tonabort;\n\t\t_onabort = [];\n\t\treason;\n\t\taborted = false;\n\t\taddEventListener(_, fn) {\n\t\t\tthis._onabort.push(fn);\n\t\t}\n\t};\n\tAC = class AbortController {\n\t\tconstructor() {\n\t\t\twarnACPolyfill();\n\t\t}\n\t\tsignal = new AS();\n\t\tabort(reason) {\n\t\t\tif (this.signal.aborted) return;\n\t\t\tthis.signal.reason = reason;\n\t\t\tthis.signal.aborted = true;\n\t\t\tfor (const fn of this.signal._onabort) fn(reason);\n\t\t\tthis.signal.onabort?.(reason);\n\t\t}\n\t};\n\tlet printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== \"1\";\n\tconst warnACPolyfill = () => {\n\t\tif (!printACPolyfillWarning) return;\n\t\tprintACPolyfillWarning = false;\n\t\temitWarning(\"AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.\", \"NO_ABORT_CONTROLLER\", \"ENOTSUP\", warnACPolyfill);\n\t};\n}\n/* c8 ignore stop */\nconst shouldWarn = (code) => !warned.has(code);\nconst isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);\n/* c8 ignore start */\nconst getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;\n/* c8 ignore stop */\nvar ZeroArray = class extends Array {\n\tconstructor(size) {\n\t\tsuper(size);\n\t\tthis.fill(0);\n\t}\n};\nvar Stack = class Stack {\n\theap;\n\tlength;\n\tstatic #constructing = false;\n\tstatic create(max) {\n\t\tconst HeapCls = getUintArray(max);\n\t\tif (!HeapCls) return [];\n\t\tStack.#constructing = true;\n\t\tconst s = new Stack(max, HeapCls);\n\t\tStack.#constructing = false;\n\t\treturn s;\n\t}\n\tconstructor(max, HeapCls) {\n\t\t/* c8 ignore start */\n\t\tif (!Stack.#constructing) throw new TypeError(\"instantiate Stack using Stack.create(n)\");\n\t\t/* c8 ignore stop */\n\t\tthis.heap = new HeapCls(max);\n\t\tthis.length = 0;\n\t}\n\tpush(n) {\n\t\tthis.heap[this.length++] = n;\n\t}\n\tpop() {\n\t\treturn this.heap[--this.length];\n\t}\n};\n/**\n* Default export, the thing you're using this module to get.\n*\n* The `K` and `V` types define the key and value types, respectively. The\n* optional `FC` type defines the type of the `context` object passed to\n* `cache.fetch()` and `cache.memo()`.\n*\n* Keys and values **must not** be `null` or `undefined`.\n*\n* All properties from the options object (with the exception of `max`,\n* `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are\n* added as normal public members. (The listed options are read-only getters.)\n*\n* Changing any of these will alter the defaults for subsequent method calls.\n*/\nvar LRUCache = class LRUCache {\n\t#max;\n\t#maxSize;\n\t#dispose;\n\t#disposeAfter;\n\t#fetchMethod;\n\t#memoMethod;\n\t/**\n\t* {@link LRUCache.OptionsBase.ttl}\n\t*/\n\tttl;\n\t/**\n\t* {@link LRUCache.OptionsBase.ttlResolution}\n\t*/\n\tttlResolution;\n\t/**\n\t* {@link LRUCache.OptionsBase.ttlAutopurge}\n\t*/\n\tttlAutopurge;\n\t/**\n\t* {@link LRUCache.OptionsBase.updateAgeOnGet}\n\t*/\n\tupdateAgeOnGet;\n\t/**\n\t* {@link LRUCache.OptionsBase.updateAgeOnHas}\n\t*/\n\tupdateAgeOnHas;\n\t/**\n\t* {@link LRUCache.OptionsBase.allowStale}\n\t*/\n\tallowStale;\n\t/**\n\t* {@link LRUCache.OptionsBase.noDisposeOnSet}\n\t*/\n\tnoDisposeOnSet;\n\t/**\n\t* {@link LRUCache.OptionsBase.noUpdateTTL}\n\t*/\n\tnoUpdateTTL;\n\t/**\n\t* {@link LRUCache.OptionsBase.maxEntrySize}\n\t*/\n\tmaxEntrySize;\n\t/**\n\t* {@link LRUCache.OptionsBase.sizeCalculation}\n\t*/\n\tsizeCalculation;\n\t/**\n\t* {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}\n\t*/\n\tnoDeleteOnFetchRejection;\n\t/**\n\t* {@link LRUCache.OptionsBase.noDeleteOnStaleGet}\n\t*/\n\tnoDeleteOnStaleGet;\n\t/**\n\t* {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}\n\t*/\n\tallowStaleOnFetchAbort;\n\t/**\n\t* {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}\n\t*/\n\tallowStaleOnFetchRejection;\n\t/**\n\t* {@link LRUCache.OptionsBase.ignoreFetchAbort}\n\t*/\n\tignoreFetchAbort;\n\t#size;\n\t#calculatedSize;\n\t#keyMap;\n\t#keyList;\n\t#valList;\n\t#next;\n\t#prev;\n\t#head;\n\t#tail;\n\t#free;\n\t#disposed;\n\t#sizes;\n\t#starts;\n\t#ttls;\n\t#hasDispose;\n\t#hasFetchMethod;\n\t#hasDisposeAfter;\n\t/**\n\t* Do not call this method unless you need to inspect the\n\t* inner workings of the cache. If anything returned by this\n\t* object is modified in any way, strange breakage may occur.\n\t*\n\t* These fields are private for a reason!\n\t*\n\t* @internal\n\t*/\n\tstatic unsafeExposeInternals(c) {\n\t\treturn {\n\t\t\tstarts: c.#starts,\n\t\t\tttls: c.#ttls,\n\t\t\tsizes: c.#sizes,\n\t\t\tkeyMap: c.#keyMap,\n\t\t\tkeyList: c.#keyList,\n\t\t\tvalList: c.#valList,\n\t\t\tnext: c.#next,\n\t\t\tprev: c.#prev,\n\t\t\tget head() {\n\t\t\t\treturn c.#head;\n\t\t\t},\n\t\t\tget tail() {\n\t\t\t\treturn c.#tail;\n\t\t\t},\n\t\t\tfree: c.#free,\n\t\t\tisBackgroundFetch: (p) => c.#isBackgroundFetch(p),\n\t\t\tbackgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),\n\t\t\tmoveToTail: (index) => c.#moveToTail(index),\n\t\t\tindexes: (options) => c.#indexes(options),\n\t\t\trindexes: (options) => c.#rindexes(options),\n\t\t\tisStale: (index) => c.#isStale(index)\n\t\t};\n\t}\n\t/**\n\t* {@link LRUCache.OptionsBase.max} (read-only)\n\t*/\n\tget max() {\n\t\treturn this.#max;\n\t}\n\t/**\n\t* {@link LRUCache.OptionsBase.maxSize} (read-only)\n\t*/\n\tget maxSize() {\n\t\treturn this.#maxSize;\n\t}\n\t/**\n\t* The total computed size of items in the cache (read-only)\n\t*/\n\tget calculatedSize() {\n\t\treturn this.#calculatedSize;\n\t}\n\t/**\n\t* The number of items stored in the cache (read-only)\n\t*/\n\tget size() {\n\t\treturn this.#size;\n\t}\n\t/**\n\t* {@link LRUCache.OptionsBase.fetchMethod} (read-only)\n\t*/\n\tget fetchMethod() {\n\t\treturn this.#fetchMethod;\n\t}\n\tget memoMethod() {\n\t\treturn this.#memoMethod;\n\t}\n\t/**\n\t* {@link LRUCache.OptionsBase.dispose} (read-only)\n\t*/\n\tget dispose() {\n\t\treturn this.#dispose;\n\t}\n\t/**\n\t* {@link LRUCache.OptionsBase.disposeAfter} (read-only)\n\t*/\n\tget disposeAfter() {\n\t\treturn this.#disposeAfter;\n\t}\n\tconstructor(options) {\n\t\tconst { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;\n\t\tif (max !== 0 && !isPosInt(max)) throw new TypeError(\"max option must be a nonnegative integer\");\n\t\tconst UintArray = max ? getUintArray(max) : Array;\n\t\tif (!UintArray) throw new Error(\"invalid max value: \" + max);\n\t\tthis.#max = max;\n\t\tthis.#maxSize = maxSize;\n\t\tthis.maxEntrySize = maxEntrySize || this.#maxSize;\n\t\tthis.sizeCalculation = sizeCalculation;\n\t\tif (this.sizeCalculation) {\n\t\t\tif (!this.#maxSize && !this.maxEntrySize) throw new TypeError(\"cannot set sizeCalculation without setting maxSize or maxEntrySize\");\n\t\t\tif (typeof this.sizeCalculation !== \"function\") throw new TypeError(\"sizeCalculation set to non-function\");\n\t\t}\n\t\tif (memoMethod !== void 0 && typeof memoMethod !== \"function\") throw new TypeError(\"memoMethod must be a function if defined\");\n\t\tthis.#memoMethod = memoMethod;\n\t\tif (fetchMethod !== void 0 && typeof fetchMethod !== \"function\") throw new TypeError(\"fetchMethod must be a function if specified\");\n\t\tthis.#fetchMethod = fetchMethod;\n\t\tthis.#hasFetchMethod = !!fetchMethod;\n\t\tthis.#keyMap = /* @__PURE__ */ new Map();\n\t\tthis.#keyList = new Array(max).fill(void 0);\n\t\tthis.#valList = new Array(max).fill(void 0);\n\t\tthis.#next = new UintArray(max);\n\t\tthis.#prev = new UintArray(max);\n\t\tthis.#head = 0;\n\t\tthis.#tail = 0;\n\t\tthis.#free = Stack.create(max);\n\t\tthis.#size = 0;\n\t\tthis.#calculatedSize = 0;\n\t\tif (typeof dispose === \"function\") this.#dispose = dispose;\n\t\tif (typeof disposeAfter === \"function\") {\n\t\t\tthis.#disposeAfter = disposeAfter;\n\t\t\tthis.#disposed = [];\n\t\t} else {\n\t\t\tthis.#disposeAfter = void 0;\n\t\t\tthis.#disposed = void 0;\n\t\t}\n\t\tthis.#hasDispose = !!this.#dispose;\n\t\tthis.#hasDisposeAfter = !!this.#disposeAfter;\n\t\tthis.noDisposeOnSet = !!noDisposeOnSet;\n\t\tthis.noUpdateTTL = !!noUpdateTTL;\n\t\tthis.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;\n\t\tthis.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;\n\t\tthis.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;\n\t\tthis.ignoreFetchAbort = !!ignoreFetchAbort;\n\t\tif (this.maxEntrySize !== 0) {\n\t\t\tif (this.#maxSize !== 0) {\n\t\t\t\tif (!isPosInt(this.#maxSize)) throw new TypeError(\"maxSize must be a positive integer if specified\");\n\t\t\t}\n\t\t\tif (!isPosInt(this.maxEntrySize)) throw new TypeError(\"maxEntrySize must be a positive integer if specified\");\n\t\t\tthis.#initializeSizeTracking();\n\t\t}\n\t\tthis.allowStale = !!allowStale;\n\t\tthis.noDeleteOnStaleGet = !!noDeleteOnStaleGet;\n\t\tthis.updateAgeOnGet = !!updateAgeOnGet;\n\t\tthis.updateAgeOnHas = !!updateAgeOnHas;\n\t\tthis.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;\n\t\tthis.ttlAutopurge = !!ttlAutopurge;\n\t\tthis.ttl = ttl || 0;\n\t\tif (this.ttl) {\n\t\t\tif (!isPosInt(this.ttl)) throw new TypeError(\"ttl must be a positive integer if specified\");\n\t\t\tthis.#initializeTTLTracking();\n\t\t}\n\t\tif (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) throw new TypeError(\"At least one of max, maxSize, or ttl is required\");\n\t\tif (!this.ttlAutopurge && !this.#max && !this.#maxSize) {\n\t\t\tconst code = \"LRU_CACHE_UNBOUNDED\";\n\t\t\tif (shouldWarn(code)) {\n\t\t\t\twarned.add(code);\n\t\t\t\temitWarning(\"TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.\", \"UnboundedCacheWarning\", code, LRUCache);\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Return the number of ms left in the item's TTL. If item is not in cache,\n\t* returns `0`. Returns `Infinity` if item is in cache without a defined TTL.\n\t*/\n\tgetRemainingTTL(key) {\n\t\treturn this.#keyMap.has(key) ? Infinity : 0;\n\t}\n\t#initializeTTLTracking() {\n\t\tconst ttls = new ZeroArray(this.#max);\n\t\tconst starts = new ZeroArray(this.#max);\n\t\tthis.#ttls = ttls;\n\t\tthis.#starts = starts;\n\t\tthis.#setItemTTL = (index, ttl, start = perf.now()) => {\n\t\t\tstarts[index] = ttl !== 0 ? start : 0;\n\t\t\tttls[index] = ttl;\n\t\t\tif (ttl !== 0 && this.ttlAutopurge) {\n\t\t\t\tconst t = setTimeout(() => {\n\t\t\t\t\tif (this.#isStale(index)) this.#delete(this.#keyList[index], \"expire\");\n\t\t\t\t}, ttl + 1);\n\t\t\t\t/* c8 ignore start */\n\t\t\t\tif (t.unref) t.unref();\n\t\t\t}\n\t\t};\n\t\tthis.#updateItemAge = (index) => {\n\t\t\tstarts[index] = ttls[index] !== 0 ? perf.now() : 0;\n\t\t};\n\t\tthis.#statusTTL = (status, index) => {\n\t\t\tif (ttls[index]) {\n\t\t\t\tconst ttl = ttls[index];\n\t\t\t\tconst start = starts[index];\n\t\t\t\t/* c8 ignore next */\n\t\t\t\tif (!ttl || !start) return;\n\t\t\t\tstatus.ttl = ttl;\n\t\t\t\tstatus.start = start;\n\t\t\t\tstatus.now = cachedNow || getNow();\n\t\t\t\tstatus.remainingTTL = ttl - (status.now - start);\n\t\t\t}\n\t\t};\n\t\tlet cachedNow = 0;\n\t\tconst getNow = () => {\n\t\t\tconst n = perf.now();\n\t\t\tif (this.ttlResolution > 0) {\n\t\t\t\tcachedNow = n;\n\t\t\t\tconst t = setTimeout(() => cachedNow = 0, this.ttlResolution);\n\t\t\t\t/* c8 ignore start */\n\t\t\t\tif (t.unref) t.unref();\n\t\t\t}\n\t\t\treturn n;\n\t\t};\n\t\tthis.getRemainingTTL = (key) => {\n\t\t\tconst index = this.#keyMap.get(key);\n\t\t\tif (index === void 0) return 0;\n\t\t\tconst ttl = ttls[index];\n\t\t\tconst start = starts[index];\n\t\t\tif (!ttl || !start) return Infinity;\n\t\t\treturn ttl - ((cachedNow || getNow()) - start);\n\t\t};\n\t\tthis.#isStale = (index) => {\n\t\t\tconst s = starts[index];\n\t\t\tconst t = ttls[index];\n\t\t\treturn !!t && !!s && (cachedNow || getNow()) - s > t;\n\t\t};\n\t}\n\t#updateItemAge = () => {};\n\t#statusTTL = () => {};\n\t#setItemTTL = () => {};\n\t/* c8 ignore stop */\n\t#isStale = () => false;\n\t#initializeSizeTracking() {\n\t\tconst sizes = new ZeroArray(this.#max);\n\t\tthis.#calculatedSize = 0;\n\t\tthis.#sizes = sizes;\n\t\tthis.#removeItemSize = (index) => {\n\t\t\tthis.#calculatedSize -= sizes[index];\n\t\t\tsizes[index] = 0;\n\t\t};\n\t\tthis.#requireSize = (k, v, size, sizeCalculation) => {\n\t\t\tif (this.#isBackgroundFetch(v)) return 0;\n\t\t\tif (!isPosInt(size)) if (sizeCalculation) {\n\t\t\t\tif (typeof sizeCalculation !== \"function\") throw new TypeError(\"sizeCalculation must be a function\");\n\t\t\t\tsize = sizeCalculation(v, k);\n\t\t\t\tif (!isPosInt(size)) throw new TypeError(\"sizeCalculation return invalid (expect positive integer)\");\n\t\t\t} else throw new TypeError(\"invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.\");\n\t\t\treturn size;\n\t\t};\n\t\tthis.#addItemSize = (index, size, status) => {\n\t\t\tsizes[index] = size;\n\t\t\tif (this.#maxSize) {\n\t\t\t\tconst maxSize = this.#maxSize - sizes[index];\n\t\t\t\twhile (this.#calculatedSize > maxSize) this.#evict(true);\n\t\t\t}\n\t\t\tthis.#calculatedSize += sizes[index];\n\t\t\tif (status) {\n\t\t\t\tstatus.entrySize = size;\n\t\t\t\tstatus.totalCalculatedSize = this.#calculatedSize;\n\t\t\t}\n\t\t};\n\t}\n\t#removeItemSize = (_i) => {};\n\t#addItemSize = (_i, _s, _st) => {};\n\t#requireSize = (_k, _v, size, sizeCalculation) => {\n\t\tif (size || sizeCalculation) throw new TypeError(\"cannot set size without setting maxSize or maxEntrySize on cache\");\n\t\treturn 0;\n\t};\n\t*#indexes({ allowStale = this.allowStale } = {}) {\n\t\tif (this.#size) for (let i = this.#tail;;) {\n\t\t\tif (!this.#isValidIndex(i)) break;\n\t\t\tif (allowStale || !this.#isStale(i)) yield i;\n\t\t\tif (i === this.#head) break;\n\t\t\telse i = this.#prev[i];\n\t\t}\n\t}\n\t*#rindexes({ allowStale = this.allowStale } = {}) {\n\t\tif (this.#size) for (let i = this.#head;;) {\n\t\t\tif (!this.#isValidIndex(i)) break;\n\t\t\tif (allowStale || !this.#isStale(i)) yield i;\n\t\t\tif (i === this.#tail) break;\n\t\t\telse i = this.#next[i];\n\t\t}\n\t}\n\t#isValidIndex(index) {\n\t\treturn index !== void 0 && this.#keyMap.get(this.#keyList[index]) === index;\n\t}\n\t/**\n\t* Return a generator yielding `[key, value]` pairs,\n\t* in order from most recently used to least recently used.\n\t*/\n\t*entries() {\n\t\tfor (const i of this.#indexes()) if (this.#valList[i] !== void 0 && this.#keyList[i] !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield [this.#keyList[i], this.#valList[i]];\n\t}\n\t/**\n\t* Inverse order version of {@link LRUCache.entries}\n\t*\n\t* Return a generator yielding `[key, value]` pairs,\n\t* in order from least recently used to most recently used.\n\t*/\n\t*rentries() {\n\t\tfor (const i of this.#rindexes()) if (this.#valList[i] !== void 0 && this.#keyList[i] !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield [this.#keyList[i], this.#valList[i]];\n\t}\n\t/**\n\t* Return a generator yielding the keys in the cache,\n\t* in order from most recently used to least recently used.\n\t*/\n\t*keys() {\n\t\tfor (const i of this.#indexes()) {\n\t\t\tconst k = this.#keyList[i];\n\t\t\tif (k !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield k;\n\t\t}\n\t}\n\t/**\n\t* Inverse order version of {@link LRUCache.keys}\n\t*\n\t* Return a generator yielding the keys in the cache,\n\t* in order from least recently used to most recently used.\n\t*/\n\t*rkeys() {\n\t\tfor (const i of this.#rindexes()) {\n\t\t\tconst k = this.#keyList[i];\n\t\t\tif (k !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield k;\n\t\t}\n\t}\n\t/**\n\t* Return a generator yielding the values in the cache,\n\t* in order from most recently used to least recently used.\n\t*/\n\t*values() {\n\t\tfor (const i of this.#indexes()) if (this.#valList[i] !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield this.#valList[i];\n\t}\n\t/**\n\t* Inverse order version of {@link LRUCache.values}\n\t*\n\t* Return a generator yielding the values in the cache,\n\t* in order from least recently used to most recently used.\n\t*/\n\t*rvalues() {\n\t\tfor (const i of this.#rindexes()) if (this.#valList[i] !== void 0 && !this.#isBackgroundFetch(this.#valList[i])) yield this.#valList[i];\n\t}\n\t/**\n\t* Iterating over the cache itself yields the same results as\n\t* {@link LRUCache.entries}\n\t*/\n\t[Symbol.iterator]() {\n\t\treturn this.entries();\n\t}\n\t/**\n\t* A String value that is used in the creation of the default string\n\t* description of an object. Called by the built-in method\n\t* `Object.prototype.toString`.\n\t*/\n\t[Symbol.toStringTag] = \"LRUCache\";\n\t/**\n\t* Find a value for which the supplied fn method returns a truthy value,\n\t* similar to `Array.find()`. fn is called as `fn(value, key, cache)`.\n\t*/\n\tfind(fn, getOptions = {}) {\n\t\tfor (const i of this.#indexes()) {\n\t\t\tconst v = this.#valList[i];\n\t\t\tconst value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t\t\tif (value === void 0) continue;\n\t\t\tif (fn(value, this.#keyList[i], this)) return this.get(this.#keyList[i], getOptions);\n\t\t}\n\t}\n\t/**\n\t* Call the supplied function on each item in the cache, in order from most\n\t* recently used to least recently used.\n\t*\n\t* `fn` is called as `fn(value, key, cache)`.\n\t*\n\t* If `thisp` is provided, function will be called in the `this`-context of\n\t* the provided object, or the cache if no `thisp` object is provided.\n\t*\n\t* Does not update age or recenty of use, or iterate over stale values.\n\t*/\n\tforEach(fn, thisp = this) {\n\t\tfor (const i of this.#indexes()) {\n\t\t\tconst v = this.#valList[i];\n\t\t\tconst value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t\t\tif (value === void 0) continue;\n\t\t\tfn.call(thisp, value, this.#keyList[i], this);\n\t\t}\n\t}\n\t/**\n\t* The same as {@link LRUCache.forEach} but items are iterated over in\n\t* reverse order. (ie, less recently used items are iterated over first.)\n\t*/\n\trforEach(fn, thisp = this) {\n\t\tfor (const i of this.#rindexes()) {\n\t\t\tconst v = this.#valList[i];\n\t\t\tconst value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t\t\tif (value === void 0) continue;\n\t\t\tfn.call(thisp, value, this.#keyList[i], this);\n\t\t}\n\t}\n\t/**\n\t* Delete any stale entries. Returns true if anything was removed,\n\t* false otherwise.\n\t*/\n\tpurgeStale() {\n\t\tlet deleted = false;\n\t\tfor (const i of this.#rindexes({ allowStale: true })) if (this.#isStale(i)) {\n\t\t\tthis.#delete(this.#keyList[i], \"expire\");\n\t\t\tdeleted = true;\n\t\t}\n\t\treturn deleted;\n\t}\n\t/**\n\t* Get the extended info about a given entry, to get its value, size, and\n\t* TTL info simultaneously. Returns `undefined` if the key is not present.\n\t*\n\t* Unlike {@link LRUCache#dump}, which is designed to be portable and survive\n\t* serialization, the `start` value is always the current timestamp, and the\n\t* `ttl` is a calculated remaining time to live (negative if expired).\n\t*\n\t* Always returns stale values, if their info is found in the cache, so be\n\t* sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})\n\t* if relevant.\n\t*/\n\tinfo(key) {\n\t\tconst i = this.#keyMap.get(key);\n\t\tif (i === void 0) return void 0;\n\t\tconst v = this.#valList[i];\n\t\tconst value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t\tif (value === void 0) return void 0;\n\t\tconst entry = { value };\n\t\tif (this.#ttls && this.#starts) {\n\t\t\tconst ttl = this.#ttls[i];\n\t\t\tconst start = this.#starts[i];\n\t\t\tif (ttl && start) {\n\t\t\t\tentry.ttl = ttl - (perf.now() - start);\n\t\t\t\tentry.start = Date.now();\n\t\t\t}\n\t\t}\n\t\tif (this.#sizes) entry.size = this.#sizes[i];\n\t\treturn entry;\n\t}\n\t/**\n\t* Return an array of [key, {@link LRUCache.Entry}] tuples which can be\n\t* passed to {@link LRLUCache#load}.\n\t*\n\t* The `start` fields are calculated relative to a portable `Date.now()`\n\t* timestamp, even if `performance.now()` is available.\n\t*\n\t* Stale entries are always included in the `dump`, even if\n\t* {@link LRUCache.OptionsBase.allowStale} is false.\n\t*\n\t* Note: this returns an actual array, not a generator, so it can be more\n\t* easily passed around.\n\t*/\n\tdump() {\n\t\tconst arr = [];\n\t\tfor (const i of this.#indexes({ allowStale: true })) {\n\t\t\tconst key = this.#keyList[i];\n\t\t\tconst v = this.#valList[i];\n\t\t\tconst value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t\t\tif (value === void 0 || key === void 0) continue;\n\t\t\tconst entry = { value };\n\t\t\tif (this.#ttls && this.#starts) {\n\t\t\t\tentry.ttl = this.#ttls[i];\n\t\t\t\tconst age = perf.now() - this.#starts[i];\n\t\t\t\tentry.start = Math.floor(Date.now() - age);\n\t\t\t}\n\t\t\tif (this.#sizes) entry.size = this.#sizes[i];\n\t\t\tarr.unshift([key, entry]);\n\t\t}\n\t\treturn arr;\n\t}\n\t/**\n\t* Reset the cache and load in the items in entries in the order listed.\n\t*\n\t* The shape of the resulting cache may be different if the same options are\n\t* not used in both caches.\n\t*\n\t* The `start` fields are assumed to be calculated relative to a portable\n\t* `Date.now()` timestamp, even if `performance.now()` is available.\n\t*/\n\tload(arr) {\n\t\tthis.clear();\n\t\tfor (const [key, entry] of arr) {\n\t\t\tif (entry.start) {\n\t\t\t\tconst age = Date.now() - entry.start;\n\t\t\t\tentry.start = perf.now() - age;\n\t\t\t}\n\t\t\tthis.set(key, entry.value, entry);\n\t\t}\n\t}\n\t/**\n\t* Add a value to the cache.\n\t*\n\t* Note: if `undefined` is specified as a value, this is an alias for\n\t* {@link LRUCache#delete}\n\t*\n\t* Fields on the {@link LRUCache.SetOptions} options param will override\n\t* their corresponding values in the constructor options for the scope\n\t* of this single `set()` operation.\n\t*\n\t* If `start` is provided, then that will set the effective start\n\t* time for the TTL calculation. Note that this must be a previous\n\t* value of `performance.now()` if supported, or a previous value of\n\t* `Date.now()` if not.\n\t*\n\t* Options object may also include `size`, which will prevent\n\t* calling the `sizeCalculation` function and just use the specified\n\t* number if it is a positive integer, and `noDisposeOnSet` which\n\t* will prevent calling a `dispose` function in the case of\n\t* overwrites.\n\t*\n\t* If the `size` (or return value of `sizeCalculation`) for a given\n\t* entry is greater than `maxEntrySize`, then the item will not be\n\t* added to the cache.\n\t*\n\t* Will update the recency of the entry.\n\t*\n\t* If the value is `undefined`, then this is an alias for\n\t* `cache.delete(key)`. `undefined` is never stored in the cache.\n\t*/\n\tset(k, v, setOptions = {}) {\n\t\tif (v === void 0) {\n\t\t\tthis.delete(k);\n\t\t\treturn this;\n\t\t}\n\t\tconst { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;\n\t\tlet { noUpdateTTL = this.noUpdateTTL } = setOptions;\n\t\tconst size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);\n\t\tif (this.maxEntrySize && size > this.maxEntrySize) {\n\t\t\tif (status) {\n\t\t\t\tstatus.set = \"miss\";\n\t\t\t\tstatus.maxEntrySizeExceeded = true;\n\t\t\t}\n\t\t\tthis.#delete(k, \"set\");\n\t\t\treturn this;\n\t\t}\n\t\tlet index = this.#size === 0 ? void 0 : this.#keyMap.get(k);\n\t\tif (index === void 0) {\n\t\t\tindex = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;\n\t\t\tthis.#keyList[index] = k;\n\t\t\tthis.#valList[index] = v;\n\t\t\tthis.#keyMap.set(k, index);\n\t\t\tthis.#next[this.#tail] = index;\n\t\t\tthis.#prev[index] = this.#tail;\n\t\t\tthis.#tail = index;\n\t\t\tthis.#size++;\n\t\t\tthis.#addItemSize(index, size, status);\n\t\t\tif (status) status.set = \"add\";\n\t\t\tnoUpdateTTL = false;\n\t\t} else {\n\t\t\tthis.#moveToTail(index);\n\t\t\tconst oldVal = this.#valList[index];\n\t\t\tif (v !== oldVal) {\n\t\t\t\tif (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {\n\t\t\t\t\toldVal.__abortController.abort(/* @__PURE__ */ new Error(\"replaced\"));\n\t\t\t\t\tconst { __staleWhileFetching: s } = oldVal;\n\t\t\t\t\tif (s !== void 0 && !noDisposeOnSet) {\n\t\t\t\t\t\tif (this.#hasDispose) this.#dispose?.(s, k, \"set\");\n\t\t\t\t\t\tif (this.#hasDisposeAfter) this.#disposed?.push([\n\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\tk,\n\t\t\t\t\t\t\t\"set\"\n\t\t\t\t\t\t]);\n\t\t\t\t\t}\n\t\t\t\t} else if (!noDisposeOnSet) {\n\t\t\t\t\tif (this.#hasDispose) this.#dispose?.(oldVal, k, \"set\");\n\t\t\t\t\tif (this.#hasDisposeAfter) this.#disposed?.push([\n\t\t\t\t\t\toldVal,\n\t\t\t\t\t\tk,\n\t\t\t\t\t\t\"set\"\n\t\t\t\t\t]);\n\t\t\t\t}\n\t\t\t\tthis.#removeItemSize(index);\n\t\t\t\tthis.#addItemSize(index, size, status);\n\t\t\t\tthis.#valList[index] = v;\n\t\t\t\tif (status) {\n\t\t\t\t\tstatus.set = \"replace\";\n\t\t\t\t\tconst oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;\n\t\t\t\t\tif (oldValue !== void 0) status.oldValue = oldValue;\n\t\t\t\t}\n\t\t\t} else if (status) status.set = \"update\";\n\t\t}\n\t\tif (ttl !== 0 && !this.#ttls) this.#initializeTTLTracking();\n\t\tif (this.#ttls) {\n\t\t\tif (!noUpdateTTL) this.#setItemTTL(index, ttl, start);\n\t\t\tif (status) this.#statusTTL(status, index);\n\t\t}\n\t\tif (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {\n\t\t\tconst dt = this.#disposed;\n\t\t\tlet task;\n\t\t\twhile (task = dt?.shift()) this.#disposeAfter?.(...task);\n\t\t}\n\t\treturn this;\n\t}\n\t/**\n\t* Evict the least recently used item, returning its value or\n\t* `undefined` if cache is empty.\n\t*/\n\tpop() {\n\t\ttry {\n\t\t\twhile (this.#size) {\n\t\t\t\tconst val = this.#valList[this.#head];\n\t\t\t\tthis.#evict(true);\n\t\t\t\tif (this.#isBackgroundFetch(val)) {\n\t\t\t\t\tif (val.__staleWhileFetching) return val.__staleWhileFetching;\n\t\t\t\t} else if (val !== void 0) return val;\n\t\t\t}\n\t\t} finally {\n\t\t\tif (this.#hasDisposeAfter && this.#disposed) {\n\t\t\t\tconst dt = this.#disposed;\n\t\t\t\tlet task;\n\t\t\t\twhile (task = dt?.shift()) this.#disposeAfter?.(...task);\n\t\t\t}\n\t\t}\n\t}\n\t#evict(free) {\n\t\tconst head = this.#head;\n\t\tconst k = this.#keyList[head];\n\t\tconst v = this.#valList[head];\n\t\tif (this.#hasFetchMethod && this.#isBackgroundFetch(v)) v.__abortController.abort(/* @__PURE__ */ new Error(\"evicted\"));\n\t\telse if (this.#hasDispose || this.#hasDisposeAfter) {\n\t\t\tif (this.#hasDispose) this.#dispose?.(v, k, \"evict\");\n\t\t\tif (this.#hasDisposeAfter) this.#disposed?.push([\n\t\t\t\tv,\n\t\t\t\tk,\n\t\t\t\t\"evict\"\n\t\t\t]);\n\t\t}\n\t\tthis.#removeItemSize(head);\n\t\tif (free) {\n\t\t\tthis.#keyList[head] = void 0;\n\t\t\tthis.#valList[head] = void 0;\n\t\t\tthis.#free.push(head);\n\t\t}\n\t\tif (this.#size === 1) {\n\t\t\tthis.#head = this.#tail = 0;\n\t\t\tthis.#free.length = 0;\n\t\t} else this.#head = this.#next[head];\n\t\tthis.#keyMap.delete(k);\n\t\tthis.#size--;\n\t\treturn head;\n\t}\n\t/**\n\t* Check if a key is in the cache, without updating the recency of use.\n\t* Will return false if the item is stale, even though it is technically\n\t* in the cache.\n\t*\n\t* Check if a key is in the cache, without updating the recency of\n\t* use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set\n\t* to `true` in either the options or the constructor.\n\t*\n\t* Will return `false` if the item is stale, even though it is technically in\n\t* the cache. The difference can be determined (if it matters) by using a\n\t* `status` argument, and inspecting the `has` field.\n\t*\n\t* Will not update item age unless\n\t* {@link LRUCache.OptionsBase.updateAgeOnHas} is set.\n\t*/\n\thas(k, hasOptions = {}) {\n\t\tconst { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;\n\t\tconst index = this.#keyMap.get(k);\n\t\tif (index !== void 0) {\n\t\t\tconst v = this.#valList[index];\n\t\t\tif (this.#isBackgroundFetch(v) && v.__staleWhileFetching === void 0) return false;\n\t\t\tif (!this.#isStale(index)) {\n\t\t\t\tif (updateAgeOnHas) this.#updateItemAge(index);\n\t\t\t\tif (status) {\n\t\t\t\t\tstatus.has = \"hit\";\n\t\t\t\t\tthis.#statusTTL(status, index);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (status) {\n\t\t\t\tstatus.has = \"stale\";\n\t\t\t\tthis.#statusTTL(status, index);\n\t\t\t}\n\t\t} else if (status) status.has = \"miss\";\n\t\treturn false;\n\t}\n\t/**\n\t* Like {@link LRUCache#get} but doesn't update recency or delete stale\n\t* items.\n\t*\n\t* Returns `undefined` if the item is stale, unless\n\t* {@link LRUCache.OptionsBase.allowStale} is set.\n\t*/\n\tpeek(k, peekOptions = {}) {\n\t\tconst { allowStale = this.allowStale } = peekOptions;\n\t\tconst index = this.#keyMap.get(k);\n\t\tif (index === void 0 || !allowStale && this.#isStale(index)) return;\n\t\tconst v = this.#valList[index];\n\t\treturn this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n\t}\n\t#backgroundFetch(k, index, options, context) {\n\t\tconst v = index === void 0 ? void 0 : this.#valList[index];\n\t\tif (this.#isBackgroundFetch(v)) return v;\n\t\tconst ac = new AC();\n\t\tconst { signal } = options;\n\t\tsignal?.addEventListener(\"abort\", () => ac.abort(signal.reason), { signal: ac.signal });\n\t\tconst fetchOpts = {\n\t\t\tsignal: ac.signal,\n\t\t\toptions,\n\t\t\tcontext\n\t\t};\n\t\tconst cb = (v, updateCache = false) => {\n\t\t\tconst { aborted } = ac.signal;\n\t\t\tconst ignoreAbort = options.ignoreFetchAbort && v !== void 0;\n\t\t\tif (options.status) if (aborted && !updateCache) {\n\t\t\t\toptions.status.fetchAborted = true;\n\t\t\t\toptions.status.fetchError = ac.signal.reason;\n\t\t\t\tif (ignoreAbort) options.status.fetchAbortIgnored = true;\n\t\t\t} else options.status.fetchResolved = true;\n\t\t\tif (aborted && !ignoreAbort && !updateCache) return fetchFail(ac.signal.reason);\n\t\t\tconst bf = p;\n\t\t\tif (this.#valList[index] === p) if (v === void 0) if (bf.__staleWhileFetching) this.#valList[index] = bf.__staleWhileFetching;\n\t\t\telse this.#delete(k, \"fetch\");\n\t\t\telse {\n\t\t\t\tif (options.status) options.status.fetchUpdated = true;\n\t\t\t\tthis.set(k, v, fetchOpts.options);\n\t\t\t}\n\t\t\treturn v;\n\t\t};\n\t\tconst eb = (er) => {\n\t\t\tif (options.status) {\n\t\t\t\toptions.status.fetchRejected = true;\n\t\t\t\toptions.status.fetchError = er;\n\t\t\t}\n\t\t\treturn fetchFail(er);\n\t\t};\n\t\tconst fetchFail = (er) => {\n\t\t\tconst { aborted } = ac.signal;\n\t\t\tconst allowStaleAborted = aborted && options.allowStaleOnFetchAbort;\n\t\t\tconst allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;\n\t\t\tconst noDelete = allowStale || options.noDeleteOnFetchRejection;\n\t\t\tconst bf = p;\n\t\t\tif (this.#valList[index] === p) {\n\t\t\t\tif (!noDelete || bf.__staleWhileFetching === void 0) this.#delete(k, \"fetch\");\n\t\t\t\telse if (!allowStaleAborted) this.#valList[index] = bf.__staleWhileFetching;\n\t\t\t}\n\t\t\tif (allowStale) {\n\t\t\t\tif (options.status && bf.__staleWhileFetching !== void 0) options.status.returnedStale = true;\n\t\t\t\treturn bf.__staleWhileFetching;\n\t\t\t} else if (bf.__returned === bf) throw er;\n\t\t};\n\t\tconst pcall = (res, rej) => {\n\t\t\tconst fmp = this.#fetchMethod?.(k, v, fetchOpts);\n\t\t\tif (fmp && fmp instanceof Promise) fmp.then((v) => res(v === void 0 ? void 0 : v), rej);\n\t\t\tac.signal.addEventListener(\"abort\", () => {\n\t\t\t\tif (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {\n\t\t\t\t\tres(void 0);\n\t\t\t\t\tif (options.allowStaleOnFetchAbort) res = (v) => cb(v, true);\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\tif (options.status) options.status.fetchDispatched = true;\n\t\tconst p = new Promise(pcall).then(cb, eb);\n\t\tconst bf = Object.assign(p, {\n\t\t\t__abortController: ac,\n\t\t\t__staleWhileFetching: v,\n\t\t\t__returned: void 0\n\t\t});\n\t\tif (index === void 0) {\n\t\t\tthis.set(k, bf, {\n\t\t\t\t...fetchOpts.options,\n\t\t\t\tstatus: void 0\n\t\t\t});\n\t\t\tindex = this.#keyMap.get(k);\n\t\t} else this.#valList[index] = bf;\n\t\treturn bf;\n\t}\n\t#isBackgroundFetch(p) {\n\t\tif (!this.#hasFetchMethod) return false;\n\t\tconst b = p;\n\t\treturn !!b && b instanceof Promise && b.hasOwnProperty(\"__staleWhileFetching\") && b.__abortController instanceof AC;\n\t}\n\tasync fetch(k, fetchOptions = {}) {\n\t\tconst { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, ttl = this.ttl, noDisposeOnSet = this.noDisposeOnSet, size = 0, sizeCalculation = this.sizeCalculation, noUpdateTTL = this.noUpdateTTL, noDeleteOnFetchRejection = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection = this.allowStaleOnFetchRejection, ignoreFetchAbort = this.ignoreFetchAbort, allowStaleOnFetchAbort = this.allowStaleOnFetchAbort, context, forceRefresh = false, status, signal } = fetchOptions;\n\t\tif (!this.#hasFetchMethod) {\n\t\t\tif (status) status.fetch = \"get\";\n\t\t\treturn this.get(k, {\n\t\t\t\tallowStale,\n\t\t\t\tupdateAgeOnGet,\n\t\t\t\tnoDeleteOnStaleGet,\n\t\t\t\tstatus\n\t\t\t});\n\t\t}\n\t\tconst options = {\n\t\t\tallowStale,\n\t\t\tupdateAgeOnGet,\n\t\t\tnoDeleteOnStaleGet,\n\t\t\tttl,\n\t\t\tnoDisposeOnSet,\n\t\t\tsize,\n\t\t\tsizeCalculation,\n\t\t\tnoUpdateTTL,\n\t\t\tnoDeleteOnFetchRejection,\n\t\t\tallowStaleOnFetchRejection,\n\t\t\tallowStaleOnFetchAbort,\n\t\t\tignoreFetchAbort,\n\t\t\tstatus,\n\t\t\tsignal\n\t\t};\n\t\tlet index = this.#keyMap.get(k);\n\t\tif (index === void 0) {\n\t\t\tif (status) status.fetch = \"miss\";\n\t\t\tconst p = this.#backgroundFetch(k, index, options, context);\n\t\t\treturn p.__returned = p;\n\t\t} else {\n\t\t\tconst v = this.#valList[index];\n\t\t\tif (this.#isBackgroundFetch(v)) {\n\t\t\t\tconst stale = allowStale && v.__staleWhileFetching !== void 0;\n\t\t\t\tif (status) {\n\t\t\t\t\tstatus.fetch = \"inflight\";\n\t\t\t\t\tif (stale) status.returnedStale = true;\n\t\t\t\t}\n\t\t\t\treturn stale ? v.__staleWhileFetching : v.__returned = v;\n\t\t\t}\n\t\t\tconst isStale = this.#isStale(index);\n\t\t\tif (!forceRefresh && !isStale) {\n\t\t\t\tif (status) status.fetch = \"hit\";\n\t\t\t\tthis.#moveToTail(index);\n\t\t\t\tif (updateAgeOnGet) this.#updateItemAge(index);\n\t\t\t\tif (status) this.#statusTTL(status, index);\n\t\t\t\treturn v;\n\t\t\t}\n\t\t\tconst p = this.#backgroundFetch(k, index, options, context);\n\t\t\tconst staleVal = p.__staleWhileFetching !== void 0 && allowStale;\n\t\t\tif (status) {\n\t\t\t\tstatus.fetch = isStale ? \"stale\" : \"refresh\";\n\t\t\t\tif (staleVal && isStale) status.returnedStale = true;\n\t\t\t}\n\t\t\treturn staleVal ? p.__staleWhileFetching : p.__returned = p;\n\t\t}\n\t}\n\tasync forceFetch(k, fetchOptions = {}) {\n\t\tconst v = await this.fetch(k, fetchOptions);\n\t\tif (v === void 0) throw new Error(\"fetch() returned undefined\");\n\t\treturn v;\n\t}\n\tmemo(k, memoOptions = {}) {\n\t\tconst memoMethod = this.#memoMethod;\n\t\tif (!memoMethod) throw new Error(\"no memoMethod provided to constructor\");\n\t\tconst { context, forceRefresh, ...options } = memoOptions;\n\t\tconst v = this.get(k, options);\n\t\tif (!forceRefresh && v !== void 0) return v;\n\t\tconst vv = memoMethod(k, v, {\n\t\t\toptions,\n\t\t\tcontext\n\t\t});\n\t\tthis.set(k, vv, options);\n\t\treturn vv;\n\t}\n\t/**\n\t* Return a value from the cache. Will update the recency of the cache\n\t* entry found.\n\t*\n\t* If the key is not found, get() will return `undefined`.\n\t*/\n\tget(k, getOptions = {}) {\n\t\tconst { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions;\n\t\tconst index = this.#keyMap.get(k);\n\t\tif (index !== void 0) {\n\t\t\tconst value = this.#valList[index];\n\t\t\tconst fetching = this.#isBackgroundFetch(value);\n\t\t\tif (status) this.#statusTTL(status, index);\n\t\t\tif (this.#isStale(index)) {\n\t\t\t\tif (status) status.get = \"stale\";\n\t\t\t\tif (!fetching) {\n\t\t\t\t\tif (!noDeleteOnStaleGet) this.#delete(k, \"expire\");\n\t\t\t\t\tif (status && allowStale) status.returnedStale = true;\n\t\t\t\t\treturn allowStale ? value : void 0;\n\t\t\t\t} else {\n\t\t\t\t\tif (status && allowStale && value.__staleWhileFetching !== void 0) status.returnedStale = true;\n\t\t\t\t\treturn allowStale ? value.__staleWhileFetching : void 0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (status) status.get = \"hit\";\n\t\t\t\tif (fetching) return value.__staleWhileFetching;\n\t\t\t\tthis.#moveToTail(index);\n\t\t\t\tif (updateAgeOnGet) this.#updateItemAge(index);\n\t\t\t\treturn value;\n\t\t\t}\n\t\t} else if (status) status.get = \"miss\";\n\t}\n\t#connect(p, n) {\n\t\tthis.#prev[n] = p;\n\t\tthis.#next[p] = n;\n\t}\n\t#moveToTail(index) {\n\t\tif (index !== this.#tail) {\n\t\t\tif (index === this.#head) this.#head = this.#next[index];\n\t\t\telse this.#connect(this.#prev[index], this.#next[index]);\n\t\t\tthis.#connect(this.#tail, index);\n\t\t\tthis.#tail = index;\n\t\t}\n\t}\n\t/**\n\t* Deletes a key out of the cache.\n\t*\n\t* Returns true if the key was deleted, false otherwise.\n\t*/\n\tdelete(k) {\n\t\treturn this.#delete(k, \"delete\");\n\t}\n\t#delete(k, reason) {\n\t\tlet deleted = false;\n\t\tif (this.#size !== 0) {\n\t\t\tconst index = this.#keyMap.get(k);\n\t\t\tif (index !== void 0) {\n\t\t\t\tdeleted = true;\n\t\t\t\tif (this.#size === 1) this.#clear(reason);\n\t\t\t\telse {\n\t\t\t\t\tthis.#removeItemSize(index);\n\t\t\t\t\tconst v = this.#valList[index];\n\t\t\t\t\tif (this.#isBackgroundFetch(v)) v.__abortController.abort(/* @__PURE__ */ new Error(\"deleted\"));\n\t\t\t\t\telse if (this.#hasDispose || this.#hasDisposeAfter) {\n\t\t\t\t\t\tif (this.#hasDispose) this.#dispose?.(v, k, reason);\n\t\t\t\t\t\tif (this.#hasDisposeAfter) this.#disposed?.push([\n\t\t\t\t\t\t\tv,\n\t\t\t\t\t\t\tk,\n\t\t\t\t\t\t\treason\n\t\t\t\t\t\t]);\n\t\t\t\t\t}\n\t\t\t\t\tthis.#keyMap.delete(k);\n\t\t\t\t\tthis.#keyList[index] = void 0;\n\t\t\t\t\tthis.#valList[index] = void 0;\n\t\t\t\t\tif (index === this.#tail) this.#tail = this.#prev[index];\n\t\t\t\t\telse if (index === this.#head) this.#head = this.#next[index];\n\t\t\t\t\telse {\n\t\t\t\t\t\tconst pi = this.#prev[index];\n\t\t\t\t\t\tthis.#next[pi] = this.#next[index];\n\t\t\t\t\t\tconst ni = this.#next[index];\n\t\t\t\t\t\tthis.#prev[ni] = this.#prev[index];\n\t\t\t\t\t}\n\t\t\t\t\tthis.#size--;\n\t\t\t\t\tthis.#free.push(index);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.#hasDisposeAfter && this.#disposed?.length) {\n\t\t\tconst dt = this.#disposed;\n\t\t\tlet task;\n\t\t\twhile (task = dt?.shift()) this.#disposeAfter?.(...task);\n\t\t}\n\t\treturn deleted;\n\t}\n\t/**\n\t* Clear the cache entirely, throwing away all values.\n\t*/\n\tclear() {\n\t\treturn this.#clear(\"delete\");\n\t}\n\t#clear(reason) {\n\t\tfor (const index of this.#rindexes({ allowStale: true })) {\n\t\t\tconst v = this.#valList[index];\n\t\t\tif (this.#isBackgroundFetch(v)) v.__abortController.abort(/* @__PURE__ */ new Error(\"deleted\"));\n\t\t\telse {\n\t\t\t\tconst k = this.#keyList[index];\n\t\t\t\tif (this.#hasDispose) this.#dispose?.(v, k, reason);\n\t\t\t\tif (this.#hasDisposeAfter) this.#disposed?.push([\n\t\t\t\t\tv,\n\t\t\t\t\tk,\n\t\t\t\t\treason\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t\tthis.#keyMap.clear();\n\t\tthis.#valList.fill(void 0);\n\t\tthis.#keyList.fill(void 0);\n\t\tif (this.#ttls && this.#starts) {\n\t\t\tthis.#ttls.fill(0);\n\t\t\tthis.#starts.fill(0);\n\t\t}\n\t\tif (this.#sizes) this.#sizes.fill(0);\n\t\tthis.#head = 0;\n\t\tthis.#tail = 0;\n\t\tthis.#free.length = 0;\n\t\tthis.#calculatedSize = 0;\n\t\tthis.#size = 0;\n\t\tif (this.#hasDisposeAfter && this.#disposed) {\n\t\t\tconst dt = this.#disposed;\n\t\t\tlet task;\n\t\t\twhile (task = dt?.shift()) this.#disposeAfter?.(...task);\n\t\t}\n\t}\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js\nconst isDate = (d) => d instanceof Date;\nconst isEmpty = (o) => Object.keys(o).length === 0;\nconst isObject = (o) => o != null && typeof o === \"object\";\nconst hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);\nconst isEmptyObject = (o) => isObject(o) && isEmpty(o);\nconst makeObjectWithoutPrototype = () => Object.create(null);\n\n//#endregion\n//#region ../../node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js\nconst diff = (lhs, rhs) => {\n\tif (lhs === rhs) return {};\n\tif (!isObject(lhs) || !isObject(rhs)) return rhs;\n\tconst deletedValues = Object.keys(lhs).reduce((acc, key) => {\n\t\tif (!hasOwnProperty(rhs, key)) acc[key] = void 0;\n\t\treturn acc;\n\t}, makeObjectWithoutPrototype());\n\tif (isDate(lhs) || isDate(rhs)) {\n\t\tif (lhs.valueOf() == rhs.valueOf()) return {};\n\t\treturn rhs;\n\t}\n\treturn Object.keys(rhs).reduce((acc, key) => {\n\t\tif (!hasOwnProperty(lhs, key)) {\n\t\t\tacc[key] = rhs[key];\n\t\t\treturn acc;\n\t\t}\n\t\tconst difference = diff(lhs[key], rhs[key]);\n\t\tif (isEmptyObject(difference) && !isDate(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) return acc;\n\t\tacc[key] = difference;\n\t\treturn acc;\n\t}, deletedValues);\n};\nvar diff_default = diff;\n\n//#endregion\n//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js\nvar require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tlet p = process || {}, argv = p.argv || [], env = p.env || {};\n\tlet isColorSupported = !(!!env.NO_COLOR || argv.includes(\"--no-color\")) && (!!env.FORCE_COLOR || argv.includes(\"--color\") || p.platform === \"win32\" || (p.stdout || {}).isTTY && env.TERM !== \"dumb\" || !!env.CI);\n\tlet formatter = (open, close, replace = open) => (input) => {\n\t\tlet string = \"\" + input, index = string.indexOf(close, open.length);\n\t\treturn ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;\n\t};\n\tlet replaceClose = (string, close, replace, index) => {\n\t\tlet result = \"\", cursor = 0;\n\t\tdo {\n\t\t\tresult += string.substring(cursor, index) + replace;\n\t\t\tcursor = index + close.length;\n\t\t\tindex = string.indexOf(close, cursor);\n\t\t} while (~index);\n\t\treturn result + string.substring(cursor);\n\t};\n\tlet createColors = (enabled = isColorSupported) => {\n\t\tlet f = enabled ? formatter : () => String;\n\t\treturn {\n\t\t\tisColorSupported: enabled,\n\t\t\treset: f(\"\\x1B[0m\", \"\\x1B[0m\"),\n\t\t\tbold: f(\"\\x1B[1m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[1m\"),\n\t\t\tdim: f(\"\\x1B[2m\", \"\\x1B[22m\", \"\\x1B[22m\\x1B[2m\"),\n\t\t\titalic: f(\"\\x1B[3m\", \"\\x1B[23m\"),\n\t\t\tunderline: f(\"\\x1B[4m\", \"\\x1B[24m\"),\n\t\t\tinverse: f(\"\\x1B[7m\", \"\\x1B[27m\"),\n\t\t\thidden: f(\"\\x1B[8m\", \"\\x1B[28m\"),\n\t\t\tstrikethrough: f(\"\\x1B[9m\", \"\\x1B[29m\"),\n\t\t\tblack: f(\"\\x1B[30m\", \"\\x1B[39m\"),\n\t\t\tred: f(\"\\x1B[31m\", \"\\x1B[39m\"),\n\t\t\tgreen: f(\"\\x1B[32m\", \"\\x1B[39m\"),\n\t\t\tyellow: f(\"\\x1B[33m\", \"\\x1B[39m\"),\n\t\t\tblue: f(\"\\x1B[34m\", \"\\x1B[39m\"),\n\t\t\tmagenta: f(\"\\x1B[35m\", \"\\x1B[39m\"),\n\t\t\tcyan: f(\"\\x1B[36m\", \"\\x1B[39m\"),\n\t\t\twhite: f(\"\\x1B[37m\", \"\\x1B[39m\"),\n\t\t\tgray: f(\"\\x1B[90m\", \"\\x1B[39m\"),\n\t\t\tbgBlack: f(\"\\x1B[40m\", \"\\x1B[49m\"),\n\t\t\tbgRed: f(\"\\x1B[41m\", \"\\x1B[49m\"),\n\t\t\tbgGreen: f(\"\\x1B[42m\", \"\\x1B[49m\"),\n\t\t\tbgYellow: f(\"\\x1B[43m\", \"\\x1B[49m\"),\n\t\t\tbgBlue: f(\"\\x1B[44m\", \"\\x1B[49m\"),\n\t\t\tbgMagenta: f(\"\\x1B[45m\", \"\\x1B[49m\"),\n\t\t\tbgCyan: f(\"\\x1B[46m\", \"\\x1B[49m\"),\n\t\t\tbgWhite: f(\"\\x1B[47m\", \"\\x1B[49m\"),\n\t\t\tblackBright: f(\"\\x1B[90m\", \"\\x1B[39m\"),\n\t\t\tredBright: f(\"\\x1B[91m\", \"\\x1B[39m\"),\n\t\t\tgreenBright: f(\"\\x1B[92m\", \"\\x1B[39m\"),\n\t\t\tyellowBright: f(\"\\x1B[93m\", \"\\x1B[39m\"),\n\t\t\tblueBright: f(\"\\x1B[94m\", \"\\x1B[39m\"),\n\t\t\tmagentaBright: f(\"\\x1B[95m\", \"\\x1B[39m\"),\n\t\t\tcyanBright: f(\"\\x1B[96m\", \"\\x1B[39m\"),\n\t\t\twhiteBright: f(\"\\x1B[97m\", \"\\x1B[39m\"),\n\t\t\tbgBlackBright: f(\"\\x1B[100m\", \"\\x1B[49m\"),\n\t\t\tbgRedBright: f(\"\\x1B[101m\", \"\\x1B[49m\"),\n\t\t\tbgGreenBright: f(\"\\x1B[102m\", \"\\x1B[49m\"),\n\t\t\tbgYellowBright: f(\"\\x1B[103m\", \"\\x1B[49m\"),\n\t\t\tbgBlueBright: f(\"\\x1B[104m\", \"\\x1B[49m\"),\n\t\t\tbgMagentaBright: f(\"\\x1B[105m\", \"\\x1B[49m\"),\n\t\t\tbgCyanBright: f(\"\\x1B[106m\", \"\\x1B[49m\"),\n\t\t\tbgWhiteBright: f(\"\\x1B[107m\", \"\\x1B[49m\")\n\t\t};\n\t};\n\tmodule.exports = createColors();\n\tmodule.exports.createColors = createColors;\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js\nvar require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tvar isMergeableObject = function isMergeableObject(value) {\n\t\treturn isNonNullObject(value) && !isSpecial(value);\n\t};\n\tfunction isNonNullObject(value) {\n\t\treturn !!value && typeof value === \"object\";\n\t}\n\tfunction isSpecial(value) {\n\t\tvar stringValue = Object.prototype.toString.call(value);\n\t\treturn stringValue === \"[object RegExp]\" || stringValue === \"[object Date]\" || isReactElement(value);\n\t}\n\tvar REACT_ELEMENT_TYPE = typeof Symbol === \"function\" && Symbol.for ? Symbol.for(\"react.element\") : 60103;\n\tfunction isReactElement(value) {\n\t\treturn value.$$typeof === REACT_ELEMENT_TYPE;\n\t}\n\tfunction emptyTarget(val) {\n\t\treturn Array.isArray(val) ? [] : {};\n\t}\n\tfunction cloneUnlessOtherwiseSpecified(value, options) {\n\t\treturn options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;\n\t}\n\tfunction defaultArrayMerge(target, source, options) {\n\t\treturn target.concat(source).map(function(element) {\n\t\t\treturn cloneUnlessOtherwiseSpecified(element, options);\n\t\t});\n\t}\n\tfunction getMergeFunction(key, options) {\n\t\tif (!options.customMerge) return deepmerge;\n\t\tvar customMerge = options.customMerge(key);\n\t\treturn typeof customMerge === \"function\" ? customMerge : deepmerge;\n\t}\n\tfunction getEnumerableOwnPropertySymbols(target) {\n\t\treturn Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol);\n\t\t}) : [];\n\t}\n\tfunction getKeys(target) {\n\t\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));\n\t}\n\tfunction propertyIsOnObject(object, property) {\n\t\ttry {\n\t\t\treturn property in object;\n\t\t} catch (_) {\n\t\t\treturn false;\n\t\t}\n\t}\n\tfunction propertyIsUnsafe(target, key) {\n\t\treturn propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));\n\t}\n\tfunction mergeObject(target, source, options) {\n\t\tvar destination = {};\n\t\tif (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t\tgetKeys(source).forEach(function(key) {\n\t\t\tif (propertyIsUnsafe(target, key)) return;\n\t\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t\telse destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t});\n\t\treturn destination;\n\t}\n\tfunction deepmerge(target, source, options) {\n\t\toptions = options || {};\n\t\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\t\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\t\tvar sourceIsArray = Array.isArray(source);\n\t\tif (!(sourceIsArray === Array.isArray(target))) return cloneUnlessOtherwiseSpecified(source, options);\n\t\telse if (sourceIsArray) return options.arrayMerge(target, source, options);\n\t\telse return mergeObject(target, source, options);\n\t}\n\tdeepmerge.all = function deepmergeAll(array, options) {\n\t\tif (!Array.isArray(array)) throw new Error(\"first argument should be an array\");\n\t\treturn array.reduce(function(prev, next) {\n\t\t\treturn deepmerge(prev, next, options);\n\t\t}, {});\n\t};\n\tvar deepmerge_1 = deepmerge;\n\tmodule.exports = deepmerge_1;\n}));\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js\nvar import_picocolors = /* @__PURE__ */ __toESM(require_picocolors());\nvar import_cjs = /* @__PURE__ */ __toESM(require_cjs());\nvar localClassNames = /* @__PURE__ */ new Set();\nvar composedClassLists = [];\nvar bufferedCSSObjs = [];\nvar browserRuntimeAdapter = {\n\tappendCss: (cssObj) => {\n\t\tbufferedCSSObjs.push(cssObj);\n\t},\n\tregisterClassName: (className) => {\n\t\tlocalClassNames.add(className);\n\t},\n\tregisterComposition: (composition) => {\n\t\tcomposedClassLists.push(composition);\n\t},\n\tmarkCompositionUsed: () => {},\n\tonEndFileScope: (fileScope) => {\n\t\tinjectStyles({\n\t\t\tfileScope,\n\t\t\tcss: transformCss({\n\t\t\t\tlocalClassNames: Array.from(localClassNames),\n\t\t\t\tcomposedClassLists,\n\t\t\t\tcssObjs: bufferedCSSObjs\n\t\t\t}).join(\"\\n\")\n\t\t});\n\t\tbufferedCSSObjs = [];\n\t},\n\tgetIdentOption: () => process.env.NODE_ENV === \"production\" ? \"short\" : \"debug\"\n};\nif (typeof window !== \"undefined\") setAdapterIfNotSet(browserRuntimeAdapter);\nvar getLastSlashBeforeIndex = (path, index) => {\n\tvar pathIndex = index - 1;\n\twhile (pathIndex >= 0) {\n\t\tif (path[pathIndex] === \"/\") return pathIndex;\n\t\tpathIndex--;\n\t}\n\treturn -1;\n};\n/**\n* Assumptions:\n* - The path is always normalized to use posix file separators (/) (see `addFileScope`)\n* - The path is always relative to the project root, i.e. there will never be a leading slash (see `addFileScope`)\n* - As long as `.css` is there, we have a valid `.css.*` file path, because otherwise there wouldn't\n* be a file scope to begin with\n*\n* The LRU cache we use can't cache undefined/null values, so we opt to return an empty string,\n* rather than using a custom Symbol or something similar.\n*/\nvar _getDebugFileName = (path) => {\n\tvar file;\n\tvar lastIndexOfDotCss = path.lastIndexOf(\".css\");\n\tif (lastIndexOfDotCss === -1) return \"\";\n\tvar lastSlashIndex = getLastSlashBeforeIndex(path, lastIndexOfDotCss);\n\tfile = path.slice(lastSlashIndex + 1, lastIndexOfDotCss);\n\tif (lastSlashIndex === -1) return file;\n\tvar secondLastSlashIndex = getLastSlashBeforeIndex(path, lastSlashIndex - 1);\n\tvar dir = path.slice(secondLastSlashIndex + 1, lastSlashIndex);\n\treturn file !== \"index\" ? file : dir;\n};\nvar memoizedGetDebugFileName = () => {\n\tvar cache = new LRUCache({ max: 500 });\n\treturn (path) => {\n\t\tvar cachedResult = cache.get(path);\n\t\tif (cachedResult) return cachedResult;\n\t\tvar result = _getDebugFileName(path);\n\t\tcache.set(path, result);\n\t\treturn result;\n\t};\n};\nvar getDebugFileName = memoizedGetDebugFileName();\nfunction getDevPrefix(_ref) {\n\tvar { debugId, debugFileName } = _ref;\n\tvar parts = debugId ? [debugId.replace(/\\s/g, \"_\")] : [];\n\tif (debugFileName) {\n\t\tvar { filePath } = getFileScope();\n\t\tvar _debugFileName = getDebugFileName(filePath);\n\t\tif (_debugFileName) parts.unshift(_debugFileName);\n\t}\n\treturn parts.join(\"_\");\n}\nfunction normalizeIdentifier(identifier) {\n\treturn identifier.match(/^[0-9]/) ? \"_\".concat(identifier) : identifier;\n}\nfunction generateIdentifier(arg) {\n\tvar identOption = getIdentOption();\n\tvar { debugId, debugFileName = true } = _objectSpread2$1(_objectSpread2$1({}, typeof arg === \"string\" ? { debugId: arg } : null), typeof arg === \"object\" ? arg : null);\n\tvar refCount = getAndIncrementRefCounter().toString(36);\n\tvar { filePath, packageName } = getFileScope();\n\tvar fileScopeHash = murmur2(packageName ? \"\".concat(packageName).concat(filePath) : filePath);\n\tvar identifier = \"\".concat(fileScopeHash).concat(refCount);\n\tif (identOption === \"debug\") {\n\t\tvar devPrefix = getDevPrefix({\n\t\t\tdebugId,\n\t\t\tdebugFileName\n\t\t});\n\t\tif (devPrefix) identifier = \"\".concat(devPrefix, \"__\").concat(identifier);\n\t\treturn normalizeIdentifier(identifier);\n\t}\n\tif (typeof identOption === \"function\") {\n\t\tidentifier = identOption({\n\t\t\thash: identifier,\n\t\t\tdebugId,\n\t\t\tfilePath,\n\t\t\tpackageName\n\t\t});\n\t\tif (!identifier.match(/^[A-Z_][0-9A-Z_-]+$/i)) throw new Error(\"Identifier function returned invalid indentifier: \\\"\".concat(identifier, \"\\\"\"));\n\t\treturn identifier;\n\t}\n\treturn normalizeIdentifier(identifier);\n}\nvar normaliseObject = (obj) => (0, import_vanilla_extract_private_cjs.walkObject)(obj, () => \"\");\nfunction validateContract(contract, tokens) {\n\tvar theDiff = diff_default(normaliseObject(contract), normaliseObject(tokens));\n\tvar valid = Object.keys(theDiff).length === 0;\n\treturn {\n\t\tvalid,\n\t\tdiffString: valid ? \"\" : renderDiff(contract, theDiff)\n\t};\n}\nfunction diffLine(value, nesting, type) {\n\tvar whitespace = [...Array(nesting).keys()].map(() => \" \").join(\"\");\n\tvar line = \"\".concat(type ? type : \" \").concat(whitespace).concat(value);\n\tif (process.env.NODE_ENV !== \"test\") {\n\t\tif (type === \"-\") return import_picocolors.default.red(line);\n\t\tif (type === \"+\") return import_picocolors.default.green(line);\n\t}\n\treturn line;\n}\nfunction renderDiff(orig, diff) {\n\tvar nesting = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;\n\tvar lines = [];\n\tif (nesting === 0) lines.push(diffLine(\"{\", 0));\n\tvar innerNesting = nesting + 1;\n\tfor (var key of Object.keys(diff).sort()) {\n\t\tvar value = diff[key];\n\t\tif (!(key in orig)) lines.push(diffLine(\"\".concat(key, \": ...,\"), innerNesting, \"+\"));\n\t\telse if (typeof value === \"object\") {\n\t\t\tlines.push(diffLine(\"\".concat(key, \": {\"), innerNesting));\n\t\t\tlines.push(renderDiff(orig[key], diff[key], innerNesting));\n\t\t\tlines.push(diffLine(\"}\", innerNesting));\n\t\t} else lines.push(diffLine(\"\".concat(key, \": ...,\"), innerNesting, \"-\"));\n\t}\n\tif (nesting === 0) lines.push(diffLine(\"}\", 0));\n\treturn lines.join(\"\\n\");\n}\nvar buildPropertyRule = (_ref) => {\n\tvar { syntax, inherits, initialValue } = _ref;\n\treturn _objectSpread2$1({\n\t\tsyntax: \"\\\"\".concat(Array.isArray(syntax) ? syntax.join(\" | \") : syntax, \"\\\"\"),\n\t\tinherits: inherits ? \"true\" : \"false\"\n\t}, initialValue != null ? { initialValue } : {});\n};\nfunction createVar(debugIdOrDeclaration, debugId) {\n\tvar cssVarName = (0, import_cssesc.default)(generateIdentifier({\n\t\tdebugId: typeof debugIdOrDeclaration === \"string\" ? debugIdOrDeclaration : debugId,\n\t\tdebugFileName: false\n\t}), { isIdentifier: true });\n\tif (debugIdOrDeclaration && typeof debugIdOrDeclaration === \"object\") appendCss({\n\t\ttype: \"property\",\n\t\tname: \"--\".concat(cssVarName),\n\t\trule: buildPropertyRule(debugIdOrDeclaration)\n\t}, getFileScope());\n\treturn \"var(--\".concat(cssVarName, \")\");\n}\nfunction assignVars(varContract, tokens) {\n\tvar varSetters = {};\n\tvar { valid, diffString } = validateContract(varContract, tokens);\n\tif (!valid) throw new Error(\"Tokens don't match contract.\\n\".concat(diffString));\n\t(0, import_vanilla_extract_private_cjs.walkObject)(tokens, (value, path) => {\n\t\tvarSetters[(0, import_vanilla_extract_private_cjs.get)(varContract, path)] = String(value);\n\t});\n\treturn varSetters;\n}\nfunction createThemeContract(tokens) {\n\treturn (0, import_vanilla_extract_private_cjs.walkObject)(tokens, (_value, path) => {\n\t\treturn createVar(path.join(\"-\"));\n\t});\n}\nvar _excluded = [\"@layer\"];\nfunction createGlobalTheme(selector, arg2, arg3) {\n\tvar themeContractProvided = Boolean(arg3);\n\tvar { layerName, tokens } = extractLayerFromTokens(themeContractProvided ? arg3 : arg2);\n\tvar themeContract = themeContractProvided ? arg2 : createThemeContract(tokens);\n\tvar rule = { vars: assignVars(themeContract, tokens) };\n\tif (layerName) rule = { \"@layer\": { [layerName]: rule } };\n\tappendCss({\n\t\ttype: \"global\",\n\t\tselector,\n\t\trule\n\t}, getFileScope());\n\tif (!themeContractProvided) return themeContract;\n}\nfunction extractLayerFromTokens(tokens) {\n\tif (\"@layer\" in tokens) {\n\t\tvar { \"@layer\": layerName } = tokens;\n\t\treturn {\n\t\t\tlayerName,\n\t\t\ttokens: _objectWithoutProperties(tokens, _excluded)\n\t\t};\n\t}\n\treturn { tokens };\n}\nfunction composedStyle(rules, debugId) {\n\tvar className = generateIdentifier(debugId);\n\tregisterClassName(className, getFileScope());\n\tvar classList = [];\n\tvar styleRules = [];\n\tfor (var rule of rules) if (typeof rule === \"string\") classList.push(rule);\n\telse styleRules.push(rule);\n\tvar result = className;\n\tif (classList.length > 0) {\n\t\tresult = \"\".concat(className, \" \").concat(dedupeAndJoinClassList(classList));\n\t\tregisterComposition({\n\t\t\tidentifier: className,\n\t\t\tclassList: result\n\t\t}, getFileScope());\n\t\tif (styleRules.length > 0) markCompositionUsed(className);\n\t}\n\tif (styleRules.length > 0) appendCss({\n\t\ttype: \"local\",\n\t\tselector: className,\n\t\trule: import_cjs.default.all(styleRules, { arrayMerge: (_, sourceArray) => sourceArray })\n\t}, getFileScope());\n\treturn result;\n}\nfunction style(rule, debugId) {\n\tif (Array.isArray(rule)) return composedStyle(rule, debugId);\n\tvar className = generateIdentifier(debugId);\n\tregisterClassName(className, getFileScope());\n\tappendCss({\n\t\ttype: \"local\",\n\t\tselector: className,\n\t\trule\n\t}, getFileScope());\n\treturn className;\n}\n/**\n* @deprecated The same functionality is now provided by the 'style' function when you pass it an array\n*/\nfunction composeStyles() {\n\tvar compose = hasFileScope() ? composedStyle : dedupeAndJoinClassList;\n\tfor (var _len = arguments.length, classNames = new Array(_len), _key = 0; _key < _len; _key++) classNames[_key] = arguments[_key];\n\treturn compose(classNames);\n}\n\n//#endregion\n//#region src/contracts/border.css.ts\nconst borderContract = createThemeContract({ radius: {\n\tnone: \"\",\n\txsmall: \"\",\n\tsmall: \"\",\n\tmedium: \"\",\n\tlarge: \"\",\n\txlarge: \"\",\n\txxlarge: \"\",\n\tfull: \"\"\n} });\n\n//#endregion\n//#region src/contracts/color.css.ts\nconst SCALABLE_COLOR_TOKENS = [\n\t\"black\",\n\t\"white\",\n\t\"gray\",\n\t\"brand\",\n\t\"info\",\n\t\"success\",\n\t\"warning\",\n\t\"error\"\n];\nconst PURE_COLOR_TOKENS = [\"transparent\", ...SCALABLE_COLOR_TOKENS];\nconst COLOR_SCALES = [\n\t\"100\",\n\t\"200\",\n\t\"300\",\n\t\"400\",\n\t\"500\",\n\t\"600\",\n\t\"700\",\n\t\"800\",\n\t\"900\"\n];\nconst colorScaleContract = (color) => ({\n\t[color]: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t100: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t200: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t300: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t400: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t500: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t600: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t700: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t800: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t},\n\t900: {\n\t\tcolor: \"\",\n\t\tonColor: \"\"\n\t}\n});\nconst colorContract = createThemeContract({\n\ttransparent: \"\",\n\tblack: colorScaleContract(\"black\"),\n\twhite: colorScaleContract(\"white\"),\n\tgray: colorScaleContract(\"gray\"),\n\tbrand: colorScaleContract(\"brand\"),\n\tinfo: colorScaleContract(\"info\"),\n\tsuccess: colorScaleContract(\"success\"),\n\twarning: colorScaleContract(\"warning\"),\n\terror: colorScaleContract(\"error\")\n});\n\n//#endregion\n//#region src/contracts/font.css.ts\nconst fontSizeScale = {\n\txsmall: \"\",\n\tsmall: \"\",\n\tmedium: \"\",\n\tlarge: \"\",\n\txlarge: \"\",\n\txxlarge: \"\"\n};\nconst fontContract = createThemeContract({\n\tfamily: {\n\t\tbrand: \"\",\n\t\tsans: \"\",\n\t\tmono: \"\",\n\t\tserif: \"\"\n\t},\n\tweight: {\n\t\tlight: \"\",\n\t\tregular: \"\",\n\t\tmedium: \"\",\n\t\tsemibold: \"\",\n\t\tbold: \"\",\n\t\textrabold: \"\"\n\t},\n\tlineHeights: {\n\t\ttight: \"\",\n\t\tnormal: \"\",\n\t\tloose: \"\"\n\t},\n\tsize: {\n\t\troot: \"\",\n\t\tbody: fontSizeScale,\n\t\tlabel: fontSizeScale,\n\t\ttitle: fontSizeScale,\n\t\theadline: fontSizeScale,\n\t\tdisplay: fontSizeScale\n\t}\n});\n\n//#endregion\n//#region src/contracts/spacing.css.ts\nconst SPACING_TOKENS = [\n\t\"none\",\n\t\"xsmall\",\n\t\"small\",\n\t\"medium\",\n\t\"large\",\n\t\"xlarge\",\n\t\"xxlarge\",\n\t\"xxxlarge\",\n\t\"xxxxlarge\"\n];\nconst spacingContract = createThemeContract({\n\tnone: \"\",\n\txsmall: \"\",\n\tsmall: \"\",\n\tmedium: \"\",\n\tlarge: \"\",\n\txlarge: \"\",\n\txxlarge: \"\",\n\txxxlarge: \"\",\n\txxxxlarge: \"\"\n});\n\n//#endregion\n//#region src/contract.css.ts\nconst pitto = createThemeContract({\n\tborder: borderContract,\n\tcolor: colorContract,\n\tfont: fontContract,\n\tspacing: spacingContract\n});\n\n//#endregion\n//#region src/palette.ts\nconst PALETTE = {\n\ttransparent: \"rgba(0,0,0,0)\",\n\tblack: \"#1a1313\",\n\twhite: \"#f4f4f4\",\n\tgray: \"#757575\",\n\tbrand: \"#314CB6\",\n\tinfo: \"#0a81d1\",\n\tsuccess: \"#004f2d\",\n\twarning: \"#e9b44c\",\n\terror: \"#9b2915\"\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js\nfunction addFunctionSerializer(target, recipe) {\n\tObject.defineProperty(target, \"__recipe__\", {\n\t\tvalue: recipe,\n\t\twritable: false\n\t});\n\treturn target;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+sprinkles@1.6.5_@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js\nfunction toPrimitive(t, r) {\n\tif (\"object\" != typeof t || !t) return t;\n\tvar e = t[Symbol.toPrimitive];\n\tif (void 0 !== e) {\n\t\tvar i = e.call(t, r || \"default\");\n\t\tif (\"object\" != typeof i) return i;\n\t\tthrow new TypeError(\"@@toPrimitive must return a primitive value.\");\n\t}\n\treturn (\"string\" === r ? String : Number)(t);\n}\nfunction toPropertyKey(t) {\n\tvar i = toPrimitive(t, \"string\");\n\treturn \"symbol\" == typeof i ? i : String(i);\n}\nfunction _defineProperty(obj, key, value) {\n\tkey = toPropertyKey(key);\n\tif (key in obj) Object.defineProperty(obj, key, {\n\t\tvalue,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\telse obj[key] = value;\n\treturn obj;\n}\nfunction ownKeys(e, r) {\n\tvar t = Object.keys(e);\n\tif (Object.getOwnPropertySymbols) {\n\t\tvar o = Object.getOwnPropertySymbols(e);\n\t\tr && (o = o.filter(function(r) {\n\t\t\treturn Object.getOwnPropertyDescriptor(e, r).enumerable;\n\t\t})), t.push.apply(t, o);\n\t}\n\treturn t;\n}\nfunction _objectSpread2(e) {\n\tfor (var r = 1; r < arguments.length; r++) {\n\t\tvar t = null != arguments[r] ? arguments[r] : {};\n\t\tr % 2 ? ownKeys(Object(t), !0).forEach(function(r) {\n\t\t\t_defineProperty(e, r, t[r]);\n\t\t}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {\n\t\t\tObject.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n\t\t});\n\t}\n\treturn e;\n}\nvar createSprinkles$1 = (composeStyles) => function() {\n\tfor (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];\n\tvar sprinklesStyles = Object.assign({}, ...args.map((a) => a.styles));\n\tvar sprinklesKeys = Object.keys(sprinklesStyles);\n\tvar shorthandNames = sprinklesKeys.filter((property) => \"mappings\" in sprinklesStyles[property]);\n\tvar sprinklesFn = (props) => {\n\t\tvar classNames = [];\n\t\tvar shorthands = {};\n\t\tvar nonShorthands = _objectSpread2({}, props);\n\t\tvar hasShorthands = false;\n\t\tfor (var shorthand of shorthandNames) {\n\t\t\tvar value = props[shorthand];\n\t\t\tif (value != null) {\n\t\t\t\tvar sprinkle = sprinklesStyles[shorthand];\n\t\t\t\thasShorthands = true;\n\t\t\t\tfor (var propMapping of sprinkle.mappings) {\n\t\t\t\t\tshorthands[propMapping] = value;\n\t\t\t\t\tif (nonShorthands[propMapping] == null) delete nonShorthands[propMapping];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tvar finalProps = hasShorthands ? _objectSpread2(_objectSpread2({}, shorthands), nonShorthands) : props;\n\t\tvar _loop = function _loop() {\n\t\t\tvar propValue = finalProps[prop];\n\t\t\tvar sprinkle = sprinklesStyles[prop];\n\t\t\ttry {\n\t\t\t\tif (sprinkle.mappings) return 1;\n\t\t\t\tif (typeof propValue === \"string\" || typeof propValue === \"number\") {\n\t\t\t\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\t\t\t\tif (!sprinkle.values[propValue].defaultClass) throw new Error();\n\t\t\t\t\t}\n\t\t\t\t\tclassNames.push(sprinkle.values[propValue].defaultClass);\n\t\t\t\t} else if (Array.isArray(propValue)) for (var responsiveIndex = 0; responsiveIndex < propValue.length; responsiveIndex++) {\n\t\t\t\t\tvar responsiveValue = propValue[responsiveIndex];\n\t\t\t\t\tif (responsiveValue != null) {\n\t\t\t\t\t\tvar conditionName = sprinkle.responsiveArray[responsiveIndex];\n\t\t\t\t\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\t\t\t\t\tif (!sprinkle.values[responsiveValue].conditions[conditionName]) throw new Error();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclassNames.push(sprinkle.values[responsiveValue].conditions[conditionName]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse for (var _conditionName in propValue) {\n\t\t\t\t\tvar _value = propValue[_conditionName];\n\t\t\t\t\tif (_value != null) {\n\t\t\t\t\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\t\t\t\t\tif (!sprinkle.values[_value].conditions[_conditionName]) throw new Error();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclassNames.push(sprinkle.values[_value].conditions[_conditionName]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tif (process.env.NODE_ENV !== \"production\") {\n\t\t\t\t\tclass SprinklesError extends Error {\n\t\t\t\t\t\tconstructor(message) {\n\t\t\t\t\t\t\tsuper(message);\n\t\t\t\t\t\t\tthis.name = \"SprinklesError\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tvar format = (v) => typeof v === \"string\" ? \"\\\"\".concat(v, \"\\\"\") : v;\n\t\t\t\t\tvar invalidPropValue = (prop, value, possibleValues) => {\n\t\t\t\t\t\tthrow new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no value \").concat(format(value), \". Possible values are \").concat(Object.keys(possibleValues).map(format).join(\", \")));\n\t\t\t\t\t};\n\t\t\t\t\tif (!sprinkle) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a valid sprinkle\"));\n\t\t\t\t\tif (typeof propValue === \"string\" || typeof propValue === \"number\") {\n\t\t\t\t\t\tif (!(propValue in sprinkle.values)) invalidPropValue(prop, propValue, sprinkle.values);\n\t\t\t\t\t\tif (!sprinkle.values[propValue].defaultClass) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no default condition. You must specify which conditions to target explicitly. Possible options are \").concat(Object.keys(sprinkle.values[propValue].conditions).map(format).join(\", \")));\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof propValue === \"object\") {\n\t\t\t\t\t\tif (!(\"conditions\" in sprinkle.values[Object.keys(sprinkle.values)[0]])) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" is not a conditional property\"));\n\t\t\t\t\t\tif (Array.isArray(propValue)) {\n\t\t\t\t\t\t\tif (!(\"responsiveArray\" in sprinkle)) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" does not support responsive arrays\"));\n\t\t\t\t\t\t\tvar breakpointCount = sprinkle.responsiveArray.length;\n\t\t\t\t\t\t\tif (breakpointCount < propValue.length) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" only supports up to \").concat(breakpointCount, \" breakpoints. You passed \").concat(propValue.length));\n\t\t\t\t\t\t\tfor (var _responsiveValue of propValue) if (!sprinkle.values[_responsiveValue]) invalidPropValue(prop, _responsiveValue, sprinkle.values);\n\t\t\t\t\t\t} else for (var _conditionName2 in propValue) {\n\t\t\t\t\t\t\tvar _value2 = propValue[_conditionName2];\n\t\t\t\t\t\t\tif (_value2 != null) {\n\t\t\t\t\t\t\t\tif (!sprinkle.values[_value2]) invalidPropValue(prop, _value2, sprinkle.values);\n\t\t\t\t\t\t\t\tif (!sprinkle.values[_value2].conditions[_conditionName2]) throw new SprinklesError(\"\\\"\".concat(prop, \"\\\" has no condition named \").concat(format(_conditionName2), \". Possible values are \").concat(Object.keys(sprinkle.values[_value2].conditions).map(format).join(\", \")));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t};\n\t\tfor (var prop in finalProps) if (_loop()) continue;\n\t\treturn composeStyles(classNames.join(\" \"));\n\t};\n\treturn Object.assign(sprinklesFn, { properties: new Set(sprinklesKeys) });\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/@vanilla-extract+sprinkles@1.6.5_@vanilla-extract+css@1.18.0/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js\nfunction defineProperties(options) {\n\tvar styles = \"shorthands\" in options ? Object.fromEntries(Object.entries(options.shorthands).map((_ref) => {\n\t\tvar [prop, mappings] = _ref;\n\t\treturn [prop, { mappings }];\n\t})) : {};\n\tvar _loop = function _loop(key) {\n\t\tvar property = options.properties[key];\n\t\tstyles[key] = { values: {} };\n\t\tif (\"responsiveArray\" in options) styles[key].responsiveArray = options.responsiveArray;\n\t\tvar processValue = (valueName, value) => {\n\t\t\tif (\"conditions\" in options) {\n\t\t\t\tstyles[key].values[valueName] = { conditions: {} };\n\t\t\t\tvar defaultConditions = options.defaultCondition ? Array.isArray(options.defaultCondition) ? options.defaultCondition : [options.defaultCondition] : [];\n\t\t\t\tvar defaultClasses = [];\n\t\t\t\tfor (var _conditionName in options.conditions) {\n\t\t\t\t\tvar styleValue = typeof value === \"object\" ? value : { [key]: value };\n\t\t\t\t\tvar condition = options.conditions[_conditionName];\n\t\t\t\t\tif (condition[\"@supports\"]) styleValue = { \"@supports\": { [condition[\"@supports\"]]: styleValue } };\n\t\t\t\t\tif (condition[\"@container\"]) styleValue = { \"@container\": { [condition[\"@container\"]]: styleValue } };\n\t\t\t\t\tif (condition[\"@media\"]) styleValue = { \"@media\": { [condition[\"@media\"]]: styleValue } };\n\t\t\t\t\tif (condition.selector) styleValue = { selectors: { [condition.selector]: styleValue } };\n\t\t\t\t\tif (options[\"@layer\"]) styleValue = { \"@layer\": { [options[\"@layer\"]]: styleValue } };\n\t\t\t\t\tvar className = style(styleValue, \"\".concat(key, \"_\").concat(String(valueName), \"_\").concat(_conditionName));\n\t\t\t\t\tstyles[key].values[valueName].conditions[_conditionName] = className;\n\t\t\t\t\tif (defaultConditions.indexOf(_conditionName) > -1) defaultClasses.push(className);\n\t\t\t\t}\n\t\t\t\tif (defaultClasses.length > 0) styles[key].values[valueName].defaultClass = defaultClasses.join(\" \");\n\t\t\t} else {\n\t\t\t\tvar _styleValue = typeof value === \"object\" ? value : { [key]: value };\n\t\t\t\tif (options[\"@layer\"]) _styleValue = { \"@layer\": { [options[\"@layer\"]]: _styleValue } };\n\t\t\t\tstyles[key].values[valueName] = { defaultClass: style(_styleValue, \"\".concat(key, \"_\").concat(String(valueName))) };\n\t\t\t}\n\t\t};\n\t\tif (Array.isArray(property)) for (var value of property) processValue(value, value);\n\t\telse for (var valueName in property) {\n\t\t\tvar _value = property[valueName];\n\t\t\tprocessValue(valueName, _value);\n\t\t}\n\t};\n\tfor (var key in options.properties) _loop(key);\n\treturn {\n\t\tconditions: \"conditions\" in options ? {\n\t\t\tdefaultCondition: options.defaultCondition,\n\t\t\tconditionNames: Object.keys(options.conditions),\n\t\t\tresponsiveArray: options.responsiveArray\n\t\t} : void 0,\n\t\tstyles\n\t};\n}\nvar mockComposeStyles = (classList) => classList;\nfunction createSprinkles() {\n\tfor (var _len = arguments.length, config = new Array(_len), _key = 0; _key < _len; _key++) config[_key] = arguments[_key];\n\treturn addFunctionSerializer(createSprinkles$1(hasFileScope() ? composeStyles : mockComposeStyles)(...config), {\n\t\timportPath: \"@vanilla-extract/sprinkles/createRuntimeSprinkles\",\n\t\timportName: \"createSprinkles\",\n\t\targs: config\n\t});\n}\n\n//#endregion\n//#region src/sprinkles/borders.css.ts\nconst borderProperties = defineProperties({ properties: { borderRadius: pitto.border.radius } });\n\n//#endregion\n//#region src/sprinkles/color.css.ts\nconst generateColorMap = () => {\n\tconst colorMap = {};\n\tconst colorContract = pitto.color;\n\tcolorMap[\"transparent\"] = colorContract.transparent;\n\tcolorMap[\"inherit\"] = \"inherit\";\n\tcolorMap[\"currentColor\"] = \"currentColor\";\n\tfor (const baseKey of Object.keys(colorContract)) {\n\t\tif (baseKey === \"transparent\") continue;\n\t\tconst colorScale = colorContract[baseKey];\n\t\tconst safeScale = colorScale;\n\t\tfor (const levelKey of Object.keys(colorScale)) {\n\t\t\tconst typedLevelKey = levelKey;\n\t\t\tconst levelTokens = safeScale[typedLevelKey];\n\t\t\tif (!levelTokens) continue;\n\t\t\tif (typedLevelKey === baseKey) {\n\t\t\t\tconst colorKey = baseKey;\n\t\t\t\tcolorMap[colorKey] = levelTokens.color;\n\t\t\t\tconst onColorKey = `on${baseKey.charAt(0).toUpperCase() + baseKey.slice(1)}`;\n\t\t\t\tcolorMap[onColorKey] = levelTokens.onColor;\n\t\t\t} else {\n\t\t\t\tconst scaledColorKey = `${baseKey}${typedLevelKey}`;\n\t\t\t\tcolorMap[scaledColorKey] = levelTokens.color;\n\t\t\t\tconst onScaledColorKey = `on${baseKey.charAt(0).toUpperCase() + baseKey.slice(1)}${typedLevelKey}`;\n\t\t\t\tcolorMap[onScaledColorKey] = levelTokens.onColor;\n\t\t\t}\n\t\t}\n\t}\n\treturn colorMap;\n};\nconst flatColorMap = generateColorMap();\nconst COLOR_TOKEN_KEYS = Object.keys(flatColorMap);\nconst BG_COLOR_TOKENS = COLOR_TOKEN_KEYS.filter((key) => !key.startsWith(\"on\"));\nconst colorProperties = defineProperties({\n\tproperties: {\n\t\tbackgroundColor: flatColorMap,\n\t\tcolor: flatColorMap\n\t},\n\tshorthands: {\n\t\tbg: [\"backgroundColor\"],\n\t\tc: [\"color\"]\n\t}\n});\n\n//#endregion\n//#region src/sprinkles/responsive.css.ts\nconst sizeMap = Object.assign({}, pitto.spacing, {\n\t\"100%\": \"100%\",\n\tauto: \"auto\"\n});\nconst responsiveProperties = defineProperties({\n\tconditions: {\n\t\tmobile: {},\n\t\ttablet: { \"@media\": \"screen and (min-width: 768px)\" },\n\t\tdesktop: { \"@media\": \"screen and (min-width: 1024px)\" },\n\t\twide: { \"@media\": \"screen and (min-width: 1200px)\" }\n\t},\n\tdefaultCondition: \"mobile\",\n\tproperties: {\n\t\tdisplay: [\n\t\t\t\"none\",\n\t\t\t\"block\",\n\t\t\t\"inline\",\n\t\t\t\"inline-block\",\n\t\t\t\"flex\",\n\t\t\t\"inline-flex\",\n\t\t\t\"grid\",\n\t\t\t\"inline-grid\"\n\t\t],\n\t\tgridTemplateColumns: {\n\t\t\t1: \"repeat(1, minmax(0, 1fr))\",\n\t\t\t2: \"repeat(2, minmax(0, 1fr))\",\n\t\t\t3: \"repeat(3, minmax(0, 1fr))\",\n\t\t\t4: \"repeat(4, minmax(0, 1fr))\",\n\t\t\t5: \"repeat(5, minmax(0, 1fr))\",\n\t\t\t6: \"repeat(6, minmax(0, 1fr))\",\n\t\t\t7: \"repeat(7, minmax(0, 1fr))\",\n\t\t\t8: \"repeat(8, minmax(0, 1fr))\",\n\t\t\t9: \"repeat(9, minmax(0, 1fr))\",\n\t\t\t10: \"repeat(10, minmax(0, 1fr))\",\n\t\t\t11: \"repeat(11, minmax(0, 1fr))\",\n\t\t\t12: \"repeat(12, minmax(0, 1fr))\",\n\t\t\tnone: \"none\"\n\t\t},\n\t\tgridColumn: {\n\t\t\tauto: \"auto\",\n\t\t\t\"span-1\": \"span 1 / span 1\",\n\t\t\t\"span-2\": \"span 2 / span 2\",\n\t\t\t\"span-3\": \"span 3 / span 3\",\n\t\t\t\"span-4\": \"span 4 / span 4\",\n\t\t\t\"span-5\": \"span 5 / span 5\",\n\t\t\t\"span-6\": \"span 6 / span 6\",\n\t\t\t\"span-7\": \"span 7 / span 7\",\n\t\t\t\"span-8\": \"span 8 / span 8\",\n\t\t\t\"span-9\": \"span 9 / span 9\",\n\t\t\t\"span-10\": \"span 10 / span 10\",\n\t\t\t\"span-11\": \"span 11 / span 11\",\n\t\t\t\"span-12\": \"span 12 / span 12\",\n\t\t\tfull: \"1 / -1\",\n\t\t\tstart: \"1\",\n\t\t\tend: \"-1\"\n\t\t},\n\t\tgridRow: {\n\t\t\tauto: \"auto\",\n\t\t\t\"span-1\": \"span 1 / span 1\",\n\t\t\t\"span-2\": \"span 2 / span 2\",\n\t\t\t\"span-3\": \"span 3 / span 3\",\n\t\t\t\"span-4\": \"span 4 / span 4\",\n\t\t\t\"span-5\": \"span 5 / span 5\",\n\t\t\t\"span-6\": \"span 6 / span 6\",\n\t\t\t\"span-7\": \"span 7 / span 7\",\n\t\t\t\"span-8\": \"span 8 / span 8\",\n\t\t\t\"span-9\": \"span 9 / span 9\",\n\t\t\t\"span-10\": \"span 10 / span 10\",\n\t\t\t\"span-11\": \"span 11 / span 11\",\n\t\t\t\"span-12\": \"span 12 / span 12\",\n\t\t\tfull: \"1 / -1\"\n\t\t},\n\t\tgridAutoFlow: [\n\t\t\t\"row\",\n\t\t\t\"column\",\n\t\t\t\"dense\",\n\t\t\t\"row dense\",\n\t\t\t\"column dense\"\n\t\t],\n\t\tflexDirection: [\n\t\t\t\"row\",\n\t\t\t\"column\",\n\t\t\t\"row-reverse\",\n\t\t\t\"column-reverse\"\n\t\t],\n\t\talignItems: [\n\t\t\t\"stretch\",\n\t\t\t\"flex-start\",\n\t\t\t\"center\",\n\t\t\t\"flex-end\",\n\t\t\t\"baseline\"\n\t\t],\n\t\tjustifyContent: [\n\t\t\t\"flex-start\",\n\t\t\t\"center\",\n\t\t\t\"flex-end\",\n\t\t\t\"space-between\",\n\t\t\t\"space-around\",\n\t\t\t\"space-evenly\"\n\t\t],\n\t\tflexWrap: [\n\t\t\t\"nowrap\",\n\t\t\t\"wrap\",\n\t\t\t\"wrap-reverse\"\n\t\t],\n\t\twidth: sizeMap,\n\t\tmaxWidth: {\n\t\t\tnone: \"none\",\n\t\t\t\"100%\": \"100%\",\n\t\t\tsmall: \"640px\",\n\t\t\tmedium: \"768px\",\n\t\t\tlarge: \"1024px\",\n\t\t\txlarge: \"1280px\",\n\t\t\txxlarge: \"1536px\"\n\t\t},\n\t\theight: sizeMap\n\t},\n\tshorthands: { placeItems: [\"alignItems\", \"justifyContent\"] }\n});\n\n//#endregion\n//#region src/sprinkles/spacing.css.ts\nconst spacingProperties = defineProperties({\n\tproperties: {\n\t\tpadding: pitto.spacing,\n\t\tpaddingTop: pitto.spacing,\n\t\tpaddingBottom: pitto.spacing,\n\t\tpaddingLeft: pitto.spacing,\n\t\tpaddingRight: pitto.spacing,\n\t\tpaddingX: pitto.spacing,\n\t\tpaddingY: pitto.spacing,\n\t\tmargin: pitto.spacing,\n\t\tmarginTop: pitto.spacing,\n\t\tmarginBottom: pitto.spacing,\n\t\tmarginLeft: pitto.spacing,\n\t\tmarginRight: pitto.spacing,\n\t\tmarginX: pitto.spacing,\n\t\tmarginY: pitto.spacing,\n\t\tgap: pitto.spacing,\n\t\tcolumnGap: pitto.spacing,\n\t\trowGap: pitto.spacing\n\t},\n\tshorthands: {\n\t\tp: [\"padding\"],\n\t\tpt: [\"paddingTop\"],\n\t\tpb: [\"paddingBottom\"],\n\t\tpl: [\"paddingLeft\"],\n\t\tpr: [\"paddingRight\"],\n\t\tpx: [\"paddingLeft\", \"paddingRight\"],\n\t\tpy: [\"paddingTop\", \"paddingBottom\"],\n\t\tm: [\"margin\"],\n\t\tmt: [\"marginTop\"],\n\t\tmb: [\"marginBottom\"],\n\t\tml: [\"marginLeft\"],\n\t\tmr: [\"marginRight\"],\n\t\tmx: [\"marginLeft\", \"marginRight\"],\n\t\tmy: [\"marginTop\", \"marginBottom\"],\n\t\tg: [\"gap\"],\n\t\tcg: [\"columnGap\"],\n\t\trg: [\"rowGap\"]\n\t}\n});\n\n//#endregion\n//#region src/sprinkles/typography.css.ts\nconst fontWeightMap = {\n\tlight: pitto.font.weight.light,\n\tregular: pitto.font.weight.regular,\n\tmedium: pitto.font.weight.medium,\n\tsemibold: pitto.font.weight.semibold,\n\tbold: pitto.font.weight.bold,\n\textrabold: pitto.font.weight.extrabold\n};\nconst fontSizeMap = {\n\tbodyXsmall: pitto.font.size.body.xsmall,\n\tbodySmall: pitto.font.size.body.small,\n\tbodyMedium: pitto.font.size.body.medium,\n\tbodyLarge: pitto.font.size.body.large,\n\tbodyXlarge: pitto.font.size.body.xlarge,\n\tbodyXxlarge: pitto.font.size.body.xxlarge,\n\tlabelXsmall: pitto.font.size.label.xsmall,\n\tlabelSmall: pitto.font.size.label.small,\n\tlabelMedium: pitto.font.size.label.medium,\n\tlabelLarge: pitto.font.size.label.large,\n\tlabelXlarge: pitto.font.size.label.xlarge,\n\tlabelXxlarge: pitto.font.size.label.xxlarge,\n\ttitleXsmall: pitto.font.size.title.xsmall,\n\ttitleSmall: pitto.font.size.title.small,\n\ttitleMedium: pitto.font.size.title.medium,\n\ttitleLarge: pitto.font.size.title.large,\n\ttitleXlarge: pitto.font.size.title.xlarge,\n\ttitleXxlarge: pitto.font.size.title.xxlarge,\n\theadlineXsmall: pitto.font.size.headline.xsmall,\n\theadlineSmall: pitto.font.size.headline.small,\n\theadlineMedium: pitto.font.size.headline.medium,\n\theadlineLarge: pitto.font.size.headline.large,\n\theadlineXlarge: pitto.font.size.headline.xlarge,\n\theadlineXxlarge: pitto.font.size.headline.xxlarge,\n\tdisplayXsmall: pitto.font.size.display.xsmall,\n\tdisplaySmall: pitto.font.size.display.small,\n\tdisplayMedium: pitto.font.size.display.medium,\n\tdisplayLarge: pitto.font.size.display.large,\n\tdisplayXlarge: pitto.font.size.display.xlarge,\n\tdisplayXxlarge: pitto.font.size.display.xxlarge\n};\nconst typographyProperties = defineProperties({ properties: {\n\tfontWeight: fontWeightMap,\n\tfontSize: fontSizeMap\n} });\n\n//#endregion\n//#region src/sprinkles.css.ts\nconst sprinkles = createSprinkles(borderProperties, colorProperties, responsiveProperties, spacingProperties, typographyProperties);\n\n//#endregion\n//#region src/theme/border.ts\nconst borderTheme = { radius: {\n\tnone: \"0rem\",\n\txsmall: \"0.25rem\",\n\tsmall: \"0.5rem\",\n\tmedium: \"0.75rem\",\n\tlarge: \"1rem\",\n\txlarge: \"1.75rem\",\n\txxlarge: \"3rem\",\n\tfull: \"50%\"\n} };\n\n//#endregion\n//#region ../../node_modules/.pnpm/color-name@2.1.0/node_modules/color-name/index.js\nconst colors = {\n\taliceblue: [\n\t\t240,\n\t\t248,\n\t\t255\n\t],\n\tantiquewhite: [\n\t\t250,\n\t\t235,\n\t\t215\n\t],\n\taqua: [\n\t\t0,\n\t\t255,\n\t\t255\n\t],\n\taquamarine: [\n\t\t127,\n\t\t255,\n\t\t212\n\t],\n\tazure: [\n\t\t240,\n\t\t255,\n\t\t255\n\t],\n\tbeige: [\n\t\t245,\n\t\t245,\n\t\t220\n\t],\n\tbisque: [\n\t\t255,\n\t\t228,\n\t\t196\n\t],\n\tblack: [\n\t\t0,\n\t\t0,\n\t\t0\n\t],\n\tblanchedalmond: [\n\t\t255,\n\t\t235,\n\t\t205\n\t],\n\tblue: [\n\t\t0,\n\t\t0,\n\t\t255\n\t],\n\tblueviolet: [\n\t\t138,\n\t\t43,\n\t\t226\n\t],\n\tbrown: [\n\t\t165,\n\t\t42,\n\t\t42\n\t],\n\tburlywood: [\n\t\t222,\n\t\t184,\n\t\t135\n\t],\n\tcadetblue: [\n\t\t95,\n\t\t158,\n\t\t160\n\t],\n\tchartreuse: [\n\t\t127,\n\t\t255,\n\t\t0\n\t],\n\tchocolate: [\n\t\t210,\n\t\t105,\n\t\t30\n\t],\n\tcoral: [\n\t\t255,\n\t\t127,\n\t\t80\n\t],\n\tcornflowerblue: [\n\t\t100,\n\t\t149,\n\t\t237\n\t],\n\tcornsilk: [\n\t\t255,\n\t\t248,\n\t\t220\n\t],\n\tcrimson: [\n\t\t220,\n\t\t20,\n\t\t60\n\t],\n\tcyan: [\n\t\t0,\n\t\t255,\n\t\t255\n\t],\n\tdarkblue: [\n\t\t0,\n\t\t0,\n\t\t139\n\t],\n\tdarkcyan: [\n\t\t0,\n\t\t139,\n\t\t139\n\t],\n\tdarkgoldenrod: [\n\t\t184,\n\t\t134,\n\t\t11\n\t],\n\tdarkgray: [\n\t\t169,\n\t\t169,\n\t\t169\n\t],\n\tdarkgreen: [\n\t\t0,\n\t\t100,\n\t\t0\n\t],\n\tdarkgrey: [\n\t\t169,\n\t\t169,\n\t\t169\n\t],\n\tdarkkhaki: [\n\t\t189,\n\t\t183,\n\t\t107\n\t],\n\tdarkmagenta: [\n\t\t139,\n\t\t0,\n\t\t139\n\t],\n\tdarkolivegreen: [\n\t\t85,\n\t\t107,\n\t\t47\n\t],\n\tdarkorange: [\n\t\t255,\n\t\t140,\n\t\t0\n\t],\n\tdarkorchid: [\n\t\t153,\n\t\t50,\n\t\t204\n\t],\n\tdarkred: [\n\t\t139,\n\t\t0,\n\t\t0\n\t],\n\tdarksalmon: [\n\t\t233,\n\t\t150,\n\t\t122\n\t],\n\tdarkseagreen: [\n\t\t143,\n\t\t188,\n\t\t143\n\t],\n\tdarkslateblue: [\n\t\t72,\n\t\t61,\n\t\t139\n\t],\n\tdarkslategray: [\n\t\t47,\n\t\t79,\n\t\t79\n\t],\n\tdarkslategrey: [\n\t\t47,\n\t\t79,\n\t\t79\n\t],\n\tdarkturquoise: [\n\t\t0,\n\t\t206,\n\t\t209\n\t],\n\tdarkviolet: [\n\t\t148,\n\t\t0,\n\t\t211\n\t],\n\tdeeppink: [\n\t\t255,\n\t\t20,\n\t\t147\n\t],\n\tdeepskyblue: [\n\t\t0,\n\t\t191,\n\t\t255\n\t],\n\tdimgray: [\n\t\t105,\n\t\t105,\n\t\t105\n\t],\n\tdimgrey: [\n\t\t105,\n\t\t105,\n\t\t105\n\t],\n\tdodgerblue: [\n\t\t30,\n\t\t144,\n\t\t255\n\t],\n\tfirebrick: [\n\t\t178,\n\t\t34,\n\t\t34\n\t],\n\tfloralwhite: [\n\t\t255,\n\t\t250,\n\t\t240\n\t],\n\tforestgreen: [\n\t\t34,\n\t\t139,\n\t\t34\n\t],\n\tfuchsia: [\n\t\t255,\n\t\t0,\n\t\t255\n\t],\n\tgainsboro: [\n\t\t220,\n\t\t220,\n\t\t220\n\t],\n\tghostwhite: [\n\t\t248,\n\t\t248,\n\t\t255\n\t],\n\tgold: [\n\t\t255,\n\t\t215,\n\t\t0\n\t],\n\tgoldenrod: [\n\t\t218,\n\t\t165,\n\t\t32\n\t],\n\tgray: [\n\t\t128,\n\t\t128,\n\t\t128\n\t],\n\tgreen: [\n\t\t0,\n\t\t128,\n\t\t0\n\t],\n\tgreenyellow: [\n\t\t173,\n\t\t255,\n\t\t47\n\t],\n\tgrey: [\n\t\t128,\n\t\t128,\n\t\t128\n\t],\n\thoneydew: [\n\t\t240,\n\t\t255,\n\t\t240\n\t],\n\thotpink: [\n\t\t255,\n\t\t105,\n\t\t180\n\t],\n\tindianred: [\n\t\t205,\n\t\t92,\n\t\t92\n\t],\n\tindigo: [\n\t\t75,\n\t\t0,\n\t\t130\n\t],\n\tivory: [\n\t\t255,\n\t\t255,\n\t\t240\n\t],\n\tkhaki: [\n\t\t240,\n\t\t230,\n\t\t140\n\t],\n\tlavender: [\n\t\t230,\n\t\t230,\n\t\t250\n\t],\n\tlavenderblush: [\n\t\t255,\n\t\t240,\n\t\t245\n\t],\n\tlawngreen: [\n\t\t124,\n\t\t252,\n\t\t0\n\t],\n\tlemonchiffon: [\n\t\t255,\n\t\t250,\n\t\t205\n\t],\n\tlightblue: [\n\t\t173,\n\t\t216,\n\t\t230\n\t],\n\tlightcoral: [\n\t\t240,\n\t\t128,\n\t\t128\n\t],\n\tlightcyan: [\n\t\t224,\n\t\t255,\n\t\t255\n\t],\n\tlightgoldenrodyellow: [\n\t\t250,\n\t\t250,\n\t\t210\n\t],\n\tlightgray: [\n\t\t211,\n\t\t211,\n\t\t211\n\t],\n\tlightgreen: [\n\t\t144,\n\t\t238,\n\t\t144\n\t],\n\tlightgrey: [\n\t\t211,\n\t\t211,\n\t\t211\n\t],\n\tlightpink: [\n\t\t255,\n\t\t182,\n\t\t193\n\t],\n\tlightsalmon: [\n\t\t255,\n\t\t160,\n\t\t122\n\t],\n\tlightseagreen: [\n\t\t32,\n\t\t178,\n\t\t170\n\t],\n\tlightskyblue: [\n\t\t135,\n\t\t206,\n\t\t250\n\t],\n\tlightslategray: [\n\t\t119,\n\t\t136,\n\t\t153\n\t],\n\tlightslategrey: [\n\t\t119,\n\t\t136,\n\t\t153\n\t],\n\tlightsteelblue: [\n\t\t176,\n\t\t196,\n\t\t222\n\t],\n\tlightyellow: [\n\t\t255,\n\t\t255,\n\t\t224\n\t],\n\tlime: [\n\t\t0,\n\t\t255,\n\t\t0\n\t],\n\tlimegreen: [\n\t\t50,\n\t\t205,\n\t\t50\n\t],\n\tlinen: [\n\t\t250,\n\t\t240,\n\t\t230\n\t],\n\tmagenta: [\n\t\t255,\n\t\t0,\n\t\t255\n\t],\n\tmaroon: [\n\t\t128,\n\t\t0,\n\t\t0\n\t],\n\tmediumaquamarine: [\n\t\t102,\n\t\t205,\n\t\t170\n\t],\n\tmediumblue: [\n\t\t0,\n\t\t0,\n\t\t205\n\t],\n\tmediumorchid: [\n\t\t186,\n\t\t85,\n\t\t211\n\t],\n\tmediumpurple: [\n\t\t147,\n\t\t112,\n\t\t219\n\t],\n\tmediumseagreen: [\n\t\t60,\n\t\t179,\n\t\t113\n\t],\n\tmediumslateblue: [\n\t\t123,\n\t\t104,\n\t\t238\n\t],\n\tmediumspringgreen: [\n\t\t0,\n\t\t250,\n\t\t154\n\t],\n\tmediumturquoise: [\n\t\t72,\n\t\t209,\n\t\t204\n\t],\n\tmediumvioletred: [\n\t\t199,\n\t\t21,\n\t\t133\n\t],\n\tmidnightblue: [\n\t\t25,\n\t\t25,\n\t\t112\n\t],\n\tmintcream: [\n\t\t245,\n\t\t255,\n\t\t250\n\t],\n\tmistyrose: [\n\t\t255,\n\t\t228,\n\t\t225\n\t],\n\tmoccasin: [\n\t\t255,\n\t\t228,\n\t\t181\n\t],\n\tnavajowhite: [\n\t\t255,\n\t\t222,\n\t\t173\n\t],\n\tnavy: [\n\t\t0,\n\t\t0,\n\t\t128\n\t],\n\toldlace: [\n\t\t253,\n\t\t245,\n\t\t230\n\t],\n\tolive: [\n\t\t128,\n\t\t128,\n\t\t0\n\t],\n\tolivedrab: [\n\t\t107,\n\t\t142,\n\t\t35\n\t],\n\torange: [\n\t\t255,\n\t\t165,\n\t\t0\n\t],\n\torangered: [\n\t\t255,\n\t\t69,\n\t\t0\n\t],\n\torchid: [\n\t\t218,\n\t\t112,\n\t\t214\n\t],\n\tpalegoldenrod: [\n\t\t238,\n\t\t232,\n\t\t170\n\t],\n\tpalegreen: [\n\t\t152,\n\t\t251,\n\t\t152\n\t],\n\tpaleturquoise: [\n\t\t175,\n\t\t238,\n\t\t238\n\t],\n\tpalevioletred: [\n\t\t219,\n\t\t112,\n\t\t147\n\t],\n\tpapayawhip: [\n\t\t255,\n\t\t239,\n\t\t213\n\t],\n\tpeachpuff: [\n\t\t255,\n\t\t218,\n\t\t185\n\t],\n\tperu: [\n\t\t205,\n\t\t133,\n\t\t63\n\t],\n\tpink: [\n\t\t255,\n\t\t192,\n\t\t203\n\t],\n\tplum: [\n\t\t221,\n\t\t160,\n\t\t221\n\t],\n\tpowderblue: [\n\t\t176,\n\t\t224,\n\t\t230\n\t],\n\tpurple: [\n\t\t128,\n\t\t0,\n\t\t128\n\t],\n\trebeccapurple: [\n\t\t102,\n\t\t51,\n\t\t153\n\t],\n\tred: [\n\t\t255,\n\t\t0,\n\t\t0\n\t],\n\trosybrown: [\n\t\t188,\n\t\t143,\n\t\t143\n\t],\n\troyalblue: [\n\t\t65,\n\t\t105,\n\t\t225\n\t],\n\tsaddlebrown: [\n\t\t139,\n\t\t69,\n\t\t19\n\t],\n\tsalmon: [\n\t\t250,\n\t\t128,\n\t\t114\n\t],\n\tsandybrown: [\n\t\t244,\n\t\t164,\n\t\t96\n\t],\n\tseagreen: [\n\t\t46,\n\t\t139,\n\t\t87\n\t],\n\tseashell: [\n\t\t255,\n\t\t245,\n\t\t238\n\t],\n\tsienna: [\n\t\t160,\n\t\t82,\n\t\t45\n\t],\n\tsilver: [\n\t\t192,\n\t\t192,\n\t\t192\n\t],\n\tskyblue: [\n\t\t135,\n\t\t206,\n\t\t235\n\t],\n\tslateblue: [\n\t\t106,\n\t\t90,\n\t\t205\n\t],\n\tslategray: [\n\t\t112,\n\t\t128,\n\t\t144\n\t],\n\tslategrey: [\n\t\t112,\n\t\t128,\n\t\t144\n\t],\n\tsnow: [\n\t\t255,\n\t\t250,\n\t\t250\n\t],\n\tspringgreen: [\n\t\t0,\n\t\t255,\n\t\t127\n\t],\n\tsteelblue: [\n\t\t70,\n\t\t130,\n\t\t180\n\t],\n\ttan: [\n\t\t210,\n\t\t180,\n\t\t140\n\t],\n\tteal: [\n\t\t0,\n\t\t128,\n\t\t128\n\t],\n\tthistle: [\n\t\t216,\n\t\t191,\n\t\t216\n\t],\n\ttomato: [\n\t\t255,\n\t\t99,\n\t\t71\n\t],\n\tturquoise: [\n\t\t64,\n\t\t224,\n\t\t208\n\t],\n\tviolet: [\n\t\t238,\n\t\t130,\n\t\t238\n\t],\n\twheat: [\n\t\t245,\n\t\t222,\n\t\t179\n\t],\n\twhite: [\n\t\t255,\n\t\t255,\n\t\t255\n\t],\n\twhitesmoke: [\n\t\t245,\n\t\t245,\n\t\t245\n\t],\n\tyellow: [\n\t\t255,\n\t\t255,\n\t\t0\n\t],\n\tyellowgreen: [\n\t\t154,\n\t\t205,\n\t\t50\n\t]\n};\nfor (const key in colors) Object.freeze(colors[key]);\nvar color_name_default = Object.freeze(colors);\n\n//#endregion\n//#region ../../node_modules/.pnpm/color-string@2.1.4/node_modules/color-string/index.js\nconst reverseNames = Object.create(null);\nfor (const name in color_name_default) if (Object.hasOwn(color_name_default, name)) reverseNames[color_name_default[name]] = name;\nconst cs = {\n\tto: {},\n\tget: {}\n};\ncs.get = function(string) {\n\tconst prefix = string.slice(0, 3).toLowerCase();\n\tlet value;\n\tlet model;\n\tswitch (prefix) {\n\t\tcase \"hsl\":\n\t\t\tvalue = cs.get.hsl(string);\n\t\t\tmodel = \"hsl\";\n\t\t\tbreak;\n\t\tcase \"hwb\":\n\t\t\tvalue = cs.get.hwb(string);\n\t\t\tmodel = \"hwb\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tvalue = cs.get.rgb(string);\n\t\t\tmodel = \"rgb\";\n\t\t\tbreak;\n\t}\n\tif (!value) return null;\n\treturn {\n\t\tmodel,\n\t\tvalue\n\t};\n};\ncs.get.rgb = function(string) {\n\tif (!string) return null;\n\tconst abbr = /^#([a-f\\d]{3,4})$/i;\n\tconst hex = /^#([a-f\\d]{6})([a-f\\d]{2})?$/i;\n\tconst rgba = /^rgba?\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:e\\d+)?)(?=[\\s,])\\s*(?:,\\s*)?([+-]?(?:\\d*\\.)?\\d+(?:e\\d+)?)(?=[\\s,])\\s*(?:,\\s*)?([+-]?(?:\\d*\\.)?\\d+(?:e\\d+)?)\\s*(?:[\\s,|/]\\s*([+-]?(?:\\d*\\.)?\\d+(?:e\\d+)?)(%?)\\s*)?\\)$/i;\n\tconst per = /^rgba?\\(\\s*([+-]?[\\d.]+)%\\s*,?\\s*([+-]?[\\d.]+)%\\s*,?\\s*([+-]?[\\d.]+)%\\s*(?:[\\s,|/]\\s*([+-]?[\\d.]+)(%?)\\s*)?\\)$/i;\n\tconst keyword = /^(\\w+)$/;\n\tlet rgb = [\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1\n\t];\n\tlet match;\n\tlet i;\n\tlet hexAlpha;\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\tconst i2 = i * 2;\n\t\t\trgb[i] = Number.parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\t\tif (hexAlpha) rgb[3] = Number.parseInt(hexAlpha, 16) / 255;\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\t\tfor (i = 0; i < 3; i++) rgb[i] = Number.parseInt(match[i] + match[i], 16);\n\t\tif (hexAlpha) rgb[3] = Number.parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) rgb[i] = Number.parseFloat(match[i + 1]);\n\t\tif (match[4]) rgb[3] = match[5] ? Number.parseFloat(match[4]) * .01 : Number.parseFloat(match[4]);\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) rgb[i] = Math.round(Number.parseFloat(match[i + 1]) * 2.55);\n\t\tif (match[4]) rgb[3] = match[5] ? Number.parseFloat(match[4]) * .01 : Number.parseFloat(match[4]);\n\t} else if (match = string.toLowerCase().match(keyword)) {\n\t\tif (match[1] === \"transparent\") return [\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0\n\t\t];\n\t\tif (!Object.hasOwn(color_name_default, match[1])) return null;\n\t\trgb = color_name_default[match[1]].slice();\n\t\trgb[3] = 1;\n\t\treturn rgb;\n\t} else return null;\n\tfor (i = 0; i < 3; i++) rgb[i] = clamp(rgb[i], 0, 255);\n\trgb[3] = clamp(rgb[3], 0, 1);\n\treturn rgb;\n};\ncs.get.hsl = function(string) {\n\tif (!string) return null;\n\tconst match = string.match(/^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d.]+)%\\s*,?\\s*([+-]?[\\d.]+)%\\s*(?:[,|/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:e[+-]?\\d+)?)\\s*)?\\)$/i);\n\tif (match) {\n\t\tconst alpha = Number.parseFloat(match[4]);\n\t\treturn [\n\t\t\t(Number.parseFloat(match[1]) % 360 + 360) % 360,\n\t\t\tclamp(Number.parseFloat(match[2]), 0, 100),\n\t\t\tclamp(Number.parseFloat(match[3]), 0, 100),\n\t\t\tclamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1)\n\t\t];\n\t}\n\treturn null;\n};\ncs.get.hwb = function(string) {\n\tif (!string) return null;\n\tconst match = string.match(/^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*[\\s,]\\s*([+-]?[\\d.]+)%\\s*[\\s,]\\s*([+-]?[\\d.]+)%\\s*(?:[\\s,]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:e[+-]?\\d+)?)\\s*)?\\)$/i);\n\tif (match) {\n\t\tconst alpha = Number.parseFloat(match[4]);\n\t\treturn [\n\t\t\t(Number.parseFloat(match[1]) % 360 + 360) % 360,\n\t\t\tclamp(Number.parseFloat(match[2]), 0, 100),\n\t\t\tclamp(Number.parseFloat(match[3]), 0, 100),\n\t\t\tclamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1)\n\t\t];\n\t}\n\treturn null;\n};\ncs.to.hex = function(...rgba) {\n\treturn \"#\" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : \"\");\n};\ncs.to.rgb = function(...rgba) {\n\treturn rgba.length < 4 || rgba[3] === 1 ? \"rgb(\" + Math.round(rgba[0]) + \", \" + Math.round(rgba[1]) + \", \" + Math.round(rgba[2]) + \")\" : \"rgba(\" + Math.round(rgba[0]) + \", \" + Math.round(rgba[1]) + \", \" + Math.round(rgba[2]) + \", \" + rgba[3] + \")\";\n};\ncs.to.rgb.percent = function(...rgba) {\n\tconst r = Math.round(rgba[0] / 255 * 100);\n\tconst g = Math.round(rgba[1] / 255 * 100);\n\tconst b = Math.round(rgba[2] / 255 * 100);\n\treturn rgba.length < 4 || rgba[3] === 1 ? \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\" : \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + rgba[3] + \")\";\n};\ncs.to.hsl = function(...hsla) {\n\treturn hsla.length < 4 || hsla[3] === 1 ? \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\" : \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \" + hsla[3] + \")\";\n};\ncs.to.hwb = function(...hwba) {\n\tlet a = \"\";\n\tif (hwba.length >= 4 && hwba[3] !== 1) a = \", \" + hwba[3];\n\treturn \"hwb(\" + hwba[0] + \", \" + hwba[1] + \"%, \" + hwba[2] + \"%\" + a + \")\";\n};\ncs.to.keyword = function(...rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\nfunction clamp(number_, min, max) {\n\treturn Math.min(Math.max(min, number_), max);\n}\nfunction hexDouble(number_) {\n\tconst string_ = Math.round(number_).toString(16).toUpperCase();\n\treturn string_.length < 2 ? \"0\" + string_ : string_;\n}\nvar color_string_default = cs;\n\n//#endregion\n//#region ../../node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/conversions.js\nconst reverseKeywords = {};\nfor (const key of Object.keys(color_name_default)) reverseKeywords[color_name_default[key]] = key;\nconst convert$1 = {\n\trgb: {\n\t\tchannels: 3,\n\t\tlabels: \"rgb\"\n\t},\n\thsl: {\n\t\tchannels: 3,\n\t\tlabels: \"hsl\"\n\t},\n\thsv: {\n\t\tchannels: 3,\n\t\tlabels: \"hsv\"\n\t},\n\thwb: {\n\t\tchannels: 3,\n\t\tlabels: \"hwb\"\n\t},\n\tcmyk: {\n\t\tchannels: 4,\n\t\tlabels: \"cmyk\"\n\t},\n\txyz: {\n\t\tchannels: 3,\n\t\tlabels: \"xyz\"\n\t},\n\tlab: {\n\t\tchannels: 3,\n\t\tlabels: \"lab\"\n\t},\n\toklab: {\n\t\tchannels: 3,\n\t\tlabels: [\n\t\t\t\"okl\",\n\t\t\t\"oka\",\n\t\t\t\"okb\"\n\t\t]\n\t},\n\tlch: {\n\t\tchannels: 3,\n\t\tlabels: \"lch\"\n\t},\n\toklch: {\n\t\tchannels: 3,\n\t\tlabels: [\n\t\t\t\"okl\",\n\t\t\t\"okc\",\n\t\t\t\"okh\"\n\t\t]\n\t},\n\thex: {\n\t\tchannels: 1,\n\t\tlabels: [\"hex\"]\n\t},\n\tkeyword: {\n\t\tchannels: 1,\n\t\tlabels: [\"keyword\"]\n\t},\n\tansi16: {\n\t\tchannels: 1,\n\t\tlabels: [\"ansi16\"]\n\t},\n\tansi256: {\n\t\tchannels: 1,\n\t\tlabels: [\"ansi256\"]\n\t},\n\thcg: {\n\t\tchannels: 3,\n\t\tlabels: [\n\t\t\t\"h\",\n\t\t\t\"c\",\n\t\t\t\"g\"\n\t\t]\n\t},\n\tapple: {\n\t\tchannels: 3,\n\t\tlabels: [\n\t\t\t\"r16\",\n\t\t\t\"g16\",\n\t\t\t\"b16\"\n\t\t]\n\t},\n\tgray: {\n\t\tchannels: 1,\n\t\tlabels: [\"gray\"]\n\t}\n};\nvar conversions_default = convert$1;\nconst LAB_FT = (6 / 29) ** 3;\nfunction srgbNonlinearTransform(c) {\n\tconst cc = c > .0031308 ? 1.055 * c ** (1 / 2.4) - .055 : c * 12.92;\n\treturn Math.min(Math.max(0, cc), 1);\n}\nfunction srgbNonlinearTransformInv(c) {\n\treturn c > .04045 ? ((c + .055) / 1.055) ** 2.4 : c / 12.92;\n}\nfor (const model of Object.keys(convert$1)) {\n\tif (!(\"channels\" in convert$1[model])) throw new Error(\"missing channels property: \" + model);\n\tif (!(\"labels\" in convert$1[model])) throw new Error(\"missing channel labels property: \" + model);\n\tif (convert$1[model].labels.length !== convert$1[model].channels) throw new Error(\"channel and label counts mismatch: \" + model);\n\tconst { channels, labels } = convert$1[model];\n\tdelete convert$1[model].channels;\n\tdelete convert$1[model].labels;\n\tObject.defineProperty(convert$1[model], \"channels\", { value: channels });\n\tObject.defineProperty(convert$1[model], \"labels\", { value: labels });\n}\nconvert$1.rgb.hsl = function(rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\tswitch (max) {\n\t\tcase min:\n\t\t\th = 0;\n\t\t\tbreak;\n\t\tcase r:\n\t\t\th = (g - b) / delta;\n\t\t\tbreak;\n\t\tcase g:\n\t\t\th = 2 + (b - r) / delta;\n\t\t\tbreak;\n\t\tcase b:\n\t\t\th = 4 + (r - g) / delta;\n\t\t\tbreak;\n\t}\n\th = Math.min(h * 60, 360);\n\tif (h < 0) h += 360;\n\tconst l = (min + max) / 2;\n\tif (max === min) s = 0;\n\telse if (l <= .5) s = delta / (max + min);\n\telse s = delta / (2 - max - min);\n\treturn [\n\t\th,\n\t\ts * 100,\n\t\tl * 100\n\t];\n};\nconvert$1.rgb.hsv = function(rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function(c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\t\tswitch (v) {\n\t\t\tcase r:\n\t\t\t\th = bdif - gdif;\n\t\t\t\tbreak;\n\t\t\tcase g:\n\t\t\t\th = 1 / 3 + rdif - bdif;\n\t\t\t\tbreak;\n\t\t\tcase b:\n\t\t\t\th = 2 / 3 + gdif - rdif;\n\t\t\t\tbreak;\n\t\t}\n\t\tif (h < 0) h += 1;\n\t\telse if (h > 1) h -= 1;\n\t}\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\nconvert$1.rgb.hwb = function(rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert$1.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\treturn [\n\t\th,\n\t\tw * 100,\n\t\tb * 100\n\t];\n};\nconvert$1.rgb.oklab = function(rgb) {\n\tconst r = srgbNonlinearTransformInv(rgb[0] / 255);\n\tconst g = srgbNonlinearTransformInv(rgb[1] / 255);\n\tconst b = srgbNonlinearTransformInv(rgb[2] / 255);\n\tconst lp = Math.cbrt(.4122214708 * r + .5363325363 * g + .0514459929 * b);\n\tconst mp = Math.cbrt(.2119034982 * r + .6806995451 * g + .1073969566 * b);\n\tconst sp = Math.cbrt(.0883024619 * r + .2817188376 * g + .6299787005 * b);\n\tconst l = .2104542553 * lp + .793617785 * mp - .0040720468 * sp;\n\tconst aa = 1.9779984951 * lp - 2.428592205 * mp + .4505937099 * sp;\n\tconst bb = .0259040371 * lp + .7827717662 * mp - .808675766 * sp;\n\treturn [\n\t\tl * 100,\n\t\taa * 100,\n\t\tbb * 100\n\t];\n};\nconvert$1.rgb.cmyk = function(rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\treturn [\n\t\tc * 100,\n\t\tm * 100,\n\t\ty * 100,\n\t\tk * 100\n\t];\n};\nfunction comparativeDistance(x, y) {\n\treturn (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;\n}\nconvert$1.rgb.keyword = function(rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) return reversed;\n\tlet currentClosestDistance = Number.POSITIVE_INFINITY;\n\tlet currentClosestKeyword;\n\tfor (const keyword of Object.keys(color_name_default)) {\n\t\tconst value = color_name_default[keyword];\n\t\tconst distance = comparativeDistance(rgb, value);\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\treturn currentClosestKeyword;\n};\nconvert$1.keyword.rgb = function(keyword) {\n\treturn [...color_name_default[keyword]];\n};\nconvert$1.rgb.xyz = function(rgb) {\n\tconst r = srgbNonlinearTransformInv(rgb[0] / 255);\n\tconst g = srgbNonlinearTransformInv(rgb[1] / 255);\n\tconst b = srgbNonlinearTransformInv(rgb[2] / 255);\n\tconst x = r * .4124564 + g * .3575761 + b * .1804375;\n\tconst y = r * .2126729 + g * .7151522 + b * .072175;\n\tconst z = r * .0193339 + g * .119192 + b * .9503041;\n\treturn [\n\t\tx * 100,\n\t\ty * 100,\n\t\tz * 100\n\t];\n};\nconvert$1.rgb.lab = function(rgb) {\n\tconst xyz = convert$1.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\tx = x > LAB_FT ? x ** (1 / 3) : 7.787 * x + 16 / 116;\n\ty = y > LAB_FT ? y ** (1 / 3) : 7.787 * y + 16 / 116;\n\tz = z > LAB_FT ? z ** (1 / 3) : 7.787 * z + 16 / 116;\n\treturn [\n\t\t116 * y - 16,\n\t\t500 * (x - y),\n\t\t200 * (y - z)\n\t];\n};\nconvert$1.hsl.rgb = function(hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t3;\n\tlet value;\n\tif (s === 0) {\n\t\tvalue = l * 255;\n\t\treturn [\n\t\t\tvalue,\n\t\t\tvalue,\n\t\t\tvalue\n\t\t];\n\t}\n\tconst t2 = l < .5 ? l * (1 + s) : l + s - l * s;\n\tconst t1 = 2 * l - t2;\n\tconst rgb = [\n\t\t0,\n\t\t0,\n\t\t0\n\t];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) t3++;\n\t\tif (t3 > 1) t3--;\n\t\tif (6 * t3 < 1) value = t1 + (t2 - t1) * 6 * t3;\n\t\telse if (2 * t3 < 1) value = t2;\n\t\telse if (3 * t3 < 2) value = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\telse value = t1;\n\t\trgb[i] = value * 255;\n\t}\n\treturn rgb;\n};\nconvert$1.hsl.hsv = function(hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, .01);\n\tl *= 2;\n\ts *= l <= 1 ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\treturn [\n\t\th,\n\t\t(l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s)) * 100,\n\t\tv * 100\n\t];\n};\nconvert$1.hsv.rgb = function(hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - s * f);\n\tconst t = 255 * v * (1 - s * (1 - f));\n\tv *= 255;\n\tswitch (hi) {\n\t\tcase 0: return [\n\t\t\tv,\n\t\t\tt,\n\t\t\tp\n\t\t];\n\t\tcase 1: return [\n\t\t\tq,\n\t\t\tv,\n\t\t\tp\n\t\t];\n\t\tcase 2: return [\n\t\t\tp,\n\t\t\tv,\n\t\t\tt\n\t\t];\n\t\tcase 3: return [\n\t\t\tp,\n\t\t\tq,\n\t\t\tv\n\t\t];\n\t\tcase 4: return [\n\t\t\tt,\n\t\t\tp,\n\t\t\tv\n\t\t];\n\t\tcase 5: return [\n\t\t\tv,\n\t\t\tp,\n\t\t\tq\n\t\t];\n\t}\n};\nconvert$1.hsv.hsl = function(hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, .01);\n\tlet sl;\n\tlet l;\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= lmin <= 1 ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\treturn [\n\t\th,\n\t\tsl * 100,\n\t\tl * 100\n\t];\n};\nconvert$1.hwb.rgb = function(hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\tif ((i & 1) !== 0) f = 1 - f;\n\tconst n = wh + f * (v - wh);\n\tlet r;\n\tlet g;\n\tlet b;\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0:\n\t\t\tr = v;\n\t\t\tg = n;\n\t\t\tb = wh;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tr = n;\n\t\t\tg = v;\n\t\t\tb = wh;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tr = wh;\n\t\t\tg = v;\n\t\t\tb = n;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tr = wh;\n\t\t\tg = n;\n\t\t\tb = v;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tr = n;\n\t\t\tg = wh;\n\t\t\tb = v;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tr = v;\n\t\t\tg = wh;\n\t\t\tb = n;\n\t\t\tbreak;\n\t}\n\treturn [\n\t\tr * 255,\n\t\tg * 255,\n\t\tb * 255\n\t];\n};\nconvert$1.cmyk.rgb = function(cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\treturn [\n\t\tr * 255,\n\t\tg * 255,\n\t\tb * 255\n\t];\n};\nconvert$1.xyz.rgb = function(xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\tr = x * 3.2404542 + y * -1.5371385 + z * -.4985314;\n\tg = x * -.969266 + y * 1.8760108 + z * .041556;\n\tb = x * .0556434 + y * -.2040259 + z * 1.0572252;\n\tr = srgbNonlinearTransform(r);\n\tg = srgbNonlinearTransform(g);\n\tb = srgbNonlinearTransform(b);\n\treturn [\n\t\tr * 255,\n\t\tg * 255,\n\t\tb * 255\n\t];\n};\nconvert$1.xyz.lab = function(xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\tx = x > LAB_FT ? x ** (1 / 3) : 7.787 * x + 16 / 116;\n\ty = y > LAB_FT ? y ** (1 / 3) : 7.787 * y + 16 / 116;\n\tz = z > LAB_FT ? z ** (1 / 3) : 7.787 * z + 16 / 116;\n\treturn [\n\t\t116 * y - 16,\n\t\t500 * (x - y),\n\t\t200 * (y - z)\n\t];\n};\nconvert$1.xyz.oklab = function(xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tconst lp = Math.cbrt(.8189330101 * x + .3618667424 * y - .1288597137 * z);\n\tconst mp = Math.cbrt(.0329845436 * x + .9293118715 * y + .0361456387 * z);\n\tconst sp = Math.cbrt(.0482003018 * x + .2643662691 * y + .633851707 * z);\n\tconst l = .2104542553 * lp + .793617785 * mp - .0040720468 * sp;\n\tconst a = 1.9779984951 * lp - 2.428592205 * mp + .4505937099 * sp;\n\tconst b = .0259040371 * lp + .7827717662 * mp - .808675766 * sp;\n\treturn [\n\t\tl * 100,\n\t\ta * 100,\n\t\tb * 100\n\t];\n};\nconvert$1.oklab.oklch = function(oklab) {\n\treturn convert$1.lab.lch(oklab);\n};\nconvert$1.oklab.xyz = function(oklab) {\n\tconst ll = oklab[0] / 100;\n\tconst a = oklab[1] / 100;\n\tconst b = oklab[2] / 100;\n\tconst l = (.999999998 * ll + .396337792 * a + .215803758 * b) ** 3;\n\tconst m = (1.000000008 * ll - .105561342 * a - .063854175 * b) ** 3;\n\tconst s = (1.000000055 * ll - .089484182 * a - 1.291485538 * b) ** 3;\n\tconst x = 1.227013851 * l - .55779998 * m + .281256149 * s;\n\tconst y = -.040580178 * l + 1.11225687 * m - .071676679 * s;\n\tconst z = -.076381285 * l - .421481978 * m + 1.58616322 * s;\n\treturn [\n\t\tx * 100,\n\t\ty * 100,\n\t\tz * 100\n\t];\n};\nconvert$1.oklab.rgb = function(oklab) {\n\tconst ll = oklab[0] / 100;\n\tconst aa = oklab[1] / 100;\n\tconst bb = oklab[2] / 100;\n\tconst l = (ll + .3963377774 * aa + .2158037573 * bb) ** 3;\n\tconst m = (ll - .1055613458 * aa - .0638541728 * bb) ** 3;\n\tconst s = (ll - .0894841775 * aa - 1.291485548 * bb) ** 3;\n\tconst r = srgbNonlinearTransform(4.0767416621 * l - 3.3077115913 * m + .2309699292 * s);\n\tconst g = srgbNonlinearTransform(-1.2684380046 * l + 2.6097574011 * m - .3413193965 * s);\n\tconst b = srgbNonlinearTransform(-.0041960863 * l - .7034186147 * m + 1.707614701 * s);\n\treturn [\n\t\tr * 255,\n\t\tg * 255,\n\t\tb * 255\n\t];\n};\nconvert$1.oklch.oklab = function(oklch) {\n\treturn convert$1.lch.lab(oklch);\n};\nconvert$1.lab.xyz = function(lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > LAB_FT ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > LAB_FT ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > LAB_FT ? z2 : (z - 16 / 116) / 7.787;\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\treturn [\n\t\tx,\n\t\ty,\n\t\tz\n\t];\n};\nconvert$1.lab.lch = function(lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\th = Math.atan2(b, a) * 360 / 2 / Math.PI;\n\tif (h < 0) h += 360;\n\treturn [\n\t\tl,\n\t\tMath.sqrt(a * a + b * b),\n\t\th\n\t];\n};\nconvert$1.lch.lab = function(lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst hr = lch[2] / 360 * 2 * Math.PI;\n\treturn [\n\t\tl,\n\t\tc * Math.cos(hr),\n\t\tc * Math.sin(hr)\n\t];\n};\nconvert$1.rgb.ansi16 = function(args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert$1.rgb.hsv(args)[2] : saturation;\n\tvalue = Math.round(value / 50);\n\tif (value === 0) return 30;\n\tlet ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));\n\tif (value === 2) ansi += 60;\n\treturn ansi;\n};\nconvert$1.hsv.ansi16 = function(args) {\n\treturn convert$1.rgb.ansi16(convert$1.hsv.rgb(args), args[2]);\n};\nconvert$1.rgb.ansi256 = function(args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\tif (r >> 4 === g >> 4 && g >> 4 === b >> 4) {\n\t\tif (r < 8) return 16;\n\t\tif (r > 248) return 231;\n\t\treturn Math.round((r - 8) / 247 * 24) + 232;\n\t}\n\treturn 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);\n};\nconvert$1.ansi16.rgb = function(args) {\n\targs = args[0];\n\tlet color = args % 10;\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) color += 3.5;\n\t\tcolor = color / 10.5 * 255;\n\t\treturn [\n\t\t\tcolor,\n\t\t\tcolor,\n\t\t\tcolor\n\t\t];\n\t}\n\tconst mult = (Math.trunc(args > 50) + 1) * .5;\n\treturn [\n\t\t(color & 1) * mult * 255,\n\t\t(color >> 1 & 1) * mult * 255,\n\t\t(color >> 2 & 1) * mult * 255\n\t];\n};\nconvert$1.ansi256.rgb = function(args) {\n\targs = args[0];\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [\n\t\t\tc,\n\t\t\tc,\n\t\t\tc\n\t\t];\n\t}\n\targs -= 16;\n\tlet rem;\n\treturn [\n\t\tMath.floor(args / 36) / 5 * 255,\n\t\tMath.floor((rem = args % 36) / 6) / 5 * 255,\n\t\trem % 6 / 5 * 255\n\t];\n};\nconvert$1.rgb.hex = function(args) {\n\tconst string = (((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255)).toString(16).toUpperCase();\n\treturn \"000000\".slice(string.length) + string;\n};\nconvert$1.hex.rgb = function(args) {\n\tconst match = args.toString(16).match(/[a-f\\d]{6}|[a-f\\d]{3}/i);\n\tif (!match) return [\n\t\t0,\n\t\t0,\n\t\t0\n\t];\n\tlet colorString = match[0];\n\tif (match[0].length === 3) colorString = [...colorString].map((char) => char + char).join(\"\");\n\tconst integer = Number.parseInt(colorString, 16);\n\treturn [\n\t\tinteger >> 16 & 255,\n\t\tinteger >> 8 & 255,\n\t\tinteger & 255\n\t];\n};\nconvert$1.rgb.hcg = function(rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = max - min;\n\tlet hue;\n\tconst grayscale = chroma < 1 ? min / (1 - chroma) : 0;\n\tif (chroma <= 0) hue = 0;\n\telse if (max === r) hue = (g - b) / chroma % 6;\n\telse if (max === g) hue = 2 + (b - r) / chroma;\n\telse hue = 4 + (r - g) / chroma;\n\thue /= 6;\n\thue %= 1;\n\treturn [\n\t\thue * 360,\n\t\tchroma * 100,\n\t\tgrayscale * 100\n\t];\n};\nconvert$1.hsl.hcg = function(hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tconst c = l < .5 ? 2 * s * l : 2 * s * (1 - l);\n\tlet f = 0;\n\tif (c < 1) f = (l - .5 * c) / (1 - c);\n\treturn [\n\t\thsl[0],\n\t\tc * 100,\n\t\tf * 100\n\t];\n};\nconvert$1.hsv.hcg = function(hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst c = s * v;\n\tlet f = 0;\n\tif (c < 1) f = (v - c) / (1 - c);\n\treturn [\n\t\thsv[0],\n\t\tc * 100,\n\t\tf * 100\n\t];\n};\nconvert$1.hcg.rgb = function(hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tif (c === 0) return [\n\t\tg * 255,\n\t\tg * 255,\n\t\tg * 255\n\t];\n\tconst pure = [\n\t\t0,\n\t\t0,\n\t\t0\n\t];\n\tconst hi = h % 1 * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1;\n\t\t\tpure[1] = v;\n\t\t\tpure[2] = 0;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tpure[0] = w;\n\t\t\tpure[1] = 1;\n\t\t\tpure[2] = 0;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tpure[0] = 0;\n\t\t\tpure[1] = 1;\n\t\t\tpure[2] = v;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tpure[0] = 0;\n\t\t\tpure[1] = w;\n\t\t\tpure[2] = 1;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tpure[0] = v;\n\t\t\tpure[1] = 0;\n\t\t\tpure[2] = 1;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tpure[0] = 1;\n\t\t\tpure[1] = 0;\n\t\t\tpure[2] = w;\n\t}\n\tmg = (1 - c) * g;\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\nconvert$1.hcg.hsv = function(hcg) {\n\tconst c = hcg[1] / 100;\n\tconst v = c + hcg[2] / 100 * (1 - c);\n\tlet f = 0;\n\tif (v > 0) f = c / v;\n\treturn [\n\t\thcg[0],\n\t\tf * 100,\n\t\tv * 100\n\t];\n};\nconvert$1.hcg.hsl = function(hcg) {\n\tconst c = hcg[1] / 100;\n\tconst l = hcg[2] / 100 * (1 - c) + .5 * c;\n\tlet s = 0;\n\tif (l > 0 && l < .5) s = c / (2 * l);\n\telse if (l >= .5 && l < 1) s = c / (2 * (1 - l));\n\treturn [\n\t\thcg[0],\n\t\ts * 100,\n\t\tl * 100\n\t];\n};\nconvert$1.hcg.hwb = function(hcg) {\n\tconst c = hcg[1] / 100;\n\tconst v = c + hcg[2] / 100 * (1 - c);\n\treturn [\n\t\thcg[0],\n\t\t(v - c) * 100,\n\t\t(1 - v) * 100\n\t];\n};\nconvert$1.hwb.hcg = function(hwb) {\n\tconst w = hwb[1] / 100;\n\tconst v = 1 - hwb[2] / 100;\n\tconst c = v - w;\n\tlet g = 0;\n\tif (c < 1) g = (v - c) / (1 - c);\n\treturn [\n\t\thwb[0],\n\t\tc * 100,\n\t\tg * 100\n\t];\n};\nconvert$1.apple.rgb = function(apple) {\n\treturn [\n\t\tapple[0] / 65535 * 255,\n\t\tapple[1] / 65535 * 255,\n\t\tapple[2] / 65535 * 255\n\t];\n};\nconvert$1.rgb.apple = function(rgb) {\n\treturn [\n\t\trgb[0] / 255 * 65535,\n\t\trgb[1] / 255 * 65535,\n\t\trgb[2] / 255 * 65535\n\t];\n};\nconvert$1.gray.rgb = function(args) {\n\treturn [\n\t\targs[0] / 100 * 255,\n\t\targs[0] / 100 * 255,\n\t\targs[0] / 100 * 255\n\t];\n};\nconvert$1.gray.hsl = function(args) {\n\treturn [\n\t\t0,\n\t\t0,\n\t\targs[0]\n\t];\n};\nconvert$1.gray.hsv = convert$1.gray.hsl;\nconvert$1.gray.hwb = function(gray) {\n\treturn [\n\t\t0,\n\t\t100,\n\t\tgray[0]\n\t];\n};\nconvert$1.gray.cmyk = function(gray) {\n\treturn [\n\t\t0,\n\t\t0,\n\t\t0,\n\t\tgray[0]\n\t];\n};\nconvert$1.gray.lab = function(gray) {\n\treturn [\n\t\tgray[0],\n\t\t0,\n\t\t0\n\t];\n};\nconvert$1.gray.hex = function(gray) {\n\tconst value = Math.round(gray[0] / 100 * 255) & 255;\n\tconst string = ((value << 16) + (value << 8) + value).toString(16).toUpperCase();\n\treturn \"000000\".slice(string.length) + string;\n};\nconvert$1.rgb.gray = function(rgb) {\n\treturn [(rgb[0] + rgb[1] + rgb[2]) / 3 / 255 * 100];\n};\n\n//#endregion\n//#region ../../node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/route.js\nfunction buildGraph() {\n\tconst graph = {};\n\tconst models = Object.keys(conversions_default);\n\tfor (let { length } = models, i = 0; i < length; i++) graph[models[i]] = {\n\t\tdistance: -1,\n\t\tparent: null\n\t};\n\treturn graph;\n}\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel];\n\tgraph[fromModel].distance = 0;\n\twhile (queue.length > 0) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions_default[current]);\n\t\tfor (let { length } = adjacents, i = 0; i < length; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\treturn graph;\n}\nfunction link(from, to) {\n\treturn function(args) {\n\t\treturn to(from(args));\n\t};\n}\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions_default[graph[toModel].parent][toModel];\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions_default[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\tfn.conversion = path;\n\treturn fn;\n}\nfunction route(fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\tconst models = Object.keys(graph);\n\tfor (let { length } = models, i = 0; i < length; i++) {\n\t\tconst toModel = models[i];\n\t\tif (graph[toModel].parent === null) continue;\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\treturn conversion;\n}\nvar route_default = route;\n\n//#endregion\n//#region ../../node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/index.js\nconst convert = {};\nconst models = Object.keys(conversions_default);\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function(...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === void 0 || arg0 === null) return arg0;\n\t\tif (arg0.length > 1) args = arg0;\n\t\treturn fn(args);\n\t};\n\tif (\"conversion\" in fn) wrappedFn.conversion = fn.conversion;\n\treturn wrappedFn;\n}\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function(...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === void 0 || arg0 === null) return arg0;\n\t\tif (arg0.length > 1) args = arg0;\n\t\tconst result = fn(args);\n\t\tif (typeof result === \"object\") for (let { length } = result, i = 0; i < length; i++) result[i] = Math.round(result[i]);\n\t\treturn result;\n\t};\n\tif (\"conversion\" in fn) wrappedFn.conversion = fn.conversion;\n\treturn wrappedFn;\n}\nfor (const fromModel of models) {\n\tconvert[fromModel] = {};\n\tObject.defineProperty(convert[fromModel], \"channels\", { value: conversions_default[fromModel].channels });\n\tObject.defineProperty(convert[fromModel], \"labels\", { value: conversions_default[fromModel].labels });\n\tconst routes = route_default(fromModel);\n\tconst routeModels = Object.keys(routes);\n\tfor (const toModel of routeModels) {\n\t\tconst fn = routes[toModel];\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t}\n}\nvar color_convert_default = convert;\n\n//#endregion\n//#region ../../node_modules/.pnpm/color@5.0.3/node_modules/color/index.js\nconst skippedModels = [\n\t\"keyword\",\n\t\"gray\",\n\t\"hex\"\n];\nconst hashedModelKeys = {};\nfor (const model of Object.keys(color_convert_default)) hashedModelKeys[[...color_convert_default[model].labels].sort().join(\"\")] = model;\nconst limiters = {};\nfunction Color(object, model) {\n\tif (!(this instanceof Color)) return new Color(object, model);\n\tif (model && model in skippedModels) model = null;\n\tif (model && !(model in color_convert_default)) throw new Error(\"Unknown model: \" + model);\n\tlet i;\n\tlet channels;\n\tif (object == null) {\n\t\tthis.model = \"rgb\";\n\t\tthis.color = [\n\t\t\t0,\n\t\t\t0,\n\t\t\t0\n\t\t];\n\t\tthis.valpha = 1;\n\t} else if (object instanceof Color) {\n\t\tthis.model = object.model;\n\t\tthis.color = [...object.color];\n\t\tthis.valpha = object.valpha;\n\t} else if (typeof object === \"string\") {\n\t\tconst result = color_string_default.get(object);\n\t\tif (result === null) throw new Error(\"Unable to parse color from string: \" + object);\n\t\tthis.model = result.model;\n\t\tchannels = color_convert_default[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === \"number\" ? result.value[channels] : 1;\n\t} else if (object.length > 0) {\n\t\tthis.model = model || \"rgb\";\n\t\tchannels = color_convert_default[this.model].channels;\n\t\tthis.color = zeroArray(Array.prototype.slice.call(object, 0, channels), channels);\n\t\tthis.valpha = typeof object[channels] === \"number\" ? object[channels] : 1;\n\t} else if (typeof object === \"number\") {\n\t\tthis.model = \"rgb\";\n\t\tthis.color = [\n\t\t\tobject >> 16 & 255,\n\t\t\tobject >> 8 & 255,\n\t\t\tobject & 255\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\t\tconst keys = Object.keys(object);\n\t\tif (\"alpha\" in object) {\n\t\t\tkeys.splice(keys.indexOf(\"alpha\"), 1);\n\t\t\tthis.valpha = typeof object.alpha === \"number\" ? object.alpha : 0;\n\t\t}\n\t\tconst hashedKeys = keys.sort().join(\"\");\n\t\tif (!(hashedKeys in hashedModelKeys)) throw new Error(\"Unable to parse color from object: \" + JSON.stringify(object));\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\t\tconst { labels } = color_convert_default[this.model];\n\t\tconst color = [];\n\t\tfor (i = 0; i < labels.length; i++) color.push(object[labels[i]]);\n\t\tthis.color = zeroArray(color);\n\t}\n\tif (limiters[this.model]) {\n\t\tchannels = color_convert_default[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tconst limit = limiters[this.model][i];\n\t\t\tif (limit) this.color[i] = limit(this.color[i]);\n\t\t}\n\t}\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\tif (Object.freeze) Object.freeze(this);\n}\nColor.prototype = {\n\ttoString() {\n\t\treturn this.string();\n\t},\n\ttoJSON() {\n\t\treturn this[this.model]();\n\t},\n\tstring(places) {\n\t\tlet self = this.model in color_string_default.to ? this : this.rgb();\n\t\tself = self.round(typeof places === \"number\" ? places : 1);\n\t\tconst arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn color_string_default.to[self.model](...arguments_);\n\t},\n\tpercentString(places) {\n\t\tconst self = this.rgb().round(typeof places === \"number\" ? places : 1);\n\t\tconst arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn color_string_default.to.rgb.percent(...arguments_);\n\t},\n\tarray() {\n\t\treturn this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];\n\t},\n\tobject() {\n\t\tconst result = {};\n\t\tconst { channels } = color_convert_default[this.model];\n\t\tconst { labels } = color_convert_default[this.model];\n\t\tfor (let i = 0; i < channels; i++) result[labels[i]] = this.color[i];\n\t\tif (this.valpha !== 1) result.alpha = this.valpha;\n\t\treturn result;\n\t},\n\tunitArray() {\n\t\tconst rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\t\tif (this.valpha !== 1) rgb.push(this.valpha);\n\t\treturn rgb;\n\t},\n\tunitObject() {\n\t\tconst rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\t\tif (this.valpha !== 1) rgb.alpha = this.valpha;\n\t\treturn rgb;\n\t},\n\tround(places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);\n\t},\n\talpha(value) {\n\t\tif (value !== void 0) return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);\n\t\treturn this.valpha;\n\t},\n\tred: getset(\"rgb\", 0, maxfn(255)),\n\tgreen: getset(\"rgb\", 1, maxfn(255)),\n\tblue: getset(\"rgb\", 2, maxfn(255)),\n\thue: getset([\n\t\t\"hsl\",\n\t\t\"hsv\",\n\t\t\"hsl\",\n\t\t\"hwb\",\n\t\t\"hcg\"\n\t], 0, (value) => (value % 360 + 360) % 360),\n\tsaturationl: getset(\"hsl\", 1, maxfn(100)),\n\tlightness: getset(\"hsl\", 2, maxfn(100)),\n\tsaturationv: getset(\"hsv\", 1, maxfn(100)),\n\tvalue: getset(\"hsv\", 2, maxfn(100)),\n\tchroma: getset(\"hcg\", 1, maxfn(100)),\n\tgray: getset(\"hcg\", 2, maxfn(100)),\n\twhite: getset(\"hwb\", 1, maxfn(100)),\n\twblack: getset(\"hwb\", 2, maxfn(100)),\n\tcyan: getset(\"cmyk\", 0, maxfn(100)),\n\tmagenta: getset(\"cmyk\", 1, maxfn(100)),\n\tyellow: getset(\"cmyk\", 2, maxfn(100)),\n\tblack: getset(\"cmyk\", 3, maxfn(100)),\n\tx: getset(\"xyz\", 0, maxfn(95.047)),\n\ty: getset(\"xyz\", 1, maxfn(100)),\n\tz: getset(\"xyz\", 2, maxfn(108.833)),\n\tl: getset(\"lab\", 0, maxfn(100)),\n\ta: getset(\"lab\", 1),\n\tb: getset(\"lab\", 2),\n\tkeyword(value) {\n\t\tif (value !== void 0) return new Color(value);\n\t\treturn color_convert_default[this.model].keyword(this.color);\n\t},\n\thex(value) {\n\t\tif (value !== void 0) return new Color(value);\n\t\treturn color_string_default.to.hex(...this.rgb().round().color);\n\t},\n\thexa(value) {\n\t\tif (value !== void 0) return new Color(value);\n\t\tconst rgbArray = this.rgb().round().color;\n\t\tlet alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();\n\t\tif (alphaHex.length === 1) alphaHex = \"0\" + alphaHex;\n\t\treturn color_string_default.to.hex(...rgbArray) + alphaHex;\n\t},\n\trgbNumber() {\n\t\tconst rgb = this.rgb().color;\n\t\treturn (rgb[0] & 255) << 16 | (rgb[1] & 255) << 8 | rgb[2] & 255;\n\t},\n\tluminosity() {\n\t\tconst rgb = this.rgb().color;\n\t\tconst lum = [];\n\t\tfor (const [i, element] of rgb.entries()) {\n\t\t\tconst chan = element / 255;\n\t\t\tlum[i] = chan <= .04045 ? chan / 12.92 : ((chan + .055) / 1.055) ** 2.4;\n\t\t}\n\t\treturn .2126 * lum[0] + .7152 * lum[1] + .0722 * lum[2];\n\t},\n\tcontrast(color2) {\n\t\tconst lum1 = this.luminosity();\n\t\tconst lum2 = color2.luminosity();\n\t\tif (lum1 > lum2) return (lum1 + .05) / (lum2 + .05);\n\t\treturn (lum2 + .05) / (lum1 + .05);\n\t},\n\tlevel(color2) {\n\t\tconst contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7) return \"AAA\";\n\t\treturn contrastRatio >= 4.5 ? \"AA\" : \"\";\n\t},\n\tisDark() {\n\t\tconst rgb = this.rgb().color;\n\t\treturn (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 1e4 < 128;\n\t},\n\tisLight() {\n\t\treturn !this.isDark();\n\t},\n\tnegate() {\n\t\tconst rgb = this.rgb();\n\t\tfor (let i = 0; i < 3; i++) rgb.color[i] = 255 - rgb.color[i];\n\t\treturn rgb;\n\t},\n\tlighten(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\tdarken(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\tsaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\tdesaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\twhiten(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\tblacken(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\tgrayscale() {\n\t\tconst rgb = this.rgb().color;\n\t\tconst value = rgb[0] * .3 + rgb[1] * .59 + rgb[2] * .11;\n\t\treturn Color.rgb(value, value, value);\n\t},\n\tfade(ratio) {\n\t\treturn this.alpha(this.valpha - this.valpha * ratio);\n\t},\n\topaquer(ratio) {\n\t\treturn this.alpha(this.valpha + this.valpha * ratio);\n\t},\n\trotate(degrees) {\n\t\tconst hsl = this.hsl();\n\t\tlet hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\tmix(mixinColor, weight) {\n\t\tif (!mixinColor || !mixinColor.rgb) throw new Error(\"Argument to \\\"mix\\\" was not a Color instance, but rather an instance of \" + typeof mixinColor);\n\t\tconst color1 = mixinColor.rgb();\n\t\tconst color2 = this.rgb();\n\t\tconst p = weight === void 0 ? .5 : weight;\n\t\tconst w = 2 * p - 1;\n\t\tconst a = color1.alpha() - color2.alpha();\n\t\tconst w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2;\n\t\tconst w2 = 1 - w1;\n\t\treturn Color.rgb(w1 * color1.red() + w2 * color2.red(), w1 * color1.green() + w2 * color2.green(), w1 * color1.blue() + w2 * color2.blue(), color1.alpha() * p + color2.alpha() * (1 - p));\n\t}\n};\nfor (const model of Object.keys(color_convert_default)) {\n\tif (skippedModels.includes(model)) continue;\n\tconst { channels } = color_convert_default[model];\n\tColor.prototype[model] = function(...arguments_) {\n\t\tif (this.model === model) return new Color(this);\n\t\tif (arguments_.length > 0) return new Color(arguments_, model);\n\t\treturn new Color([...assertArray(color_convert_default[this.model][model].raw(this.color)), this.valpha], model);\n\t};\n\tColor[model] = function(...arguments_) {\n\t\tlet color = arguments_[0];\n\t\tif (typeof color === \"number\") color = zeroArray(arguments_, channels);\n\t\treturn new Color(color, model);\n\t};\n}\nfunction roundTo(number, places) {\n\treturn Number(number.toFixed(places));\n}\nfunction roundToPlace(places) {\n\treturn function(number) {\n\t\treturn roundTo(number, places);\n\t};\n}\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\tfor (const m of model) (limiters[m] ||= [])[channel] = modifier;\n\tmodel = model[0];\n\treturn function(value) {\n\t\tlet result;\n\t\tif (value !== void 0) {\n\t\t\tif (modifier) value = modifier(value);\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = value;\n\t\t\treturn result;\n\t\t}\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) result = modifier(result);\n\t\treturn result;\n\t};\n}\nfunction maxfn(max) {\n\treturn function(v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\nfunction assertArray(value) {\n\treturn Array.isArray(value) ? value : [value];\n}\nfunction zeroArray(array, length) {\n\tfor (let i = 0; i < length; i++) if (typeof array[i] !== \"number\") array[i] = 0;\n\treturn array;\n}\nvar color_default = Color;\n\n//#endregion\n//#region src/theme/color.ts\n/**\n* Returns the most readable text color (black or white) for a given background color.\n* @param hexColor The background color in hex format.\n* @param black The hex value for black, used for contrast calculation (default is PALETTE.black).\n* @param white The hex value for white, used for contrast calculation (default is PALETTE.white).\n* @returns The hex value of the recommended text color for optimal contrast.\n* @example\n* // Returns '#000000' or '#ffffff' depending on the contrast with the background\n* getContrastTextColor('#ff0000');\n*/\nconst getContrastTextColor = (hexColor, black = PALETTE.black, white = PALETTE.white) => {\n\tlet bg;\n\ttry {\n\t\tbg = color_default(hexColor);\n\t} catch {\n\t\treturn white;\n\t}\n\tconst blackColor = color_default(black);\n\tconst whiteColor = color_default(white);\n\tconst contrastWithBlack = bg.contrast(blackColor);\n\treturn bg.contrast(whiteColor) > contrastWithBlack ? white : black;\n};\n/**\n* Generates a color scale value and its appropriate contrast text color.\n* @param baseColorHex The base color in hex format.\n* @param white The hex value for white, used for contrast calculation.\n* @param black The hex value for black, used for contrast calculation.\n* @param index The scale index (0 for base, higher for lighter/darker variants).\n* @param isDark Whether the base color is considered dark (true) or light (false).\n* @returns An object with the scaled color hex and the recommended onColor for text contrast.\n* @example\n* // Example usage:\n* // getScaleValue('#ff0000', '#ffffff', '#000000', 100, true);\n*/\nconst getScaleValue = (baseColorHex, white, black, index, isDark) => {\n\tconst color = color_default(baseColorHex);\n\tconst amount = index / 1e3;\n\tlet finalColorHex;\n\tif (index === 0) finalColorHex = color.hex();\n\telse if (isDark) finalColorHex = color.lighten(amount).hex();\n\telse finalColorHex = color.darken(amount).hex();\n\treturn {\n\t\tcolor: finalColorHex,\n\t\tonColor: getContrastTextColor(finalColorHex, black, white)\n\t};\n};\n/**\n* Creates a color scale object for a given color token, generating lighter or darker variants and their contrast text colors.\n* @param colorName The scalable color token name to use as the key for the scale.\n* @param baseColorHex The base color in hex format to generate the scale from.\n* @param white The hex value for white, used for contrast calculation.\n* @param black The hex value for black, used for contrast calculation.\n* @param isDark Whether the base color is considered dark (true) or light (false).\n* @returns An object containing the color scale and recommended contrast text colors for each variant.\n* @example\n* // Example usage:\n* // createColorScale('brand', '#ff0000', '#ffffff', '#000000', true);\n*/\nconst createColorScale = (colorName, baseColorHex, white, black, isDark) => ({\n\t[colorName]: getScaleValue(baseColorHex, white, black, 0, isDark),\n\t100: getScaleValue(baseColorHex, white, black, 100, isDark),\n\t200: getScaleValue(baseColorHex, white, black, 200, isDark),\n\t300: getScaleValue(baseColorHex, white, black, 300, isDark),\n\t400: getScaleValue(baseColorHex, white, black, 400, isDark),\n\t500: getScaleValue(baseColorHex, white, black, 500, isDark),\n\t600: getScaleValue(baseColorHex, white, black, 600, isDark),\n\t700: getScaleValue(baseColorHex, white, black, 700, isDark),\n\t800: getScaleValue(baseColorHex, white, black, 800, isDark),\n\t900: getScaleValue(baseColorHex, white, black, 900, isDark)\n});\n/**\n* Creates a color scale theme object for a given color token, automatically determining if the base color is dark or light.\n* @param colorName The scalable color token name to use as the key for the scale.\n* @param baseColorHex The base color in hex format to generate the scale from.\n* @param white The hex value for white, used for contrast calculation.\n* @param black The hex value for black, used for contrast calculation.\n* @returns An object containing the color scale and recommended contrast text colors for each variant.\n* @example\n* // Example usage:\n* // createColorScaleTheme('brand', '#ff0000', '#ffffff', '#000000');\n*/\nconst createColorScaleTheme = (colorName, baseColorHex, white, black) => {\n\treturn createColorScale(colorName, baseColorHex, white, black, color_default(baseColorHex).luminosity() < .5);\n};\nconst colorTheme = {\n\ttransparent: PALETTE.transparent,\n\tblack: createColorScaleTheme(\"black\", PALETTE.black, PALETTE.white, PALETTE.black),\n\twhite: createColorScaleTheme(\"white\", PALETTE.white, PALETTE.white, PALETTE.black),\n\tgray: createColorScaleTheme(\"gray\", PALETTE.gray, PALETTE.white, PALETTE.black),\n\tbrand: createColorScaleTheme(\"brand\", PALETTE.brand, PALETTE.white, PALETTE.black),\n\tinfo: createColorScaleTheme(\"info\", PALETTE.info, PALETTE.white, PALETTE.black),\n\tsuccess: createColorScaleTheme(\"success\", PALETTE.success, PALETTE.white, PALETTE.black),\n\twarning: createColorScaleTheme(\"warning\", PALETTE.warning, PALETTE.white, PALETTE.black),\n\terror: createColorScaleTheme(\"error\", PALETTE.error, PALETTE.white, PALETTE.black)\n};\n\n//#endregion\n//#region src/theme/font.ts\nconst fontTheme = {\n\tfamily: {\n\t\tbrand: \"\\\"Momo Trust Display\\\", system-ui, -apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, \\\"Helvetica Neue\\\", Arial, sans-serif\",\n\t\tsans: \"\\\"Inter Variable\\\", Inter, system-ui, -apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Roboto, \\\"Helvetica Neue\\\", Arial, sans-serif\",\n\t\tmono: \"\\\"SF Mono\\\", \\\"Fira Code Variable\\\", \\\"Fira Code\\\", \\\"Fira Mono\\\", \\\"Roboto Mono\\\", monospace\",\n\t\tserif: \"\\\"Roboto Serif Variable\\\", \\\"Roboto Serif\\\", Georgia, Cambria, \\\"Times New Roman\\\", Times, serif\"\n\t},\n\tweight: {\n\t\tlight: \"200\",\n\t\tregular: \"400\",\n\t\tmedium: \"500\",\n\t\tsemibold: \"600\",\n\t\tbold: \"700\",\n\t\textrabold: \"800\"\n\t},\n\tlineHeights: {\n\t\ttight: \"1.25\",\n\t\tnormal: \"1.5\",\n\t\tloose: \"1.75\"\n\t},\n\tsize: {\n\t\troot: \"16px\",\n\t\tbody: {\n\t\t\txsmall: \"0.75rem\",\n\t\t\tsmall: \"0.875rem\",\n\t\t\tmedium: \"1rem\",\n\t\t\tlarge: \"1.125rem\",\n\t\t\txlarge: \"1.25rem\",\n\t\t\txxlarge: \"1.5rem\"\n\t\t},\n\t\tlabel: {\n\t\t\txsmall: \"0.625rem\",\n\t\t\tsmall: \"0.75rem\",\n\t\t\tmedium: \"0.875rem\",\n\t\t\tlarge: \"1rem\",\n\t\t\txlarge: \"1.125rem\",\n\t\t\txxlarge: \"1.25rem\"\n\t\t},\n\t\ttitle: {\n\t\t\txsmall: \"1.125rem\",\n\t\t\tsmall: \"1.25rem\",\n\t\t\tmedium: \"1.5rem\",\n\t\t\tlarge: \"1.75rem\",\n\t\t\txlarge: \"2rem\",\n\t\t\txxlarge: \"2.5rem\"\n\t\t},\n\t\theadline: {\n\t\t\txsmall: \"1.5rem\",\n\t\t\tsmall: \"1.75rem\",\n\t\t\tmedium: \"2rem\",\n\t\t\tlarge: \"2.5rem\",\n\t\t\txlarge: \"3rem\",\n\t\t\txxlarge: \"4rem\"\n\t\t},\n\t\tdisplay: {\n\t\t\txsmall: \"2rem\",\n\t\t\tsmall: \"3rem\",\n\t\t\tmedium: \"4rem\",\n\t\t\tlarge: \"5rem\",\n\t\t\txlarge: \"6rem\",\n\t\t\txxlarge: \"8rem\"\n\t\t}\n\t}\n};\n\n//#endregion\n//#region src/theme/spacing.ts\nconst spacingTheme = {\n\tnone: \"0rem\",\n\txsmall: \"0.25rem\",\n\tsmall: \"0.5rem\",\n\tmedium: \"0.75rem\",\n\tlarge: \"1rem\",\n\txlarge: \"1.25rem\",\n\txxlarge: \"1.75rem\",\n\txxxlarge: \"2rem\",\n\txxxxlarge: \"3rem\"\n};\n\n//#endregion\n//#region src/theme.css.ts\nconst theme = createGlobalTheme(\":root\", pitto, {\n\tborder: borderTheme,\n\tfont: fontTheme,\n\tspacing: spacingTheme,\n\tcolor: colorTheme\n});\n\n//#endregion\nexport { BG_COLOR_TOKENS, COLOR_SCALES, COLOR_TOKEN_KEYS, PALETTE, PURE_COLOR_TOKENS, SCALABLE_COLOR_TOKENS, SPACING_TOKENS, borderContract, borderProperties, borderTheme, colorContract, colorProperties, colorTheme, createColorScale, createColorScaleTheme, fontContract, fontTheme, getContrastTextColor, getScaleValue, pitto, responsiveProperties, spacingContract, spacingProperties, spacingTheme, sprinkles, theme, typographyProperties };","var stylesheets = {};\nvar injectStyles = _ref => {\n var {\n fileScope,\n css\n } = _ref;\n var fileScopeId = fileScope.packageName ? [fileScope.packageName, fileScope.filePath].join('/') : fileScope.filePath;\n var stylesheet = stylesheets[fileScopeId];\n if (!stylesheet) {\n var styleEl = document.createElement('style');\n if (fileScope.packageName) {\n styleEl.setAttribute('data-package', fileScope.packageName);\n }\n styleEl.setAttribute('data-file', fileScope.filePath);\n styleEl.setAttribute('type', 'text/css');\n stylesheet = stylesheets[fileScopeId] = styleEl;\n document.head.appendChild(styleEl);\n }\n stylesheet.innerHTML = css;\n};\n\nexport { injectStyles };\n","function getVarName(variable) {\n var matches = variable.match(/^var\\((.*)\\)$/);\n if (matches) {\n return matches[1];\n }\n return variable;\n}\n\nfunction get(obj, path) {\n var result = obj;\n for (var key of path) {\n if (!(key in result)) {\n throw new Error(\"Path \".concat(path.join(' -> '), \" does not exist in object\"));\n }\n result = result[key];\n }\n return result;\n}\n\nfunction walkObject(obj, fn) {\n var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n var clone = {};\n for (var key in obj) {\n var _value = obj[key];\n var currentPath = [...path, key];\n if (typeof _value === 'string' || typeof _value === 'number' || _value == null) {\n clone[key] = fn(_value, currentPath);\n } else if (typeof _value === 'object' && !Array.isArray(_value)) {\n clone[key] = walkObject(_value, fn, currentPath);\n } else {\n console.warn(\"Skipping invalid key \\\"\".concat(currentPath.join('.'), \"\\\". Should be a string, number, null or object. Received: \\\"\").concat(Array.isArray(_value) ? 'Array' : typeof _value, \"\\\"\"));\n }\n }\n return clone;\n}\n\nexport { get, getVarName, walkObject };\n","/*! https://mths.be/cssesc v3.0.0 by @mathias */\n'use strict';\n\nvar object = {};\nvar hasOwnProperty = object.hasOwnProperty;\nvar merge = function merge(options, defaults) {\n\tif (!options) {\n\t\treturn defaults;\n\t}\n\tvar result = {};\n\tfor (var key in defaults) {\n\t\t// `if (defaults.hasOwnProperty(key) { … }` is not needed here, since\n\t\t// only recognized option names are used.\n\t\tresult[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];\n\t}\n\treturn result;\n};\n\nvar regexAnySingleEscape = /[ -,\\.\\/:-@\\[-\\^`\\{-~]/;\nvar regexSingleEscape = /[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/;\nvar regexAlwaysEscape = /['\"\\\\]/;\nvar regexExcessiveSpaces = /(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g;\n\n// https://mathiasbynens.be/notes/css-escapes#css\nvar cssesc = function cssesc(string, options) {\n\toptions = merge(options, cssesc.options);\n\tif (options.quotes != 'single' && options.quotes != 'double') {\n\t\toptions.quotes = 'single';\n\t}\n\tvar quote = options.quotes == 'double' ? '\"' : '\\'';\n\tvar isIdentifier = options.isIdentifier;\n\n\tvar firstChar = string.charAt(0);\n\tvar output = '';\n\tvar counter = 0;\n\tvar length = string.length;\n\twhile (counter < length) {\n\t\tvar character = string.charAt(counter++);\n\t\tvar codePoint = character.charCodeAt();\n\t\tvar value = void 0;\n\t\t// If it’s not a printable ASCII character…\n\t\tif (codePoint < 0x20 || codePoint > 0x7E) {\n\t\t\tif (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {\n\t\t\t\t// It’s a high surrogate, and there is a next character.\n\t\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) {\n\t\t\t\t\t// next character is low surrogate\n\t\t\t\t\tcodePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;\n\t\t\t\t} else {\n\t\t\t\t\t// It’s an unmatched surrogate; only append this code unit, in case\n\t\t\t\t\t// the next code unit is the high surrogate of a surrogate pair.\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t} else {\n\t\t\tif (options.escapeEverything) {\n\t\t\t\tif (regexAnySingleEscape.test(character)) {\n\t\t\t\t\tvalue = '\\\\' + character;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t\t}\n\t\t\t} else if (/[\\t\\n\\f\\r\\x0B]/.test(character)) {\n\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t} else if (character == '\\\\' || !isIdentifier && (character == '\"' && quote == character || character == '\\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {\n\t\t\t\tvalue = '\\\\' + character;\n\t\t\t} else {\n\t\t\t\tvalue = character;\n\t\t\t}\n\t\t}\n\t\toutput += value;\n\t}\n\n\tif (isIdentifier) {\n\t\tif (/^-[-\\d]/.test(output)) {\n\t\t\toutput = '\\\\-' + output.slice(1);\n\t\t} else if (/\\d/.test(firstChar)) {\n\t\t\toutput = '\\\\3' + firstChar + ' ' + output.slice(1);\n\t\t}\n\t}\n\n\t// Remove spaces after `\\HEX` escapes that are not followed by a hex digit,\n\t// since they’re redundant. Note that this is only possible if the escape\n\t// sequence isn’t preceded by an odd number of backslashes.\n\toutput = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {\n\t\tif ($1 && $1.length % 2) {\n\t\t\t// It’s not safe to remove the space, so don’t.\n\t\t\treturn $0;\n\t\t}\n\t\t// Strip the space.\n\t\treturn ($1 || '') + $2;\n\t});\n\n\tif (!isIdentifier && options.wrap) {\n\t\treturn quote + output + quote;\n\t}\n\treturn output;\n};\n\n// Expose default options (so they can be overridden globally).\ncssesc.options = {\n\t'escapeEverything': false,\n\t'isIdentifier': false,\n\t'quotes': 'single',\n\t'wrap': false\n};\n\ncssesc.version = '3.0.0';\n\nmodule.exports = cssesc;\n","// src/index.ts\nvar AhoCorasick = class {\n constructor(keywords) {\n const { failure, gotoFn, output } = this._buildTables(keywords);\n this.gotoFn = gotoFn;\n this.output = output;\n this.failure = failure;\n }\n _buildTables(keywords) {\n const gotoFn = {\n 0: {}\n };\n const output = {};\n let state = 0;\n for (const word of keywords) {\n let curr = 0;\n for (const l of word) {\n if (gotoFn[curr] && l in gotoFn[curr]) {\n curr = gotoFn[curr][l];\n } else {\n state++;\n gotoFn[curr][l] = state;\n gotoFn[state] = {};\n curr = state;\n output[state] = [];\n }\n }\n output[curr].push(word);\n }\n const failure = {};\n const xs = [];\n for (const l in gotoFn[0]) {\n const state2 = gotoFn[0][l];\n failure[state2] = 0;\n xs.push(state2);\n }\n while (xs.length > 0) {\n const r = xs.shift();\n if (r !== void 0) {\n for (const l in gotoFn[r]) {\n const s = gotoFn[r][l];\n xs.push(s);\n let state2 = failure[r];\n while (state2 > 0 && !(l in gotoFn[state2])) {\n state2 = failure[state2];\n }\n if (l in gotoFn[state2]) {\n const fs = gotoFn[state2][l];\n failure[s] = fs;\n output[s] = [...output[s], ...output[fs]];\n } else {\n failure[s] = 0;\n }\n }\n }\n }\n return {\n gotoFn,\n output,\n failure\n };\n }\n search(str) {\n let state = 0;\n const results = [];\n for (let i = 0; i < str.length; i++) {\n const l = str[i];\n while (state > 0 && !(l in this.gotoFn[state])) {\n state = this.failure[state];\n }\n if (!(l in this.gotoFn[state])) {\n continue;\n }\n state = this.gotoFn[state][l];\n if (this.output[state].length > 0) {\n const foundStrs = this.output[state];\n results.push([i, foundStrs]);\n }\n }\n return results;\n }\n match(str) {\n let state = 0;\n for (let i = 0; i < str.length; i++) {\n const l = str[i];\n while (state > 0 && !(l in this.gotoFn[state])) {\n state = this.failure[state];\n }\n if (!(l in this.gotoFn[state])) {\n continue;\n }\n state = this.gotoFn[state][l];\n if (this.output[state].length > 0) {\n return true;\n }\n }\n return false;\n }\n};\nexport {\n AhoCorasick as default\n};\n","var mockAdapter = {\n appendCss: () => {},\n registerClassName: () => {},\n onEndFileScope: () => {},\n registerComposition: () => {},\n markCompositionUsed: () => {},\n getIdentOption: () => process.env.NODE_ENV === 'production' ? 'short' : 'debug'\n};\nvar adapterStack = [mockAdapter];\nvar currentAdapter = () => {\n if (adapterStack.length < 1) {\n throw new Error('No adapter configured');\n }\n return adapterStack[adapterStack.length - 1];\n};\nvar hasConfiguredAdapter = false;\nvar setAdapterIfNotSet = newAdapter => {\n if (!hasConfiguredAdapter) {\n setAdapter(newAdapter);\n }\n};\nvar setAdapter = newAdapter => {\n if (!newAdapter) {\n throw new Error('No adapter provided when calling \"setAdapter\"');\n }\n hasConfiguredAdapter = true;\n adapterStack.push(newAdapter);\n};\nvar removeAdapter = () => {\n adapterStack.pop();\n};\nvar appendCss = function appendCss() {\n return currentAdapter().appendCss(...arguments);\n};\nvar registerClassName = function registerClassName() {\n return currentAdapter().registerClassName(...arguments);\n};\nvar registerComposition = function registerComposition() {\n return currentAdapter().registerComposition(...arguments);\n};\nvar markCompositionUsed = function markCompositionUsed() {\n return currentAdapter().markCompositionUsed(...arguments);\n};\nvar onBeginFileScope = function onBeginFileScope() {\n var _currentAdapter$onBeg, _currentAdapter;\n for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {\n props[_key] = arguments[_key];\n }\n return (_currentAdapter$onBeg = (_currentAdapter = currentAdapter()).onBeginFileScope) === null || _currentAdapter$onBeg === void 0 ? void 0 : _currentAdapter$onBeg.call(_currentAdapter, ...props);\n};\nvar onEndFileScope = function onEndFileScope() {\n return currentAdapter().onEndFileScope(...arguments);\n};\nvar getIdentOption = function getIdentOption() {\n var adapter = currentAdapter();\n\n // Backwards compatibility with old versions of the integration package\n if (!('getIdentOption' in adapter)) {\n return process.env.NODE_ENV === 'production' ? 'short' : 'debug';\n }\n return adapter.getIdentOption(...arguments);\n};\n\nexport { appendCss, getIdentOption, markCompositionUsed, mockAdapter, onBeginFileScope, onEndFileScope, registerClassName, registerComposition, removeAdapter, setAdapter, setAdapterIfNotSet };\n","function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\n\nexport { _taggedTemplateLiteral as _ };\n","export var SelectorType;\n(function (SelectorType) {\n SelectorType[\"Attribute\"] = \"attribute\";\n SelectorType[\"Pseudo\"] = \"pseudo\";\n SelectorType[\"PseudoElement\"] = \"pseudo-element\";\n SelectorType[\"Tag\"] = \"tag\";\n SelectorType[\"Universal\"] = \"universal\";\n // Traversals\n SelectorType[\"Adjacent\"] = \"adjacent\";\n SelectorType[\"Child\"] = \"child\";\n SelectorType[\"Descendant\"] = \"descendant\";\n SelectorType[\"Parent\"] = \"parent\";\n SelectorType[\"Sibling\"] = \"sibling\";\n SelectorType[\"ColumnCombinator\"] = \"column-combinator\";\n})(SelectorType || (SelectorType = {}));\n/**\n * Modes for ignore case.\n *\n * This could be updated to an enum, and the object is\n * the current stand-in that will allow code to be updated\n * without big changes.\n */\nexport const IgnoreCaseMode = {\n Unknown: null,\n QuirksMode: \"quirks\",\n IgnoreCase: true,\n CaseSensitive: false,\n};\nexport var AttributeAction;\n(function (AttributeAction) {\n AttributeAction[\"Any\"] = \"any\";\n AttributeAction[\"Element\"] = \"element\";\n AttributeAction[\"End\"] = \"end\";\n AttributeAction[\"Equals\"] = \"equals\";\n AttributeAction[\"Exists\"] = \"exists\";\n AttributeAction[\"Hyphen\"] = \"hyphen\";\n AttributeAction[\"Not\"] = \"not\";\n AttributeAction[\"Start\"] = \"start\";\n})(AttributeAction || (AttributeAction = {}));\n","import { SelectorType, AttributeAction, } from \"./types\";\nconst reName = /^[^\\\\#]?(?:\\\\(?:[\\da-f]{1,6}\\s?|.)|[\\w\\-\\u00b0-\\uFFFF])+/;\nconst reEscape = /\\\\([\\da-f]{1,6}\\s?|(\\s)|.)/gi;\nconst actionTypes = new Map([\n [126 /* Tilde */, AttributeAction.Element],\n [94 /* Circumflex */, AttributeAction.Start],\n [36 /* Dollar */, AttributeAction.End],\n [42 /* Asterisk */, AttributeAction.Any],\n [33 /* ExclamationMark */, AttributeAction.Not],\n [124 /* Pipe */, AttributeAction.Hyphen],\n]);\n// Pseudos, whose data property is parsed as well.\nconst unpackPseudos = new Set([\n \"has\",\n \"not\",\n \"matches\",\n \"is\",\n \"where\",\n \"host\",\n \"host-context\",\n]);\n/**\n * Checks whether a specific selector is a traversal.\n * This is useful eg. in swapping the order of elements that\n * are not traversals.\n *\n * @param selector Selector to check.\n */\nexport function isTraversal(selector) {\n switch (selector.type) {\n case SelectorType.Adjacent:\n case SelectorType.Child:\n case SelectorType.Descendant:\n case SelectorType.Parent:\n case SelectorType.Sibling:\n case SelectorType.ColumnCombinator:\n return true;\n default:\n return false;\n }\n}\nconst stripQuotesFromPseudos = new Set([\"contains\", \"icontains\"]);\n// Unescape function taken from https://github.com/jquery/sizzle/blob/master/src/sizzle.js#L152\nfunction funescape(_, escaped, escapedWhitespace) {\n const high = parseInt(escaped, 16) - 0x10000;\n // NaN means non-codepoint\n return high !== high || escapedWhitespace\n ? escaped\n : high < 0\n ? // BMP codepoint\n String.fromCharCode(high + 0x10000)\n : // Supplemental Plane codepoint (surrogate pair)\n String.fromCharCode((high >> 10) | 0xd800, (high & 0x3ff) | 0xdc00);\n}\nfunction unescapeCSS(str) {\n return str.replace(reEscape, funescape);\n}\nfunction isQuote(c) {\n return c === 39 /* SingleQuote */ || c === 34 /* DoubleQuote */;\n}\nfunction isWhitespace(c) {\n return (c === 32 /* Space */ ||\n c === 9 /* Tab */ ||\n c === 10 /* NewLine */ ||\n c === 12 /* FormFeed */ ||\n c === 13 /* CarriageReturn */);\n}\n/**\n * Parses `selector`, optionally with the passed `options`.\n *\n * @param selector Selector to parse.\n * @param options Options for parsing.\n * @returns Returns a two-dimensional array.\n * The first dimension represents selectors separated by commas (eg. `sub1, sub2`),\n * the second contains the relevant tokens for that selector.\n */\nexport function parse(selector) {\n const subselects = [];\n const endIndex = parseSelector(subselects, `${selector}`, 0);\n if (endIndex < selector.length) {\n throw new Error(`Unmatched selector: ${selector.slice(endIndex)}`);\n }\n return subselects;\n}\nfunction parseSelector(subselects, selector, selectorIndex) {\n let tokens = [];\n function getName(offset) {\n const match = selector.slice(selectorIndex + offset).match(reName);\n if (!match) {\n throw new Error(`Expected name, found ${selector.slice(selectorIndex)}`);\n }\n const [name] = match;\n selectorIndex += offset + name.length;\n return unescapeCSS(name);\n }\n function stripWhitespace(offset) {\n selectorIndex += offset;\n while (selectorIndex < selector.length &&\n isWhitespace(selector.charCodeAt(selectorIndex))) {\n selectorIndex++;\n }\n }\n function readValueWithParenthesis() {\n selectorIndex += 1;\n const start = selectorIndex;\n let counter = 1;\n for (; counter > 0 && selectorIndex < selector.length; selectorIndex++) {\n if (selector.charCodeAt(selectorIndex) ===\n 40 /* LeftParenthesis */ &&\n !isEscaped(selectorIndex)) {\n counter++;\n }\n else if (selector.charCodeAt(selectorIndex) ===\n 41 /* RightParenthesis */ &&\n !isEscaped(selectorIndex)) {\n counter--;\n }\n }\n if (counter) {\n throw new Error(\"Parenthesis not matched\");\n }\n return unescapeCSS(selector.slice(start, selectorIndex - 1));\n }\n function isEscaped(pos) {\n let slashCount = 0;\n while (selector.charCodeAt(--pos) === 92 /* BackSlash */)\n slashCount++;\n return (slashCount & 1) === 1;\n }\n function ensureNotTraversal() {\n if (tokens.length > 0 && isTraversal(tokens[tokens.length - 1])) {\n throw new Error(\"Did not expect successive traversals.\");\n }\n }\n function addTraversal(type) {\n if (tokens.length > 0 &&\n tokens[tokens.length - 1].type === SelectorType.Descendant) {\n tokens[tokens.length - 1].type = type;\n return;\n }\n ensureNotTraversal();\n tokens.push({ type });\n }\n function addSpecialAttribute(name, action) {\n tokens.push({\n type: SelectorType.Attribute,\n name,\n action,\n value: getName(1),\n namespace: null,\n ignoreCase: \"quirks\",\n });\n }\n /**\n * We have finished parsing the current part of the selector.\n *\n * Remove descendant tokens at the end if they exist,\n * and return the last index, so that parsing can be\n * picked up from here.\n */\n function finalizeSubselector() {\n if (tokens.length &&\n tokens[tokens.length - 1].type === SelectorType.Descendant) {\n tokens.pop();\n }\n if (tokens.length === 0) {\n throw new Error(\"Empty sub-selector\");\n }\n subselects.push(tokens);\n }\n stripWhitespace(0);\n if (selector.length === selectorIndex) {\n return selectorIndex;\n }\n loop: while (selectorIndex < selector.length) {\n const firstChar = selector.charCodeAt(selectorIndex);\n switch (firstChar) {\n // Whitespace\n case 32 /* Space */:\n case 9 /* Tab */:\n case 10 /* NewLine */:\n case 12 /* FormFeed */:\n case 13 /* CarriageReturn */: {\n if (tokens.length === 0 ||\n tokens[0].type !== SelectorType.Descendant) {\n ensureNotTraversal();\n tokens.push({ type: SelectorType.Descendant });\n }\n stripWhitespace(1);\n break;\n }\n // Traversals\n case 62 /* GreaterThan */: {\n addTraversal(SelectorType.Child);\n stripWhitespace(1);\n break;\n }\n case 60 /* LessThan */: {\n addTraversal(SelectorType.Parent);\n stripWhitespace(1);\n break;\n }\n case 126 /* Tilde */: {\n addTraversal(SelectorType.Sibling);\n stripWhitespace(1);\n break;\n }\n case 43 /* Plus */: {\n addTraversal(SelectorType.Adjacent);\n stripWhitespace(1);\n break;\n }\n // Special attribute selectors: .class, #id\n case 46 /* Period */: {\n addSpecialAttribute(\"class\", AttributeAction.Element);\n break;\n }\n case 35 /* Hash */: {\n addSpecialAttribute(\"id\", AttributeAction.Equals);\n break;\n }\n case 91 /* LeftSquareBracket */: {\n stripWhitespace(1);\n // Determine attribute name and namespace\n let name;\n let namespace = null;\n if (selector.charCodeAt(selectorIndex) === 124 /* Pipe */) {\n // Equivalent to no namespace\n name = getName(1);\n }\n else if (selector.startsWith(\"*|\", selectorIndex)) {\n namespace = \"*\";\n name = getName(2);\n }\n else {\n name = getName(0);\n if (selector.charCodeAt(selectorIndex) === 124 /* Pipe */ &&\n selector.charCodeAt(selectorIndex + 1) !==\n 61 /* Equal */) {\n namespace = name;\n name = getName(1);\n }\n }\n stripWhitespace(0);\n // Determine comparison operation\n let action = AttributeAction.Exists;\n const possibleAction = actionTypes.get(selector.charCodeAt(selectorIndex));\n if (possibleAction) {\n action = possibleAction;\n if (selector.charCodeAt(selectorIndex + 1) !==\n 61 /* Equal */) {\n throw new Error(\"Expected `=`\");\n }\n stripWhitespace(2);\n }\n else if (selector.charCodeAt(selectorIndex) === 61 /* Equal */) {\n action = AttributeAction.Equals;\n stripWhitespace(1);\n }\n // Determine value\n let value = \"\";\n let ignoreCase = null;\n if (action !== \"exists\") {\n if (isQuote(selector.charCodeAt(selectorIndex))) {\n const quote = selector.charCodeAt(selectorIndex);\n let sectionEnd = selectorIndex + 1;\n while (sectionEnd < selector.length &&\n (selector.charCodeAt(sectionEnd) !== quote ||\n isEscaped(sectionEnd))) {\n sectionEnd += 1;\n }\n if (selector.charCodeAt(sectionEnd) !== quote) {\n throw new Error(\"Attribute value didn't end\");\n }\n value = unescapeCSS(selector.slice(selectorIndex + 1, sectionEnd));\n selectorIndex = sectionEnd + 1;\n }\n else {\n const valueStart = selectorIndex;\n while (selectorIndex < selector.length &&\n ((!isWhitespace(selector.charCodeAt(selectorIndex)) &&\n selector.charCodeAt(selectorIndex) !==\n 93 /* RightSquareBracket */) ||\n isEscaped(selectorIndex))) {\n selectorIndex += 1;\n }\n value = unescapeCSS(selector.slice(valueStart, selectorIndex));\n }\n stripWhitespace(0);\n // See if we have a force ignore flag\n const forceIgnore = selector.charCodeAt(selectorIndex) | 0x20;\n // If the forceIgnore flag is set (either `i` or `s`), use that value\n if (forceIgnore === 115 /* LowerS */) {\n ignoreCase = false;\n stripWhitespace(1);\n }\n else if (forceIgnore === 105 /* LowerI */) {\n ignoreCase = true;\n stripWhitespace(1);\n }\n }\n if (selector.charCodeAt(selectorIndex) !==\n 93 /* RightSquareBracket */) {\n throw new Error(\"Attribute selector didn't terminate\");\n }\n selectorIndex += 1;\n const attributeSelector = {\n type: SelectorType.Attribute,\n name,\n action,\n value,\n namespace,\n ignoreCase,\n };\n tokens.push(attributeSelector);\n break;\n }\n case 58 /* Colon */: {\n if (selector.charCodeAt(selectorIndex + 1) === 58 /* Colon */) {\n tokens.push({\n type: SelectorType.PseudoElement,\n name: getName(2).toLowerCase(),\n data: selector.charCodeAt(selectorIndex) ===\n 40 /* LeftParenthesis */\n ? readValueWithParenthesis()\n : null,\n });\n continue;\n }\n const name = getName(1).toLowerCase();\n let data = null;\n if (selector.charCodeAt(selectorIndex) ===\n 40 /* LeftParenthesis */) {\n if (unpackPseudos.has(name)) {\n if (isQuote(selector.charCodeAt(selectorIndex + 1))) {\n throw new Error(`Pseudo-selector ${name} cannot be quoted`);\n }\n data = [];\n selectorIndex = parseSelector(data, selector, selectorIndex + 1);\n if (selector.charCodeAt(selectorIndex) !==\n 41 /* RightParenthesis */) {\n throw new Error(`Missing closing parenthesis in :${name} (${selector})`);\n }\n selectorIndex += 1;\n }\n else {\n data = readValueWithParenthesis();\n if (stripQuotesFromPseudos.has(name)) {\n const quot = data.charCodeAt(0);\n if (quot === data.charCodeAt(data.length - 1) &&\n isQuote(quot)) {\n data = data.slice(1, -1);\n }\n }\n data = unescapeCSS(data);\n }\n }\n tokens.push({ type: SelectorType.Pseudo, name, data });\n break;\n }\n case 44 /* Comma */: {\n finalizeSubselector();\n tokens = [];\n stripWhitespace(1);\n break;\n }\n default: {\n if (selector.startsWith(\"/*\", selectorIndex)) {\n const endIndex = selector.indexOf(\"*/\", selectorIndex + 2);\n if (endIndex < 0) {\n throw new Error(\"Comment was not terminated\");\n }\n selectorIndex = endIndex + 2;\n // Remove leading whitespace\n if (tokens.length === 0) {\n stripWhitespace(0);\n }\n break;\n }\n let namespace = null;\n let name;\n if (firstChar === 42 /* Asterisk */) {\n selectorIndex += 1;\n name = \"*\";\n }\n else if (firstChar === 124 /* Pipe */) {\n name = \"\";\n if (selector.charCodeAt(selectorIndex + 1) === 124 /* Pipe */) {\n addTraversal(SelectorType.ColumnCombinator);\n stripWhitespace(2);\n break;\n }\n }\n else if (reName.test(selector.slice(selectorIndex))) {\n name = getName(0);\n }\n else {\n break loop;\n }\n if (selector.charCodeAt(selectorIndex) === 124 /* Pipe */ &&\n selector.charCodeAt(selectorIndex + 1) !== 124 /* Pipe */) {\n namespace = name;\n if (selector.charCodeAt(selectorIndex + 1) ===\n 42 /* Asterisk */) {\n name = \"*\";\n selectorIndex += 2;\n }\n else {\n name = getName(1);\n }\n }\n tokens.push(name === \"*\"\n ? { type: SelectorType.Universal, namespace }\n : { type: SelectorType.Tag, name, namespace });\n }\n }\n }\n finalizeSubselector();\n return selectorIndex;\n}\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nconst dedent = createDedent({});\nexport default dedent;\nfunction createDedent(options) {\n dedent.withOptions = newOptions => createDedent(_objectSpread(_objectSpread({}, options), newOptions));\n return dedent;\n function dedent(strings, ...values) {\n const raw = typeof strings === \"string\" ? [strings] : strings.raw;\n const {\n alignValues = false,\n escapeSpecialCharacters = Array.isArray(strings),\n trimWhitespace = true\n } = options;\n\n // first, perform interpolation\n let result = \"\";\n for (let i = 0; i < raw.length; i++) {\n let next = raw[i];\n if (escapeSpecialCharacters) {\n // handle escaped newlines, backticks, and interpolation characters\n next = next.replace(/\\\\\\n[ \\t]*/g, \"\").replace(/\\\\`/g, \"`\").replace(/\\\\\\$/g, \"$\").replace(/\\\\\\{/g, \"{\");\n }\n result += next;\n if (i < values.length) {\n const value = alignValues ? alignValue(values[i], result) : values[i];\n\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\n result += value;\n }\n }\n\n // now strip indentation\n const lines = result.split(\"\\n\");\n let mindent = null;\n for (const l of lines) {\n const m = l.match(/^(\\s+)\\S+/);\n if (m) {\n const indent = m[1].length;\n if (!mindent) {\n // this is the first indented line\n mindent = indent;\n } else {\n mindent = Math.min(mindent, indent);\n }\n }\n }\n if (mindent !== null) {\n const m = mindent; // appease TypeScript\n result = lines\n // https://github.com/typescript-eslint/typescript-eslint/issues/7140\n // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with\n .map(l => l[0] === \" \" || l[0] === \"\\t\" ? l.slice(m) : l).join(\"\\n\");\n }\n\n // dedent eats leading and trailing whitespace too\n if (trimWhitespace) {\n result = result.trim();\n }\n\n // handle escaped newlines at the end to ensure they don't get stripped too\n if (escapeSpecialCharacters) {\n result = result.replace(/\\\\n/g, \"\\n\");\n }\n\n // Workaround for Bun issue with Unicode characters\n // https://github.com/oven-sh/bun/issues/8745\n if (typeof Bun !== \"undefined\") {\n result = result.replace(\n // Matches e.g. \\\\u{1f60a} or \\\\u5F1F\n /\\\\u(?:\\{([\\da-fA-F]{1,6})\\}|([\\da-fA-F]{4}))/g, (_, braced, unbraced) => {\n var _ref;\n const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : \"\";\n return String.fromCodePoint(parseInt(hex, 16));\n });\n }\n return result;\n }\n}\n\n/**\n * Adjusts the indentation of a multi-line interpolated value to match the current line.\n */\nfunction alignValue(value, precedingText) {\n if (typeof value !== \"string\" || !value.includes(\"\\n\")) {\n return value;\n }\n const currentLine = precedingText.slice(precedingText.lastIndexOf(\"\\n\") + 1);\n const indentMatch = currentLine.match(/^(\\s+)/);\n if (indentMatch) {\n const indent = indentMatch[1];\n return value.replace(/\\n/g, `\\n${indent}`);\n }\n return value;\n}\n","/*! @license MediaQueryParser - MIT License - Tom Golden (github@tbjgolden.com) */\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\n\nvar weirdNewlines = /(\\u000D|\\u000C|\\u000D\\u000A)/g;\nvar nullOrSurrogates = /[\\u0000\\uD800-\\uDFFF]/g;\nvar commentRegex = /(\\/\\*)[\\s\\S]*?(\\*\\/)/g;\nvar lexicalAnalysis = function lexicalAnalysis(str, index) {\n if (index === void 0) {\n index = 0;\n }\n\n str = str.replace(weirdNewlines, '\\n').replace(nullOrSurrogates, \"\\uFFFD\");\n str = str.replace(commentRegex, '');\n var tokens = [];\n\n for (; index < str.length; index += 1) {\n var code = str.charCodeAt(index);\n\n if (code === 0x0009 || code === 0x0020 || code === 0x000a) {\n var code_1 = str.charCodeAt(++index);\n\n while (code_1 === 0x0009 || code_1 === 0x0020 || code_1 === 0x000a) {\n code_1 = str.charCodeAt(++index);\n }\n\n index -= 1;\n tokens.push({\n type: '<whitespace-token>'\n });\n } else if (code === 0x0022) {\n var result = consumeString(str, index);\n\n if (result === null) {\n return null;\n }\n\n var _a = __read(result, 2),\n lastIndex = _a[0],\n value = _a[1];\n\n tokens.push({\n type: '<string-token>',\n value: value\n });\n index = lastIndex;\n } else if (code === 0x0023) {\n if (index + 1 < str.length) {\n var nextCode = str.charCodeAt(index + 1);\n\n if (nextCode === 0x005f || nextCode >= 0x0041 && nextCode <= 0x005a || nextCode >= 0x0061 && nextCode <= 0x007a || nextCode >= 0x0080 || nextCode >= 0x0030 && nextCode <= 0x0039 || nextCode === 0x005c && index + 2 < str.length && str.charCodeAt(index + 2) !== 0x000a) {\n var flag = wouldStartIdentifier(str, index + 1) ? 'id' : 'unrestricted';\n var result = consumeIdentUnsafe(str, index + 1);\n\n if (result !== null) {\n var _b = __read(result, 2),\n lastIndex = _b[0],\n value = _b[1];\n\n tokens.push({\n type: '<hash-token>',\n value: value.toLowerCase(),\n flag: flag\n });\n index = lastIndex;\n continue;\n }\n }\n }\n\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else if (code === 0x0027) {\n var result = consumeString(str, index);\n\n if (result === null) {\n return null;\n }\n\n var _c = __read(result, 2),\n lastIndex = _c[0],\n value = _c[1];\n\n tokens.push({\n type: '<string-token>',\n value: value\n });\n index = lastIndex;\n } else if (code === 0x0028) {\n tokens.push({\n type: '<(-token>'\n });\n } else if (code === 0x0029) {\n tokens.push({\n type: '<)-token>'\n });\n } else if (code === 0x002b) {\n var plusNumeric = consumeNumeric(str, index);\n\n if (plusNumeric === null) {\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else {\n var _d = __read(plusNumeric, 2),\n lastIndex = _d[0],\n tokenTuple = _d[1];\n\n if (tokenTuple[0] === '<dimension-token>') {\n tokens.push({\n type: '<dimension-token>',\n value: tokenTuple[1],\n unit: tokenTuple[2].toLowerCase(),\n flag: 'number'\n });\n } else if (tokenTuple[0] === '<number-token>') {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: tokenTuple[2]\n });\n } else {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: 'number'\n });\n }\n\n index = lastIndex;\n }\n } else if (code === 0x002c) {\n tokens.push({\n type: '<comma-token>'\n });\n } else if (code === 0x002d) {\n var minusNumeric = consumeNumeric(str, index);\n\n if (minusNumeric !== null) {\n var _e = __read(minusNumeric, 2),\n lastIndex = _e[0],\n tokenTuple = _e[1];\n\n if (tokenTuple[0] === '<dimension-token>') {\n tokens.push({\n type: '<dimension-token>',\n value: tokenTuple[1],\n unit: tokenTuple[2].toLowerCase(),\n flag: 'number'\n });\n } else if (tokenTuple[0] === '<number-token>') {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: tokenTuple[2]\n });\n } else {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: 'number'\n });\n }\n\n index = lastIndex;\n continue;\n }\n\n if (index + 2 < str.length) {\n var nextCode = str.charCodeAt(index + 1);\n var nextNextCode = str.charCodeAt(index + 2);\n\n if (nextCode === 0x002d && nextNextCode === 0x003e) {\n tokens.push({\n type: '<CDC-token>'\n });\n index += 2;\n continue;\n }\n }\n\n var result = consumeIdentLike(str, index);\n\n if (result !== null) {\n var _f = __read(result, 3),\n lastIndex = _f[0],\n value = _f[1],\n type = _f[2];\n\n tokens.push({\n type: type,\n value: value\n });\n index = lastIndex;\n continue;\n }\n\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else if (code === 0x002e) {\n var minusNumeric = consumeNumeric(str, index);\n\n if (minusNumeric === null) {\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else {\n var _g = __read(minusNumeric, 2),\n lastIndex = _g[0],\n tokenTuple = _g[1];\n\n if (tokenTuple[0] === '<dimension-token>') {\n tokens.push({\n type: '<dimension-token>',\n value: tokenTuple[1],\n unit: tokenTuple[2].toLowerCase(),\n flag: 'number'\n });\n } else if (tokenTuple[0] === '<number-token>') {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: tokenTuple[2]\n });\n } else {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: 'number'\n });\n }\n\n index = lastIndex;\n continue;\n }\n } else if (code === 0x003a) {\n tokens.push({\n type: '<colon-token>'\n });\n } else if (code === 0x003b) {\n tokens.push({\n type: '<semicolon-token>'\n });\n } else if (code === 0x003c) {\n if (index + 3 < str.length) {\n var nextCode = str.charCodeAt(index + 1);\n var nextNextCode = str.charCodeAt(index + 2);\n var nextNextNextCode = str.charCodeAt(index + 3);\n\n if (nextCode === 0x0021 && nextNextCode === 0x002d && nextNextNextCode === 0x002d) {\n tokens.push({\n type: '<CDO-token>'\n });\n index += 3;\n continue;\n }\n }\n\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else if (code === 0x0040) {\n var result = consumeIdent(str, index + 1);\n\n if (result !== null) {\n var _h = __read(result, 2),\n lastIndex = _h[0],\n value = _h[1];\n\n tokens.push({\n type: '<at-keyword-token>',\n value: value.toLowerCase()\n });\n index = lastIndex;\n continue;\n }\n\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n } else if (code === 0x005b) {\n tokens.push({\n type: '<[-token>'\n });\n } else if (code === 0x005c) {\n var result = consumeEscape(str, index);\n\n if (result === null) {\n return null;\n }\n\n var _j = __read(result, 2),\n lastIndex = _j[0],\n value = _j[1];\n\n str = str.slice(0, index) + value + str.slice(lastIndex + 1);\n index -= 1;\n } else if (code === 0x005d) {\n tokens.push({\n type: '<]-token>'\n });\n } else if (code === 0x007b) {\n tokens.push({\n type: '<{-token>'\n });\n } else if (code === 0x007d) {\n tokens.push({\n type: '<}-token>'\n });\n } else if (code >= 0x0030 && code <= 0x0039) {\n var result = consumeNumeric(str, index);\n\n var _k = __read(result, 2),\n lastIndex = _k[0],\n tokenTuple = _k[1];\n\n if (tokenTuple[0] === '<dimension-token>') {\n tokens.push({\n type: '<dimension-token>',\n value: tokenTuple[1],\n unit: tokenTuple[2].toLowerCase(),\n flag: 'number'\n });\n } else if (tokenTuple[0] === '<number-token>') {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: tokenTuple[2]\n });\n } else {\n tokens.push({\n type: tokenTuple[0],\n value: tokenTuple[1],\n flag: 'number'\n });\n }\n\n index = lastIndex;\n } else if (code === 0x005f || code >= 0x0041 && code <= 0x005a || code >= 0x0061 && code <= 0x007a || code >= 0x0080) {\n var result = consumeIdentLike(str, index);\n\n if (result === null) {\n return null;\n }\n\n var _l = __read(result, 3),\n lastIndex = _l[0],\n value = _l[1],\n type = _l[2];\n\n tokens.push({\n type: type,\n value: value\n });\n index = lastIndex;\n } else {\n tokens.push({\n type: '<delim-token>',\n value: code\n });\n }\n }\n\n tokens.push({\n type: '<EOF-token>'\n });\n return tokens;\n};\nvar consumeString = function consumeString(str, index) {\n if (str.length <= index + 1) return null;\n var firstCode = str.charCodeAt(index);\n var charCodes = [];\n\n for (var i = index + 1; i < str.length; i += 1) {\n var code = str.charCodeAt(i);\n\n if (code === firstCode) {\n return [i, String.fromCharCode.apply(null, charCodes)];\n } else if (code === 0x005c) {\n var result = consumeEscape(str, i);\n if (result === null) return null;\n\n var _a = __read(result, 2),\n lastIndex = _a[0],\n charCode = _a[1];\n\n charCodes.push(charCode);\n i = lastIndex;\n } else if (code === 0x000a) {\n return null;\n } else {\n charCodes.push(code);\n }\n }\n\n return null;\n};\nvar wouldStartIdentifier = function wouldStartIdentifier(str, index) {\n if (str.length <= index) return false;\n var code = str.charCodeAt(index);\n\n if (code === 0x002d) {\n if (str.length <= index + 1) return false;\n var nextCode = str.charCodeAt(index + 1);\n\n if (nextCode === 0x002d || nextCode === 0x005f || nextCode >= 0x0041 && nextCode <= 0x005a || nextCode >= 0x0061 && nextCode <= 0x007a || nextCode >= 0x0080) {\n return true;\n } else if (nextCode === 0x005c) {\n if (str.length <= index + 2) return false;\n var nextNextCode = str.charCodeAt(index + 2);\n return nextNextCode !== 0x000a;\n } else {\n return false;\n }\n } else if (code === 0x005f || code >= 0x0041 && code <= 0x005a || code >= 0x0061 && code <= 0x007a || code >= 0x0080) {\n return true;\n } else if (code === 0x005c) {\n if (str.length <= index + 1) return false;\n var nextCode = str.charCodeAt(index + 1);\n return nextCode !== 0x000a;\n } else {\n return false;\n }\n};\nvar consumeEscape = function consumeEscape(str, index) {\n if (str.length <= index + 1) return null;\n if (str.charCodeAt(index) !== 0x005c) return null;\n var code = str.charCodeAt(index + 1);\n\n if (code === 0x000a) {\n return null;\n } else if (code >= 0x0030 && code <= 0x0039 || code >= 0x0041 && code <= 0x0046 || code >= 0x0061 && code <= 0x0066) {\n var hexCharCodes = [code];\n var min = Math.min(index + 7, str.length);\n var i = index + 2;\n\n for (; i < min; i += 1) {\n var code_2 = str.charCodeAt(i);\n\n if (code_2 >= 0x0030 && code_2 <= 0x0039 || code_2 >= 0x0041 && code_2 <= 0x0046 || code_2 >= 0x0061 && code_2 <= 0x0066) {\n hexCharCodes.push(code_2);\n } else {\n break;\n }\n }\n\n if (i < str.length) {\n var code_3 = str.charCodeAt(i);\n\n if (code_3 === 0x0009 || code_3 === 0x0020 || code_3 === 0x000a) {\n i += 1;\n }\n }\n\n return [i - 1, parseInt(String.fromCharCode.apply(null, hexCharCodes), 16)];\n } else {\n return [index + 1, code];\n }\n};\nvar consumeNumeric = function consumeNumeric(str, index) {\n var numberResult = consumeNumber(str, index);\n if (numberResult === null) return null;\n\n var _a = __read(numberResult, 3),\n numberEndIndex = _a[0],\n numberValue = _a[1],\n numberFlag = _a[2];\n\n var identResult = consumeIdent(str, numberEndIndex + 1);\n\n if (identResult !== null) {\n var _b = __read(identResult, 2),\n identEndIndex = _b[0],\n identValue = _b[1];\n\n return [identEndIndex, ['<dimension-token>', numberValue, identValue]];\n }\n\n if (numberEndIndex + 1 < str.length && str.charCodeAt(numberEndIndex + 1) === 0x0025) {\n return [numberEndIndex + 1, ['<percentage-token>', numberValue]];\n }\n\n return [numberEndIndex, ['<number-token>', numberValue, numberFlag]];\n};\nvar consumeNumber = function consumeNumber(str, index) {\n if (str.length <= index) return null;\n var flag = 'integer';\n var numberChars = [];\n var firstCode = str.charCodeAt(index);\n\n if (firstCode === 0x002b || firstCode === 0x002d) {\n index += 1;\n if (firstCode === 0x002d) numberChars.push(0x002d);\n }\n\n while (index < str.length) {\n var code = str.charCodeAt(index);\n\n if (code >= 0x0030 && code <= 0x0039) {\n numberChars.push(code);\n index += 1;\n } else {\n break;\n }\n }\n\n if (index + 1 < str.length) {\n var nextCode = str.charCodeAt(index);\n var nextNextCode = str.charCodeAt(index + 1);\n\n if (nextCode === 0x002e && nextNextCode >= 0x0030 && nextNextCode <= 0x0039) {\n numberChars.push(nextCode, nextNextCode);\n flag = 'number';\n index += 2;\n\n while (index < str.length) {\n var code = str.charCodeAt(index);\n\n if (code >= 0x0030 && code <= 0x0039) {\n numberChars.push(code);\n index += 1;\n } else {\n break;\n }\n }\n }\n }\n\n if (index + 1 < str.length) {\n var nextCode = str.charCodeAt(index);\n var nextNextCode = str.charCodeAt(index + 1);\n var nextNextNextCode = str.charCodeAt(index + 2);\n\n if (nextCode === 0x0045 || nextCode === 0x0065) {\n var nextNextIsDigit = nextNextCode >= 0x0030 && nextNextCode <= 0x0039;\n\n if (nextNextIsDigit || (nextNextCode === 0x002b || nextNextCode === 0x002d) && nextNextNextCode >= 0x0030 && nextNextNextCode <= 0x0039) {\n flag = 'number';\n\n if (nextNextIsDigit) {\n numberChars.push(0x0045, nextNextCode);\n index += 2;\n } else if (nextNextCode === 0x002d) {\n numberChars.push(0x0045, 0x002d, nextNextNextCode);\n index += 3;\n } else {\n numberChars.push(0x0045, nextNextNextCode);\n index += 3;\n }\n\n while (index < str.length) {\n var code = str.charCodeAt(index);\n\n if (code >= 0x0030 && code <= 0x0039) {\n numberChars.push(code);\n index += 1;\n } else {\n break;\n }\n }\n }\n }\n }\n\n var numberString = String.fromCharCode.apply(null, numberChars);\n var value = flag === 'number' ? parseFloat(numberString) : parseInt(numberString);\n if (value === -0) value = 0;\n return Number.isNaN(value) ? null : [index - 1, value, flag];\n};\nvar consumeIdentUnsafe = function consumeIdentUnsafe(str, index) {\n if (str.length <= index) {\n return null;\n }\n\n var identChars = [];\n\n for (var code = str.charCodeAt(index); index < str.length; code = str.charCodeAt(++index)) {\n if (code === 0x002d || code === 0x005f || code >= 0x0041 && code <= 0x005a || code >= 0x0061 && code <= 0x007a || code >= 0x0080 || code >= 0x0030 && code <= 0x0039) {\n identChars.push(code);\n continue;\n } else {\n var result = consumeEscape(str, index);\n\n if (result !== null) {\n var _a = __read(result, 2),\n lastIndex = _a[0],\n code_4 = _a[1];\n\n identChars.push(code_4);\n index = lastIndex;\n continue;\n }\n }\n\n break;\n }\n\n return index === 0 ? null : [index - 1, String.fromCharCode.apply(null, identChars)];\n};\nvar consumeIdent = function consumeIdent(str, index) {\n if (str.length <= index || !wouldStartIdentifier(str, index)) {\n return null;\n }\n\n var identChars = [];\n\n for (var code = str.charCodeAt(index); index < str.length; code = str.charCodeAt(++index)) {\n if (code === 0x002d || code === 0x005f || code >= 0x0041 && code <= 0x005a || code >= 0x0061 && code <= 0x007a || code >= 0x0080 || code >= 0x0030 && code <= 0x0039) {\n identChars.push(code);\n continue;\n } else {\n var result = consumeEscape(str, index);\n\n if (result !== null) {\n var _a = __read(result, 2),\n lastIndex = _a[0],\n code_5 = _a[1];\n\n identChars.push(code_5);\n index = lastIndex;\n continue;\n }\n }\n\n break;\n }\n\n return [index - 1, String.fromCharCode.apply(null, identChars)];\n};\nvar consumeUrl = function consumeUrl(str, index) {\n var code = str.charCodeAt(index);\n\n while (code === 0x0009 || code === 0x0020 || code === 0x000a) {\n code = str.charCodeAt(++index);\n }\n\n var urlChars = [];\n var hasFinishedWord = false;\n\n while (index < str.length) {\n if (code === 0x0029) {\n return [index, String.fromCharCode.apply(null, urlChars)];\n } else if (code === 0x0022 || code === 0x0027 || code === 0x0028) {\n return null;\n } else if (code === 0x0009 || code === 0x0020 || code === 0x000a) {\n if (!hasFinishedWord && urlChars.length !== 0) hasFinishedWord = true;\n } else if (code === 0x005c) {\n var result = consumeEscape(str, index);\n if (result === null || hasFinishedWord) return null;\n\n var _a = __read(result, 2),\n lastIndex = _a[0],\n value = _a[1];\n\n urlChars.push(value);\n index = lastIndex;\n } else {\n if (hasFinishedWord) return null;\n urlChars.push(code);\n }\n\n code = str.charCodeAt(++index);\n }\n\n return null;\n};\nvar consumeIdentLike = function consumeIdentLike(str, index) {\n var result = consumeIdent(str, index);\n if (result === null) return null;\n\n var _a = __read(result, 2),\n lastIndex = _a[0],\n value = _a[1];\n\n if (value.toLowerCase() === 'url') {\n if (str.length > lastIndex + 1) {\n var nextCode = str.charCodeAt(lastIndex + 1);\n\n if (nextCode === 0x0028) {\n for (var offset = 2; lastIndex + offset < str.length; offset += 1) {\n var nextNextCode = str.charCodeAt(lastIndex + offset);\n\n if (nextNextCode === 0x0022 || nextNextCode === 0x0027) {\n return [lastIndex + 1, value.toLowerCase(), '<function-token>'];\n } else if (nextNextCode !== 0x0009 && nextNextCode !== 0x0020 && nextNextCode !== 0x000a) {\n var result_1 = consumeUrl(str, lastIndex + offset);\n if (result_1 === null) return null;\n\n var _b = __read(result_1, 2),\n lastUrlIndex = _b[0],\n value_1 = _b[1];\n\n return [lastUrlIndex, value_1, '<url-token>'];\n }\n }\n\n return [lastIndex + 1, value.toLowerCase(), '<function-token>'];\n }\n }\n } else if (str.length > lastIndex + 1) {\n var nextCode = str.charCodeAt(lastIndex + 1);\n\n if (nextCode === 0x0028) {\n return [lastIndex + 1, value.toLowerCase(), '<function-token>'];\n }\n }\n\n return [lastIndex, value.toLowerCase(), '<ident-token>'];\n};\n\nvar simplifyAST = function simplifyAST(ast) {\n for (var i = ast.length - 1; i >= 0; i--) {\n ast[i] = simplifyMediaQuery(ast[i]);\n }\n\n return ast;\n};\n\nvar simplifyMediaQuery = function simplifyMediaQuery(mediaQuery) {\n if (mediaQuery.mediaCondition === null) return mediaQuery;\n var mediaCondition = simplifyMediaCondition(mediaQuery.mediaCondition);\n\n if (mediaCondition.operator === null && mediaCondition.children.length === 1 && 'children' in mediaCondition.children[0]) {\n mediaCondition = mediaCondition.children[0];\n }\n\n return {\n mediaPrefix: mediaQuery.mediaPrefix,\n mediaType: mediaQuery.mediaType,\n mediaCondition: mediaCondition\n };\n};\n\nvar simplifyMediaCondition = function simplifyMediaCondition(mediaCondition) {\n for (var i = mediaCondition.children.length - 1; i >= 0; i--) {\n var unsimplifiedChild = mediaCondition.children[i];\n\n if (!('context' in unsimplifiedChild)) {\n var child = simplifyMediaCondition(unsimplifiedChild);\n\n if (child.operator === null && child.children.length === 1) {\n mediaCondition.children[i] = child.children[0];\n } else if (child.operator === mediaCondition.operator && (child.operator === 'and' || child.operator === 'or')) {\n var spliceArgs = [i, 1];\n\n for (var i_1 = 0; i_1 < child.children.length; i_1++) {\n spliceArgs.push(child.children[i_1]);\n }\n\n mediaCondition.children.splice.apply(mediaCondition.children, spliceArgs);\n }\n }\n }\n\n return mediaCondition;\n};\n\nvar createError = function createError(message, err) {\n if (err instanceof Error) {\n return new Error(\"\".concat(err.message.trim(), \"\\n\").concat(message.trim()));\n } else {\n return new Error(message.trim());\n }\n};\n\nvar toAST = function toAST(str) {\n return simplifyAST(toUnflattenedAST(str));\n};\nvar toUnflattenedAST = function toUnflattenedAST(str) {\n var tokenList = lexicalAnalysis(str.trim());\n\n if (tokenList === null) {\n throw createError('Failed tokenizing');\n }\n\n var startIndex = 0;\n var endIndex = tokenList.length - 1;\n\n if (tokenList[0].type === '<at-keyword-token>' && tokenList[0].value === 'media') {\n if (tokenList[1].type !== '<whitespace-token>') {\n throw createError('Expected whitespace after media');\n }\n\n startIndex = 2;\n\n for (var i = 2; i < tokenList.length - 1; i++) {\n var token = tokenList[i];\n\n if (token.type === '<{-token>') {\n endIndex = i;\n break;\n } else if (token.type === '<semicolon-token>') {\n throw createError(\"Expected '{' in media query but found ';'\");\n }\n }\n }\n\n tokenList = tokenList.slice(startIndex, endIndex);\n return syntacticAnalysis(tokenList);\n};\nvar removeWhitespace = function removeWhitespace(tokenList) {\n var newTokenList = [];\n var before = false;\n\n for (var i = 0; i < tokenList.length; i++) {\n if (tokenList[i].type === '<whitespace-token>') {\n before = true;\n\n if (newTokenList.length > 0) {\n newTokenList[newTokenList.length - 1].wsAfter = true;\n }\n } else {\n newTokenList.push(__assign(__assign({}, tokenList[i]), {\n wsBefore: before,\n wsAfter: false\n }));\n before = false;\n }\n }\n\n return newTokenList;\n};\nvar syntacticAnalysis = function syntacticAnalysis(tokenList) {\n var e_1, _a;\n\n var mediaQueryList = [[]];\n\n for (var i = 0; i < tokenList.length; i++) {\n var token = tokenList[i];\n\n if (token.type === '<comma-token>') {\n mediaQueryList.push([]);\n } else {\n mediaQueryList[mediaQueryList.length - 1].push(token);\n }\n }\n\n var mediaQueries = mediaQueryList.map(removeWhitespace);\n\n if (mediaQueries.length === 1 && mediaQueries[0].length === 0) {\n return [{\n mediaCondition: null,\n mediaPrefix: null,\n mediaType: 'all'\n }];\n } else {\n var mediaQueryTokens = mediaQueries.map(function (mediaQueryTokens) {\n if (mediaQueryTokens.length === 0) {\n return null;\n } else {\n return tokenizeMediaQuery(mediaQueryTokens);\n }\n });\n var nonNullMediaQueryTokens = [];\n\n try {\n for (var mediaQueryTokens_1 = __values(mediaQueryTokens), mediaQueryTokens_1_1 = mediaQueryTokens_1.next(); !mediaQueryTokens_1_1.done; mediaQueryTokens_1_1 = mediaQueryTokens_1.next()) {\n var mediaQueryToken = mediaQueryTokens_1_1.value;\n\n if (mediaQueryToken !== null) {\n nonNullMediaQueryTokens.push(mediaQueryToken);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (mediaQueryTokens_1_1 && !mediaQueryTokens_1_1.done && (_a = mediaQueryTokens_1[\"return\"])) _a.call(mediaQueryTokens_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n if (nonNullMediaQueryTokens.length === 0) {\n throw createError('No valid media queries');\n }\n\n return nonNullMediaQueryTokens;\n }\n};\nvar tokenizeMediaQuery = function tokenizeMediaQuery(tokens) {\n var firstToken = tokens[0];\n\n if (firstToken.type === '<(-token>') {\n try {\n return {\n mediaPrefix: null,\n mediaType: 'all',\n mediaCondition: tokenizeMediaCondition(tokens, true)\n };\n } catch (err) {\n throw createError(\"Expected media condition after '('\", err);\n }\n } else if (firstToken.type === '<ident-token>') {\n var mediaPrefix = null;\n var mediaType = void 0;\n var value = firstToken.value;\n\n if (value === 'only' || value === 'not') {\n mediaPrefix = value;\n }\n\n var firstIndex = mediaPrefix === null ? 0 : 1;\n\n if (tokens.length <= firstIndex) {\n throw createError(\"Expected extra token in media query\");\n }\n\n var firstNonUnaryToken = tokens[firstIndex];\n\n if (firstNonUnaryToken.type === '<ident-token>') {\n var value_1 = firstNonUnaryToken.value;\n\n if (value_1 === 'all') {\n mediaType = 'all';\n } else if (value_1 === 'print' || value_1 === 'screen') {\n mediaType = value_1;\n } else if (value_1 === 'tty' || value_1 === 'tv' || value_1 === 'projection' || value_1 === 'handheld' || value_1 === 'braille' || value_1 === 'embossed' || value_1 === 'aural' || value_1 === 'speech') {\n mediaPrefix = mediaPrefix === 'not' ? null : 'not';\n mediaType = 'all';\n } else {\n throw createError(\"Unknown ident '\".concat(value_1, \"' in media query\"));\n }\n } else if (mediaPrefix === 'not' && firstNonUnaryToken.type === '<(-token>') {\n var tokensWithParens = [{\n type: '<(-token>',\n wsBefore: false,\n wsAfter: false\n }];\n tokensWithParens.push.apply(tokensWithParens, tokens);\n tokensWithParens.push({\n type: '<)-token>',\n wsBefore: false,\n wsAfter: false\n });\n\n try {\n return {\n mediaPrefix: null,\n mediaType: 'all',\n mediaCondition: tokenizeMediaCondition(tokensWithParens, true)\n };\n } catch (err) {\n throw createError(\"Expected media condition after '('\", err);\n }\n } else {\n throw createError('Invalid media query');\n }\n\n if (firstIndex + 1 === tokens.length) {\n return {\n mediaPrefix: mediaPrefix,\n mediaType: mediaType,\n mediaCondition: null\n };\n } else if (firstIndex + 4 < tokens.length) {\n var secondNonUnaryToken = tokens[firstIndex + 1];\n\n if (secondNonUnaryToken.type === '<ident-token>' && secondNonUnaryToken.value === 'and') {\n try {\n return {\n mediaPrefix: mediaPrefix,\n mediaType: mediaType,\n mediaCondition: tokenizeMediaCondition(tokens.slice(firstIndex + 2), false)\n };\n } catch (err) {\n throw createError(\"Expected media condition after 'and'\", err);\n }\n } else {\n throw createError(\"Expected 'and' after media prefix\");\n }\n } else {\n throw createError('Expected media condition after media prefix');\n }\n } else {\n throw createError('Expected media condition or media prefix');\n }\n};\nvar tokenizeMediaCondition = function tokenizeMediaCondition(tokens, mayContainOr, previousOperator) {\n if (previousOperator === void 0) {\n previousOperator = null;\n }\n\n if (tokens.length < 3 || tokens[0].type !== '<(-token>' || tokens[tokens.length - 1].type !== '<)-token>') {\n throw new Error('Invalid media condition');\n }\n\n var endIndexOfFirstFeature = tokens.length - 1;\n var maxDepth = 0;\n var count = 0;\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (token.type === '<(-token>') {\n count += 1;\n maxDepth = Math.max(maxDepth, count);\n } else if (token.type === '<)-token>') {\n count -= 1;\n }\n\n if (count === 0) {\n endIndexOfFirstFeature = i;\n break;\n }\n }\n\n if (count !== 0) {\n throw new Error('Mismatched parens\\nInvalid media condition');\n }\n\n var child;\n var featureTokens = tokens.slice(0, endIndexOfFirstFeature + 1);\n\n if (maxDepth === 1) {\n child = tokenizeMediaFeature(featureTokens);\n } else {\n if (featureTokens[1].type === '<ident-token>' && featureTokens[1].value === 'not') {\n child = tokenizeMediaCondition(featureTokens.slice(2, -1), true, 'not');\n } else {\n child = tokenizeMediaCondition(featureTokens.slice(1, -1), true);\n }\n }\n\n if (endIndexOfFirstFeature === tokens.length - 1) {\n return {\n operator: previousOperator,\n children: [child]\n };\n } else {\n var nextToken = tokens[endIndexOfFirstFeature + 1];\n\n if (nextToken.type !== '<ident-token>') {\n throw new Error('Invalid operator\\nInvalid media condition');\n } else if (previousOperator !== null && previousOperator !== nextToken.value) {\n throw new Error(\"'\".concat(nextToken.value, \"' and '\").concat(previousOperator, \"' must not be at same level\\nInvalid media condition\"));\n } else if (nextToken.value === 'or' && !mayContainOr) {\n throw new Error(\"Cannot use 'or' at top level of a media query\\nInvalid media condition\");\n } else if (nextToken.value !== 'and' && nextToken.value !== 'or') {\n throw new Error(\"Invalid operator: '\".concat(nextToken.value, \"'\\nInvalid media condition\"));\n }\n\n var siblings = tokenizeMediaCondition(tokens.slice(endIndexOfFirstFeature + 2), mayContainOr, nextToken.value);\n return {\n operator: nextToken.value,\n children: [child].concat(siblings.children)\n };\n }\n};\nvar tokenizeMediaFeature = function tokenizeMediaFeature(rawTokens) {\n if (rawTokens.length < 3 || rawTokens[0].type !== '<(-token>' || rawTokens[rawTokens.length - 1].type !== '<)-token>') {\n throw new Error('Invalid media feature');\n }\n\n var tokens = [rawTokens[0]];\n\n for (var i = 1; i < rawTokens.length; i++) {\n if (i < rawTokens.length - 2) {\n var a = rawTokens[i];\n var b = rawTokens[i + 1];\n var c = rawTokens[i + 2];\n\n if (a.type === '<number-token>' && a.value > 0 && b.type === '<delim-token>' && b.value === 0x002f && c.type === '<number-token>' && c.value > 0) {\n tokens.push({\n type: '<ratio-token>',\n numerator: a.value,\n denominator: c.value,\n wsBefore: a.wsBefore,\n wsAfter: c.wsAfter\n });\n i += 2;\n continue;\n }\n }\n\n tokens.push(rawTokens[i]);\n }\n\n var nextToken = tokens[1];\n\n if (nextToken.type === '<ident-token>' && tokens.length === 3) {\n return {\n context: 'boolean',\n feature: nextToken.value\n };\n } else if (tokens.length === 5 && tokens[1].type === '<ident-token>' && tokens[2].type === '<colon-token>') {\n var valueToken = tokens[3];\n\n if (valueToken.type === '<number-token>' || valueToken.type === '<dimension-token>' || valueToken.type === '<ratio-token>' || valueToken.type === '<ident-token>') {\n var feature = tokens[1].value;\n var prefix = null;\n var slice = feature.slice(0, 4);\n\n if (slice === 'min-') {\n prefix = 'min';\n feature = feature.slice(4);\n } else if (slice === 'max-') {\n prefix = 'max';\n feature = feature.slice(4);\n }\n\n valueToken.wsBefore;\n valueToken.wsAfter;\n var value = __rest(valueToken, [\"wsBefore\", \"wsAfter\"]);\n\n return {\n context: 'value',\n prefix: prefix,\n feature: feature,\n value: value\n };\n }\n } else if (tokens.length >= 5) {\n try {\n var range = tokenizeRange(tokens);\n return {\n context: 'range',\n feature: range.featureName,\n range: range\n };\n } catch (err) {\n throw createError('Invalid media feature', err);\n }\n }\n\n throw new Error('Invalid media feature');\n};\nvar tokenizeRange = function tokenizeRange(tokens) {\n var _a, _b, _c, _d;\n\n if (tokens.length < 5 || tokens[0].type !== '<(-token>' || tokens[tokens.length - 1].type !== '<)-token>') {\n throw new Error('Invalid range');\n }\n\n var range = {\n leftToken: null,\n leftOp: null,\n featureName: '',\n rightOp: null,\n rightToken: null\n };\n var hasLeft = tokens[1].type === '<number-token>' || tokens[1].type === '<dimension-token>' || tokens[1].type === '<ratio-token>' || tokens[1].type === '<ident-token>' && tokens[1].value === 'infinite';\n\n if (tokens[2].type === '<delim-token>') {\n if (tokens[2].value === 0x003c) {\n if (tokens[3].type === '<delim-token>' && tokens[3].value === 0x003d && !tokens[3].wsBefore) {\n range[hasLeft ? 'leftOp' : 'rightOp'] = '<=';\n } else {\n range[hasLeft ? 'leftOp' : 'rightOp'] = '<';\n }\n } else if (tokens[2].value === 0x003e) {\n if (tokens[3].type === '<delim-token>' && tokens[3].value === 0x003d && !tokens[3].wsBefore) {\n range[hasLeft ? 'leftOp' : 'rightOp'] = '>=';\n } else {\n range[hasLeft ? 'leftOp' : 'rightOp'] = '>';\n }\n } else if (tokens[2].value === 0x003d) {\n range[hasLeft ? 'leftOp' : 'rightOp'] = '=';\n } else {\n throw new Error('Invalid range');\n }\n\n if (hasLeft) {\n range.leftToken = tokens[1];\n } else if (tokens[1].type === '<ident-token>') {\n range.featureName = tokens[1].value;\n } else {\n throw new Error('Invalid range');\n }\n\n var tokenIndexAfterFirstOp = 2 + ((_b = (_a = range[hasLeft ? 'leftOp' : 'rightOp']) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);\n var tokenAfterFirstOp = tokens[tokenIndexAfterFirstOp];\n\n if (hasLeft) {\n if (tokenAfterFirstOp.type === '<ident-token>') {\n range.featureName = tokenAfterFirstOp.value;\n\n if (tokens.length >= 7) {\n var secondOpToken = tokens[tokenIndexAfterFirstOp + 1];\n var followingToken = tokens[tokenIndexAfterFirstOp + 2];\n\n if (secondOpToken.type === '<delim-token>') {\n var charCode = secondOpToken.value;\n\n if (charCode === 0x003c) {\n if (followingToken.type === '<delim-token>' && followingToken.value === 0x003d && !followingToken.wsBefore) {\n range.rightOp = '<=';\n } else {\n range.rightOp = '<';\n }\n } else if (charCode === 0x003e) {\n if (followingToken.type === '<delim-token>' && followingToken.value === 0x003d && !followingToken.wsBefore) {\n range.rightOp = '>=';\n } else {\n range.rightOp = '>';\n }\n } else {\n throw new Error('Invalid range');\n }\n\n var tokenAfterSecondOp = tokens[tokenIndexAfterFirstOp + 1 + ((_d = (_c = range.rightOp) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0)];\n range.rightToken = tokenAfterSecondOp;\n } else {\n throw new Error('Invalid range');\n }\n } else if (tokenIndexAfterFirstOp + 2 !== tokens.length) {\n throw new Error('Invalid range');\n }\n } else {\n throw new Error('Invalid range');\n }\n } else {\n range.rightToken = tokenAfterFirstOp;\n }\n\n var validRange = null;\n var lt = range.leftToken,\n leftOp = range.leftOp,\n featureName = range.featureName,\n rightOp = range.rightOp,\n rt = range.rightToken;\n var leftToken = null;\n\n if (lt !== null) {\n if (lt.type === '<ident-token>') {\n var type = lt.type,\n value = lt.value;\n\n if (value === 'infinite') {\n leftToken = {\n type: type,\n value: value\n };\n }\n } else if (lt.type === '<number-token>' || lt.type === '<dimension-token>' || lt.type === '<ratio-token>') {\n lt.wsBefore;\n lt.wsAfter;\n var ltNoWS = __rest(lt, [\"wsBefore\", \"wsAfter\"]);\n\n leftToken = ltNoWS;\n }\n }\n\n var rightToken = null;\n\n if (rt !== null) {\n if (rt.type === '<ident-token>') {\n var type = rt.type,\n value = rt.value;\n\n if (value === 'infinite') {\n rightToken = {\n type: type,\n value: value\n };\n }\n } else if (rt.type === '<number-token>' || rt.type === '<dimension-token>' || rt.type === '<ratio-token>') {\n rt.wsBefore;\n rt.wsAfter;\n var rtNoWS = __rest(rt, [\"wsBefore\", \"wsAfter\"]);\n\n rightToken = rtNoWS;\n }\n }\n\n if (leftToken !== null && rightToken !== null) {\n if ((leftOp === '<' || leftOp === '<=') && (rightOp === '<' || rightOp === '<=')) {\n validRange = {\n leftToken: leftToken,\n leftOp: leftOp,\n featureName: featureName,\n rightOp: rightOp,\n rightToken: rightToken\n };\n } else if ((leftOp === '>' || leftOp === '>=') && (rightOp === '>' || rightOp === '>=')) {\n validRange = {\n leftToken: leftToken,\n leftOp: leftOp,\n featureName: featureName,\n rightOp: rightOp,\n rightToken: rightToken\n };\n } else {\n throw new Error('Invalid range');\n }\n } else if (leftToken === null && leftOp === null && rightOp !== null && rightToken !== null) {\n validRange = {\n leftToken: leftToken,\n leftOp: leftOp,\n featureName: featureName,\n rightOp: rightOp,\n rightToken: rightToken\n };\n } else if (leftToken !== null && leftOp !== null && rightOp === null && rightToken === null) {\n validRange = {\n leftToken: leftToken,\n leftOp: leftOp,\n featureName: featureName,\n rightOp: rightOp,\n rightToken: rightToken\n };\n }\n\n return validRange;\n } else {\n throw new Error('Invalid range');\n }\n};\n\nexport { consumeEscape, consumeIdent, consumeIdentLike, consumeIdentUnsafe, consumeNumber, consumeNumeric, consumeString, consumeUrl, lexicalAnalysis, removeWhitespace, syntacticAnalysis, toAST, toUnflattenedAST, tokenizeMediaCondition, tokenizeMediaFeature, tokenizeMediaQuery, tokenizeRange, wouldStartIdentifier };\n//# sourceMappingURL=media-query-parser.esm.js.map\n","import { getVarName } from '@vanilla-extract/private';\nimport cssesc from 'cssesc';\nimport AhoCorasick from 'modern-ahocorasick';\nimport { markCompositionUsed } from '../adapter/dist/vanilla-extract-css-adapter.browser.esm.js';\nimport { _ as _taggedTemplateLiteral } from './taggedTemplateLiteral-8e47dbd7.browser.esm.js';\nimport { parse } from 'css-what';\nimport dedent from 'dedent';\nimport { toAST } from 'media-query-parser';\n\nfunction toPrimitive(t, r) {\n if (\"object\" != typeof t || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != typeof i) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\n\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : String(i);\n}\n\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\n\nfunction forEach(obj, fn) {\n for (var _key in obj) {\n fn(obj[_key], _key);\n }\n}\nfunction omit(obj, omitKeys) {\n var result = {};\n for (var _key2 in obj) {\n if (omitKeys.indexOf(_key2) === -1) {\n result[_key2] = obj[_key2];\n }\n }\n return result;\n}\nfunction mapKeys(obj, fn) {\n var result = {};\n for (var _key3 in obj) {\n result[fn(obj[_key3], _key3)] = obj[_key3];\n }\n return result;\n}\nfunction composeStylesIntoSet(set) {\n for (var _len = arguments.length, classNames = new Array(_len > 1 ? _len - 1 : 0), _key5 = 1; _key5 < _len; _key5++) {\n classNames[_key5 - 1] = arguments[_key5];\n }\n for (var className of classNames) {\n if (className.length === 0) {\n continue;\n }\n if (typeof className === 'string') {\n if (className.includes(' ')) {\n composeStylesIntoSet(set, ...className.trim().split(' '));\n } else {\n set.add(className);\n }\n } else if (Array.isArray(className)) {\n composeStylesIntoSet(set, ...className);\n }\n }\n}\nfunction dedupeAndJoinClassList(classNames) {\n var set = new Set();\n composeStylesIntoSet(set, ...classNames);\n return Array.from(set).join(' ');\n}\n\nvar _templateObject$1;\n\n// https://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\nfunction escapeRegex(string) {\n return string.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\nvar validateSelector = (selector, targetClassName) => {\n var replaceTarget = () => {\n var targetRegex = new RegExp(\".\".concat(escapeRegex(cssesc(targetClassName, {\n isIdentifier: true\n }))), 'g');\n return selector.replace(targetRegex, '&');\n };\n var selectorParts;\n try {\n selectorParts = parse(selector);\n } catch (err) {\n throw new Error(\"Invalid selector: \".concat(replaceTarget()), {\n cause: err\n });\n }\n selectorParts.forEach(tokens => {\n try {\n for (var i = tokens.length - 1; i >= -1; i--) {\n if (!tokens[i]) {\n throw new Error();\n }\n var token = tokens[i];\n if (token.type === 'child' || token.type === 'parent' || token.type === 'sibling' || token.type === 'adjacent' || token.type === 'descendant') {\n throw new Error();\n }\n if (token.type === 'attribute' && token.name === 'class' && token.value === targetClassName) {\n return; // Found it\n }\n }\n } catch (err) {\n throw new Error(dedent(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral([\"\\n Invalid selector: \", \"\\n \\n Style selectors must target the '&' character (along with any modifiers), e.g. \", \" or \", \".\\n \\n This is to ensure that each style block only affects the styling of a single class.\\n \\n If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of \", \") to 'parent', you should add \", \" to 'child').\\n \\n If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write \", \", you should instead write 'globalStyle(\", \", { ... })'\\n \"])), replaceTarget(), '`${parent} &`', '`${parent} &:hover`', '`& ${child}`', '`${parent} &`', '`& h1`', '`${parent} h1`'), {\n cause: err\n });\n }\n });\n};\n\n/** e.g. @media screen and (min-width: 500px) */\n\nclass ConditionalRuleset {\n /**\n * Stores information about where conditions must be in relation to other conditions\n *\n * e.g. mobile -> tablet, desktop\n */\n\n constructor() {\n this.ruleset = new Map();\n this.precedenceLookup = new Map();\n }\n findOrCreateCondition(conditionQuery) {\n var targetCondition = this.ruleset.get(conditionQuery);\n if (!targetCondition) {\n // No target condition so create one\n targetCondition = {\n query: conditionQuery,\n rules: [],\n children: new ConditionalRuleset()\n };\n this.ruleset.set(conditionQuery, targetCondition);\n }\n return targetCondition;\n }\n getConditionalRulesetByPath(conditionPath) {\n var currRuleset = this;\n for (var query of conditionPath) {\n var condition = currRuleset.findOrCreateCondition(query);\n currRuleset = condition.children;\n }\n return currRuleset;\n }\n addRule(rule, conditionQuery, conditionPath) {\n var ruleset = this.getConditionalRulesetByPath(conditionPath);\n var targetCondition = ruleset.findOrCreateCondition(conditionQuery);\n if (!targetCondition) {\n throw new Error('Failed to add conditional rule');\n }\n targetCondition.rules.push(rule);\n }\n addConditionPrecedence(conditionPath, conditionOrder) {\n var ruleset = this.getConditionalRulesetByPath(conditionPath);\n for (var i = 0; i < conditionOrder.length; i++) {\n var _ruleset$precedenceLo;\n var query = conditionOrder[i];\n var conditionPrecedence = (_ruleset$precedenceLo = ruleset.precedenceLookup.get(query)) !== null && _ruleset$precedenceLo !== void 0 ? _ruleset$precedenceLo : new Set();\n for (var lowerPrecedenceCondition of conditionOrder.slice(i + 1)) {\n conditionPrecedence.add(lowerPrecedenceCondition);\n }\n ruleset.precedenceLookup.set(query, conditionPrecedence);\n }\n }\n isCompatible(incomingRuleset) {\n for (var [condition, orderPrecedence] of this.precedenceLookup.entries()) {\n for (var lowerPrecedenceCondition of orderPrecedence) {\n var _incomingRuleset$prec;\n if ((_incomingRuleset$prec = incomingRuleset.precedenceLookup.get(lowerPrecedenceCondition)) !== null && _incomingRuleset$prec !== void 0 && _incomingRuleset$prec.has(condition)) {\n return false;\n }\n }\n }\n\n // Check that children are compatible\n for (var {\n query,\n children\n } of incomingRuleset.ruleset.values()) {\n var matchingCondition = this.ruleset.get(query);\n if (matchingCondition && !matchingCondition.children.isCompatible(children)) {\n return false;\n }\n }\n return true;\n }\n merge(incomingRuleset) {\n // Merge rulesets into one array\n for (var {\n query,\n rules,\n children\n } of incomingRuleset.ruleset.values()) {\n var matchingCondition = this.ruleset.get(query);\n if (matchingCondition) {\n matchingCondition.rules.push(...rules);\n matchingCondition.children.merge(children);\n } else {\n this.ruleset.set(query, {\n query,\n rules,\n children\n });\n }\n }\n\n // Merge order precedences\n for (var [condition, incomingOrderPrecedence] of incomingRuleset.precedenceLookup.entries()) {\n var _this$precedenceLooku;\n var orderPrecedence = (_this$precedenceLooku = this.precedenceLookup.get(condition)) !== null && _this$precedenceLooku !== void 0 ? _this$precedenceLooku : new Set();\n this.precedenceLookup.set(condition, new Set([...orderPrecedence, ...incomingOrderPrecedence]));\n }\n }\n\n /**\n * Merge another ConditionalRuleset into this one if they are compatible\n *\n * @returns true if successful, false if the ruleset is incompatible\n */\n mergeIfCompatible(incomingRuleset) {\n if (!this.isCompatible(incomingRuleset)) {\n return false;\n }\n this.merge(incomingRuleset);\n return true;\n }\n getSortedRuleset() {\n var _this = this;\n var sortedRuleset = [];\n\n // Loop through all queries and add them to the sorted ruleset\n var _loop = function _loop(dependents) {\n var conditionForQuery = _this.ruleset.get(query);\n if (!conditionForQuery) {\n throw new Error(\"Can't find condition for \".concat(query));\n }\n\n // Find the location of the first dependent condition in the sortedRuleset\n // A dependent condition is a condition that must be placed *after* the current one\n var firstMatchingDependent = sortedRuleset.findIndex(condition => dependents.has(condition.query));\n if (firstMatchingDependent > -1) {\n // Insert the condition before the dependent one\n sortedRuleset.splice(firstMatchingDependent, 0, conditionForQuery);\n } else {\n // No match, just insert at the end\n sortedRuleset.push(conditionForQuery);\n }\n };\n for (var [query, dependents] of this.precedenceLookup.entries()) {\n _loop(dependents);\n }\n return sortedRuleset;\n }\n renderToArray() {\n var arr = [];\n for (var {\n query,\n rules,\n children\n } of this.getSortedRuleset()) {\n var selectors = {};\n for (var rule of rules) {\n selectors[rule.selector] = _objectSpread2(_objectSpread2({}, selectors[rule.selector]), rule.rule);\n }\n Object.assign(selectors, ...children.renderToArray());\n arr.push({\n [query]: selectors\n });\n }\n return arr;\n }\n}\n\nvar simplePseudoMap = {\n ':-moz-any-link': true,\n ':-moz-full-screen': true,\n ':-moz-placeholder': true,\n ':-moz-read-only': true,\n ':-moz-read-write': true,\n ':-ms-fullscreen': true,\n ':-ms-input-placeholder': true,\n ':-webkit-any-link': true,\n ':-webkit-full-screen': true,\n '::-moz-color-swatch': true,\n '::-moz-list-bullet': true,\n '::-moz-list-number': true,\n '::-moz-page-sequence': true,\n '::-moz-page': true,\n '::-moz-placeholder': true,\n '::-moz-progress-bar': true,\n '::-moz-range-progress': true,\n '::-moz-range-thumb': true,\n '::-moz-range-track': true,\n '::-moz-scrolled-page-sequence': true,\n '::-moz-selection': true,\n '::-ms-backdrop': true,\n '::-ms-browse': true,\n '::-ms-check': true,\n '::-ms-clear': true,\n '::-ms-fill-lower': true,\n '::-ms-fill-upper': true,\n '::-ms-fill': true,\n '::-ms-reveal': true,\n '::-ms-thumb': true,\n '::-ms-ticks-after': true,\n '::-ms-ticks-before': true,\n '::-ms-tooltip': true,\n '::-ms-track': true,\n '::-ms-value': true,\n '::-webkit-backdrop': true,\n '::-webkit-calendar-picker-indicator': true,\n '::-webkit-inner-spin-button': true,\n '::-webkit-input-placeholder': true,\n '::-webkit-meter-bar': true,\n '::-webkit-meter-even-less-good-value': true,\n '::-webkit-meter-inner-element': true,\n '::-webkit-meter-optimum-value': true,\n '::-webkit-meter-suboptimum-value': true,\n '::-webkit-outer-spin-button': true,\n '::-webkit-progress-bar': true,\n '::-webkit-progress-inner-element': true,\n '::-webkit-progress-inner-value': true,\n '::-webkit-progress-value': true,\n '::-webkit-resizer': true,\n '::-webkit-scrollbar-button': true,\n '::-webkit-scrollbar-corner': true,\n '::-webkit-scrollbar-thumb': true,\n '::-webkit-scrollbar-track-piece': true,\n '::-webkit-scrollbar-track': true,\n '::-webkit-scrollbar': true,\n '::-webkit-search-cancel-button': true,\n '::-webkit-search-results-button': true,\n '::-webkit-slider-runnable-track': true,\n '::-webkit-slider-thumb': true,\n '::after': true,\n '::backdrop': true,\n '::before': true,\n '::cue': true,\n '::file-selector-button': true,\n '::first-letter': true,\n '::first-line': true,\n '::grammar-error': true,\n '::marker': true,\n '::placeholder': true,\n '::selection': true,\n '::spelling-error': true,\n '::target-text': true,\n '::view-transition-group': true,\n '::view-transition-image-pair': true,\n '::view-transition-new': true,\n '::view-transition-old': true,\n '::view-transition': true,\n ':active': true,\n ':after': true,\n ':any-link': true,\n ':before': true,\n ':blank': true,\n ':checked': true,\n ':default': true,\n ':defined': true,\n ':disabled': true,\n ':empty': true,\n ':enabled': true,\n ':first-child': true,\n ':first-letter': true,\n ':first-line': true,\n ':first-of-type': true,\n ':first': true,\n ':focus-visible': true,\n ':focus-within': true,\n ':focus': true,\n ':fullscreen': true,\n ':hover': true,\n ':in-range': true,\n ':indeterminate': true,\n ':invalid': true,\n ':last-child': true,\n ':last-of-type': true,\n ':left': true,\n ':link': true,\n ':only-child': true,\n ':only-of-type': true,\n ':optional': true,\n ':out-of-range': true,\n ':placeholder-shown': true,\n ':read-only': true,\n ':read-write': true,\n ':required': true,\n ':right': true,\n ':root': true,\n ':scope': true,\n ':target': true,\n ':valid': true,\n ':visited': true\n};\nvar simplePseudos = Object.keys(simplePseudoMap);\nvar simplePseudoLookup = simplePseudoMap;\n\nvar _templateObject;\nvar createMediaQueryError = (mediaQuery, msg) => new Error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n Invalid media query: \\\"\", \"\\\"\\n\\n \", \"\\n\\n Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\\n \"])), mediaQuery, msg));\nvar validateMediaQuery = mediaQuery => {\n // Empty queries will start with '@media '\n if (mediaQuery === '@media ') {\n throw createMediaQueryError(mediaQuery, 'Query is empty');\n }\n try {\n toAST(mediaQuery);\n } catch (e) {\n throw createMediaQueryError(mediaQuery, e.message);\n }\n};\n\nvar _excluded = [\"vars\"],\n _excluded2 = [\"content\"];\nvar DECLARATION = '__DECLARATION';\nvar UNITLESS = {\n animationIterationCount: true,\n borderImage: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFlexGroup: true,\n columnCount: true,\n columns: true,\n flex: true,\n flexGrow: true,\n flexShrink: true,\n fontWeight: true,\n gridArea: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnStart: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowStart: true,\n initialLetter: true,\n lineClamp: true,\n lineHeight: true,\n maxLines: true,\n opacity: true,\n order: true,\n orphans: true,\n scale: true,\n tabSize: true,\n WebkitLineClamp: true,\n widows: true,\n zIndex: true,\n zoom: true,\n // svg properties\n fillOpacity: true,\n floodOpacity: true,\n maskBorder: true,\n maskBorderOutset: true,\n maskBorderSlice: true,\n maskBorderWidth: true,\n shapeImageThreshold: true,\n stopOpacity: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true\n};\nfunction dashify(str) {\n return str.replace(/([A-Z])/g, '-$1').replace(/^ms-/, '-ms-').toLowerCase();\n}\nfunction replaceBetweenIndexes(target, startIndex, endIndex, replacement) {\n var start = target.slice(0, startIndex);\n var end = target.slice(endIndex);\n return \"\".concat(start).concat(replacement).concat(end);\n}\nvar DOUBLE_SPACE = ' ';\nvar specialKeys = [...simplePseudos, '@layer', '@media', '@supports', '@container', '@starting-style', 'selectors'];\nclass Stylesheet {\n constructor(localClassNames, composedClassLists) {\n this.rules = [];\n this.conditionalRulesets = [new ConditionalRuleset()];\n this.fontFaceRules = [];\n this.keyframesRules = [];\n this.propertyRules = [];\n this.localClassNamesMap = new Map(localClassNames.map(localClassName => [localClassName, localClassName]));\n this.localClassNamesSearch = new AhoCorasick(localClassNames);\n this.layers = new Map();\n\n // Class list compositions should be priortized by Newer > Older\n // Therefore we reverse the array as they are added in sequence\n this.composedClassLists = composedClassLists.map(_ref => {\n var {\n identifier,\n classList\n } = _ref;\n return {\n identifier,\n regex: RegExp(\"(\".concat(classList, \")\"), 'g')\n };\n }).reverse();\n }\n processCssObj(root) {\n if (root.type === 'fontFace') {\n this.fontFaceRules.push(root.rule);\n return;\n }\n if (root.type === 'property') {\n this.propertyRules.push(root);\n return;\n }\n if (root.type === 'keyframes') {\n root.rule = Object.fromEntries(Object.entries(root.rule).map(_ref2 => {\n var [keyframe, rule] = _ref2;\n return [keyframe, this.transformVars(this.transformProperties(rule))];\n }));\n this.keyframesRules.push(root);\n return;\n }\n this.currConditionalRuleset = new ConditionalRuleset();\n if (root.type === 'layer') {\n var layerDefinition = \"@layer \".concat(root.name);\n this.addLayer([layerDefinition]);\n } else {\n // Add main styles\n var mainRule = omit(root.rule, specialKeys);\n this.addRule({\n selector: root.selector,\n rule: mainRule\n });\n this.transformLayer(root, root.rule['@layer']);\n this.transformMedia(root, root.rule['@media']);\n this.transformSupports(root, root.rule['@supports']);\n this.transformContainer(root, root.rule['@container']);\n this.transformStartingStyle(root, root.rule['@starting-style']);\n this.transformSimplePseudos(root, root.rule);\n this.transformSelectors(root, root.rule);\n }\n var activeConditionalRuleset = this.conditionalRulesets[this.conditionalRulesets.length - 1];\n if (!activeConditionalRuleset.mergeIfCompatible(this.currConditionalRuleset)) {\n // Ruleset merge failed due to incompatibility. We now deopt by starting a fresh ConditionalRuleset\n this.conditionalRulesets.push(this.currConditionalRuleset);\n }\n }\n addConditionalRule(cssRule, conditions) {\n // Run `transformProperties` before `transformVars` as we don't want to pixelify CSS Vars\n var rule = this.transformVars(this.transformProperties(cssRule.rule));\n var selector = this.transformSelector(cssRule.selector);\n if (!this.currConditionalRuleset) {\n throw new Error(\"Couldn't add conditional rule\");\n }\n var conditionQuery = conditions[conditions.length - 1];\n var parentConditions = conditions.slice(0, conditions.length - 1);\n this.currConditionalRuleset.addRule({\n selector,\n rule\n }, conditionQuery, parentConditions);\n }\n addRule(cssRule) {\n // Run `transformProperties` before `transformVars` as we don't want to pixelify CSS Vars\n var rule = this.transformVars(this.transformProperties(cssRule.rule));\n var selector = this.transformSelector(cssRule.selector);\n this.rules.push({\n selector,\n rule\n });\n }\n addLayer(layer) {\n var uniqueLayerKey = layer.join(' - ');\n this.layers.set(uniqueLayerKey, layer);\n }\n transformProperties(cssRule) {\n return this.transformContent(this.pixelifyProperties(cssRule));\n }\n pixelifyProperties(cssRule) {\n forEach(cssRule, (value, key) => {\n if (typeof value === 'number' && value !== 0 && !UNITLESS[key]) {\n // @ts-expect-error Any ideas?\n cssRule[key] = \"\".concat(value, \"px\");\n }\n });\n return cssRule;\n }\n transformVars(_ref3) {\n var {\n vars\n } = _ref3,\n rest = _objectWithoutProperties(_ref3, _excluded);\n if (!vars) {\n return rest;\n }\n return _objectSpread2(_objectSpread2({}, mapKeys(vars, (_value, key) => getVarName(key))), rest);\n }\n transformContent(_ref4) {\n var {\n content\n } = _ref4,\n rest = _objectWithoutProperties(_ref4, _excluded2);\n if (typeof content === 'undefined') {\n return rest;\n }\n\n // Handle fallback arrays:\n var contentArray = Array.isArray(content) ? content : [content];\n return _objectSpread2({\n content: contentArray.map(value =>\n // This logic was adapted from Stitches :)\n value && (value.includes('\"') || value.includes(\"'\") || /^([A-Za-z-]+\\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\\s|$)/.test(value)) ? value : \"\\\"\".concat(value, \"\\\"\"))\n }, rest);\n }\n transformClassname(identifier) {\n return \".\".concat(cssesc(identifier, {\n isIdentifier: true\n }));\n }\n transformSelector(selector) {\n // Map class list compositions to single identifiers\n var transformedSelector = selector;\n var _loop = function _loop(identifier) {\n transformedSelector = transformedSelector.replace(regex, () => {\n markCompositionUsed(identifier);\n return identifier;\n });\n };\n for (var {\n identifier,\n regex\n } of this.composedClassLists) {\n _loop(identifier);\n }\n if (this.localClassNamesMap.has(transformedSelector)) {\n return this.transformClassname(transformedSelector);\n }\n var results = this.localClassNamesSearch.search(transformedSelector);\n var lastReplaceIndex = transformedSelector.length;\n\n // Perform replacements backwards to simplify index handling\n for (var i = results.length - 1; i >= 0; i--) {\n var [endIndex, [firstMatch]] = results[i];\n var startIndex = endIndex - firstMatch.length + 1;\n\n // Class names can be substrings of other class names\n // e.g. '_1g1ptzo1' and '_1g1ptzo10'\n //\n // Additionally, concatenated classnames can contain substrings equal to other classnames\n // e.g. '&&' where '&' is 'debugName_hash1' and 'debugName_hash1d' is also a local classname\n // Before transforming the selector, this would look like `debugName_hash1debugName_hash1`\n // which contains the substring `debugName_hash1d`’.\n //\n // In either of these cases, the last replace index will occur either before or within the\n // current replacement range (from `startIndex` to `endIndex`).\n // If this occurs, we skip the replacement to avoid transforming the selector incorrectly.\n var skipReplacement = lastReplaceIndex <= endIndex;\n if (skipReplacement) {\n continue;\n }\n lastReplaceIndex = startIndex;\n\n // If class names already starts with a '.' then skip\n if (transformedSelector[startIndex - 1] !== '.') {\n transformedSelector = replaceBetweenIndexes(transformedSelector, startIndex, endIndex + 1, this.transformClassname(firstMatch));\n }\n }\n return transformedSelector;\n }\n transformSelectors(root, rule, conditions) {\n forEach(rule.selectors, (selectorRule, selector) => {\n if (root.type !== 'local') {\n throw new Error(\"Selectors are not allowed within \".concat(root.type === 'global' ? '\"globalStyle\"' : '\"selectors\"'));\n }\n var transformedSelector = this.transformSelector(selector.replace(RegExp('&', 'g'), root.selector));\n validateSelector(transformedSelector, root.selector);\n var rule = {\n selector: transformedSelector,\n rule: omit(selectorRule, specialKeys)\n };\n if (conditions) {\n this.addConditionalRule(rule, conditions);\n } else {\n this.addRule(rule);\n }\n var selectorRoot = {\n type: 'selector',\n selector: transformedSelector,\n rule: selectorRule\n };\n this.transformLayer(selectorRoot, selectorRule['@layer'], conditions);\n this.transformSupports(selectorRoot, selectorRule['@supports'], conditions);\n this.transformMedia(selectorRoot, selectorRule['@media'], conditions);\n this.transformContainer(selectorRoot, selectorRule['@container'], conditions);\n this.transformStartingStyle(selectorRoot, selectorRule['@starting-style'], conditions);\n });\n }\n transformMedia(root, rules) {\n var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n if (rules) {\n var _this$currConditional;\n (_this$currConditional = this.currConditionalRuleset) === null || _this$currConditional === void 0 || _this$currConditional.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => \"@media \".concat(query)));\n for (var [query, mediaRule] of Object.entries(rules)) {\n var mediaQuery = \"@media \".concat(query);\n validateMediaQuery(mediaQuery);\n var conditions = [...parentConditions, mediaQuery];\n this.addConditionalRule({\n selector: root.selector,\n rule: omit(mediaRule, specialKeys)\n }, conditions);\n if (root.type === 'local') {\n this.transformSimplePseudos(root, mediaRule, conditions);\n this.transformSelectors(root, mediaRule, conditions);\n }\n this.transformLayer(root, mediaRule['@layer'], conditions);\n this.transformSupports(root, mediaRule['@supports'], conditions);\n this.transformContainer(root, mediaRule['@container'], conditions);\n this.transformStartingStyle(root, mediaRule['@starting-style'], conditions);\n }\n }\n }\n transformContainer(root, rules) {\n var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n if (rules) {\n var _this$currConditional2;\n (_this$currConditional2 = this.currConditionalRuleset) === null || _this$currConditional2 === void 0 || _this$currConditional2.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => \"@container \".concat(query)));\n forEach(rules, (containerRule, query) => {\n var containerQuery = \"@container \".concat(query);\n var conditions = [...parentConditions, containerQuery];\n this.addConditionalRule({\n selector: root.selector,\n rule: omit(containerRule, specialKeys)\n }, conditions);\n if (root.type === 'local') {\n this.transformSimplePseudos(root, containerRule, conditions);\n this.transformSelectors(root, containerRule, conditions);\n }\n this.transformLayer(root, containerRule['@layer'], conditions);\n this.transformSupports(root, containerRule['@supports'], conditions);\n this.transformMedia(root, containerRule['@media'], conditions);\n this.transformStartingStyle(root, containerRule['@starting-style'], conditions);\n });\n }\n }\n transformLayer(root, rules) {\n var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n if (rules) {\n var _this$currConditional3;\n (_this$currConditional3 = this.currConditionalRuleset) === null || _this$currConditional3 === void 0 || _this$currConditional3.addConditionPrecedence(parentConditions, Object.keys(rules).map(name => \"@layer \".concat(name)));\n forEach(rules, (layerRule, name) => {\n var conditions = [...parentConditions, \"@layer \".concat(name)];\n this.addLayer(conditions);\n this.addConditionalRule({\n selector: root.selector,\n rule: omit(layerRule, specialKeys)\n }, conditions);\n if (root.type === 'local') {\n this.transformSimplePseudos(root, layerRule, conditions);\n this.transformSelectors(root, layerRule, conditions);\n }\n this.transformMedia(root, layerRule['@media'], conditions);\n this.transformSupports(root, layerRule['@supports'], conditions);\n this.transformContainer(root, layerRule['@container'], conditions);\n this.transformStartingStyle(root, layerRule['@starting-style'], conditions);\n });\n }\n }\n transformSupports(root, rules) {\n var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n if (rules) {\n var _this$currConditional4;\n (_this$currConditional4 = this.currConditionalRuleset) === null || _this$currConditional4 === void 0 || _this$currConditional4.addConditionPrecedence(parentConditions, Object.keys(rules).map(query => \"@supports \".concat(query)));\n forEach(rules, (supportsRule, query) => {\n var conditions = [...parentConditions, \"@supports \".concat(query)];\n this.addConditionalRule({\n selector: root.selector,\n rule: omit(supportsRule, specialKeys)\n }, conditions);\n if (root.type === 'local') {\n this.transformSimplePseudos(root, supportsRule, conditions);\n this.transformSelectors(root, supportsRule, conditions);\n }\n this.transformLayer(root, supportsRule['@layer'], conditions);\n this.transformMedia(root, supportsRule['@media'], conditions);\n this.transformContainer(root, supportsRule['@container'], conditions);\n this.transformStartingStyle(root, supportsRule['@starting-style'], conditions);\n });\n }\n }\n transformSimplePseudos(root, rule, conditions) {\n for (var key of Object.keys(rule)) {\n // Process simple pseudos\n if (simplePseudoLookup[key]) {\n if (root.type !== 'local') {\n throw new Error(\"Simple pseudos are not valid in \".concat(root.type === 'global' ? '\"globalStyle\"' : '\"selectors\"'));\n }\n if (conditions) {\n this.addConditionalRule({\n selector: \"\".concat(root.selector).concat(key),\n rule: rule[key]\n }, conditions);\n } else {\n this.addRule({\n conditions,\n selector: \"\".concat(root.selector).concat(key),\n rule: rule[key]\n });\n }\n }\n }\n }\n transformStartingStyle(root, rules) {\n var parentConditions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n if (rules) {\n var _this$currConditional5;\n var nestedAtRuleKey = Object.keys(rules).find(key => key.startsWith('@'));\n if (nestedAtRuleKey) {\n throw new Error(\"Nested at-rules (e.g. \\\"\".concat(nestedAtRuleKey, \"\\\") are not allowed inside @starting-style.\"));\n }\n (_this$currConditional5 = this.currConditionalRuleset) === null || _this$currConditional5 === void 0 || _this$currConditional5.addConditionPrecedence(parentConditions, ['@starting-style']);\n var conditions = [...parentConditions, '@starting-style'];\n this.addConditionalRule({\n selector: root.selector,\n rule: omit(rules, specialKeys)\n }, conditions);\n if (root.type === 'local') {\n this.transformSimplePseudos(root, rules, conditions);\n this.transformSelectors(root, rules, conditions);\n }\n }\n }\n toCss() {\n var css = [];\n\n // Render font-face rules\n for (var fontFaceRule of this.fontFaceRules) {\n css.push(renderCss({\n '@font-face': fontFaceRule\n }));\n }\n\n // Render property rules\n for (var property of this.propertyRules) {\n css.push(renderCss({\n [\"@property \".concat(property.name)]: property.rule\n }));\n }\n\n // Render keyframes\n for (var keyframe of this.keyframesRules) {\n css.push(renderCss({\n [\"@keyframes \".concat(keyframe.name)]: keyframe.rule\n }));\n }\n\n // Render layer definitions\n for (var layer of this.layers.values()) {\n var [definition, ...nesting] = layer.reverse();\n var cssObj = {\n [definition]: DECLARATION\n };\n for (var part of nesting) {\n cssObj = {\n [part]: cssObj\n };\n }\n css.push(renderCss(cssObj));\n }\n\n // Render unconditional rules\n for (var rule of this.rules) {\n css.push(renderCss({\n [rule.selector]: rule.rule\n }));\n }\n\n // Render conditional rules\n for (var conditionalRuleset of this.conditionalRulesets) {\n for (var conditionalRule of conditionalRuleset.renderToArray()) {\n css.push(renderCss(conditionalRule));\n }\n }\n return css.filter(Boolean);\n }\n}\nfunction renderCss(v) {\n var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var rules = [];\n var _loop2 = function _loop2(key) {\n var value = v[key];\n if (value && Array.isArray(value)) {\n rules.push(...value.map(v => renderCss({\n [key]: v\n }, indent)));\n } else if (value && typeof value === 'object') {\n var isEmpty = Object.keys(value).length === 0;\n if (!isEmpty) {\n rules.push(\"\".concat(indent).concat(key, \" {\\n\").concat(renderCss(value, indent + DOUBLE_SPACE), \"\\n\").concat(indent, \"}\"));\n }\n } else if (value === DECLARATION) {\n rules.push(\"\".concat(indent).concat(key, \";\"));\n } else {\n rules.push(\"\".concat(indent).concat(key.startsWith('--') ? key : dashify(key), \": \").concat(value, \";\"));\n }\n };\n for (var key of Object.keys(v)) {\n _loop2(key);\n }\n return rules.join('\\n');\n}\nfunction transformCss(_ref5) {\n var {\n localClassNames,\n cssObjs,\n composedClassLists\n } = _ref5;\n var stylesheet = new Stylesheet(localClassNames, composedClassLists);\n for (var root of cssObjs) {\n stylesheet.processCssObj(root);\n }\n return stylesheet.toCss();\n}\n\nexport { _objectSpread2 as _, _objectWithoutProperties as a, dedupeAndJoinClassList as d, transformCss as t };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","import { _ as _taggedTemplateLiteral } from '../../dist/taggedTemplateLiteral-8e47dbd7.browser.esm.js';\nimport dedent from 'dedent';\nimport { onBeginFileScope, onEndFileScope } from '../../adapter/dist/vanilla-extract-css-adapter.browser.esm.js';\n\nvar _templateObject;\nvar refCounter = 0;\nvar fileScopes = [];\nfunction setFileScope(filePath, packageName) {\n refCounter = 0;\n var fileScope = {\n filePath,\n packageName\n };\n fileScopes.unshift(fileScope);\n onBeginFileScope(fileScope);\n}\nfunction endFileScope() {\n onEndFileScope(getFileScope());\n refCounter = 0;\n fileScopes.splice(0, 1);\n}\nfunction hasFileScope() {\n return fileScopes.length > 0;\n}\nfunction getFileScope() {\n if (fileScopes.length === 0) {\n throw new Error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n Styles were unable to be assigned to a file. This is generally caused by one of the following:\\n\\n - You may have created styles outside of a '.css.ts' context\\n - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started\\n \"]))));\n }\n return fileScopes[0];\n}\nfunction getAndIncrementRefCounter() {\n return refCounter++;\n}\n\nexport { endFileScope, getAndIncrementRefCounter, getFileScope, hasFileScope, setFileScope };\n","/**\n * @module LRUCache\n */\nconst perf = typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ? performance\n : Date;\nconst warned = new Set();\n/* c8 ignore start */\nconst PROCESS = (typeof process === 'object' && !!process ? process : {});\n/* c8 ignore start */\nconst emitWarning = (msg, type, code, fn) => {\n typeof PROCESS.emitWarning === 'function'\n ? PROCESS.emitWarning(msg, type, code, fn)\n : console.error(`[${code}] ${type}: ${msg}`);\n};\nlet AC = globalThis.AbortController;\nlet AS = globalThis.AbortSignal;\n/* c8 ignore start */\nif (typeof AC === 'undefined') {\n //@ts-ignore\n AS = class AbortSignal {\n onabort;\n _onabort = [];\n reason;\n aborted = false;\n addEventListener(_, fn) {\n this._onabort.push(fn);\n }\n };\n //@ts-ignore\n AC = class AbortController {\n constructor() {\n warnACPolyfill();\n }\n signal = new AS();\n abort(reason) {\n if (this.signal.aborted)\n return;\n //@ts-ignore\n this.signal.reason = reason;\n //@ts-ignore\n this.signal.aborted = true;\n //@ts-ignore\n for (const fn of this.signal._onabort) {\n fn(reason);\n }\n this.signal.onabort?.(reason);\n }\n };\n let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== '1';\n const warnACPolyfill = () => {\n if (!printACPolyfillWarning)\n return;\n printACPolyfillWarning = false;\n emitWarning('AbortController is not defined. If using lru-cache in ' +\n 'node 14, load an AbortController polyfill from the ' +\n '`node-abort-controller` package. A minimal polyfill is ' +\n 'provided for use by LRUCache.fetch(), but it should not be ' +\n 'relied upon in other contexts (eg, passing it to other APIs that ' +\n 'use AbortController/AbortSignal might have undesirable effects). ' +\n 'You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.', 'NO_ABORT_CONTROLLER', 'ENOTSUP', warnACPolyfill);\n };\n}\n/* c8 ignore stop */\nconst shouldWarn = (code) => !warned.has(code);\nconst TYPE = Symbol('type');\nconst isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);\n/* c8 ignore start */\n// This is a little bit ridiculous, tbh.\n// The maximum array length is 2^32-1 or thereabouts on most JS impls.\n// And well before that point, you're caching the entire world, I mean,\n// that's ~32GB of just integers for the next/prev links, plus whatever\n// else to hold that many keys and values. Just filling the memory with\n// zeroes at init time is brutal when you get that big.\n// But why not be complete?\n// Maybe in the future, these limits will have expanded.\nconst getUintArray = (max) => !isPosInt(max)\n ? null\n : max <= Math.pow(2, 8)\n ? Uint8Array\n : max <= Math.pow(2, 16)\n ? Uint16Array\n : max <= Math.pow(2, 32)\n ? Uint32Array\n : max <= Number.MAX_SAFE_INTEGER\n ? ZeroArray\n : null;\n/* c8 ignore stop */\nclass ZeroArray extends Array {\n constructor(size) {\n super(size);\n this.fill(0);\n }\n}\nclass Stack {\n heap;\n length;\n // private constructor\n static #constructing = false;\n static create(max) {\n const HeapCls = getUintArray(max);\n if (!HeapCls)\n return [];\n Stack.#constructing = true;\n const s = new Stack(max, HeapCls);\n Stack.#constructing = false;\n return s;\n }\n constructor(max, HeapCls) {\n /* c8 ignore start */\n if (!Stack.#constructing) {\n throw new TypeError('instantiate Stack using Stack.create(n)');\n }\n /* c8 ignore stop */\n this.heap = new HeapCls(max);\n this.length = 0;\n }\n push(n) {\n this.heap[this.length++] = n;\n }\n pop() {\n return this.heap[--this.length];\n }\n}\n/**\n * Default export, the thing you're using this module to get.\n *\n * The `K` and `V` types define the key and value types, respectively. The\n * optional `FC` type defines the type of the `context` object passed to\n * `cache.fetch()` and `cache.memo()`.\n *\n * Keys and values **must not** be `null` or `undefined`.\n *\n * All properties from the options object (with the exception of `max`,\n * `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are\n * added as normal public members. (The listed options are read-only getters.)\n *\n * Changing any of these will alter the defaults for subsequent method calls.\n */\nexport class LRUCache {\n // options that cannot be changed without disaster\n #max;\n #maxSize;\n #dispose;\n #disposeAfter;\n #fetchMethod;\n #memoMethod;\n /**\n * {@link LRUCache.OptionsBase.ttl}\n */\n ttl;\n /**\n * {@link LRUCache.OptionsBase.ttlResolution}\n */\n ttlResolution;\n /**\n * {@link LRUCache.OptionsBase.ttlAutopurge}\n */\n ttlAutopurge;\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnGet}\n */\n updateAgeOnGet;\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnHas}\n */\n updateAgeOnHas;\n /**\n * {@link LRUCache.OptionsBase.allowStale}\n */\n allowStale;\n /**\n * {@link LRUCache.OptionsBase.noDisposeOnSet}\n */\n noDisposeOnSet;\n /**\n * {@link LRUCache.OptionsBase.noUpdateTTL}\n */\n noUpdateTTL;\n /**\n * {@link LRUCache.OptionsBase.maxEntrySize}\n */\n maxEntrySize;\n /**\n * {@link LRUCache.OptionsBase.sizeCalculation}\n */\n sizeCalculation;\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}\n */\n noDeleteOnFetchRejection;\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}\n */\n noDeleteOnStaleGet;\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}\n */\n allowStaleOnFetchAbort;\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}\n */\n allowStaleOnFetchRejection;\n /**\n * {@link LRUCache.OptionsBase.ignoreFetchAbort}\n */\n ignoreFetchAbort;\n // computed properties\n #size;\n #calculatedSize;\n #keyMap;\n #keyList;\n #valList;\n #next;\n #prev;\n #head;\n #tail;\n #free;\n #disposed;\n #sizes;\n #starts;\n #ttls;\n #hasDispose;\n #hasFetchMethod;\n #hasDisposeAfter;\n /**\n * Do not call this method unless you need to inspect the\n * inner workings of the cache. If anything returned by this\n * object is modified in any way, strange breakage may occur.\n *\n * These fields are private for a reason!\n *\n * @internal\n */\n static unsafeExposeInternals(c) {\n return {\n // properties\n starts: c.#starts,\n ttls: c.#ttls,\n sizes: c.#sizes,\n keyMap: c.#keyMap,\n keyList: c.#keyList,\n valList: c.#valList,\n next: c.#next,\n prev: c.#prev,\n get head() {\n return c.#head;\n },\n get tail() {\n return c.#tail;\n },\n free: c.#free,\n // methods\n isBackgroundFetch: (p) => c.#isBackgroundFetch(p),\n backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),\n moveToTail: (index) => c.#moveToTail(index),\n indexes: (options) => c.#indexes(options),\n rindexes: (options) => c.#rindexes(options),\n isStale: (index) => c.#isStale(index),\n };\n }\n // Protected read-only members\n /**\n * {@link LRUCache.OptionsBase.max} (read-only)\n */\n get max() {\n return this.#max;\n }\n /**\n * {@link LRUCache.OptionsBase.maxSize} (read-only)\n */\n get maxSize() {\n return this.#maxSize;\n }\n /**\n * The total computed size of items in the cache (read-only)\n */\n get calculatedSize() {\n return this.#calculatedSize;\n }\n /**\n * The number of items stored in the cache (read-only)\n */\n get size() {\n return this.#size;\n }\n /**\n * {@link LRUCache.OptionsBase.fetchMethod} (read-only)\n */\n get fetchMethod() {\n return this.#fetchMethod;\n }\n get memoMethod() {\n return this.#memoMethod;\n }\n /**\n * {@link LRUCache.OptionsBase.dispose} (read-only)\n */\n get dispose() {\n return this.#dispose;\n }\n /**\n * {@link LRUCache.OptionsBase.disposeAfter} (read-only)\n */\n get disposeAfter() {\n return this.#disposeAfter;\n }\n constructor(options) {\n const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options;\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer');\n }\n const UintArray = max ? getUintArray(max) : Array;\n if (!UintArray) {\n throw new Error('invalid max value: ' + max);\n }\n this.#max = max;\n this.#maxSize = maxSize;\n this.maxEntrySize = maxEntrySize || this.#maxSize;\n this.sizeCalculation = sizeCalculation;\n if (this.sizeCalculation) {\n if (!this.#maxSize && !this.maxEntrySize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize or maxEntrySize');\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function');\n }\n }\n if (memoMethod !== undefined &&\n typeof memoMethod !== 'function') {\n throw new TypeError('memoMethod must be a function if defined');\n }\n this.#memoMethod = memoMethod;\n if (fetchMethod !== undefined &&\n typeof fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified');\n }\n this.#fetchMethod = fetchMethod;\n this.#hasFetchMethod = !!fetchMethod;\n this.#keyMap = new Map();\n this.#keyList = new Array(max).fill(undefined);\n this.#valList = new Array(max).fill(undefined);\n this.#next = new UintArray(max);\n this.#prev = new UintArray(max);\n this.#head = 0;\n this.#tail = 0;\n this.#free = Stack.create(max);\n this.#size = 0;\n this.#calculatedSize = 0;\n if (typeof dispose === 'function') {\n this.#dispose = dispose;\n }\n if (typeof disposeAfter === 'function') {\n this.#disposeAfter = disposeAfter;\n this.#disposed = [];\n }\n else {\n this.#disposeAfter = undefined;\n this.#disposed = undefined;\n }\n this.#hasDispose = !!this.#dispose;\n this.#hasDisposeAfter = !!this.#disposeAfter;\n this.noDisposeOnSet = !!noDisposeOnSet;\n this.noUpdateTTL = !!noUpdateTTL;\n this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;\n this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;\n this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;\n this.ignoreFetchAbort = !!ignoreFetchAbort;\n // NB: maxEntrySize is set to maxSize if it's set\n if (this.maxEntrySize !== 0) {\n if (this.#maxSize !== 0) {\n if (!isPosInt(this.#maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified');\n }\n }\n if (!isPosInt(this.maxEntrySize)) {\n throw new TypeError('maxEntrySize must be a positive integer if specified');\n }\n this.#initializeSizeTracking();\n }\n this.allowStale = !!allowStale;\n this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;\n this.updateAgeOnGet = !!updateAgeOnGet;\n this.updateAgeOnHas = !!updateAgeOnHas;\n this.ttlResolution =\n isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution\n : 1;\n this.ttlAutopurge = !!ttlAutopurge;\n this.ttl = ttl || 0;\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified');\n }\n this.#initializeTTLTracking();\n }\n // do not allow completely unbounded caches\n if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required');\n }\n if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED';\n if (shouldWarn(code)) {\n warned.add(code);\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.';\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache);\n }\n }\n }\n /**\n * Return the number of ms left in the item's TTL. If item is not in cache,\n * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.\n */\n getRemainingTTL(key) {\n return this.#keyMap.has(key) ? Infinity : 0;\n }\n #initializeTTLTracking() {\n const ttls = new ZeroArray(this.#max);\n const starts = new ZeroArray(this.#max);\n this.#ttls = ttls;\n this.#starts = starts;\n this.#setItemTTL = (index, ttl, start = perf.now()) => {\n starts[index] = ttl !== 0 ? start : 0;\n ttls[index] = ttl;\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.#isStale(index)) {\n this.#delete(this.#keyList[index], 'expire');\n }\n }, ttl + 1);\n // unref() not supported on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref();\n }\n /* c8 ignore stop */\n }\n };\n this.#updateItemAge = index => {\n starts[index] = ttls[index] !== 0 ? perf.now() : 0;\n };\n this.#statusTTL = (status, index) => {\n if (ttls[index]) {\n const ttl = ttls[index];\n const start = starts[index];\n /* c8 ignore next */\n if (!ttl || !start)\n return;\n status.ttl = ttl;\n status.start = start;\n status.now = cachedNow || getNow();\n const age = status.now - start;\n status.remainingTTL = ttl - age;\n }\n };\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0;\n const getNow = () => {\n const n = perf.now();\n if (this.ttlResolution > 0) {\n cachedNow = n;\n const t = setTimeout(() => (cachedNow = 0), this.ttlResolution);\n // not available on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref();\n }\n /* c8 ignore stop */\n }\n return n;\n };\n this.getRemainingTTL = key => {\n const index = this.#keyMap.get(key);\n if (index === undefined) {\n return 0;\n }\n const ttl = ttls[index];\n const start = starts[index];\n if (!ttl || !start) {\n return Infinity;\n }\n const age = (cachedNow || getNow()) - start;\n return ttl - age;\n };\n this.#isStale = index => {\n const s = starts[index];\n const t = ttls[index];\n return !!t && !!s && (cachedNow || getNow()) - s > t;\n };\n }\n // conditionally set private methods related to TTL\n #updateItemAge = () => { };\n #statusTTL = () => { };\n #setItemTTL = () => { };\n /* c8 ignore stop */\n #isStale = () => false;\n #initializeSizeTracking() {\n const sizes = new ZeroArray(this.#max);\n this.#calculatedSize = 0;\n this.#sizes = sizes;\n this.#removeItemSize = index => {\n this.#calculatedSize -= sizes[index];\n sizes[index] = 0;\n };\n this.#requireSize = (k, v, size, sizeCalculation) => {\n // provisionally accept background fetches.\n // actual value size will be checked when they return.\n if (this.#isBackgroundFetch(v)) {\n return 0;\n }\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function');\n }\n size = sizeCalculation(v, k);\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)');\n }\n }\n else {\n throw new TypeError('invalid size value (must be positive integer). ' +\n 'When maxSize or maxEntrySize is used, sizeCalculation ' +\n 'or size must be set.');\n }\n }\n return size;\n };\n this.#addItemSize = (index, size, status) => {\n sizes[index] = size;\n if (this.#maxSize) {\n const maxSize = this.#maxSize - sizes[index];\n while (this.#calculatedSize > maxSize) {\n this.#evict(true);\n }\n }\n this.#calculatedSize += sizes[index];\n if (status) {\n status.entrySize = size;\n status.totalCalculatedSize = this.#calculatedSize;\n }\n };\n }\n #removeItemSize = _i => { };\n #addItemSize = (_i, _s, _st) => { };\n #requireSize = (_k, _v, size, sizeCalculation) => {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize or maxEntrySize on cache');\n }\n return 0;\n };\n *#indexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#tail; true;) {\n if (!this.#isValidIndex(i)) {\n break;\n }\n if (allowStale || !this.#isStale(i)) {\n yield i;\n }\n if (i === this.#head) {\n break;\n }\n else {\n i = this.#prev[i];\n }\n }\n }\n }\n *#rindexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#head; true;) {\n if (!this.#isValidIndex(i)) {\n break;\n }\n if (allowStale || !this.#isStale(i)) {\n yield i;\n }\n if (i === this.#tail) {\n break;\n }\n else {\n i = this.#next[i];\n }\n }\n }\n }\n #isValidIndex(index) {\n return (index !== undefined &&\n this.#keyMap.get(this.#keyList[index]) === index);\n }\n /**\n * Return a generator yielding `[key, value]` pairs,\n * in order from most recently used to least recently used.\n */\n *entries() {\n for (const i of this.#indexes()) {\n if (this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield [this.#keyList[i], this.#valList[i]];\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.entries}\n *\n * Return a generator yielding `[key, value]` pairs,\n * in order from least recently used to most recently used.\n */\n *rentries() {\n for (const i of this.#rindexes()) {\n if (this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield [this.#keyList[i], this.#valList[i]];\n }\n }\n }\n /**\n * Return a generator yielding the keys in the cache,\n * in order from most recently used to least recently used.\n */\n *keys() {\n for (const i of this.#indexes()) {\n const k = this.#keyList[i];\n if (k !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield k;\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.keys}\n *\n * Return a generator yielding the keys in the cache,\n * in order from least recently used to most recently used.\n */\n *rkeys() {\n for (const i of this.#rindexes()) {\n const k = this.#keyList[i];\n if (k !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield k;\n }\n }\n }\n /**\n * Return a generator yielding the values in the cache,\n * in order from most recently used to least recently used.\n */\n *values() {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n if (v !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i];\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.values}\n *\n * Return a generator yielding the values in the cache,\n * in order from least recently used to most recently used.\n */\n *rvalues() {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i];\n if (v !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i];\n }\n }\n }\n /**\n * Iterating over the cache itself yields the same results as\n * {@link LRUCache.entries}\n */\n [Symbol.iterator]() {\n return this.entries();\n }\n /**\n * A String value that is used in the creation of the default string\n * description of an object. Called by the built-in method\n * `Object.prototype.toString`.\n */\n [Symbol.toStringTag] = 'LRUCache';\n /**\n * Find a value for which the supplied fn method returns a truthy value,\n * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.\n */\n find(fn, getOptions = {}) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n if (fn(value, this.#keyList[i], this)) {\n return this.get(this.#keyList[i], getOptions);\n }\n }\n }\n /**\n * Call the supplied function on each item in the cache, in order from most\n * recently used to least recently used.\n *\n * `fn` is called as `fn(value, key, cache)`.\n *\n * If `thisp` is provided, function will be called in the `this`-context of\n * the provided object, or the cache if no `thisp` object is provided.\n *\n * Does not update age or recenty of use, or iterate over stale values.\n */\n forEach(fn, thisp = this) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n fn.call(thisp, value, this.#keyList[i], this);\n }\n }\n /**\n * The same as {@link LRUCache.forEach} but items are iterated over in\n * reverse order. (ie, less recently used items are iterated over first.)\n */\n rforEach(fn, thisp = this) {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n fn.call(thisp, value, this.#keyList[i], this);\n }\n }\n /**\n * Delete any stale entries. Returns true if anything was removed,\n * false otherwise.\n */\n purgeStale() {\n let deleted = false;\n for (const i of this.#rindexes({ allowStale: true })) {\n if (this.#isStale(i)) {\n this.#delete(this.#keyList[i], 'expire');\n deleted = true;\n }\n }\n return deleted;\n }\n /**\n * Get the extended info about a given entry, to get its value, size, and\n * TTL info simultaneously. Returns `undefined` if the key is not present.\n *\n * Unlike {@link LRUCache#dump}, which is designed to be portable and survive\n * serialization, the `start` value is always the current timestamp, and the\n * `ttl` is a calculated remaining time to live (negative if expired).\n *\n * Always returns stale values, if their info is found in the cache, so be\n * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})\n * if relevant.\n */\n info(key) {\n const i = this.#keyMap.get(key);\n if (i === undefined)\n return undefined;\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n return undefined;\n const entry = { value };\n if (this.#ttls && this.#starts) {\n const ttl = this.#ttls[i];\n const start = this.#starts[i];\n if (ttl && start) {\n const remain = ttl - (perf.now() - start);\n entry.ttl = remain;\n entry.start = Date.now();\n }\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i];\n }\n return entry;\n }\n /**\n * Return an array of [key, {@link LRUCache.Entry}] tuples which can be\n * passed to {@link LRLUCache#load}.\n *\n * The `start` fields are calculated relative to a portable `Date.now()`\n * timestamp, even if `performance.now()` is available.\n *\n * Stale entries are always included in the `dump`, even if\n * {@link LRUCache.OptionsBase.allowStale} is false.\n *\n * Note: this returns an actual array, not a generator, so it can be more\n * easily passed around.\n */\n dump() {\n const arr = [];\n for (const i of this.#indexes({ allowStale: true })) {\n const key = this.#keyList[i];\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined || key === undefined)\n continue;\n const entry = { value };\n if (this.#ttls && this.#starts) {\n entry.ttl = this.#ttls[i];\n // always dump the start relative to a portable timestamp\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = perf.now() - this.#starts[i];\n entry.start = Math.floor(Date.now() - age);\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i];\n }\n arr.unshift([key, entry]);\n }\n return arr;\n }\n /**\n * Reset the cache and load in the items in entries in the order listed.\n *\n * The shape of the resulting cache may be different if the same options are\n * not used in both caches.\n *\n * The `start` fields are assumed to be calculated relative to a portable\n * `Date.now()` timestamp, even if `performance.now()` is available.\n */\n load(arr) {\n this.clear();\n for (const [key, entry] of arr) {\n if (entry.start) {\n // entry.start is a portable timestamp, but we may be using\n // node's performance.now(), so calculate the offset, so that\n // we get the intended remaining TTL, no matter how long it's\n // been on ice.\n //\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = Date.now() - entry.start;\n entry.start = perf.now() - age;\n }\n this.set(key, entry.value, entry);\n }\n }\n /**\n * Add a value to the cache.\n *\n * Note: if `undefined` is specified as a value, this is an alias for\n * {@link LRUCache#delete}\n *\n * Fields on the {@link LRUCache.SetOptions} options param will override\n * their corresponding values in the constructor options for the scope\n * of this single `set()` operation.\n *\n * If `start` is provided, then that will set the effective start\n * time for the TTL calculation. Note that this must be a previous\n * value of `performance.now()` if supported, or a previous value of\n * `Date.now()` if not.\n *\n * Options object may also include `size`, which will prevent\n * calling the `sizeCalculation` function and just use the specified\n * number if it is a positive integer, and `noDisposeOnSet` which\n * will prevent calling a `dispose` function in the case of\n * overwrites.\n *\n * If the `size` (or return value of `sizeCalculation`) for a given\n * entry is greater than `maxEntrySize`, then the item will not be\n * added to the cache.\n *\n * Will update the recency of the entry.\n *\n * If the value is `undefined`, then this is an alias for\n * `cache.delete(key)`. `undefined` is never stored in the cache.\n */\n set(k, v, setOptions = {}) {\n if (v === undefined) {\n this.delete(k);\n return this;\n }\n const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status, } = setOptions;\n let { noUpdateTTL = this.noUpdateTTL } = setOptions;\n const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);\n // if the item doesn't fit, don't do anything\n // NB: maxEntrySize set to maxSize by default\n if (this.maxEntrySize && size > this.maxEntrySize) {\n if (status) {\n status.set = 'miss';\n status.maxEntrySizeExceeded = true;\n }\n // have to delete, in case something is there already.\n this.#delete(k, 'set');\n return this;\n }\n let index = this.#size === 0 ? undefined : this.#keyMap.get(k);\n if (index === undefined) {\n // addition\n index = (this.#size === 0\n ? this.#tail\n : this.#free.length !== 0\n ? this.#free.pop()\n : this.#size === this.#max\n ? this.#evict(false)\n : this.#size);\n this.#keyList[index] = k;\n this.#valList[index] = v;\n this.#keyMap.set(k, index);\n this.#next[this.#tail] = index;\n this.#prev[index] = this.#tail;\n this.#tail = index;\n this.#size++;\n this.#addItemSize(index, size, status);\n if (status)\n status.set = 'add';\n noUpdateTTL = false;\n }\n else {\n // update\n this.#moveToTail(index);\n const oldVal = this.#valList[index];\n if (v !== oldVal) {\n if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort(new Error('replaced'));\n const { __staleWhileFetching: s } = oldVal;\n if (s !== undefined && !noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(s, k, 'set');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([s, k, 'set']);\n }\n }\n }\n else if (!noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(oldVal, k, 'set');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([oldVal, k, 'set']);\n }\n }\n this.#removeItemSize(index);\n this.#addItemSize(index, size, status);\n this.#valList[index] = v;\n if (status) {\n status.set = 'replace';\n const oldValue = oldVal && this.#isBackgroundFetch(oldVal)\n ? oldVal.__staleWhileFetching\n : oldVal;\n if (oldValue !== undefined)\n status.oldValue = oldValue;\n }\n }\n else if (status) {\n status.set = 'update';\n }\n }\n if (ttl !== 0 && !this.#ttls) {\n this.#initializeTTLTracking();\n }\n if (this.#ttls) {\n if (!noUpdateTTL) {\n this.#setItemTTL(index, ttl, start);\n }\n if (status)\n this.#statusTTL(status, index);\n }\n if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n return this;\n }\n /**\n * Evict the least recently used item, returning its value or\n * `undefined` if cache is empty.\n */\n pop() {\n try {\n while (this.#size) {\n const val = this.#valList[this.#head];\n this.#evict(true);\n if (this.#isBackgroundFetch(val)) {\n if (val.__staleWhileFetching) {\n return val.__staleWhileFetching;\n }\n }\n else if (val !== undefined) {\n return val;\n }\n }\n }\n finally {\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n }\n }\n #evict(free) {\n const head = this.#head;\n const k = this.#keyList[head];\n const v = this.#valList[head];\n if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('evicted'));\n }\n else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v, k, 'evict');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, 'evict']);\n }\n }\n this.#removeItemSize(head);\n // if we aren't about to use the index, then null these out\n if (free) {\n this.#keyList[head] = undefined;\n this.#valList[head] = undefined;\n this.#free.push(head);\n }\n if (this.#size === 1) {\n this.#head = this.#tail = 0;\n this.#free.length = 0;\n }\n else {\n this.#head = this.#next[head];\n }\n this.#keyMap.delete(k);\n this.#size--;\n return head;\n }\n /**\n * Check if a key is in the cache, without updating the recency of use.\n * Will return false if the item is stale, even though it is technically\n * in the cache.\n *\n * Check if a key is in the cache, without updating the recency of\n * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set\n * to `true` in either the options or the constructor.\n *\n * Will return `false` if the item is stale, even though it is technically in\n * the cache. The difference can be determined (if it matters) by using a\n * `status` argument, and inspecting the `has` field.\n *\n * Will not update item age unless\n * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.\n */\n has(k, hasOptions = {}) {\n const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v) &&\n v.__staleWhileFetching === undefined) {\n return false;\n }\n if (!this.#isStale(index)) {\n if (updateAgeOnHas) {\n this.#updateItemAge(index);\n }\n if (status) {\n status.has = 'hit';\n this.#statusTTL(status, index);\n }\n return true;\n }\n else if (status) {\n status.has = 'stale';\n this.#statusTTL(status, index);\n }\n }\n else if (status) {\n status.has = 'miss';\n }\n return false;\n }\n /**\n * Like {@link LRUCache#get} but doesn't update recency or delete stale\n * items.\n *\n * Returns `undefined` if the item is stale, unless\n * {@link LRUCache.OptionsBase.allowStale} is set.\n */\n peek(k, peekOptions = {}) {\n const { allowStale = this.allowStale } = peekOptions;\n const index = this.#keyMap.get(k);\n if (index === undefined ||\n (!allowStale && this.#isStale(index))) {\n return;\n }\n const v = this.#valList[index];\n // either stale and allowed, or forcing a refresh of non-stale value\n return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n }\n #backgroundFetch(k, index, options, context) {\n const v = index === undefined ? undefined : this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n return v;\n }\n const ac = new AC();\n const { signal } = options;\n // when/if our AC signals, then stop listening to theirs.\n signal?.addEventListener('abort', () => ac.abort(signal.reason), {\n signal: ac.signal,\n });\n const fetchOpts = {\n signal: ac.signal,\n options,\n context,\n };\n const cb = (v, updateCache = false) => {\n const { aborted } = ac.signal;\n const ignoreAbort = options.ignoreFetchAbort && v !== undefined;\n if (options.status) {\n if (aborted && !updateCache) {\n options.status.fetchAborted = true;\n options.status.fetchError = ac.signal.reason;\n if (ignoreAbort)\n options.status.fetchAbortIgnored = true;\n }\n else {\n options.status.fetchResolved = true;\n }\n }\n if (aborted && !ignoreAbort && !updateCache) {\n return fetchFail(ac.signal.reason);\n }\n // either we didn't abort, and are still here, or we did, and ignored\n const bf = p;\n if (this.#valList[index] === p) {\n if (v === undefined) {\n if (bf.__staleWhileFetching) {\n this.#valList[index] = bf.__staleWhileFetching;\n }\n else {\n this.#delete(k, 'fetch');\n }\n }\n else {\n if (options.status)\n options.status.fetchUpdated = true;\n this.set(k, v, fetchOpts.options);\n }\n }\n return v;\n };\n const eb = (er) => {\n if (options.status) {\n options.status.fetchRejected = true;\n options.status.fetchError = er;\n }\n return fetchFail(er);\n };\n const fetchFail = (er) => {\n const { aborted } = ac.signal;\n const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;\n const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;\n const noDelete = allowStale || options.noDeleteOnFetchRejection;\n const bf = p;\n if (this.#valList[index] === p) {\n // if we allow stale on fetch rejections, then we need to ensure that\n // the stale value is not removed from the cache when the fetch fails.\n const del = !noDelete || bf.__staleWhileFetching === undefined;\n if (del) {\n this.#delete(k, 'fetch');\n }\n else if (!allowStaleAborted) {\n // still replace the *promise* with the stale value,\n // since we are done with the promise at this point.\n // leave it untouched if we're still waiting for an\n // aborted background fetch that hasn't yet returned.\n this.#valList[index] = bf.__staleWhileFetching;\n }\n }\n if (allowStale) {\n if (options.status && bf.__staleWhileFetching !== undefined) {\n options.status.returnedStale = true;\n }\n return bf.__staleWhileFetching;\n }\n else if (bf.__returned === bf) {\n throw er;\n }\n };\n const pcall = (res, rej) => {\n const fmp = this.#fetchMethod?.(k, v, fetchOpts);\n if (fmp && fmp instanceof Promise) {\n fmp.then(v => res(v === undefined ? undefined : v), rej);\n }\n // ignored, we go until we finish, regardless.\n // defer check until we are actually aborting,\n // so fetchMethod can override.\n ac.signal.addEventListener('abort', () => {\n if (!options.ignoreFetchAbort ||\n options.allowStaleOnFetchAbort) {\n res(undefined);\n // when it eventually resolves, update the cache.\n if (options.allowStaleOnFetchAbort) {\n res = v => cb(v, true);\n }\n }\n });\n };\n if (options.status)\n options.status.fetchDispatched = true;\n const p = new Promise(pcall).then(cb, eb);\n const bf = Object.assign(p, {\n __abortController: ac,\n __staleWhileFetching: v,\n __returned: undefined,\n });\n if (index === undefined) {\n // internal, don't expose status.\n this.set(k, bf, { ...fetchOpts.options, status: undefined });\n index = this.#keyMap.get(k);\n }\n else {\n this.#valList[index] = bf;\n }\n return bf;\n }\n #isBackgroundFetch(p) {\n if (!this.#hasFetchMethod)\n return false;\n const b = p;\n return (!!b &&\n b instanceof Promise &&\n b.hasOwnProperty('__staleWhileFetching') &&\n b.__abortController instanceof AC);\n }\n async fetch(k, fetchOptions = {}) {\n const { \n // get options\n allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, \n // set options\n ttl = this.ttl, noDisposeOnSet = this.noDisposeOnSet, size = 0, sizeCalculation = this.sizeCalculation, noUpdateTTL = this.noUpdateTTL, \n // fetch exclusive options\n noDeleteOnFetchRejection = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection = this.allowStaleOnFetchRejection, ignoreFetchAbort = this.ignoreFetchAbort, allowStaleOnFetchAbort = this.allowStaleOnFetchAbort, context, forceRefresh = false, status, signal, } = fetchOptions;\n if (!this.#hasFetchMethod) {\n if (status)\n status.fetch = 'get';\n return this.get(k, {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n status,\n });\n }\n const options = {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n noDeleteOnFetchRejection,\n allowStaleOnFetchRejection,\n allowStaleOnFetchAbort,\n ignoreFetchAbort,\n status,\n signal,\n };\n let index = this.#keyMap.get(k);\n if (index === undefined) {\n if (status)\n status.fetch = 'miss';\n const p = this.#backgroundFetch(k, index, options, context);\n return (p.__returned = p);\n }\n else {\n // in cache, maybe already fetching\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n const stale = allowStale && v.__staleWhileFetching !== undefined;\n if (status) {\n status.fetch = 'inflight';\n if (stale)\n status.returnedStale = true;\n }\n return stale ? v.__staleWhileFetching : (v.__returned = v);\n }\n // if we force a refresh, that means do NOT serve the cached value,\n // unless we are already in the process of refreshing the cache.\n const isStale = this.#isStale(index);\n if (!forceRefresh && !isStale) {\n if (status)\n status.fetch = 'hit';\n this.#moveToTail(index);\n if (updateAgeOnGet) {\n this.#updateItemAge(index);\n }\n if (status)\n this.#statusTTL(status, index);\n return v;\n }\n // ok, it is stale or a forced refresh, and not already fetching.\n // refresh the cache.\n const p = this.#backgroundFetch(k, index, options, context);\n const hasStale = p.__staleWhileFetching !== undefined;\n const staleVal = hasStale && allowStale;\n if (status) {\n status.fetch = isStale ? 'stale' : 'refresh';\n if (staleVal && isStale)\n status.returnedStale = true;\n }\n return staleVal ? p.__staleWhileFetching : (p.__returned = p);\n }\n }\n async forceFetch(k, fetchOptions = {}) {\n const v = await this.fetch(k, fetchOptions);\n if (v === undefined)\n throw new Error('fetch() returned undefined');\n return v;\n }\n memo(k, memoOptions = {}) {\n const memoMethod = this.#memoMethod;\n if (!memoMethod) {\n throw new Error('no memoMethod provided to constructor');\n }\n const { context, forceRefresh, ...options } = memoOptions;\n const v = this.get(k, options);\n if (!forceRefresh && v !== undefined)\n return v;\n const vv = memoMethod(k, v, {\n options,\n context,\n });\n this.set(k, vv, options);\n return vv;\n }\n /**\n * Return a value from the cache. Will update the recency of the cache\n * entry found.\n *\n * If the key is not found, get() will return `undefined`.\n */\n get(k, getOptions = {}) {\n const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status, } = getOptions;\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n const value = this.#valList[index];\n const fetching = this.#isBackgroundFetch(value);\n if (status)\n this.#statusTTL(status, index);\n if (this.#isStale(index)) {\n if (status)\n status.get = 'stale';\n // delete only if not an in-flight background fetch\n if (!fetching) {\n if (!noDeleteOnStaleGet) {\n this.#delete(k, 'expire');\n }\n if (status && allowStale)\n status.returnedStale = true;\n return allowStale ? value : undefined;\n }\n else {\n if (status &&\n allowStale &&\n value.__staleWhileFetching !== undefined) {\n status.returnedStale = true;\n }\n return allowStale ? value.__staleWhileFetching : undefined;\n }\n }\n else {\n if (status)\n status.get = 'hit';\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching.\n // If it's not stale, and fetching, AND has a __staleWhileFetching\n // value, then that means the user fetched with {forceRefresh:true},\n // so it's safe to return that value.\n if (fetching) {\n return value.__staleWhileFetching;\n }\n this.#moveToTail(index);\n if (updateAgeOnGet) {\n this.#updateItemAge(index);\n }\n return value;\n }\n }\n else if (status) {\n status.get = 'miss';\n }\n }\n #connect(p, n) {\n this.#prev[n] = p;\n this.#next[p] = n;\n }\n #moveToTail(index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.#tail) {\n if (index === this.#head) {\n this.#head = this.#next[index];\n }\n else {\n this.#connect(this.#prev[index], this.#next[index]);\n }\n this.#connect(this.#tail, index);\n this.#tail = index;\n }\n }\n /**\n * Deletes a key out of the cache.\n *\n * Returns true if the key was deleted, false otherwise.\n */\n delete(k) {\n return this.#delete(k, 'delete');\n }\n #delete(k, reason) {\n let deleted = false;\n if (this.#size !== 0) {\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n deleted = true;\n if (this.#size === 1) {\n this.#clear(reason);\n }\n else {\n this.#removeItemSize(index);\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'));\n }\n else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v, k, reason);\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, reason]);\n }\n }\n this.#keyMap.delete(k);\n this.#keyList[index] = undefined;\n this.#valList[index] = undefined;\n if (index === this.#tail) {\n this.#tail = this.#prev[index];\n }\n else if (index === this.#head) {\n this.#head = this.#next[index];\n }\n else {\n const pi = this.#prev[index];\n this.#next[pi] = this.#next[index];\n const ni = this.#next[index];\n this.#prev[ni] = this.#prev[index];\n }\n this.#size--;\n this.#free.push(index);\n }\n }\n }\n if (this.#hasDisposeAfter && this.#disposed?.length) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n return deleted;\n }\n /**\n * Clear the cache entirely, throwing away all values.\n */\n clear() {\n return this.#clear('delete');\n }\n #clear(reason) {\n for (const index of this.#rindexes({ allowStale: true })) {\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'));\n }\n else {\n const k = this.#keyList[index];\n if (this.#hasDispose) {\n this.#dispose?.(v, k, reason);\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, reason]);\n }\n }\n }\n this.#keyMap.clear();\n this.#valList.fill(undefined);\n this.#keyList.fill(undefined);\n if (this.#ttls && this.#starts) {\n this.#ttls.fill(0);\n this.#starts.fill(0);\n }\n if (this.#sizes) {\n this.#sizes.fill(0);\n }\n this.#head = 0;\n this.#tail = 0;\n this.#free.length = 0;\n this.#calculatedSize = 0;\n this.#size = 0;\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n }\n}\n//# sourceMappingURL=index.js.map","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","import { injectStyles } from '../injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js';\nimport { t as transformCss, _ as _objectSpread2, a as _objectWithoutProperties, d as dedupeAndJoinClassList } from './transformCss-20240126.browser.esm.js';\nimport { setAdapterIfNotSet, getIdentOption, appendCss, registerClassName, registerComposition, markCompositionUsed } from '../adapter/dist/vanilla-extract-css-adapter.browser.esm.js';\nimport hash from '@emotion/hash';\nimport { getAndIncrementRefCounter, getFileScope, hasFileScope } from '../fileScope/dist/vanilla-extract-css-fileScope.browser.esm.js';\nimport { LRUCache } from 'lru-cache';\nimport { walkObject, get } from '@vanilla-extract/private';\nimport cssesc from 'cssesc';\nimport { diff } from 'deep-object-diff';\nimport pc from 'picocolors';\nimport { _ as _taggedTemplateLiteral } from './taggedTemplateLiteral-8e47dbd7.browser.esm.js';\nimport dedent from 'dedent';\nimport deepmerge from 'deepmerge';\nimport 'modern-ahocorasick';\nimport 'css-what';\nimport 'media-query-parser';\n\nvar localClassNames = new Set();\nvar composedClassLists = [];\nvar bufferedCSSObjs = [];\nvar browserRuntimeAdapter = {\n appendCss: cssObj => {\n bufferedCSSObjs.push(cssObj);\n },\n registerClassName: className => {\n localClassNames.add(className);\n },\n registerComposition: composition => {\n composedClassLists.push(composition);\n },\n markCompositionUsed: () => {},\n onEndFileScope: fileScope => {\n var css = transformCss({\n localClassNames: Array.from(localClassNames),\n composedClassLists,\n cssObjs: bufferedCSSObjs\n }).join('\\n');\n injectStyles({\n fileScope,\n css\n });\n bufferedCSSObjs = [];\n },\n getIdentOption: () => process.env.NODE_ENV === 'production' ? 'short' : 'debug'\n};\n{\n setAdapterIfNotSet(browserRuntimeAdapter);\n}\n\nvar getLastSlashBeforeIndex = (path, index) => {\n var pathIndex = index - 1;\n while (pathIndex >= 0) {\n if (path[pathIndex] === '/') {\n return pathIndex;\n }\n pathIndex--;\n }\n return -1;\n};\n\n/**\n * Assumptions:\n * - The path is always normalized to use posix file separators (/) (see `addFileScope`)\n * - The path is always relative to the project root, i.e. there will never be a leading slash (see `addFileScope`)\n * - As long as `.css` is there, we have a valid `.css.*` file path, because otherwise there wouldn't\n * be a file scope to begin with\n *\n * The LRU cache we use can't cache undefined/null values, so we opt to return an empty string,\n * rather than using a custom Symbol or something similar.\n */\nvar _getDebugFileName = path => {\n var file;\n var lastIndexOfDotCss = path.lastIndexOf('.css');\n if (lastIndexOfDotCss === -1) {\n return '';\n }\n var lastSlashIndex = getLastSlashBeforeIndex(path, lastIndexOfDotCss);\n file = path.slice(lastSlashIndex + 1, lastIndexOfDotCss);\n\n // There are no slashes, therefore theres no directory to extract\n if (lastSlashIndex === -1) {\n return file;\n }\n var secondLastSlashIndex = getLastSlashBeforeIndex(path, lastSlashIndex - 1);\n // If secondLastSlashIndex is -1, it means that the path looks like `directory/file.css.ts`,\n // in which case dir will still be sliced starting at 0, which is what we want\n var dir = path.slice(secondLastSlashIndex + 1, lastSlashIndex);\n var debugFileName = file !== 'index' ? file : dir;\n return debugFileName;\n};\nvar memoizedGetDebugFileName = () => {\n var cache = new LRUCache({\n max: 500\n });\n return path => {\n var cachedResult = cache.get(path);\n if (cachedResult) {\n return cachedResult;\n }\n var result = _getDebugFileName(path);\n cache.set(path, result);\n return result;\n };\n};\nvar getDebugFileName = memoizedGetDebugFileName();\n\nfunction getDevPrefix(_ref) {\n var {\n debugId,\n debugFileName\n } = _ref;\n var parts = debugId ? [debugId.replace(/\\s/g, '_')] : [];\n if (debugFileName) {\n var {\n filePath\n } = getFileScope();\n var _debugFileName = getDebugFileName(filePath);\n\n // debugFileName could be an empty string\n if (_debugFileName) {\n parts.unshift(_debugFileName);\n }\n }\n return parts.join('_');\n}\nfunction normalizeIdentifier(identifier) {\n return identifier.match(/^[0-9]/) ? \"_\".concat(identifier) : identifier;\n}\nfunction generateIdentifier(arg) {\n var identOption = getIdentOption();\n var {\n debugId,\n debugFileName = true\n } = _objectSpread2(_objectSpread2({}, typeof arg === 'string' ? {\n debugId: arg\n } : null), typeof arg === 'object' ? arg : null);\n\n // Convert ref count to base 36 for optimal hash lengths\n var refCount = getAndIncrementRefCounter().toString(36);\n var {\n filePath,\n packageName\n } = getFileScope();\n var fileScopeHash = hash(packageName ? \"\".concat(packageName).concat(filePath) : filePath);\n var identifier = \"\".concat(fileScopeHash).concat(refCount);\n if (identOption === 'debug') {\n var devPrefix = getDevPrefix({\n debugId,\n debugFileName\n });\n if (devPrefix) {\n identifier = \"\".concat(devPrefix, \"__\").concat(identifier);\n }\n return normalizeIdentifier(identifier);\n }\n if (typeof identOption === 'function') {\n identifier = identOption({\n hash: identifier,\n debugId,\n filePath,\n packageName\n });\n if (!identifier.match(/^[A-Z_][0-9A-Z_-]+$/i)) {\n throw new Error(\"Identifier function returned invalid indentifier: \\\"\".concat(identifier, \"\\\"\"));\n }\n return identifier;\n }\n return normalizeIdentifier(identifier);\n}\n\nvar normaliseObject = obj => walkObject(obj, () => '');\nfunction validateContract(contract, tokens) {\n var theDiff = diff(normaliseObject(contract), normaliseObject(tokens));\n var valid = Object.keys(theDiff).length === 0;\n return {\n valid,\n diffString: valid ? '' : renderDiff(contract, theDiff)\n };\n}\nfunction diffLine(value, nesting, type) {\n var whitespace = [...Array(nesting).keys()].map(() => ' ').join('');\n var line = \"\".concat(type ? type : ' ').concat(whitespace).concat(value);\n if (process.env.NODE_ENV !== 'test') {\n if (type === '-') {\n return pc.red(line);\n }\n if (type === '+') {\n return pc.green(line);\n }\n }\n return line;\n}\nfunction renderDiff(orig, diff) {\n var nesting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var lines = [];\n if (nesting === 0) {\n lines.push(diffLine('{', 0));\n }\n var innerNesting = nesting + 1;\n var keys = Object.keys(diff).sort();\n for (var key of keys) {\n var value = diff[key];\n if (!(key in orig)) {\n lines.push(diffLine(\"\".concat(key, \": ...,\"), innerNesting, '+'));\n } else if (typeof value === 'object') {\n lines.push(diffLine(\"\".concat(key, \": {\"), innerNesting));\n lines.push(renderDiff(orig[key], diff[key], innerNesting));\n lines.push(diffLine('}', innerNesting));\n } else {\n lines.push(diffLine(\"\".concat(key, \": ...,\"), innerNesting, '-'));\n }\n }\n if (nesting === 0) {\n lines.push(diffLine('}', 0));\n }\n return lines.join('\\n');\n}\n\nvar buildPropertyRule = _ref => {\n var {\n syntax,\n inherits,\n initialValue\n } = _ref;\n return _objectSpread2({\n syntax: \"\\\"\".concat(Array.isArray(syntax) ? syntax.join(' | ') : syntax, \"\\\"\"),\n inherits: inherits ? 'true' : 'false'\n }, initialValue != null ? {\n initialValue\n } : {});\n};\nfunction createVar(debugIdOrDeclaration, debugId) {\n var cssVarName = cssesc(generateIdentifier({\n debugId: typeof debugIdOrDeclaration === 'string' ? debugIdOrDeclaration : debugId,\n debugFileName: false\n }), {\n isIdentifier: true\n });\n if (debugIdOrDeclaration && typeof debugIdOrDeclaration === 'object') {\n appendCss({\n type: 'property',\n name: \"--\".concat(cssVarName),\n rule: buildPropertyRule(debugIdOrDeclaration)\n }, getFileScope());\n }\n return \"var(--\".concat(cssVarName, \")\");\n}\nfunction createGlobalVar(name, declaration) {\n if (declaration && typeof declaration === 'object') {\n appendCss({\n type: 'property',\n name: \"--\".concat(name),\n rule: buildPropertyRule(declaration)\n }, getFileScope());\n }\n return \"var(--\".concat(name, \")\");\n}\nfunction assertVarName(value) {\n if (typeof value !== 'string' || !/^var\\(--.*\\)$/.test(value)) {\n throw new Error(\"Invalid variable name: \".concat(value));\n }\n}\nfunction fallbackVar() {\n var finalValue = '';\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n values.reverse().forEach(value => {\n if (finalValue === '') {\n finalValue = String(value);\n } else {\n assertVarName(value);\n finalValue = value.replace(/\\)$/, \", \".concat(finalValue, \")\"));\n }\n });\n return finalValue;\n}\nfunction assignVars(varContract, tokens) {\n var varSetters = {};\n var {\n valid,\n diffString\n } = validateContract(varContract, tokens);\n if (!valid) {\n throw new Error(\"Tokens don't match contract.\\n\".concat(diffString));\n }\n walkObject(tokens, (value, path) => {\n varSetters[get(varContract, path)] = String(value);\n });\n return varSetters;\n}\nfunction createThemeContract(tokens) {\n return walkObject(tokens, (_value, path) => {\n return createVar(path.join('-'));\n });\n}\nfunction createGlobalThemeContract(tokens, mapFn) {\n return walkObject(tokens, (value, path) => {\n var rawVarName = typeof mapFn === 'function' ? mapFn(value, path) : value;\n var varName = typeof rawVarName === 'string' ? rawVarName.replace(/^--/, '') : null;\n if (typeof varName !== 'string' || varName !== cssesc(varName, {\n isIdentifier: true\n })) {\n throw new Error(\"Invalid variable name for \\\"\".concat(path.join('.'), \"\\\": \").concat(varName));\n }\n return \"var(--\".concat(varName, \")\");\n });\n}\n\nvar _excluded = [\"@layer\"];\nfunction createGlobalTheme(selector, arg2, arg3) {\n var themeContractProvided = Boolean(arg3);\n var tokenArg = themeContractProvided ? arg3 : arg2;\n var {\n layerName,\n tokens\n } = extractLayerFromTokens(tokenArg);\n var themeContract = themeContractProvided ? arg2 : createThemeContract(tokens);\n var rule = {\n vars: assignVars(themeContract, tokens)\n };\n if (layerName) {\n rule = {\n '@layer': {\n [layerName]: rule\n }\n };\n }\n appendCss({\n type: 'global',\n selector: selector,\n rule\n }, getFileScope());\n if (!themeContractProvided) {\n return themeContract;\n }\n}\nfunction createTheme(arg1, arg2, arg3) {\n var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2);\n registerClassName(themeClassName, getFileScope());\n var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1);\n return vars ? [themeClassName, vars] : themeClassName;\n}\nfunction extractLayerFromTokens(tokens) {\n if ('@layer' in tokens) {\n var {\n '@layer': layerName\n } = tokens,\n rest = _objectWithoutProperties(tokens, _excluded);\n return {\n layerName,\n tokens: rest\n };\n }\n return {\n tokens\n };\n}\n\nvar _templateObject;\nfunction composedStyle(rules, debugId) {\n var className = generateIdentifier(debugId);\n registerClassName(className, getFileScope());\n var classList = [];\n var styleRules = [];\n for (var rule of rules) {\n if (typeof rule === 'string') {\n classList.push(rule);\n } else {\n styleRules.push(rule);\n }\n }\n var result = className;\n if (classList.length > 0) {\n result = \"\".concat(className, \" \").concat(dedupeAndJoinClassList(classList));\n registerComposition({\n identifier: className,\n classList: result\n }, getFileScope());\n if (styleRules.length > 0) {\n // If there are styles attached to this composition then it is\n // always used and should never be removed\n markCompositionUsed(className);\n }\n }\n if (styleRules.length > 0) {\n var _rule = deepmerge.all(styleRules, {\n // Replace arrays rather than merging\n arrayMerge: (_, sourceArray) => sourceArray\n });\n appendCss({\n type: 'local',\n selector: className,\n rule: _rule\n }, getFileScope());\n }\n return result;\n}\nfunction style(rule, debugId) {\n if (Array.isArray(rule)) {\n return composedStyle(rule, debugId);\n }\n var className = generateIdentifier(debugId);\n registerClassName(className, getFileScope());\n appendCss({\n type: 'local',\n selector: className,\n rule\n }, getFileScope());\n return className;\n}\n\n/**\n * @deprecated The same functionality is now provided by the 'style' function when you pass it an array\n */\nfunction composeStyles() {\n var compose = hasFileScope() ? composedStyle : dedupeAndJoinClassList;\n for (var _len = arguments.length, classNames = new Array(_len), _key = 0; _key < _len; _key++) {\n classNames[_key] = arguments[_key];\n }\n return compose(classNames);\n}\nfunction globalStyle(selector, rule) {\n appendCss({\n type: 'global',\n selector,\n rule\n }, getFileScope());\n}\nfunction fontFace(rule, debugId) {\n var fontFamily = \"\\\"\".concat(cssesc(generateIdentifier(debugId), {\n quotes: 'double'\n }), \"\\\"\");\n var rules = Array.isArray(rule) ? rule : [rule];\n for (var singleRule of rules) {\n if ('fontFamily' in singleRule) {\n throw new Error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n This function creates and returns a hashed font-family name, so the \\\"fontFamily\\\" property should not be provided.\\n \\n If you'd like to define a globally scoped custom font, you can use the \\\"globalFontFace\\\" function instead.\\n \"]))));\n }\n appendCss({\n type: 'fontFace',\n rule: _objectSpread2(_objectSpread2({}, singleRule), {}, {\n fontFamily\n })\n }, getFileScope());\n }\n return fontFamily;\n}\nfunction globalFontFace(fontFamily, rule) {\n var rules = Array.isArray(rule) ? rule : [rule];\n for (var singleRule of rules) {\n appendCss({\n type: 'fontFace',\n rule: _objectSpread2(_objectSpread2({}, singleRule), {}, {\n fontFamily\n })\n }, getFileScope());\n }\n}\nfunction keyframes(rule, debugId) {\n var name = cssesc(generateIdentifier(debugId), {\n isIdentifier: true\n });\n appendCss({\n type: 'keyframes',\n name,\n rule\n }, getFileScope());\n return name;\n}\nfunction globalKeyframes(name, rule) {\n appendCss({\n type: 'keyframes',\n name,\n rule\n }, getFileScope());\n}\nfunction styleVariants() {\n if (typeof (arguments.length <= 1 ? undefined : arguments[1]) === 'function') {\n var _data = arguments.length <= 0 ? undefined : arguments[0];\n var _mapData = arguments.length <= 1 ? undefined : arguments[1];\n var _debugId = arguments.length <= 2 ? undefined : arguments[2];\n var _classMap = {};\n for (var _key2 in _data) {\n _classMap[_key2] = style(_mapData(_data[_key2], _key2), _debugId ? \"\".concat(_debugId, \"_\").concat(_key2) : _key2);\n }\n return _classMap;\n }\n var styleMap = arguments.length <= 0 ? undefined : arguments[0];\n var debugId = arguments.length <= 1 ? undefined : arguments[1];\n var classMap = {};\n for (var _key3 in styleMap) {\n classMap[_key3] = style(styleMap[_key3], debugId ? \"\".concat(debugId, \"_\").concat(_key3) : _key3);\n }\n return classMap;\n}\n\n// createContainer is used for local scoping of CSS containers\n// For now it is mostly just an alias of generateIdentifier\nvar createContainer = debugId => generateIdentifier(debugId);\n\n// createViewTransition is used for locally scoping CSS view transitions\n// For now it is mostly just an alias of generateIdentifier\nvar createViewTransition = debugId => generateIdentifier(debugId);\n\nvar defaultLayerOptions = {};\nvar merge = (obj1, obj2) => _objectSpread2(_objectSpread2({}, obj1), obj2);\nvar getLayerArgs = function getLayerArgs() {\n var options = defaultLayerOptions;\n var debugId = arguments.length <= 0 ? undefined : arguments[0];\n if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'object') {\n options = merge(defaultLayerOptions, arguments.length <= 0 ? undefined : arguments[0]);\n debugId = arguments.length <= 1 ? undefined : arguments[1];\n }\n return [options, debugId];\n};\nfunction layer() {\n var [options, debugId] = getLayerArgs(...arguments);\n var name = generateIdentifier(debugId);\n if (options.parent) {\n name = \"\".concat(options.parent, \".\").concat(name);\n }\n appendCss({\n type: 'layer',\n name\n }, getFileScope());\n return name;\n}\nfunction globalLayer() {\n var [options, name] = getLayerArgs(...arguments);\n if (options.parent) {\n name = \"\".concat(options.parent, \".\").concat(name);\n }\n appendCss({\n type: 'layer',\n name\n }, getFileScope());\n return name;\n}\n\nexport { assertVarName, assignVars, composeStyles, createContainer, createGlobalTheme, createGlobalThemeContract, createGlobalVar, createTheme, createThemeContract, createVar, createViewTransition, fallbackVar, fontFace, generateIdentifier, globalFontFace, globalKeyframes, globalLayer, globalStyle, keyframes, layer, style, styleVariants };\n","function addFunctionSerializer(target, recipe) {\n // TODO: Update to \"__function_serializer__\" in future.\n // __recipe__ is the backwards compatible name\n Object.defineProperty(target, '__recipe__', {\n value: recipe,\n writable: false\n });\n return target;\n}\n\nexport { addFunctionSerializer };\n","function toPrimitive(t, r) {\n if (\"object\" != typeof t || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != typeof i) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\n\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : String(i);\n}\n\nfunction _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\n\nfunction mapValues(input, fn) {\n var result = {};\n for (var _key in input) {\n result[_key] = fn(input[_key], _key);\n }\n return result;\n}\n\nvar shouldApplyCompound = (compoundCheck, selections, defaultVariants) => {\n for (var key of Object.keys(compoundCheck)) {\n var _selections$key;\n if (compoundCheck[key] !== ((_selections$key = selections[key]) !== null && _selections$key !== void 0 ? _selections$key : defaultVariants[key])) {\n return false;\n }\n }\n return true;\n};\nvar createRuntimeFn = config => {\n var runtimeFn = options => {\n var className = config.defaultClassName;\n var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);\n for (var variantName in selections) {\n var _selections$variantNa;\n var variantSelection = (_selections$variantNa = selections[variantName]) !== null && _selections$variantNa !== void 0 ? _selections$variantNa : config.defaultVariants[variantName];\n if (variantSelection != null) {\n var selection = variantSelection;\n if (typeof selection === 'boolean') {\n // @ts-expect-error\n selection = selection === true ? 'true' : 'false';\n }\n var selectionClassName =\n // @ts-expect-error\n config.variantClassNames[variantName][selection];\n if (selectionClassName) {\n className += ' ' + selectionClassName;\n }\n }\n }\n for (var [compoundCheck, compoundClassName] of config.compoundVariants) {\n if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) {\n className += ' ' + compoundClassName;\n }\n }\n return className;\n };\n runtimeFn.variants = () => Object.keys(config.variantClassNames);\n runtimeFn.classNames = {\n get base() {\n return config.defaultClassName.split(' ')[0];\n },\n get variants() {\n return mapValues(config.variantClassNames, classNames => mapValues(classNames, className => className.split(' ')[0]));\n }\n };\n return runtimeFn;\n};\n\nexport { createRuntimeFn as c, mapValues as m };\n","import { addRecipe } from '@vanilla-extract/css/recipe';\nimport { style, styleVariants } from '@vanilla-extract/css';\nimport { m as mapValues, c as createRuntimeFn } from './createRuntimeFn-62c9670f.esm.js';\n\nfunction recipe(options, debugId) {\n var {\n variants = {},\n defaultVariants = {},\n compoundVariants = [],\n base\n } = options;\n var defaultClassName;\n if (!base || typeof base === 'string') {\n var baseClassName = style({});\n defaultClassName = base ? \"\".concat(baseClassName, \" \").concat(base) : baseClassName;\n } else {\n defaultClassName = style(base, debugId);\n }\n\n // @ts-expect-error\n var variantClassNames = mapValues(variants, (variantGroup, variantGroupName) => styleVariants(variantGroup, styleRule => typeof styleRule === 'string' ? [styleRule] : styleRule, debugId ? \"\".concat(debugId, \"_\").concat(variantGroupName) : variantGroupName));\n var compounds = [];\n for (var {\n style: theStyle,\n variants: _variants\n } of compoundVariants) {\n compounds.push([_variants, typeof theStyle === 'string' ? theStyle : style(theStyle, \"\".concat(debugId, \"_compound_\").concat(compounds.length))]);\n }\n var config = {\n defaultClassName,\n variantClassNames,\n defaultVariants,\n compoundVariants: compounds\n };\n return addRecipe(createRuntimeFn(config), {\n importPath: '@vanilla-extract/recipes/createRuntimeFn',\n importName: 'createRuntimeFn',\n // @ts-expect-error\n args: [config]\n });\n}\n\nexport { recipe };\n","import { pitto } from '@pittorica/styles';\nimport { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nconst sizes = {\n small: '40rem',\n medium: '48rem',\n large: '64rem',\n xlarge: '80rem',\n xxlarge: '96rem',\n};\n\nconst zIndex = {\n overlay: 10_000,\n sheet: 10_001,\n};\n\nexport const overlay = style({\n position: 'fixed',\n inset: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.4)',\n zIndex: zIndex.overlay,\n backdropFilter: 'blur(2px)',\n});\n\nexport const sheetRecipe = recipe({\n base: style({\n position: 'fixed',\n zIndex: zIndex.sheet,\n display: 'flex',\n flexDirection: 'column',\n boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.15)',\n overflow: 'hidden',\n maxHeight: '100dvh',\n willChange: 'transform',\n boxSizing: 'border-box',\n backgroundColor: pitto.color.brand[900].color,\n // Default text color from theme, ensuring inheritance works if not overridden\n color: pitto.color.brand[900].onColor,\n }),\n\n variants: {\n side: {\n bottom: style({\n bottom: 0,\n left: 0,\n right: 0,\n maxHeight: '90vh',\n borderTopLeftRadius: '28px',\n borderTopRightRadius: '28px',\n }),\n right: style({\n top: 0,\n right: 0,\n bottom: 0,\n width: '100%',\n maxWidth: '400px',\n borderTopLeftRadius: '28px',\n borderBottomLeftRadius: '28px',\n }),\n left: style({\n top: 0,\n left: 0,\n bottom: 0,\n width: '100%',\n maxWidth: '400px',\n borderTopRightRadius: '28px',\n borderBottomRightRadius: '28px',\n }),\n },\n\n width: {\n full: style({ width: '100%' }),\n small: style({\n width: '100%',\n maxWidth: sizes.small,\n marginInline: 'auto',\n }),\n medium: style({\n width: '100%',\n maxWidth: sizes.medium,\n marginInline: 'auto',\n }),\n large: style({\n width: '100%',\n maxWidth: sizes.large,\n marginInline: 'auto',\n }),\n xlarge: style({\n width: '100%',\n maxWidth: sizes.xlarge,\n marginInline: 'auto',\n }),\n xxlarge: style({\n width: '100%',\n maxWidth: sizes.xxlarge,\n marginInline: 'auto',\n }),\n },\n },\n\n defaultVariants: {\n side: 'right',\n width: 'full',\n },\n});\n\nexport const dragHandle = style({\n width: '32px',\n height: '4px',\n backgroundColor: pitto.color.gray[300].color,\n borderRadius: pitto.border.radius.full,\n margin: '0 auto',\n marginTop: pitto.spacing.medium,\n marginBottom: pitto.spacing.small,\n flexShrink: 0,\n});\n\nexport const header = style({\n paddingLeft: pitto.spacing.large,\n paddingRight: pitto.spacing.large,\n paddingTop: pitto.spacing.large,\n paddingBottom: pitto.spacing.medium,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n flexShrink: 0,\n});\n\nexport const titleStyle = style({\n fontFamily: pitto.font.family.sans,\n fontSize: pitto.font.size.headline.small,\n fontWeight: pitto.font.weight.medium,\n margin: 0,\n color: 'inherit',\n});\n\nexport const content = style({\n paddingLeft: pitto.spacing.small,\n paddingRight: pitto.spacing.small,\n paddingBottom: pitto.spacing.xlarge,\n flex: 1,\n overflowY: 'auto',\n paddingTop: 0,\n});\n\nexport const closeButton = style({\n background: 'transparent',\n border: 'none',\n cursor: 'pointer',\n padding: pitto.spacing.small,\n borderRadius: pitto.border.radius.full,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'inherit',\n opacity: 0.7,\n transition: 'background-color 0.2s, opacity 0.2s',\n ':hover': {\n backgroundColor: 'rgba(0,0,0, 0.05)', // Hover generico\n opacity: 1,\n },\n});\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray;\nfunction noop() {}\nvar ReactSharedInternals = { H: null, A: null, T: null, S: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, props) {\n var refProp = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== refProp ? refProp : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(oldElement.type, newKey, oldElement.props);\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\nexports.Activity = REACT_ACTIVITY_TYPE;\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n __proto__: null,\n c: function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n }\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cacheSignal = function () {\n return null;\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, deps) {\n return ReactSharedInternals.H.useEffect(create, deps);\n};\nexports.useEffectEvent = function (callback) {\n return ReactSharedInternals.H.useEffectEvent(callback);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.2.3\";\n","/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function defineDeprecationWarning(methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n console.warn(\n \"%s(...) is deprecated in plain JavaScript React classes. %s\",\n info[0],\n info[1]\n );\n }\n });\n }\n function getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable)\n return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n }\n function warnNoop(publicInstance, callerName) {\n publicInstance =\n ((publicInstance = publicInstance.constructor) &&\n (publicInstance.displayName || publicInstance.name)) ||\n \"ReactClass\";\n var warningKey = publicInstance + \".\" + callerName;\n didWarnStateUpdateForUnmountedComponent[warningKey] ||\n (console.error(\n \"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",\n callerName,\n publicInstance\n ),\n (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));\n }\n function Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function ComponentDummy() {}\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function noop() {}\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n newKey = ReactElement(\n oldElement.type,\n newKey,\n oldElement.props,\n oldElement._owner,\n oldElement._debugStack,\n oldElement._debugTask\n );\n oldElement._store &&\n (newKey._store.validated = oldElement._store.validated);\n return newKey;\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n function escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n }\n function getElementKey(element, index) {\n return \"object\" === typeof element &&\n null !== element &&\n null != element.key\n ? (checkKeyStringCoercion(element.key), escape(\"\" + element.key))\n : index.toString(36);\n }\n function resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"),\n (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback) {\n invokeCallback = children;\n callback = callback(invokeCallback);\n var childKey =\n \"\" === nameSoFar ? \".\" + getElementKey(invokeCallback, 0) : nameSoFar;\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != childKey &&\n (escapedPrefix =\n childKey.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (null != callback.key &&\n ((invokeCallback && invokeCallback.key === callback.key) ||\n checkKeyStringCoercion(callback.key)),\n (escapedPrefix = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (invokeCallback && invokeCallback.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n childKey\n )),\n \"\" !== nameSoFar &&\n null != invokeCallback &&\n isValidElement(invokeCallback) &&\n null == invokeCallback.key &&\n invokeCallback._store &&\n !invokeCallback._store.validated &&\n (escapedPrefix._store.validated = 2),\n (callback = escapedPrefix)),\n array.push(callback));\n return 1;\n }\n invokeCallback = 0;\n childKey = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = childKey + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n i === children.entries &&\n (didWarnAboutMaps ||\n console.warn(\n \"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"\n ),\n (didWarnAboutMaps = !0)),\n children = i.call(children),\n i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = childKey + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n }\n function mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n function lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ioInfo = payload._ioInfo;\n null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());\n ioInfo = payload._result;\n var thenable = ioInfo();\n thenable.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 1;\n payload._result = moduleObject;\n var _ioInfo = payload._ioInfo;\n null != _ioInfo && (_ioInfo.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = moduleObject));\n }\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 2;\n payload._result = error;\n var _ioInfo2 = payload._ioInfo;\n null != _ioInfo2 && (_ioInfo2.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n }\n );\n ioInfo = payload._ioInfo;\n if (null != ioInfo) {\n ioInfo.value = thenable;\n var displayName = thenable.displayName;\n \"string\" === typeof displayName && (ioInfo.name = displayName);\n }\n -1 === payload._status &&\n ((payload._status = 0), (payload._result = thenable));\n }\n if (1 === payload._status)\n return (\n (ioInfo = payload._result),\n void 0 === ioInfo &&\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\\n\\nDid you accidentally put curly braces around the import?\",\n ioInfo\n ),\n \"default\" in ioInfo ||\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\",\n ioInfo\n ),\n ioInfo.default\n );\n throw payload._result;\n }\n function resolveDispatcher() {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher;\n }\n function releaseAsyncTransition() {\n ReactSharedInternals.asyncTransitions--;\n }\n function enqueueTask(task) {\n if (null === enqueueTaskImpl)\n try {\n var requireString = (\"require\" + Math.random()).slice(0, 7);\n enqueueTaskImpl = (module && module[requireString]).call(\n module,\n \"timers\"\n ).setImmediate;\n } catch (_err) {\n enqueueTaskImpl = function (callback) {\n !1 === didWarnAboutMessageChannel &&\n ((didWarnAboutMessageChannel = !0),\n \"undefined\" === typeof MessageChannel &&\n console.error(\n \"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"\n ));\n var channel = new MessageChannel();\n channel.port1.onmessage = callback;\n channel.port2.postMessage(void 0);\n };\n }\n return enqueueTaskImpl(task);\n }\n function aggregateErrors(errors) {\n return 1 < errors.length && \"function\" === typeof AggregateError\n ? new AggregateError(errors)\n : errors[0];\n }\n function popActScope(prevActQueue, prevActScopeDepth) {\n prevActScopeDepth !== actScopeDepth - 1 &&\n console.error(\n \"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"\n );\n actScopeDepth = prevActScopeDepth;\n }\n function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n var queue = ReactSharedInternals.actQueue;\n if (null !== queue)\n if (0 !== queue.length)\n try {\n flushActQueue(queue);\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n });\n return;\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n else ReactSharedInternals.actQueue = null;\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(queue))\n : resolve(returnValue);\n }\n function flushActQueue(queue) {\n if (!isFlushing) {\n isFlushing = !0;\n var i = 0;\n try {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n do {\n ReactSharedInternals.didUsePromise = !1;\n var continuation = callback(!1);\n if (null !== continuation) {\n if (ReactSharedInternals.didUsePromise) {\n queue[i] = callback;\n queue.splice(0, i);\n return;\n }\n callback = continuation;\n } else break;\n } while (1);\n }\n queue.length = 0;\n } catch (error) {\n queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);\n } finally {\n isFlushing = !1;\n }\n }\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n didWarnStateUpdateForUnmountedComponent = {},\n ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function (publicInstance) {\n warnNoop(publicInstance, \"forceUpdate\");\n },\n enqueueReplaceState: function (publicInstance) {\n warnNoop(publicInstance, \"replaceState\");\n },\n enqueueSetState: function (publicInstance) {\n warnNoop(publicInstance, \"setState\");\n }\n },\n assign = Object.assign,\n emptyObject = {};\n Object.freeze(emptyObject);\n Component.prototype.isReactComponent = {};\n Component.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n };\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n };\n var deprecatedAPIs = {\n isMounted: [\n \"isMounted\",\n \"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"\n ],\n replaceState: [\n \"replaceState\",\n \"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"\n ]\n };\n for (fnName in deprecatedAPIs)\n deprecatedAPIs.hasOwnProperty(fnName) &&\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n ComponentDummy.prototype = Component.prototype;\n deprecatedAPIs = PureComponent.prototype = new ComponentDummy();\n deprecatedAPIs.constructor = PureComponent;\n assign(deprecatedAPIs, Component.prototype);\n deprecatedAPIs.isPureReactComponent = !0;\n var isArrayImpl = Array.isArray,\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals = {\n H: null,\n A: null,\n T: null,\n S: null,\n actQueue: null,\n asyncTransitions: 0,\n isBatchingLegacy: !1,\n didScheduleLegacyUpdate: !1,\n didUsePromise: !1,\n thrownErrors: [],\n getCurrentStack: null,\n recentlyCreatedOwnerStacks: 0\n },\n hasOwnProperty = Object.prototype.hasOwnProperty,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n deprecatedAPIs = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(\n deprecatedAPIs,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutMaps = !1,\n userProvidedKeyEscapeRegex = /\\/+/g,\n reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n didWarnAboutMessageChannel = !1,\n enqueueTaskImpl = null,\n actScopeDepth = 0,\n didWarnNoAwaitAct = !1,\n isFlushing = !1,\n queueSeveralMicrotasks =\n \"function\" === typeof queueMicrotask\n ? function (callback) {\n queueMicrotask(function () {\n return queueMicrotask(callback);\n });\n }\n : enqueueTask;\n deprecatedAPIs = Object.freeze({\n __proto__: null,\n c: function (size) {\n return resolveDispatcher().useMemoCache(size);\n }\n });\n var fnName = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\n exports.Activity = REACT_ACTIVITY_TYPE;\n exports.Children = fnName;\n exports.Component = Component;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.PureComponent = PureComponent;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\n exports.__COMPILER_RUNTIME = deprecatedAPIs;\n exports.act = function (callback) {\n var prevActQueue = ReactSharedInternals.actQueue,\n prevActScopeDepth = actScopeDepth;\n actScopeDepth++;\n var queue = (ReactSharedInternals.actQueue =\n null !== prevActQueue ? prevActQueue : []),\n didAwaitActCall = !1;\n try {\n var result = callback();\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n (popActScope(prevActQueue, prevActScopeDepth),\n (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n if (\n null !== result &&\n \"object\" === typeof result &&\n \"function\" === typeof result.then\n ) {\n var thenable = result;\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"\n ));\n });\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n thenable.then(\n function (returnValue) {\n popActScope(prevActQueue, prevActScopeDepth);\n if (0 === prevActScopeDepth) {\n try {\n flushActQueue(queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue,\n resolve,\n reject\n );\n });\n } catch (error$0) {\n ReactSharedInternals.thrownErrors.push(error$0);\n }\n if (0 < ReactSharedInternals.thrownErrors.length) {\n var _thrownError = aggregateErrors(\n ReactSharedInternals.thrownErrors\n );\n ReactSharedInternals.thrownErrors.length = 0;\n reject(_thrownError);\n }\n } else resolve(returnValue);\n },\n function (error) {\n popActScope(prevActQueue, prevActScopeDepth);\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((error = aggregateErrors(\n ReactSharedInternals.thrownErrors\n )),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(error))\n : reject(error);\n }\n );\n }\n };\n }\n var returnValue$jscomp$0 = result;\n popActScope(prevActQueue, prevActScopeDepth);\n 0 === prevActScopeDepth &&\n (flushActQueue(queue),\n 0 !== queue.length &&\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\n\\nawait act(() => ...)\"\n ));\n }),\n (ReactSharedInternals.actQueue = null));\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n 0 === prevActScopeDepth\n ? ((ReactSharedInternals.actQueue = queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue$jscomp$0,\n resolve,\n reject\n );\n }))\n : resolve(returnValue$jscomp$0);\n }\n };\n };\n exports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n };\n exports.cacheSignal = function () {\n return null;\n };\n exports.captureOwnerStack = function () {\n var getCurrentStack = ReactSharedInternals.getCurrentStack;\n return null === getCurrentStack ? null : getCurrentStack();\n };\n exports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" +\n element +\n \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = element._owner;\n if (null != config) {\n var JSCompiler_inline_result;\n a: {\n if (\n hasOwnProperty.call(config, \"ref\") &&\n (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(\n config,\n \"ref\"\n ).get) &&\n JSCompiler_inline_result.isReactWarning\n ) {\n JSCompiler_inline_result = !1;\n break a;\n }\n JSCompiler_inline_result = void 0 !== config.ref;\n }\n JSCompiler_inline_result && (owner = getOwner());\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key));\n for (propName in config)\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n }\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n JSCompiler_inline_result = Array(propName);\n for (var i = 0; i < propName; i++)\n JSCompiler_inline_result[i] = arguments[i + 2];\n props.children = JSCompiler_inline_result;\n }\n props = ReactElement(\n element.type,\n key,\n props,\n owner,\n element._debugStack,\n element._debugTask\n );\n for (key = 2; key < arguments.length; key++)\n validateChildKeys(arguments[key]);\n return props;\n };\n exports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n defaultValue._currentRenderer = null;\n defaultValue._currentRenderer2 = null;\n return defaultValue;\n };\n exports.createElement = function (type, config, children) {\n for (var i = 2; i < arguments.length; i++)\n validateChildKeys(arguments[i]);\n i = {};\n var key = null;\n if (null != config)\n for (propName in (didWarnAboutOldJSXRuntime ||\n !(\"__self\" in config) ||\n \"key\" in config ||\n ((didWarnAboutOldJSXRuntime = !0),\n console.warn(\n \"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\"\n )),\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key)),\n config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (i[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) i.children = children;\n else if (1 < childrenLength) {\n for (\n var childArray = Array(childrenLength), _i = 0;\n _i < childrenLength;\n _i++\n )\n childArray[_i] = arguments[_i + 2];\n Object.freeze && Object.freeze(childArray);\n i.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === i[propName] && (i[propName] = childrenLength[propName]);\n key &&\n defineKeyPropWarningGetter(\n i,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return ReactElement(\n type,\n key,\n i,\n getOwner(),\n propName ? Error(\"react-stack-top-frame\") : unknownOwnerDebugStack,\n propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.createRef = function () {\n var refObject = { current: null };\n Object.seal(refObject);\n return refObject;\n };\n exports.forwardRef = function (render) {\n null != render && render.$$typeof === REACT_MEMO_TYPE\n ? console.error(\n \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"\n )\n : \"function\" !== typeof render\n ? console.error(\n \"forwardRef requires a render function but was given %s.\",\n null === render ? \"null\" : typeof render\n )\n : 0 !== render.length &&\n 2 !== render.length &&\n console.error(\n \"forwardRef render functions accept exactly two parameters: props and ref. %s\",\n 1 === render.length\n ? \"Did you forget to use the ref parameter?\"\n : \"Any additional parameter will be undefined.\"\n );\n null != render &&\n null != render.defaultProps &&\n console.error(\n \"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\"\n );\n var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },\n ownName;\n Object.defineProperty(elementType, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n render.name ||\n render.displayName ||\n (Object.defineProperty(render, \"name\", { value: name }),\n (render.displayName = name));\n }\n });\n return elementType;\n };\n exports.isValidElement = isValidElement;\n exports.lazy = function (ctor) {\n ctor = { _status: -1, _result: ctor };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: ctor,\n _init: lazyInitializer\n },\n ioInfo = {\n name: \"lazy\",\n start: -1,\n end: -1,\n value: null,\n owner: null,\n debugStack: Error(\"react-stack-top-frame\"),\n debugTask: console.createTask ? console.createTask(\"lazy()\") : null\n };\n ctor._ioInfo = ioInfo;\n lazyType._debugInfo = [{ awaited: ioInfo }];\n return lazyType;\n };\n exports.memo = function (type, compare) {\n null == type &&\n console.error(\n \"memo: The first argument must be a component. Instead received: %s\",\n null === type ? \"null\" : typeof type\n );\n compare = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n var ownName;\n Object.defineProperty(compare, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n type.name ||\n type.displayName ||\n (Object.defineProperty(type, \"name\", { value: name }),\n (type.displayName = name));\n }\n });\n return compare;\n };\n exports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n currentTransition._updatedFibers = new Set();\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n (ReactSharedInternals.asyncTransitions++,\n returnValue.then(releaseAsyncTransition, releaseAsyncTransition),\n returnValue.then(noop, reportGlobalError));\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null === prevTransition &&\n currentTransition._updatedFibers &&\n ((scope = currentTransition._updatedFibers.size),\n currentTransition._updatedFibers.clear(),\n 10 < scope &&\n console.warn(\n \"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"\n )),\n null !== prevTransition &&\n null !== currentTransition.types &&\n (null !== prevTransition.types &&\n prevTransition.types !== currentTransition.types &&\n console.error(\n \"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"\n ),\n (prevTransition.types = currentTransition.types)),\n (ReactSharedInternals.T = prevTransition);\n }\n };\n exports.unstable_useCacheRefresh = function () {\n return resolveDispatcher().useCacheRefresh();\n };\n exports.use = function (usable) {\n return resolveDispatcher().use(usable);\n };\n exports.useActionState = function (action, initialState, permalink) {\n return resolveDispatcher().useActionState(\n action,\n initialState,\n permalink\n );\n };\n exports.useCallback = function (callback, deps) {\n return resolveDispatcher().useCallback(callback, deps);\n };\n exports.useContext = function (Context) {\n var dispatcher = resolveDispatcher();\n Context.$$typeof === REACT_CONSUMER_TYPE &&\n console.error(\n \"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"\n );\n return dispatcher.useContext(Context);\n };\n exports.useDebugValue = function (value, formatterFn) {\n return resolveDispatcher().useDebugValue(value, formatterFn);\n };\n exports.useDeferredValue = function (value, initialValue) {\n return resolveDispatcher().useDeferredValue(value, initialValue);\n };\n exports.useEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useEffect(create, deps);\n };\n exports.useEffectEvent = function (callback) {\n return resolveDispatcher().useEffectEvent(callback);\n };\n exports.useId = function () {\n return resolveDispatcher().useId();\n };\n exports.useImperativeHandle = function (ref, create, deps) {\n return resolveDispatcher().useImperativeHandle(ref, create, deps);\n };\n exports.useInsertionEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useInsertionEffect(create, deps);\n };\n exports.useLayoutEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useLayoutEffect(create, deps);\n };\n exports.useMemo = function (create, deps) {\n return resolveDispatcher().useMemo(create, deps);\n };\n exports.useOptimistic = function (passthrough, reducer) {\n return resolveDispatcher().useOptimistic(passthrough, reducer);\n };\n exports.useReducer = function (reducer, initialArg, init) {\n return resolveDispatcher().useReducer(reducer, initialArg, init);\n };\n exports.useRef = function (initialValue) {\n return resolveDispatcher().useRef(initialValue);\n };\n exports.useState = function (initialState) {\n return resolveDispatcher().useState(initialState);\n };\n exports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n ) {\n return resolveDispatcher().useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n };\n exports.useTransition = function () {\n return resolveDispatcher().useTransition();\n };\n exports.version = \"19.2.3\";\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n","/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.2.3\";\n","/**\n * @license React\n * react-dom.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function noop() {}\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n try {\n testStringCoercion(key);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n JSCompiler_inline_result &&\n (console.error(\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n key[Symbol.toStringTag]) ||\n key.constructor.name ||\n \"Object\"\n ),\n testStringCoercion(key));\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n }\n function getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n }\n function getValueDescriptorExpectingObjectForWarning(thing) {\n return null === thing\n ? \"`null`\"\n : void 0 === thing\n ? \"`undefined`\"\n : \"\" === thing\n ? \"an empty string\"\n : 'something with type \"' + typeof thing + '\"';\n }\n function getValueDescriptorExpectingEnumForWarning(thing) {\n return null === thing\n ? \"`null`\"\n : void 0 === thing\n ? \"`undefined`\"\n : \"\" === thing\n ? \"an empty string\"\n : \"string\" === typeof thing\n ? JSON.stringify(thing)\n : \"number\" === typeof thing\n ? \"`\" + thing + \"`\"\n : 'something with type \"' + typeof thing + '\"';\n }\n function resolveDispatcher() {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher;\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(\n \"Invalid form element. requestFormReset must be passed a form that was rendered by React.\"\n );\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n (\"function\" === typeof Map &&\n null != Map.prototype &&\n \"function\" === typeof Map.prototype.forEach &&\n \"function\" === typeof Set &&\n null != Set.prototype &&\n \"function\" === typeof Set.prototype.clear &&\n \"function\" === typeof Set.prototype.forEach) ||\n console.error(\n \"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"\n );\n exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\n exports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(\"Target container is not a DOM element.\");\n return createPortal$1(children, container, null, key);\n };\n exports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))\n return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f() &&\n console.error(\n \"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.\"\n );\n }\n };\n exports.preconnect = function (href, options) {\n \"string\" === typeof href && href\n ? null != options && \"object\" !== typeof options\n ? console.error(\n \"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",\n getValueDescriptorExpectingEnumForWarning(options)\n )\n : null != options &&\n \"string\" !== typeof options.crossOrigin &&\n console.error(\n \"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",\n getValueDescriptorExpectingObjectForWarning(options.crossOrigin)\n )\n : console.error(\n \"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n getValueDescriptorExpectingObjectForWarning(href)\n );\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n };\n exports.prefetchDNS = function (href) {\n if (\"string\" !== typeof href || !href)\n console.error(\n \"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n getValueDescriptorExpectingObjectForWarning(href)\n );\n else if (1 < arguments.length) {\n var options = arguments[1];\n \"object\" === typeof options && options.hasOwnProperty(\"crossOrigin\")\n ? console.error(\n \"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",\n getValueDescriptorExpectingEnumForWarning(options)\n )\n : console.error(\n \"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",\n getValueDescriptorExpectingEnumForWarning(options)\n );\n }\n \"string\" === typeof href && Internals.d.D(href);\n };\n exports.preinit = function (href, options) {\n \"string\" === typeof href && href\n ? null == options || \"object\" !== typeof options\n ? console.error(\n \"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",\n getValueDescriptorExpectingEnumForWarning(options)\n )\n : \"style\" !== options.as &&\n \"script\" !== options.as &&\n console.error(\n 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".',\n getValueDescriptorExpectingEnumForWarning(options.as)\n )\n : console.error(\n \"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n getValueDescriptorExpectingObjectForWarning(href)\n );\n if (\n \"string\" === typeof href &&\n options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence\n ? options.precedence\n : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n };\n exports.preinitModule = function (href, options) {\n var encountered = \"\";\n (\"string\" === typeof href && href) ||\n (encountered +=\n \" The `href` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(href) +\n \".\");\n void 0 !== options && \"object\" !== typeof options\n ? (encountered +=\n \" The `options` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(options) +\n \".\")\n : options &&\n \"as\" in options &&\n \"script\" !== options.as &&\n (encountered +=\n \" The `as` option encountered was \" +\n getValueDescriptorExpectingEnumForWarning(options.as) +\n \".\");\n if (encountered)\n console.error(\n \"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",\n encountered\n );\n else\n switch (\n ((encountered =\n options && \"string\" === typeof options.as ? options.as : \"script\"),\n encountered)\n ) {\n case \"script\":\n break;\n default:\n (encountered =\n getValueDescriptorExpectingEnumForWarning(encountered)),\n console.error(\n 'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',\n encountered,\n href\n );\n }\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as)\n (encountered = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n )),\n Internals.d.M(href, {\n crossOrigin: encountered,\n integrity:\n \"string\" === typeof options.integrity\n ? options.integrity\n : void 0,\n nonce:\n \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n } else null == options && Internals.d.M(href);\n };\n exports.preload = function (href, options) {\n var encountered = \"\";\n (\"string\" === typeof href && href) ||\n (encountered +=\n \" The `href` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(href) +\n \".\");\n null == options || \"object\" !== typeof options\n ? (encountered +=\n \" The `options` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(options) +\n \".\")\n : (\"string\" === typeof options.as && options.as) ||\n (encountered +=\n \" The `as` option encountered was \" +\n getValueDescriptorExpectingObjectForWarning(options.as) +\n \".\");\n encountered &&\n console.error(\n 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s',\n encountered\n );\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n encountered = options.as;\n var crossOrigin = getCrossOriginStringAs(\n encountered,\n options.crossOrigin\n );\n Internals.d.L(href, encountered, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet\n ? options.imageSrcSet\n : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes\n ? options.imageSizes\n : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n };\n exports.preloadModule = function (href, options) {\n var encountered = \"\";\n (\"string\" === typeof href && href) ||\n (encountered +=\n \" The `href` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(href) +\n \".\");\n void 0 !== options && \"object\" !== typeof options\n ? (encountered +=\n \" The `options` argument encountered was \" +\n getValueDescriptorExpectingObjectForWarning(options) +\n \".\")\n : options &&\n \"as\" in options &&\n \"string\" !== typeof options.as &&\n (encountered +=\n \" The `as` option encountered was \" +\n getValueDescriptorExpectingObjectForWarning(options.as) +\n \".\");\n encountered &&\n console.error(\n 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s',\n encountered\n );\n \"string\" === typeof href &&\n (options\n ? ((encountered = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n )),\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: encountered,\n integrity:\n \"string\" === typeof options.integrity\n ? options.integrity\n : void 0\n }))\n : Internals.d.m(href));\n };\n exports.requestFormReset = function (form) {\n Internals.d.r(form);\n };\n exports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n };\n exports.useFormState = function (action, initialState, permalink) {\n return resolveDispatcher().useFormState(action, initialState, permalink);\n };\n exports.useFormStatus = function () {\n return resolveDispatcher().useHostTransitionStatus();\n };\n exports.version = \"19.2.3\";\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * @license @tabler/icons-react v3.36.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n outline: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n },\n filled: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n stroke: \"none\"\n }\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.mjs.map\n","/**\n * @license @tabler/icons-react v3.36.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.mjs';\n\nconst createReactComponent = (type, iconName, iconNamePascal, iconNode) => {\n const Component = forwardRef(\n ({ color = \"currentColor\", size = 24, stroke = 2, title, className, children, ...rest }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes[type],\n width: size,\n height: size,\n className: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(\" \"),\n ...type === \"filled\" ? {\n fill: color\n } : {\n strokeWidth: stroke,\n stroke: color\n },\n ...rest\n },\n [\n title && createElement(\"title\", { key: \"svg-title\" }, title),\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n );\n Component.displayName = `${iconNamePascal}`;\n return Component;\n};\n\nexport { createReactComponent as default };\n//# sourceMappingURL=createReactComponent.mjs.map\n","/**\n * @license @tabler/icons-react v3.36.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M18 6l-12 12\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M6 6l12 12\", \"key\": \"svg-1\" }]];\nconst IconX = createReactComponent(\"outline\", \"x\", \"X\", __iconNode);\n\nexport { __iconNode, IconX as default };\n//# sourceMappingURL=IconX.mjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use client\";\nimport { createContext } from 'react';\n\nconst LayoutGroupContext = createContext({});\n\nexport { LayoutGroupContext };\n//# sourceMappingURL=LayoutGroupContext.mjs.map\n","\"use client\";\nimport { useRef } from 'react';\n\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`\n * you can ensure that initialisers don't execute twice or more.\n */\nfunction useConstant(init) {\n const ref = useRef(null);\n if (ref.current === null) {\n ref.current = init();\n }\n return ref.current;\n}\n\nexport { useConstant };\n//# sourceMappingURL=use-constant.mjs.map\n","const isBrowser = typeof window !== \"undefined\";\n\nexport { isBrowser };\n//# sourceMappingURL=is-browser.mjs.map\n","\"use client\";\nimport { useLayoutEffect, useEffect } from 'react';\nimport { isBrowser } from './is-browser.mjs';\n\nconst useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\n\nexport { useIsomorphicLayoutEffect };\n//# sourceMappingURL=use-isomorphic-effect.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * @public\n */\nconst PresenceContext = \n/* @__PURE__ */ createContext(null);\n\nexport { PresenceContext };\n//# sourceMappingURL=PresenceContext.mjs.map\n","function addUniqueItem(arr, item) {\n if (arr.indexOf(item) === -1)\n arr.push(item);\n}\nfunction removeItem(arr, item) {\n const index = arr.indexOf(item);\n if (index > -1)\n arr.splice(index, 1);\n}\n// Adapted from array-move\nfunction moveItem([...arr], fromIndex, toIndex) {\n const startIndex = fromIndex < 0 ? arr.length + fromIndex : fromIndex;\n if (startIndex >= 0 && startIndex < arr.length) {\n const endIndex = toIndex < 0 ? arr.length + toIndex : toIndex;\n const [item] = arr.splice(fromIndex, 1);\n arr.splice(endIndex, 0, item);\n }\n return arr;\n}\n\nexport { addUniqueItem, moveItem, removeItem };\n//# sourceMappingURL=array.mjs.map\n","const clamp = (min, max, v) => {\n if (v > max)\n return max;\n if (v < min)\n return min;\n return v;\n};\n\nexport { clamp };\n//# sourceMappingURL=clamp.mjs.map\n","function formatErrorMessage(message, errorCode) {\n return errorCode\n ? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}`\n : message;\n}\n\nexport { formatErrorMessage };\n//# sourceMappingURL=format-error-message.mjs.map\n","import { formatErrorMessage } from './format-error-message.mjs';\n\nlet warning = () => { };\nlet invariant = () => { };\nif (typeof process !== \"undefined\" &&\n process.env?.NODE_ENV !== \"production\") {\n warning = (check, message, errorCode) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(formatErrorMessage(message, errorCode));\n }\n };\n invariant = (check, message, errorCode) => {\n if (!check) {\n throw new Error(formatErrorMessage(message, errorCode));\n }\n };\n}\n\nexport { invariant, warning };\n//# sourceMappingURL=errors.mjs.map\n","const MotionGlobalConfig = {};\n\nexport { MotionGlobalConfig };\n//# sourceMappingURL=global-config.mjs.map\n","/**\n * Check if value is a numerical string, ie a string that is purely a number eg \"100\" or \"-100.1\"\n */\nconst isNumericalString = (v) => /^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(v);\n\nexport { isNumericalString };\n//# sourceMappingURL=is-numerical-string.mjs.map\n","function isObject(value) {\n return typeof value === \"object\" && value !== null;\n}\n\nexport { isObject };\n//# sourceMappingURL=is-object.mjs.map\n","/**\n * Check if the value is a zero value string like \"0px\" or \"0%\"\n */\nconst isZeroValueString = (v) => /^0[^.\\s]+$/u.test(v);\n\nexport { isZeroValueString };\n//# sourceMappingURL=is-zero-value-string.mjs.map\n","/*#__NO_SIDE_EFFECTS__*/\nfunction memo(callback) {\n let result;\n return () => {\n if (result === undefined)\n result = callback();\n return result;\n };\n}\n\nexport { memo };\n//# sourceMappingURL=memo.mjs.map\n","/*#__NO_SIDE_EFFECTS__*/\nconst noop = (any) => any;\n\nexport { noop };\n//# sourceMappingURL=noop.mjs.map\n","/**\n * Pipe\n * Compose other transformers to run linearily\n * pipe(min(20), max(40))\n * @param {...functions} transformers\n * @return {function}\n */\nconst combineFunctions = (a, b) => (v) => b(a(v));\nconst pipe = (...transformers) => transformers.reduce(combineFunctions);\n\nexport { pipe };\n//# sourceMappingURL=pipe.mjs.map\n","/*\n Progress within given range\n\n Given a lower limit and an upper limit, we return the progress\n (expressed as a number 0-1) represented by the given value, and\n limit that progress to within 0-1.\n\n @param [number]: Lower limit\n @param [number]: Upper limit\n @param [number]: Value to find progress within given range\n @return [number]: Progress of value within range as expressed 0-1\n*/\n/*#__NO_SIDE_EFFECTS__*/\nconst progress = (from, to, value) => {\n const toFromDifference = to - from;\n return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;\n};\n\nexport { progress };\n//# sourceMappingURL=progress.mjs.map\n","import { addUniqueItem, removeItem } from './array.mjs';\n\nclass SubscriptionManager {\n constructor() {\n this.subscriptions = [];\n }\n add(handler) {\n addUniqueItem(this.subscriptions, handler);\n return () => removeItem(this.subscriptions, handler);\n }\n notify(a, b, c) {\n const numSubscriptions = this.subscriptions.length;\n if (!numSubscriptions)\n return;\n if (numSubscriptions === 1) {\n /**\n * If there's only a single handler we can just call it without invoking a loop.\n */\n this.subscriptions[0](a, b, c);\n }\n else {\n for (let i = 0; i < numSubscriptions; i++) {\n /**\n * Check whether the handler exists before firing as it's possible\n * the subscriptions were modified during this loop running.\n */\n const handler = this.subscriptions[i];\n handler && handler(a, b, c);\n }\n }\n }\n getSize() {\n return this.subscriptions.length;\n }\n clear() {\n this.subscriptions.length = 0;\n }\n}\n\nexport { SubscriptionManager };\n//# sourceMappingURL=subscription-manager.mjs.map\n","/**\n * Converts seconds to milliseconds\n *\n * @param seconds - Time in seconds.\n * @return milliseconds - Converted time in milliseconds.\n */\n/*#__NO_SIDE_EFFECTS__*/\nconst secondsToMilliseconds = (seconds) => seconds * 1000;\n/*#__NO_SIDE_EFFECTS__*/\nconst millisecondsToSeconds = (milliseconds) => milliseconds / 1000;\n\nexport { millisecondsToSeconds, secondsToMilliseconds };\n//# sourceMappingURL=time-conversion.mjs.map\n","/*\n Convert velocity into velocity per second\n\n @param [number]: Unit per frame\n @param [number]: Frame duration in ms\n*/\nfunction velocityPerSecond(velocity, frameDuration) {\n return frameDuration ? velocity * (1000 / frameDuration) : 0;\n}\n\nexport { velocityPerSecond };\n//# sourceMappingURL=velocity-per-second.mjs.map\n","import { formatErrorMessage } from './format-error-message.mjs';\n\nconst warned = new Set();\nfunction hasWarned(message) {\n return warned.has(message);\n}\nfunction warnOnce(condition, message, errorCode) {\n if (condition || warned.has(message))\n return;\n console.warn(formatErrorMessage(message, errorCode));\n warned.add(message);\n}\n\nexport { hasWarned, warnOnce };\n//# sourceMappingURL=warn-once.mjs.map\n","import { noop } from '../noop.mjs';\n\n/*\n Bezier function generator\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticeably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *\n t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noop;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n//# sourceMappingURL=cubic-bezier.mjs.map\n","// Accepts an easing function and returns a new one that outputs mirrored values for\n// the second half of the animation. Turns easeIn into easeInOut.\nconst mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\n\nexport { mirrorEasing };\n//# sourceMappingURL=mirror.mjs.map\n","// Accepts an easing function and returns a new one that outputs reversed values.\n// Turns easeIn into easeOut.\nconst reverseEasing = (easing) => (p) => 1 - easing(1 - p);\n\nexport { reverseEasing };\n//# sourceMappingURL=reverse.mjs.map\n","import { cubicBezier } from './cubic-bezier.mjs';\nimport { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst backOut = /*@__PURE__*/ cubicBezier(0.33, 1.53, 0.69, 0.99);\nconst backIn = /*@__PURE__*/ reverseEasing(backOut);\nconst backInOut = /*@__PURE__*/ mirrorEasing(backIn);\n\nexport { backIn, backInOut, backOut };\n//# sourceMappingURL=back.mjs.map\n","import { backIn } from './back.mjs';\n\nconst anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n\nexport { anticipate };\n//# sourceMappingURL=anticipate.mjs.map\n","import { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst circIn = (p) => 1 - Math.sin(Math.acos(p));\nconst circOut = reverseEasing(circIn);\nconst circInOut = mirrorEasing(circIn);\n\nexport { circIn, circInOut, circOut };\n//# sourceMappingURL=circ.mjs.map\n","import { cubicBezier } from './cubic-bezier.mjs';\n\nconst easeIn = /*@__PURE__*/ cubicBezier(0.42, 0, 1, 1);\nconst easeOut = /*@__PURE__*/ cubicBezier(0, 0, 0.58, 1);\nconst easeInOut = /*@__PURE__*/ cubicBezier(0.42, 0, 0.58, 1);\n\nexport { easeIn, easeInOut, easeOut };\n//# sourceMappingURL=ease.mjs.map\n","const isEasingArray = (ease) => {\n return Array.isArray(ease) && typeof ease[0] !== \"number\";\n};\n\nexport { isEasingArray };\n//# sourceMappingURL=is-easing-array.mjs.map\n","const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === \"number\";\n\nexport { isBezierDefinition };\n//# sourceMappingURL=is-bezier-definition.mjs.map\n","import { invariant } from '../../errors.mjs';\nimport { noop } from '../../noop.mjs';\nimport { anticipate } from '../anticipate.mjs';\nimport { backIn, backInOut, backOut } from '../back.mjs';\nimport { circIn, circInOut, circOut } from '../circ.mjs';\nimport { cubicBezier } from '../cubic-bezier.mjs';\nimport { easeIn, easeInOut, easeOut } from '../ease.mjs';\nimport { isBezierDefinition } from './is-bezier-definition.mjs';\n\nconst easingLookup = {\n linear: noop,\n easeIn,\n easeInOut,\n easeOut,\n circIn,\n circInOut,\n circOut,\n backIn,\n backInOut,\n backOut,\n anticipate,\n};\nconst isValidEasing = (easing) => {\n return typeof easing === \"string\";\n};\nconst easingDefinitionToFunction = (definition) => {\n if (isBezierDefinition(definition)) {\n // If cubic bezier definition, create bezier curve\n invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`, \"cubic-bezier-length\");\n const [x1, y1, x2, y2] = definition;\n return cubicBezier(x1, y1, x2, y2);\n }\n else if (isValidEasing(definition)) {\n // Else lookup from table\n invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`, \"invalid-easing-type\");\n return easingLookup[definition];\n }\n return definition;\n};\n\nexport { easingDefinitionToFunction };\n//# sourceMappingURL=map.mjs.map\n","const stepsOrder = [\n \"setup\", // Compute\n \"read\", // Read\n \"resolveKeyframes\", // Write/Read/Write/Read\n \"preUpdate\", // Compute\n \"update\", // Compute\n \"preRender\", // Compute\n \"render\", // Write\n \"postRender\", // Compute\n];\n\nexport { stepsOrder };\n//# sourceMappingURL=order.mjs.map\n","const statsBuffer = {\n value: null,\n addProjectionMetrics: null,\n};\n\nexport { statsBuffer };\n//# sourceMappingURL=buffer.mjs.map\n","import { statsBuffer } from '../stats/buffer.mjs';\n\nfunction createRenderStep(runNextFrame, stepName) {\n /**\n * We create and reuse two queues, one to queue jobs for the current frame\n * and one for the next. We reuse to avoid triggering GC after x frames.\n */\n let thisFrame = new Set();\n let nextFrame = new Set();\n /**\n * Track whether we're currently processing jobs in this step. This way\n * we can decide whether to schedule new jobs for this frame or next.\n */\n let isProcessing = false;\n let flushNextFrame = false;\n /**\n * A set of processes which were marked keepAlive when scheduled.\n */\n const toKeepAlive = new WeakSet();\n let latestFrameData = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n let numCalls = 0;\n function triggerCallback(callback) {\n if (toKeepAlive.has(callback)) {\n step.schedule(callback);\n runNextFrame();\n }\n numCalls++;\n callback(latestFrameData);\n }\n const step = {\n /**\n * Schedule a process to run on the next frame.\n */\n schedule: (callback, keepAlive = false, immediate = false) => {\n const addToCurrentFrame = immediate && isProcessing;\n const queue = addToCurrentFrame ? thisFrame : nextFrame;\n if (keepAlive)\n toKeepAlive.add(callback);\n if (!queue.has(callback))\n queue.add(callback);\n return callback;\n },\n /**\n * Cancel the provided callback from running on the next frame.\n */\n cancel: (callback) => {\n nextFrame.delete(callback);\n toKeepAlive.delete(callback);\n },\n /**\n * Execute all schedule callbacks.\n */\n process: (frameData) => {\n latestFrameData = frameData;\n /**\n * If we're already processing we've probably been triggered by a flushSync\n * inside an existing process. Instead of executing, mark flushNextFrame\n * as true and ensure we flush the following frame at the end of this one.\n */\n if (isProcessing) {\n flushNextFrame = true;\n return;\n }\n isProcessing = true;\n [thisFrame, nextFrame] = [nextFrame, thisFrame];\n // Execute this frame\n thisFrame.forEach(triggerCallback);\n /**\n * If we're recording stats then\n */\n if (stepName && statsBuffer.value) {\n statsBuffer.value.frameloop[stepName].push(numCalls);\n }\n numCalls = 0;\n // Clear the frame so no callbacks remain. This is to avoid\n // memory leaks should this render step not run for a while.\n thisFrame.clear();\n isProcessing = false;\n if (flushNextFrame) {\n flushNextFrame = false;\n step.process(frameData);\n }\n },\n };\n return step;\n}\n\nexport { createRenderStep };\n//# sourceMappingURL=render-step.mjs.map\n","import { MotionGlobalConfig } from 'motion-utils';\nimport { stepsOrder } from './order.mjs';\nimport { createRenderStep } from './render-step.mjs';\n\nconst maxElapsed = 40;\nfunction createRenderBatcher(scheduleNextBatch, allowKeepAlive) {\n let runNextFrame = false;\n let useDefaultElapsed = true;\n const state = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n const flagRunNextFrame = () => (runNextFrame = true);\n const steps = stepsOrder.reduce((acc, key) => {\n acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : undefined);\n return acc;\n }, {});\n const { setup, read, resolveKeyframes, preUpdate, update, preRender, render, postRender, } = steps;\n const processBatch = () => {\n const timestamp = MotionGlobalConfig.useManualTiming\n ? state.timestamp\n : performance.now();\n runNextFrame = false;\n if (!MotionGlobalConfig.useManualTiming) {\n state.delta = useDefaultElapsed\n ? 1000 / 60\n : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);\n }\n state.timestamp = timestamp;\n state.isProcessing = true;\n // Unrolled render loop for better per-frame performance\n setup.process(state);\n read.process(state);\n resolveKeyframes.process(state);\n preUpdate.process(state);\n update.process(state);\n preRender.process(state);\n render.process(state);\n postRender.process(state);\n state.isProcessing = false;\n if (runNextFrame && allowKeepAlive) {\n useDefaultElapsed = false;\n scheduleNextBatch(processBatch);\n }\n };\n const wake = () => {\n runNextFrame = true;\n useDefaultElapsed = true;\n if (!state.isProcessing) {\n scheduleNextBatch(processBatch);\n }\n };\n const schedule = stepsOrder.reduce((acc, key) => {\n const step = steps[key];\n acc[key] = (process, keepAlive = false, immediate = false) => {\n if (!runNextFrame)\n wake();\n return step.schedule(process, keepAlive, immediate);\n };\n return acc;\n }, {});\n const cancel = (process) => {\n for (let i = 0; i < stepsOrder.length; i++) {\n steps[stepsOrder[i]].cancel(process);\n }\n };\n return { schedule, cancel, state, steps };\n}\n\nexport { createRenderBatcher };\n//# sourceMappingURL=batcher.mjs.map\n","import { noop } from 'motion-utils';\nimport { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true);\n\nexport { cancelFrame, frame, frameData, frameSteps };\n//# sourceMappingURL=frame.mjs.map\n","import { MotionGlobalConfig } from 'motion-utils';\nimport { frameData } from './frame.mjs';\n\nlet now;\nfunction clearTime() {\n now = undefined;\n}\n/**\n * An eventloop-synchronous alternative to performance.now().\n *\n * Ensures that time measurements remain consistent within a synchronous context.\n * Usually calling performance.now() twice within the same synchronous context\n * will return different values which isn't useful for animations when we're usually\n * trying to sync animations to the same frame.\n */\nconst time = {\n now: () => {\n if (now === undefined) {\n time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming\n ? frameData.timestamp\n : performance.now());\n }\n return now;\n },\n set: (newTime) => {\n now = newTime;\n queueMicrotask(clearTime);\n },\n};\n\nexport { time };\n//# sourceMappingURL=sync-time.mjs.map\n","const activeAnimations = {\n layout: 0,\n mainThread: 0,\n waapi: 0,\n};\n\nexport { activeAnimations };\n//# sourceMappingURL=animation-count.mjs.map\n","const checkStringStartsWith = (token) => (key) => typeof key === \"string\" && key.startsWith(token);\nconst isCSSVariableName = \n/*@__PURE__*/ checkStringStartsWith(\"--\");\nconst startsAsVariableToken = \n/*@__PURE__*/ checkStringStartsWith(\"var(--\");\nconst isCSSVariableToken = (value) => {\n const startsWithToken = startsAsVariableToken(value);\n if (!startsWithToken)\n return false;\n // Ensure any comments are stripped from the value as this can harm performance of the regex.\n return singleCssVariableRegex.test(value.split(\"/*\")[0].trim());\n};\nconst singleCssVariableRegex = /var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;\n/**\n * Check if a value contains a CSS variable anywhere (e.g. inside calc()).\n * Unlike isCSSVariableToken which checks if the value IS a var() token,\n * this checks if the value CONTAINS var() somewhere in the string.\n */\nfunction containsCSSVariable(value) {\n if (typeof value !== \"string\")\n return false;\n // Strip comments to avoid false positives\n return value.split(\"/*\")[0].includes(\"var(--\");\n}\n\nexport { containsCSSVariable, isCSSVariableName, isCSSVariableToken };\n//# sourceMappingURL=is-css-variable.mjs.map\n","import { clamp } from 'motion-utils';\n\nconst number = {\n test: (v) => typeof v === \"number\",\n parse: parseFloat,\n transform: (v) => v,\n};\nconst alpha = {\n ...number,\n transform: (v) => clamp(0, 1, v),\n};\nconst scale = {\n ...number,\n default: 1,\n};\n\nexport { alpha, number, scale };\n//# sourceMappingURL=index.mjs.map\n","// If this number is a decimal, make it just five decimal places\n// to avoid exponents\nconst sanitize = (v) => Math.round(v * 100000) / 100000;\n\nexport { sanitize };\n//# sourceMappingURL=sanitize.mjs.map\n","const floatRegex = /-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;\n\nexport { floatRegex };\n//# sourceMappingURL=float-regex.mjs.map\n","function isNullish(v) {\n return v == null;\n}\n\nexport { isNullish };\n//# sourceMappingURL=is-nullish.mjs.map\n","const singleColorRegex = /^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;\n\nexport { singleColorRegex };\n//# sourceMappingURL=single-color-regex.mjs.map\n","import { floatRegex } from '../utils/float-regex.mjs';\nimport { isNullish } from '../utils/is-nullish.mjs';\nimport { singleColorRegex } from '../utils/single-color-regex.mjs';\n\n/**\n * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,\n * but false if a number or multiple colors\n */\nconst isColorString = (type, testProp) => (v) => {\n return Boolean((typeof v === \"string\" &&\n singleColorRegex.test(v) &&\n v.startsWith(type)) ||\n (testProp &&\n !isNullish(v) &&\n Object.prototype.hasOwnProperty.call(v, testProp)));\n};\nconst splitColor = (aName, bName, cName) => (v) => {\n if (typeof v !== \"string\")\n return v;\n const [a, b, c, alpha] = v.match(floatRegex);\n return {\n [aName]: parseFloat(a),\n [bName]: parseFloat(b),\n [cName]: parseFloat(c),\n alpha: alpha !== undefined ? parseFloat(alpha) : 1,\n };\n};\n\nexport { isColorString, splitColor };\n//# sourceMappingURL=utils.mjs.map\n","import { clamp } from 'motion-utils';\nimport { number, alpha } from '../numbers/index.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst clampRgbUnit = (v) => clamp(0, 255, v);\nconst rgbUnit = {\n ...number,\n transform: (v) => Math.round(clampRgbUnit(v)),\n};\nconst rgba = {\n test: /*@__PURE__*/ isColorString(\"rgb\", \"red\"),\n parse: /*@__PURE__*/ splitColor(\"red\", \"green\", \"blue\"),\n transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" +\n rgbUnit.transform(red) +\n \", \" +\n rgbUnit.transform(green) +\n \", \" +\n rgbUnit.transform(blue) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\",\n};\n\nexport { rgbUnit, rgba };\n//# sourceMappingURL=rgba.mjs.map\n","import { rgba } from './rgba.mjs';\nimport { isColorString } from './utils.mjs';\n\nfunction parseHex(v) {\n let r = \"\";\n let g = \"\";\n let b = \"\";\n let a = \"\";\n // If we have 6 characters, ie #FF0000\n if (v.length > 5) {\n r = v.substring(1, 3);\n g = v.substring(3, 5);\n b = v.substring(5, 7);\n a = v.substring(7, 9);\n // Or we have 3 characters, ie #F00\n }\n else {\n r = v.substring(1, 2);\n g = v.substring(2, 3);\n b = v.substring(3, 4);\n a = v.substring(4, 5);\n r += r;\n g += g;\n b += b;\n a += a;\n }\n return {\n red: parseInt(r, 16),\n green: parseInt(g, 16),\n blue: parseInt(b, 16),\n alpha: a ? parseInt(a, 16) / 255 : 1,\n };\n}\nconst hex = {\n test: /*@__PURE__*/ isColorString(\"#\"),\n parse: parseHex,\n transform: rgba.transform,\n};\n\nexport { hex };\n//# sourceMappingURL=hex.mjs.map\n","/*#__NO_SIDE_EFFECTS__*/\nconst createUnitType = (unit) => ({\n test: (v) => typeof v === \"string\" && v.endsWith(unit) && v.split(\" \").length === 1,\n parse: parseFloat,\n transform: (v) => `${v}${unit}`,\n});\nconst degrees = /*@__PURE__*/ createUnitType(\"deg\");\nconst percent = /*@__PURE__*/ createUnitType(\"%\");\nconst px = /*@__PURE__*/ createUnitType(\"px\");\nconst vh = /*@__PURE__*/ createUnitType(\"vh\");\nconst vw = /*@__PURE__*/ createUnitType(\"vw\");\nconst progressPercentage = /*@__PURE__*/ (() => ({\n ...percent,\n parse: (v) => percent.parse(v) / 100,\n transform: (v) => percent.transform(v * 100),\n}))();\n\nexport { degrees, percent, progressPercentage, px, vh, vw };\n//# sourceMappingURL=units.mjs.map\n","import { alpha } from '../numbers/index.mjs';\nimport { percent } from '../numbers/units.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\nimport { isColorString, splitColor } from './utils.mjs';\n\nconst hsla = {\n test: /*@__PURE__*/ isColorString(\"hsl\", \"hue\"),\n parse: /*@__PURE__*/ splitColor(\"hue\", \"saturation\", \"lightness\"),\n transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n return (\"hsla(\" +\n Math.round(hue) +\n \", \" +\n percent.transform(sanitize(saturation)) +\n \", \" +\n percent.transform(sanitize(lightness)) +\n \", \" +\n sanitize(alpha.transform(alpha$1)) +\n \")\");\n },\n};\n\nexport { hsla };\n//# sourceMappingURL=hsla.mjs.map\n","import { hex } from './hex.mjs';\nimport { hsla } from './hsla.mjs';\nimport { rgba } from './rgba.mjs';\n\nconst color = {\n test: (v) => rgba.test(v) || hex.test(v) || hsla.test(v),\n parse: (v) => {\n if (rgba.test(v)) {\n return rgba.parse(v);\n }\n else if (hsla.test(v)) {\n return hsla.parse(v);\n }\n else {\n return hex.parse(v);\n }\n },\n transform: (v) => {\n return typeof v === \"string\"\n ? v\n : v.hasOwnProperty(\"red\")\n ? rgba.transform(v)\n : hsla.transform(v);\n },\n getAnimatableNone: (v) => {\n const parsed = color.parse(v);\n parsed.alpha = 0;\n return color.transform(parsed);\n },\n};\n\nexport { color };\n//# sourceMappingURL=index.mjs.map\n","const colorRegex = /(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;\n\nexport { colorRegex };\n//# sourceMappingURL=color-regex.mjs.map\n","import { color } from '../color/index.mjs';\nimport { colorRegex } from '../utils/color-regex.mjs';\nimport { floatRegex } from '../utils/float-regex.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\n\nfunction test(v) {\n return (isNaN(v) &&\n typeof v === \"string\" &&\n (v.match(floatRegex)?.length || 0) +\n (v.match(colorRegex)?.length || 0) >\n 0);\n}\nconst NUMBER_TOKEN = \"number\";\nconst COLOR_TOKEN = \"color\";\nconst VAR_TOKEN = \"var\";\nconst VAR_FUNCTION_TOKEN = \"var(\";\nconst SPLIT_TOKEN = \"${}\";\n// this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`\nconst complexRegex = /var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;\nfunction analyseComplexValue(value) {\n const originalValue = value.toString();\n const values = [];\n const indexes = {\n color: [],\n number: [],\n var: [],\n };\n const types = [];\n let i = 0;\n const tokenised = originalValue.replace(complexRegex, (parsedValue) => {\n if (color.test(parsedValue)) {\n indexes.color.push(i);\n types.push(COLOR_TOKEN);\n values.push(color.parse(parsedValue));\n }\n else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n indexes.var.push(i);\n types.push(VAR_TOKEN);\n values.push(parsedValue);\n }\n else {\n indexes.number.push(i);\n types.push(NUMBER_TOKEN);\n values.push(parseFloat(parsedValue));\n }\n ++i;\n return SPLIT_TOKEN;\n });\n const split = tokenised.split(SPLIT_TOKEN);\n return { values, split, indexes, types };\n}\nfunction parseComplexValue(v) {\n return analyseComplexValue(v).values;\n}\nfunction createTransformer(source) {\n const { split, types } = analyseComplexValue(source);\n const numSections = split.length;\n return (v) => {\n let output = \"\";\n for (let i = 0; i < numSections; i++) {\n output += split[i];\n if (v[i] !== undefined) {\n const type = types[i];\n if (type === NUMBER_TOKEN) {\n output += sanitize(v[i]);\n }\n else if (type === COLOR_TOKEN) {\n output += color.transform(v[i]);\n }\n else {\n output += v[i];\n }\n }\n }\n return output;\n };\n}\nconst convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;\nfunction getAnimatableNone(v) {\n const parsed = parseComplexValue(v);\n const transformer = createTransformer(v);\n return transformer(parsed.map(convertNumbersToZero));\n}\nconst complex = {\n test,\n parse: parseComplexValue,\n createTransformer,\n getAnimatableNone,\n};\n\nexport { analyseComplexValue, complex };\n//# sourceMappingURL=index.mjs.map\n","// Adapted from https://gist.github.com/mjackson/5311256\nfunction hueToRgb(p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha }) {\n hue /= 360;\n saturation /= 100;\n lightness /= 100;\n let red = 0;\n let green = 0;\n let blue = 0;\n if (!saturation) {\n red = green = blue = lightness;\n }\n else {\n const q = lightness < 0.5\n ? lightness * (1 + saturation)\n : lightness + saturation - lightness * saturation;\n const p = 2 * lightness - q;\n red = hueToRgb(p, q, hue + 1 / 3);\n green = hueToRgb(p, q, hue);\n blue = hueToRgb(p, q, hue - 1 / 3);\n }\n return {\n red: Math.round(red * 255),\n green: Math.round(green * 255),\n blue: Math.round(blue * 255),\n alpha,\n };\n}\n\nexport { hslaToRgba };\n//# sourceMappingURL=hsla-to-rgba.mjs.map\n","function mixImmediate(a, b) {\n return (p) => (p > 0 ? b : a);\n}\n\nexport { mixImmediate };\n//# sourceMappingURL=immediate.mjs.map\n","/*\n Value in range from progress\n\n Given a lower limit and an upper limit, we return the value within\n that range as expressed by progress (usually a number from 0 to 1)\n\n So progress = 0.5 would change\n\n from -------- to\n\n to\n\n from ---- to\n\n E.g. from = 10, to = 20, progress = 0.5 => 15\n\n @param [number]: Lower limit of range\n @param [number]: Upper limit of range\n @param [number]: The progress between lower and upper limits expressed 0-1\n @return [number]: Value as calculated from progress within range (not limited within range)\n*/\nconst mixNumber = (from, to, progress) => {\n return from + (to - from) * progress;\n};\n\nexport { mixNumber };\n//# sourceMappingURL=number.mjs.map\n","import { warning } from 'motion-utils';\nimport { hex } from '../../value/types/color/hex.mjs';\nimport { hsla } from '../../value/types/color/hsla.mjs';\nimport { hslaToRgba } from '../../value/types/color/hsla-to-rgba.mjs';\nimport { rgba } from '../../value/types/color/rgba.mjs';\nimport { mixImmediate } from './immediate.mjs';\nimport { mixNumber } from './number.mjs';\n\n// Linear color space blending\n// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n// Demonstrated http://codepen.io/osublake/pen/xGVVaN\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n const expo = v * (to * to - fromExpo) + fromExpo;\n return expo < 0 ? 0 : Math.sqrt(expo);\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color) {\n const type = getColorType(color);\n warning(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`, \"color-not-animatable\");\n if (!Boolean(type))\n return false;\n let model = type.parse(color);\n if (type === hsla) {\n // TODO Remove this cast - needed since Motion's stricter typing\n model = hslaToRgba(model);\n }\n return model;\n}\nconst mixColor = (from, to) => {\n const fromRGBA = asRGBA(from);\n const toRGBA = asRGBA(to);\n if (!fromRGBA || !toRGBA) {\n return mixImmediate(from, to);\n }\n const blended = { ...fromRGBA };\n return (v) => {\n blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);\n return rgba.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n//# sourceMappingURL=color.mjs.map\n","const invisibleValues = new Set([\"none\", \"hidden\"]);\n/**\n * Returns a function that, when provided a progress value between 0 and 1,\n * will return the \"none\" or \"hidden\" string only when the progress is that of\n * the origin or target.\n */\nfunction mixVisibility(origin, target) {\n if (invisibleValues.has(origin)) {\n return (p) => (p <= 0 ? origin : target);\n }\n else {\n return (p) => (p >= 1 ? target : origin);\n }\n}\n\nexport { invisibleValues, mixVisibility };\n//# sourceMappingURL=visibility.mjs.map\n","import { pipe, warning } from 'motion-utils';\nimport { isCSSVariableToken } from '../../animation/utils/is-css-variable.mjs';\nimport { color } from '../../value/types/color/index.mjs';\nimport { complex, analyseComplexValue } from '../../value/types/complex/index.mjs';\nimport { mixColor } from './color.mjs';\nimport { mixImmediate } from './immediate.mjs';\nimport { mixNumber as mixNumber$1 } from './number.mjs';\nimport { invisibleValues, mixVisibility } from './visibility.mjs';\n\nfunction mixNumber(a, b) {\n return (p) => mixNumber$1(a, b, p);\n}\nfunction getMixer(a) {\n if (typeof a === \"number\") {\n return mixNumber;\n }\n else if (typeof a === \"string\") {\n return isCSSVariableToken(a)\n ? mixImmediate\n : color.test(a)\n ? mixColor\n : mixComplex;\n }\n else if (Array.isArray(a)) {\n return mixArray;\n }\n else if (typeof a === \"object\") {\n return color.test(a) ? mixColor : mixObject;\n }\n return mixImmediate;\n}\nfunction mixArray(a, b) {\n const output = [...a];\n const numValues = output.length;\n const blendValue = a.map((v, i) => getMixer(v)(v, b[i]));\n return (p) => {\n for (let i = 0; i < numValues; i++) {\n output[i] = blendValue[i](p);\n }\n return output;\n };\n}\nfunction mixObject(a, b) {\n const output = { ...a, ...b };\n const blendValue = {};\n for (const key in output) {\n if (a[key] !== undefined && b[key] !== undefined) {\n blendValue[key] = getMixer(a[key])(a[key], b[key]);\n }\n }\n return (v) => {\n for (const key in blendValue) {\n output[key] = blendValue[key](v);\n }\n return output;\n };\n}\nfunction matchOrder(origin, target) {\n const orderedOrigin = [];\n const pointers = { color: 0, var: 0, number: 0 };\n for (let i = 0; i < target.values.length; i++) {\n const type = target.types[i];\n const originIndex = origin.indexes[type][pointers[type]];\n const originValue = origin.values[originIndex] ?? 0;\n orderedOrigin[i] = originValue;\n pointers[type]++;\n }\n return orderedOrigin;\n}\nconst mixComplex = (origin, target) => {\n const template = complex.createTransformer(target);\n const originStats = analyseComplexValue(origin);\n const targetStats = analyseComplexValue(target);\n const canInterpolate = originStats.indexes.var.length === targetStats.indexes.var.length &&\n originStats.indexes.color.length === targetStats.indexes.color.length &&\n originStats.indexes.number.length >= targetStats.indexes.number.length;\n if (canInterpolate) {\n if ((invisibleValues.has(origin) &&\n !targetStats.values.length) ||\n (invisibleValues.has(target) &&\n !originStats.values.length)) {\n return mixVisibility(origin, target);\n }\n return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);\n }\n else {\n warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, \"complex-values-different\");\n return mixImmediate(origin, target);\n }\n};\n\nexport { getMixer, mixArray, mixComplex, mixObject };\n//# sourceMappingURL=complex.mjs.map\n","import { getMixer } from './complex.mjs';\nimport { mixNumber } from './number.mjs';\n\nfunction mix(from, to, p) {\n if (typeof from === \"number\" &&\n typeof to === \"number\" &&\n typeof p === \"number\") {\n return mixNumber(from, to, p);\n }\n const mixer = getMixer(from);\n return mixer(from, to);\n}\n\nexport { mix };\n//# sourceMappingURL=index.mjs.map\n","import { time } from '../../frameloop/sync-time.mjs';\nimport { frame, cancelFrame, frameData } from '../../frameloop/frame.mjs';\n\nconst frameloopDriver = (update) => {\n const passTimestamp = ({ timestamp }) => update(timestamp);\n return {\n start: (keepAlive = true) => frame.update(passTimestamp, keepAlive),\n stop: () => cancelFrame(passTimestamp),\n /**\n * If we're processing this frame we can use the\n * framelocked timestamp to keep things in sync.\n */\n now: () => (frameData.isProcessing ? frameData.timestamp : time.now()),\n };\n};\n\nexport { frameloopDriver };\n//# sourceMappingURL=frame.mjs.map\n","const generateLinearEasing = (easing, duration, // as milliseconds\nresolution = 10 // as milliseconds\n) => {\n let points = \"\";\n const numPoints = Math.max(Math.round(duration / resolution), 2);\n for (let i = 0; i < numPoints; i++) {\n points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + \", \";\n }\n return `linear(${points.substring(0, points.length - 2)})`;\n};\n\nexport { generateLinearEasing };\n//# sourceMappingURL=linear.mjs.map\n","/**\n * Implement a practical max duration for keyframe generation\n * to prevent infinite loops\n */\nconst maxGeneratorDuration = 20000;\nfunction calcGeneratorDuration(generator) {\n let duration = 0;\n const timeStep = 50;\n let state = generator.next(duration);\n while (!state.done && duration < maxGeneratorDuration) {\n duration += timeStep;\n state = generator.next(duration);\n }\n return duration >= maxGeneratorDuration ? Infinity : duration;\n}\n\nexport { calcGeneratorDuration, maxGeneratorDuration };\n//# sourceMappingURL=calc-duration.mjs.map\n","import { millisecondsToSeconds } from 'motion-utils';\nimport { calcGeneratorDuration, maxGeneratorDuration } from './calc-duration.mjs';\n\n/**\n * Create a progress => progress easing function from a generator.\n */\nfunction createGeneratorEasing(options, scale = 100, createGenerator) {\n const generator = createGenerator({ ...options, keyframes: [0, scale] });\n const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n return {\n type: \"keyframes\",\n ease: (progress) => {\n return generator.next(duration * progress).value / scale;\n },\n duration: millisecondsToSeconds(duration),\n };\n}\n\nexport { createGeneratorEasing };\n//# sourceMappingURL=create-generator-easing.mjs.map\n","import { velocityPerSecond } from 'motion-utils';\n\nconst velocitySampleDuration = 5; // ms\nfunction calcGeneratorVelocity(resolveValue, t, current) {\n const prevT = Math.max(t - velocitySampleDuration, 0);\n return velocityPerSecond(current - resolveValue(prevT), t - prevT);\n}\n\nexport { calcGeneratorVelocity };\n//# sourceMappingURL=velocity.mjs.map\n","const springDefaults = {\n // Default spring physics\n stiffness: 100,\n damping: 10,\n mass: 1.0,\n velocity: 0.0,\n // Default duration/bounce-based options\n duration: 800, // in ms\n bounce: 0.3,\n visualDuration: 0.3, // in seconds\n // Rest thresholds\n restSpeed: {\n granular: 0.01,\n default: 2,\n },\n restDelta: {\n granular: 0.005,\n default: 0.5,\n },\n // Limits\n minDuration: 0.01, // in seconds\n maxDuration: 10.0, // in seconds\n minDamping: 0.05,\n maxDamping: 1,\n};\n\nexport { springDefaults };\n//# sourceMappingURL=defaults.mjs.map\n","import { warning, secondsToMilliseconds, clamp, millisecondsToSeconds } from 'motion-utils';\nimport { springDefaults } from './defaults.mjs';\n\nconst safeMin = 0.001;\nfunction findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce, velocity = springDefaults.velocity, mass = springDefaults.mass, }) {\n let envelope;\n let derivative;\n warning(duration <= secondsToMilliseconds(springDefaults.maxDuration), \"Spring duration must be 10 seconds or less\", \"spring-duration-limit\");\n let dampingRatio = 1 - bounce;\n /**\n * Restrict dampingRatio and duration to within acceptable ranges.\n */\n dampingRatio = clamp(springDefaults.minDamping, springDefaults.maxDamping, dampingRatio);\n duration = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(duration));\n if (dampingRatio < 1) {\n /**\n * Underdamped spring\n */\n envelope = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const a = exponentialDecay - velocity;\n const b = calcAngularFreq(undampedFreq, dampingRatio);\n const c = Math.exp(-delta);\n return safeMin - (a / b) * c;\n };\n derivative = (undampedFreq) => {\n const exponentialDecay = undampedFreq * dampingRatio;\n const delta = exponentialDecay * duration;\n const d = delta * velocity + velocity;\n const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;\n const f = Math.exp(-delta);\n const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);\n const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;\n return (factor * ((d - e) * f)) / g;\n };\n }\n else {\n /**\n * Critically-damped spring\n */\n envelope = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (undampedFreq - velocity) * duration + 1;\n return -safeMin + a * b;\n };\n derivative = (undampedFreq) => {\n const a = Math.exp(-undampedFreq * duration);\n const b = (velocity - undampedFreq) * (duration * duration);\n return a * b;\n };\n }\n const initialGuess = 5 / duration;\n const undampedFreq = approximateRoot(envelope, derivative, initialGuess);\n duration = secondsToMilliseconds(duration);\n if (isNaN(undampedFreq)) {\n return {\n stiffness: springDefaults.stiffness,\n damping: springDefaults.damping,\n duration,\n };\n }\n else {\n const stiffness = Math.pow(undampedFreq, 2) * mass;\n return {\n stiffness,\n damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),\n duration,\n };\n }\n}\nconst rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n let result = initialGuess;\n for (let i = 1; i < rootIterations; i++) {\n result = result - envelope(result) / derivative(result);\n }\n return result;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\n\nexport { calcAngularFreq, findSpring };\n//# sourceMappingURL=find.mjs.map\n","import { millisecondsToSeconds, secondsToMilliseconds, clamp } from 'motion-utils';\nimport { generateLinearEasing } from '../../waapi/utils/linear.mjs';\nimport { calcGeneratorDuration, maxGeneratorDuration } from '../utils/calc-duration.mjs';\nimport { createGeneratorEasing } from '../utils/create-generator-easing.mjs';\nimport { calcGeneratorVelocity } from '../utils/velocity.mjs';\nimport { springDefaults } from './defaults.mjs';\nimport { findSpring, calcAngularFreq } from './find.mjs';\n\nconst durationKeys = [\"duration\", \"bounce\"];\nconst physicsKeys = [\"stiffness\", \"damping\", \"mass\"];\nfunction isSpringType(options, keys) {\n return keys.some((key) => options[key] !== undefined);\n}\nfunction getSpringOptions(options) {\n let springOptions = {\n velocity: springDefaults.velocity,\n stiffness: springDefaults.stiffness,\n damping: springDefaults.damping,\n mass: springDefaults.mass,\n isResolvedFromDuration: false,\n ...options,\n };\n // stiffness/damping/mass overrides duration/bounce\n if (!isSpringType(options, physicsKeys) &&\n isSpringType(options, durationKeys)) {\n if (options.visualDuration) {\n const visualDuration = options.visualDuration;\n const root = (2 * Math.PI) / (visualDuration * 1.2);\n const stiffness = root * root;\n const damping = 2 *\n clamp(0.05, 1, 1 - (options.bounce || 0)) *\n Math.sqrt(stiffness);\n springOptions = {\n ...springOptions,\n mass: springDefaults.mass,\n stiffness,\n damping,\n };\n }\n else {\n const derived = findSpring(options);\n springOptions = {\n ...springOptions,\n ...derived,\n mass: springDefaults.mass,\n };\n springOptions.isResolvedFromDuration = true;\n }\n }\n return springOptions;\n}\nfunction spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {\n const options = typeof optionsOrVisualDuration !== \"object\"\n ? {\n visualDuration: optionsOrVisualDuration,\n keyframes: [0, 1],\n bounce,\n }\n : optionsOrVisualDuration;\n let { restSpeed, restDelta } = options;\n const origin = options.keyframes[0];\n const target = options.keyframes[options.keyframes.length - 1];\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = { done: false, value: origin };\n const { stiffness, damping, mass, duration, velocity, isResolvedFromDuration, } = getSpringOptions({\n ...options,\n velocity: -millisecondsToSeconds(options.velocity || 0),\n });\n const initialVelocity = velocity || 0.0;\n const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n const initialDelta = target - origin;\n const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n /**\n * If we're working on a granular scale, use smaller defaults for determining\n * when the spring is finished.\n *\n * These defaults have been selected emprically based on what strikes a good\n * ratio between feeling good and finishing as soon as changes are imperceptible.\n */\n const isGranularScale = Math.abs(initialDelta) < 5;\n restSpeed || (restSpeed = isGranularScale\n ? springDefaults.restSpeed.granular\n : springDefaults.restSpeed.default);\n restDelta || (restDelta = isGranularScale\n ? springDefaults.restDelta.granular\n : springDefaults.restDelta.default);\n let resolveSpring;\n if (dampingRatio < 1) {\n const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n // Underdamped spring\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n return (target -\n envelope *\n (((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) /\n angularFreq) *\n Math.sin(angularFreq * t) +\n initialDelta * Math.cos(angularFreq * t)));\n };\n }\n else if (dampingRatio === 1) {\n // Critically damped spring\n resolveSpring = (t) => target -\n Math.exp(-undampedAngularFreq * t) *\n (initialDelta +\n (initialVelocity + undampedAngularFreq * initialDelta) * t);\n }\n else {\n // Overdamped spring\n const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n resolveSpring = (t) => {\n const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);\n // When performing sinh or cosh values can hit Infinity so we cap them here\n const freqForT = Math.min(dampedAngularFreq * t, 300);\n return (target -\n (envelope *\n ((initialVelocity +\n dampingRatio * undampedAngularFreq * initialDelta) *\n Math.sinh(freqForT) +\n dampedAngularFreq *\n initialDelta *\n Math.cosh(freqForT))) /\n dampedAngularFreq);\n };\n }\n const generator = {\n calculatedDuration: isResolvedFromDuration ? duration || null : null,\n next: (t) => {\n const current = resolveSpring(t);\n if (!isResolvedFromDuration) {\n let currentVelocity = t === 0 ? initialVelocity : 0.0;\n /**\n * We only need to calculate velocity for under-damped springs\n * as over- and critically-damped springs can't overshoot, so\n * checking only for displacement is enough.\n */\n if (dampingRatio < 1) {\n currentVelocity =\n t === 0\n ? secondsToMilliseconds(initialVelocity)\n : calcGeneratorVelocity(resolveSpring, t, current);\n }\n const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;\n const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;\n state.done =\n isBelowVelocityThreshold && isBelowDisplacementThreshold;\n }\n else {\n state.done = t >= duration;\n }\n state.value = state.done ? target : current;\n return state;\n },\n toString: () => {\n const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n const easing = generateLinearEasing((progress) => generator.next(calculatedDuration * progress).value, calculatedDuration, 30);\n return calculatedDuration + \"ms \" + easing;\n },\n toTransition: () => { },\n };\n return generator;\n}\nspring.applyToOptions = (options) => {\n const generatorOptions = createGeneratorEasing(options, 100, spring);\n options.ease = generatorOptions.ease;\n options.duration = secondsToMilliseconds(generatorOptions.duration);\n options.type = \"keyframes\";\n return options;\n};\n\nexport { spring };\n//# sourceMappingURL=index.mjs.map\n","import { spring } from './spring/index.mjs';\nimport { calcGeneratorVelocity } from './utils/velocity.mjs';\n\nfunction inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {\n const origin = keyframes[0];\n const state = {\n done: false,\n value: origin,\n };\n const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);\n const nearestBoundary = (v) => {\n if (min === undefined)\n return max;\n if (max === undefined)\n return min;\n return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n };\n let amplitude = power * velocity;\n const ideal = origin + amplitude;\n const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);\n /**\n * If the target has changed we need to re-calculate the amplitude, otherwise\n * the animation will start from the wrong position.\n */\n if (target !== ideal)\n amplitude = target - origin;\n const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n const calcLatest = (t) => target + calcDelta(t);\n const applyFriction = (t) => {\n const delta = calcDelta(t);\n const latest = calcLatest(t);\n state.done = Math.abs(delta) <= restDelta;\n state.value = state.done ? target : latest;\n };\n /**\n * Ideally this would resolve for t in a stateless way, we could\n * do that by always precalculating the animation but as we know\n * this will be done anyway we can assume that spring will\n * be discovered during that.\n */\n let timeReachedBoundary;\n let spring$1;\n const checkCatchBoundary = (t) => {\n if (!isOutOfBounds(state.value))\n return;\n timeReachedBoundary = t;\n spring$1 = spring({\n keyframes: [state.value, nearestBoundary(state.value)],\n velocity: calcGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000\n damping: bounceDamping,\n stiffness: bounceStiffness,\n restDelta,\n restSpeed,\n });\n };\n checkCatchBoundary(0);\n return {\n calculatedDuration: null,\n next: (t) => {\n /**\n * We need to resolve the friction to figure out if we need a\n * spring but we don't want to do this twice per frame. So here\n * we flag if we updated for this frame and later if we did\n * we can skip doing it again.\n */\n let hasUpdatedFrame = false;\n if (!spring$1 && timeReachedBoundary === undefined) {\n hasUpdatedFrame = true;\n applyFriction(t);\n checkCatchBoundary(t);\n }\n /**\n * If we have a spring and the provided t is beyond the moment the friction\n * animation crossed the min/max boundary, use the spring.\n */\n if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {\n return spring$1.next(t - timeReachedBoundary);\n }\n else {\n !hasUpdatedFrame && applyFriction(t);\n return state;\n }\n },\n };\n}\n\nexport { inertia };\n//# sourceMappingURL=inertia.mjs.map\n","import { invariant, clamp, MotionGlobalConfig, noop, pipe, progress } from 'motion-utils';\nimport { mix } from './mix/index.mjs';\n\nfunction createMixers(output, ease, customMixer) {\n const mixers = [];\n const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;\n const numMixers = output.length - 1;\n for (let i = 0; i < numMixers; i++) {\n let mixer = mixerFactory(output[i], output[i + 1]);\n if (ease) {\n const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;\n mixer = pipe(easingFunction, mixer);\n }\n mixers.push(mixer);\n }\n return mixers;\n}\n/**\n * Create a function that maps from a numerical input array to a generic output array.\n *\n * Accepts:\n * - Numbers\n * - Colors (hex, hsl, hsla, rgb, rgba)\n * - Complex (combinations of one or more numbers or strings)\n *\n * ```jsx\n * const mixColor = interpolate([0, 1], ['#fff', '#000'])\n *\n * mixColor(0.5) // 'rgba(128, 128, 128, 1)'\n * ```\n *\n * TODO Revisit this approach once we've moved to data models for values,\n * probably not needed to pregenerate mixer functions.\n *\n * @public\n */\nfunction interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {\n const inputLength = input.length;\n invariant(inputLength === output.length, \"Both input and output ranges must be the same length\", \"range-length\");\n /**\n * If we're only provided a single input, we can just make a function\n * that returns the output.\n */\n if (inputLength === 1)\n return () => output[0];\n if (inputLength === 2 && output[0] === output[1])\n return () => output[1];\n const isZeroDeltaRange = input[0] === input[1];\n // If input runs highest -> lowest, reverse both arrays\n if (input[0] > input[inputLength - 1]) {\n input = [...input].reverse();\n output = [...output].reverse();\n }\n const mixers = createMixers(output, ease, mixer);\n const numMixers = mixers.length;\n const interpolator = (v) => {\n if (isZeroDeltaRange && v < input[0])\n return output[0];\n let i = 0;\n if (numMixers > 1) {\n for (; i < input.length - 2; i++) {\n if (v < input[i + 1])\n break;\n }\n }\n const progressInRange = progress(input[i], input[i + 1], v);\n return mixers[i](progressInRange);\n };\n return isClamp\n ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))\n : interpolator;\n}\n\nexport { interpolate };\n//# sourceMappingURL=interpolate.mjs.map\n","import { progress } from 'motion-utils';\nimport { mixNumber } from '../../../utils/mix/number.mjs';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mixNumber(min, 1, offsetProgress));\n }\n}\n\nexport { fillOffset };\n//# sourceMappingURL=fill.mjs.map\n","import { fillOffset } from './fill.mjs';\n\nfunction defaultOffset(arr) {\n const offset = [0];\n fillOffset(offset, arr.length - 1);\n return offset;\n}\n\nexport { defaultOffset };\n//# sourceMappingURL=default.mjs.map\n","function convertOffsetToTimes(offset, duration) {\n return offset.map((o) => o * duration);\n}\n\nexport { convertOffsetToTimes };\n//# sourceMappingURL=time.mjs.map\n","import { easeInOut, isEasingArray, easingDefinitionToFunction } from 'motion-utils';\nimport { interpolate } from '../../utils/interpolate.mjs';\nimport { defaultOffset } from '../keyframes/offsets/default.mjs';\nimport { convertOffsetToTimes } from '../keyframes/offsets/time.mjs';\n\nfunction defaultEasing(values, easing) {\n return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease = \"easeInOut\", }) {\n /**\n * Easing functions can be externally defined as strings. Here we convert them\n * into actual functions.\n */\n const easingFunctions = isEasingArray(ease)\n ? ease.map(easingDefinitionToFunction)\n : easingDefinitionToFunction(ease);\n /**\n * This is the Iterator-spec return value. We ensure it's mutable rather than using a generator\n * to reduce GC during animation.\n */\n const state = {\n done: false,\n value: keyframeValues[0],\n };\n /**\n * Create a times array based on the provided 0-1 offsets\n */\n const absoluteTimes = convertOffsetToTimes(\n // Only use the provided offsets if they're the correct length\n // TODO Maybe we should warn here if there's a length mismatch\n times && times.length === keyframeValues.length\n ? times\n : defaultOffset(keyframeValues), duration);\n const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n ease: Array.isArray(easingFunctions)\n ? easingFunctions\n : defaultEasing(keyframeValues, easingFunctions),\n });\n return {\n calculatedDuration: duration,\n next: (t) => {\n state.value = mapTimeToKeyframe(t);\n state.done = t >= duration;\n return state;\n },\n };\n}\n\nexport { defaultEasing, keyframes };\n//# sourceMappingURL=keyframes.mjs.map\n","const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const useFirstKeyframe = speed < 0 || (repeat && repeatType !== \"loop\" && repeat % 2 === 1);\n const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final.mjs.map\n","import { inertia } from '../generators/inertia.mjs';\nimport { keyframes } from '../generators/keyframes.mjs';\nimport { spring } from '../generators/spring/index.mjs';\n\nconst transitionTypeMap = {\n decay: inertia,\n inertia,\n tween: keyframes,\n keyframes: keyframes,\n spring,\n};\nfunction replaceTransitionType(transition) {\n if (typeof transition.type === \"string\") {\n transition.type = transitionTypeMap[transition.type];\n }\n}\n\nexport { replaceTransitionType };\n//# sourceMappingURL=replace-transition-type.mjs.map\n","class WithPromise {\n constructor() {\n this.updateFinished();\n }\n get finished() {\n return this._finished;\n }\n updateFinished() {\n this._finished = new Promise((resolve) => {\n this.resolve = resolve;\n });\n }\n notifyFinished() {\n this.resolve();\n }\n /**\n * Allows the animation to be awaited.\n *\n * @deprecated Use `finished` instead.\n */\n then(onResolve, onReject) {\n return this.finished.then(onResolve, onReject);\n }\n}\n\nexport { WithPromise };\n//# sourceMappingURL=WithPromise.mjs.map\n","import { invariant, pipe, clamp, millisecondsToSeconds, secondsToMilliseconds } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { activeAnimations } from '../stats/animation-count.mjs';\nimport { mix } from '../utils/mix/index.mjs';\nimport { frameloopDriver } from './drivers/frame.mjs';\nimport { inertia } from './generators/inertia.mjs';\nimport { keyframes } from './generators/keyframes.mjs';\nimport { calcGeneratorDuration } from './generators/utils/calc-duration.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\n\nconst percentToProgress = (percent) => percent / 100;\nclass JSAnimation extends WithPromise {\n constructor(options) {\n super();\n this.state = \"idle\";\n this.startTime = null;\n this.isStopped = false;\n /**\n * The current time of the animation.\n */\n this.currentTime = 0;\n /**\n * The time at which the animation was paused.\n */\n this.holdTime = null;\n /**\n * Playback speed as a factor. 0 would be stopped, -1 reverse and 2 double speed.\n */\n this.playbackSpeed = 1;\n /**\n * This method is bound to the instance to fix a pattern where\n * animation.stop is returned as a reference from a useEffect.\n */\n this.stop = () => {\n const { motionValue } = this.options;\n if (motionValue && motionValue.updatedAt !== time.now()) {\n this.tick(time.now());\n }\n this.isStopped = true;\n if (this.state === \"idle\")\n return;\n this.teardown();\n this.options.onStop?.();\n };\n activeAnimations.mainThread++;\n this.options = options;\n this.initAnimation();\n this.play();\n if (options.autoplay === false)\n this.pause();\n }\n initAnimation() {\n const { options } = this;\n replaceTransitionType(options);\n const { type = keyframes, repeat = 0, repeatDelay = 0, repeatType, velocity = 0, } = options;\n let { keyframes: keyframes$1 } = options;\n const generatorFactory = type || keyframes;\n if (process.env.NODE_ENV !== \"production\" &&\n generatorFactory !== keyframes) {\n invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`, \"spring-two-frames\");\n }\n if (generatorFactory !== keyframes &&\n typeof keyframes$1[0] !== \"number\") {\n this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n keyframes$1 = [0, 100];\n }\n const generator = generatorFactory({ ...options, keyframes: keyframes$1 });\n /**\n * If we have a mirror repeat type we need to create a second generator that outputs the\n * mirrored (not reversed) animation and later ping pong between the two generators.\n */\n if (repeatType === \"mirror\") {\n this.mirroredGenerator = generatorFactory({\n ...options,\n keyframes: [...keyframes$1].reverse(),\n velocity: -velocity,\n });\n }\n /**\n * If duration is undefined and we have repeat options,\n * we need to calculate a duration from the generator.\n *\n * We set it to the generator itself to cache the duration.\n * Any timeline resolver will need to have already precalculated\n * the duration by this step.\n */\n if (generator.calculatedDuration === null) {\n generator.calculatedDuration = calcGeneratorDuration(generator);\n }\n const { calculatedDuration } = generator;\n this.calculatedDuration = calculatedDuration;\n this.resolvedDuration = calculatedDuration + repeatDelay;\n this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;\n this.generator = generator;\n }\n updateTime(timestamp) {\n const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;\n // Update currentTime\n if (this.holdTime !== null) {\n this.currentTime = this.holdTime;\n }\n else {\n // Rounding the time because floating point arithmetic is not always accurate, e.g. 3000.367 - 1000.367 =\n // 2000.0000000000002. This is a problem when we are comparing the currentTime with the duration, for\n // example.\n this.currentTime = animationTime;\n }\n }\n tick(timestamp, sample = false) {\n const { generator, totalDuration, mixKeyframes, mirroredGenerator, resolvedDuration, calculatedDuration, } = this;\n if (this.startTime === null)\n return generator.next(0);\n const { delay = 0, keyframes, repeat, repeatType, repeatDelay, type, onUpdate, finalKeyframe, } = this.options;\n /**\n * requestAnimationFrame timestamps can come through as lower than\n * the startTime as set by performance.now(). Here we prevent this,\n * though in the future it could be possible to make setting startTime\n * a pending operation that gets resolved here.\n */\n if (this.speed > 0) {\n this.startTime = Math.min(this.startTime, timestamp);\n }\n else if (this.speed < 0) {\n this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n }\n if (sample) {\n this.currentTime = timestamp;\n }\n else {\n this.updateTime(timestamp);\n }\n // Rebase on delay\n const timeWithoutDelay = this.currentTime - delay * (this.playbackSpeed >= 0 ? 1 : -1);\n const isInDelayPhase = this.playbackSpeed >= 0\n ? timeWithoutDelay < 0\n : timeWithoutDelay > totalDuration;\n this.currentTime = Math.max(timeWithoutDelay, 0);\n // If this animation has finished, set the current time to the total duration.\n if (this.state === \"finished\" && this.holdTime === null) {\n this.currentTime = totalDuration;\n }\n let elapsed = this.currentTime;\n let frameGenerator = generator;\n if (repeat) {\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = Math.min(this.currentTime, totalDuration) / resolvedDuration;\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n iterationProgress === 1 && currentIteration--;\n currentIteration = Math.min(currentIteration, repeat + 1);\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const isOddIteration = Boolean(currentIteration % 2);\n if (isOddIteration) {\n if (repeatType === \"reverse\") {\n iterationProgress = 1 - iterationProgress;\n if (repeatDelay) {\n iterationProgress -= repeatDelay / resolvedDuration;\n }\n }\n else if (repeatType === \"mirror\") {\n frameGenerator = mirroredGenerator;\n }\n }\n elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n }\n /**\n * If we're in negative time, set state as the initial keyframe.\n * This prevents delay: x, duration: 0 animations from finishing\n * instantly.\n */\n const state = isInDelayPhase\n ? { done: false, value: keyframes[0] }\n : frameGenerator.next(elapsed);\n if (mixKeyframes) {\n state.value = mixKeyframes(state.value);\n }\n let { done } = state;\n if (!isInDelayPhase && calculatedDuration !== null) {\n done =\n this.playbackSpeed >= 0\n ? this.currentTime >= totalDuration\n : this.currentTime <= 0;\n }\n const isAnimationFinished = this.holdTime === null &&\n (this.state === \"finished\" || (this.state === \"running\" && done));\n // TODO: The exception for inertia could be cleaner here\n if (isAnimationFinished && type !== inertia) {\n state.value = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n }\n if (onUpdate) {\n onUpdate(state.value);\n }\n if (isAnimationFinished) {\n this.finish();\n }\n return state;\n }\n /**\n * Allows the returned animation to be awaited or promise-chained. Currently\n * resolves when the animation finishes at all but in a future update could/should\n * reject if its cancels.\n */\n then(resolve, reject) {\n return this.finished.then(resolve, reject);\n }\n get duration() {\n return millisecondsToSeconds(this.calculatedDuration);\n }\n get iterationDuration() {\n const { delay = 0 } = this.options || {};\n return this.duration + millisecondsToSeconds(delay);\n }\n get time() {\n return millisecondsToSeconds(this.currentTime);\n }\n set time(newTime) {\n newTime = secondsToMilliseconds(newTime);\n this.currentTime = newTime;\n if (this.startTime === null ||\n this.holdTime !== null ||\n this.playbackSpeed === 0) {\n this.holdTime = newTime;\n }\n else if (this.driver) {\n this.startTime = this.driver.now() - newTime / this.playbackSpeed;\n }\n this.driver?.start(false);\n }\n get speed() {\n return this.playbackSpeed;\n }\n set speed(newSpeed) {\n this.updateTime(time.now());\n const hasChanged = this.playbackSpeed !== newSpeed;\n this.playbackSpeed = newSpeed;\n if (hasChanged) {\n this.time = millisecondsToSeconds(this.currentTime);\n }\n }\n play() {\n if (this.isStopped)\n return;\n const { driver = frameloopDriver, startTime } = this.options;\n if (!this.driver) {\n this.driver = driver((timestamp) => this.tick(timestamp));\n }\n this.options.onPlay?.();\n const now = this.driver.now();\n if (this.state === \"finished\") {\n this.updateFinished();\n this.startTime = now;\n }\n else if (this.holdTime !== null) {\n this.startTime = now - this.holdTime;\n }\n else if (!this.startTime) {\n this.startTime = startTime ?? now;\n }\n if (this.state === \"finished\" && this.speed < 0) {\n this.startTime += this.calculatedDuration;\n }\n this.holdTime = null;\n /**\n * Set playState to running only after we've used it in\n * the previous logic.\n */\n this.state = \"running\";\n this.driver.start();\n }\n pause() {\n this.state = \"paused\";\n this.updateTime(time.now());\n this.holdTime = this.currentTime;\n }\n complete() {\n if (this.state !== \"running\") {\n this.play();\n }\n this.state = \"finished\";\n this.holdTime = null;\n }\n finish() {\n this.notifyFinished();\n this.teardown();\n this.state = \"finished\";\n this.options.onComplete?.();\n }\n cancel() {\n this.holdTime = null;\n this.startTime = 0;\n this.tick(0);\n this.teardown();\n this.options.onCancel?.();\n }\n teardown() {\n this.state = \"idle\";\n this.stopDriver();\n this.startTime = this.holdTime = null;\n activeAnimations.mainThread--;\n }\n stopDriver() {\n if (!this.driver)\n return;\n this.driver.stop();\n this.driver = undefined;\n }\n sample(sampleTime) {\n this.startTime = 0;\n return this.tick(sampleTime, true);\n }\n attachTimeline(timeline) {\n if (this.options.allowFlatten) {\n this.options.type = \"keyframes\";\n this.options.ease = \"linear\";\n this.initAnimation();\n }\n this.driver?.stop();\n return timeline.observe(this);\n }\n}\n// Legacy function support\nfunction animateValue(options) {\n return new JSAnimation(options);\n}\n\nexport { JSAnimation, animateValue };\n//# sourceMappingURL=JSAnimation.mjs.map\n","function fillWildcards(keyframes) {\n for (let i = 1; i < keyframes.length; i++) {\n keyframes[i] ?? (keyframes[i] = keyframes[i - 1]);\n }\n}\n\nexport { fillWildcards };\n//# sourceMappingURL=fill-wildcards.mjs.map\n","const radToDeg = (rad) => (rad * 180) / Math.PI;\nconst rotate = (v) => {\n const angle = radToDeg(Math.atan2(v[1], v[0]));\n return rebaseAngle(angle);\n};\nconst matrix2dParsers = {\n x: 4,\n y: 5,\n translateX: 4,\n translateY: 5,\n scaleX: 0,\n scaleY: 3,\n scale: (v) => (Math.abs(v[0]) + Math.abs(v[3])) / 2,\n rotate,\n rotateZ: rotate,\n skewX: (v) => radToDeg(Math.atan(v[1])),\n skewY: (v) => radToDeg(Math.atan(v[2])),\n skew: (v) => (Math.abs(v[1]) + Math.abs(v[2])) / 2,\n};\nconst rebaseAngle = (angle) => {\n angle = angle % 360;\n if (angle < 0)\n angle += 360;\n return angle;\n};\nconst rotateZ = rotate;\nconst scaleX = (v) => Math.sqrt(v[0] * v[0] + v[1] * v[1]);\nconst scaleY = (v) => Math.sqrt(v[4] * v[4] + v[5] * v[5]);\nconst matrix3dParsers = {\n x: 12,\n y: 13,\n z: 14,\n translateX: 12,\n translateY: 13,\n translateZ: 14,\n scaleX,\n scaleY,\n scale: (v) => (scaleX(v) + scaleY(v)) / 2,\n rotateX: (v) => rebaseAngle(radToDeg(Math.atan2(v[6], v[5]))),\n rotateY: (v) => rebaseAngle(radToDeg(Math.atan2(-v[2], v[0]))),\n rotateZ,\n rotate: rotateZ,\n skewX: (v) => radToDeg(Math.atan(v[4])),\n skewY: (v) => radToDeg(Math.atan(v[1])),\n skew: (v) => (Math.abs(v[1]) + Math.abs(v[4])) / 2,\n};\nfunction defaultTransformValue(name) {\n return name.includes(\"scale\") ? 1 : 0;\n}\nfunction parseValueFromTransform(transform, name) {\n if (!transform || transform === \"none\") {\n return defaultTransformValue(name);\n }\n const matrix3dMatch = transform.match(/^matrix3d\\(([-\\d.e\\s,]+)\\)$/u);\n let parsers;\n let match;\n if (matrix3dMatch) {\n parsers = matrix3dParsers;\n match = matrix3dMatch;\n }\n else {\n const matrix2dMatch = transform.match(/^matrix\\(([-\\d.e\\s,]+)\\)$/u);\n parsers = matrix2dParsers;\n match = matrix2dMatch;\n }\n if (!match) {\n return defaultTransformValue(name);\n }\n const valueParser = parsers[name];\n const values = match[1].split(\",\").map(convertTransformToNumber);\n return typeof valueParser === \"function\"\n ? valueParser(values)\n : values[valueParser];\n}\nconst readTransformValue = (instance, name) => {\n const { transform = \"none\" } = getComputedStyle(instance);\n return parseValueFromTransform(transform, name);\n};\nfunction convertTransformToNumber(value) {\n return parseFloat(value.trim());\n}\n\nexport { defaultTransformValue, parseValueFromTransform, readTransformValue };\n//# sourceMappingURL=parse-transform.mjs.map\n","/**\n * Generate a list of every possible transform key.\n */\nconst transformPropOrder = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\",\n];\n/**\n * A quick lookup for transform props.\n */\nconst transformProps = /*@__PURE__*/ (() => new Set(transformPropOrder))();\n\nexport { transformPropOrder, transformProps };\n//# sourceMappingURL=keys-transform.mjs.map\n","import { parseValueFromTransform } from '../../../render/dom/parse-transform.mjs';\nimport { transformPropOrder } from '../../../render/utils/keys-transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst isNumOrPxType = (v) => v === number || v === px;\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: (_bbox, { transform }) => parseValueFromTransform(transform, \"x\"),\n y: (_bbox, { transform }) => parseValueFromTransform(transform, \"y\"),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalValues, removeNonTranslationalTransform };\n//# sourceMappingURL=unit-conversion.mjs.map\n","import { fillWildcards } from './utils/fill-wildcards.mjs';\nimport { removeNonTranslationalTransform } from './utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nlet isForced = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n element.getValue(key)?.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete(isForced));\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n isForced = true;\n readAllKeyframes();\n measureAllKeyframes();\n isForced = false;\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n this.state = \"pending\";\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.state = \"scheduled\";\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n // If initial keyframe is null we need to read it from the DOM\n if (unresolvedKeyframes[0] === null) {\n const currentValue = motionValue?.get();\n // TODO: This doesn't work if the final keyframe is a wildcard\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n fillWildcards(unresolvedKeyframes);\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete(isForcedComplete = false) {\n this.state = \"complete\";\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n toResolve.delete(this);\n }\n cancel() {\n if (this.state === \"scheduled\") {\n toResolve.delete(this);\n this.state = \"pending\";\n }\n }\n resume() {\n if (this.state === \"pending\")\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n//# sourceMappingURL=KeyframesResolver.mjs.map\n","const isCSSVar = (name) => name.startsWith(\"--\");\n\nexport { isCSSVar };\n//# sourceMappingURL=is-css-var.mjs.map\n","import { isCSSVar } from './is-css-var.mjs';\n\nfunction setStyle(element, name, value) {\n isCSSVar(name)\n ? element.style.setProperty(name, value)\n : (element.style[name] = value);\n}\n\nexport { setStyle };\n//# sourceMappingURL=style-set.mjs.map\n","import { memo } from 'motion-utils';\n\nconst supportsScrollTimeline = /* @__PURE__ */ memo(() => window.ScrollTimeline !== undefined);\n\nexport { supportsScrollTimeline };\n//# sourceMappingURL=scroll-timeline.mjs.map\n","/**\n * Add the ability for test suites to manually set support flags\n * to better test more environments.\n */\nconst supportsFlags = {};\n\nexport { supportsFlags };\n//# sourceMappingURL=flags.mjs.map\n","import { memo } from 'motion-utils';\nimport { supportsFlags } from './flags.mjs';\n\nfunction memoSupports(callback, supportsFlag) {\n const memoized = memo(callback);\n return () => supportsFlags[supportsFlag] ?? memoized();\n}\n\nexport { memoSupports };\n//# sourceMappingURL=memo.mjs.map\n","import { memoSupports } from './memo.mjs';\n\nconst supportsLinearEasing = /*@__PURE__*/ memoSupports(() => {\n try {\n document\n .createElement(\"div\")\n .animate({ opacity: 0 }, { easing: \"linear(0, 1)\" });\n }\n catch (e) {\n return false;\n }\n return true;\n}, \"linearEasing\");\n\nexport { supportsLinearEasing };\n//# sourceMappingURL=linear-easing.mjs.map\n","const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\n\nexport { cubicBezierAsString };\n//# sourceMappingURL=cubic-bezier.mjs.map\n","import { cubicBezierAsString } from './cubic-bezier.mjs';\n\nconst supportedWaapiEasing = {\n linear: \"linear\",\n ease: \"ease\",\n easeIn: \"ease-in\",\n easeOut: \"ease-out\",\n easeInOut: \"ease-in-out\",\n circIn: /*@__PURE__*/ cubicBezierAsString([0, 0.65, 0.55, 1]),\n circOut: /*@__PURE__*/ cubicBezierAsString([0.55, 0, 1, 0.45]),\n backIn: /*@__PURE__*/ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),\n backOut: /*@__PURE__*/ cubicBezierAsString([0.33, 1.53, 0.69, 0.99]),\n};\n\nexport { supportedWaapiEasing };\n//# sourceMappingURL=supported.mjs.map\n","import { isBezierDefinition } from 'motion-utils';\nimport { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';\nimport { generateLinearEasing } from '../utils/linear.mjs';\nimport { cubicBezierAsString } from './cubic-bezier.mjs';\nimport { supportedWaapiEasing } from './supported.mjs';\n\nfunction mapEasingToNativeEasing(easing, duration) {\n if (!easing) {\n return undefined;\n }\n else if (typeof easing === \"function\") {\n return supportsLinearEasing()\n ? generateLinearEasing(easing, duration)\n : \"ease-out\";\n }\n else if (isBezierDefinition(easing)) {\n return cubicBezierAsString(easing);\n }\n else if (Array.isArray(easing)) {\n return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) ||\n supportedWaapiEasing.easeOut);\n }\n else {\n return supportedWaapiEasing[easing];\n }\n}\n\nexport { mapEasingToNativeEasing };\n//# sourceMappingURL=map-easing.mjs.map\n","import { activeAnimations } from '../../stats/animation-count.mjs';\nimport { statsBuffer } from '../../stats/buffer.mjs';\nimport { mapEasingToNativeEasing } from './easing/map-easing.mjs';\n\nfunction startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = \"loop\", ease = \"easeOut\", times, } = {}, pseudoElement = undefined) {\n const keyframeOptions = {\n [valueName]: keyframes,\n };\n if (times)\n keyframeOptions.offset = times;\n const easing = mapEasingToNativeEasing(ease, duration);\n /**\n * If this is an easing array, apply to keyframes, not animation as a whole\n */\n if (Array.isArray(easing))\n keyframeOptions.easing = easing;\n if (statsBuffer.value) {\n activeAnimations.waapi++;\n }\n const options = {\n delay,\n duration,\n easing: !Array.isArray(easing) ? easing : \"linear\",\n fill: \"both\",\n iterations: repeat + 1,\n direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\",\n };\n if (pseudoElement)\n options.pseudoElement = pseudoElement;\n const animation = element.animate(keyframeOptions, options);\n if (statsBuffer.value) {\n animation.finished.finally(() => {\n activeAnimations.waapi--;\n });\n }\n return animation;\n}\n\nexport { startWaapiAnimation };\n//# sourceMappingURL=start-waapi-animation.mjs.map\n","function isGenerator(type) {\n return typeof type === \"function\" && \"applyToOptions\" in type;\n}\n\nexport { isGenerator };\n//# sourceMappingURL=is-generator.mjs.map\n","import { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';\nimport { isGenerator } from '../../generators/utils/is-generator.mjs';\n\nfunction applyGeneratorOptions({ type, ...options }) {\n if (isGenerator(type) && supportsLinearEasing()) {\n return type.applyToOptions(options);\n }\n else {\n options.duration ?? (options.duration = 300);\n options.ease ?? (options.ease = \"easeOut\");\n }\n return options;\n}\n\nexport { applyGeneratorOptions };\n//# sourceMappingURL=apply-generator.mjs.map\n","import { invariant, millisecondsToSeconds, secondsToMilliseconds, noop } from 'motion-utils';\nimport { setStyle } from '../render/dom/style-set.mjs';\nimport { supportsScrollTimeline } from '../utils/supports/scroll-timeline.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\nimport { startWaapiAnimation } from './waapi/start-waapi-animation.mjs';\nimport { applyGeneratorOptions } from './waapi/utils/apply-generator.mjs';\n\n/**\n * NativeAnimation implements AnimationPlaybackControls for the browser's Web Animations API.\n */\nclass NativeAnimation extends WithPromise {\n constructor(options) {\n super();\n this.finishedTime = null;\n this.isStopped = false;\n /**\n * Tracks a manually-set start time that takes precedence over WAAPI's\n * dynamic startTime. This is cleared when play() or time setter is called,\n * allowing WAAPI to take over timing.\n */\n this.manualStartTime = null;\n if (!options)\n return;\n const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete, } = options;\n this.isPseudoElement = Boolean(pseudoElement);\n this.allowFlatten = allowFlatten;\n this.options = options;\n invariant(typeof options.type !== \"string\", `Mini animate() doesn't support \"type\" as a string.`, \"mini-spring\");\n const transition = applyGeneratorOptions(options);\n this.animation = startWaapiAnimation(element, name, keyframes, transition, pseudoElement);\n if (transition.autoplay === false) {\n this.animation.pause();\n }\n this.animation.onfinish = () => {\n this.finishedTime = this.time;\n if (!pseudoElement) {\n const keyframe = getFinalKeyframe(keyframes, this.options, finalKeyframe, this.speed);\n if (this.updateMotionValue) {\n this.updateMotionValue(keyframe);\n }\n else {\n /**\n * If we can, we want to commit the final style as set by the user,\n * rather than the computed keyframe value supplied by the animation.\n */\n setStyle(element, name, keyframe);\n }\n this.animation.cancel();\n }\n onComplete?.();\n this.notifyFinished();\n };\n }\n play() {\n if (this.isStopped)\n return;\n this.manualStartTime = null;\n this.animation.play();\n if (this.state === \"finished\") {\n this.updateFinished();\n }\n }\n pause() {\n this.animation.pause();\n }\n complete() {\n this.animation.finish?.();\n }\n cancel() {\n try {\n this.animation.cancel();\n }\n catch (e) { }\n }\n stop() {\n if (this.isStopped)\n return;\n this.isStopped = true;\n const { state } = this;\n if (state === \"idle\" || state === \"finished\") {\n return;\n }\n if (this.updateMotionValue) {\n this.updateMotionValue();\n }\n else {\n this.commitStyles();\n }\n if (!this.isPseudoElement)\n this.cancel();\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * In this method, we commit styles back to the DOM before cancelling\n * the animation.\n *\n * This is designed to be overridden by NativeAnimationExtended, which\n * will create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to also correctly calculate velocity for any subsequent animation\n * while deferring the commit until the next animation frame.\n */\n commitStyles() {\n if (!this.isPseudoElement) {\n this.animation.commitStyles?.();\n }\n }\n get duration() {\n const duration = this.animation.effect?.getComputedTiming?.().duration || 0;\n return millisecondsToSeconds(Number(duration));\n }\n get iterationDuration() {\n const { delay = 0 } = this.options || {};\n return this.duration + millisecondsToSeconds(delay);\n }\n get time() {\n return millisecondsToSeconds(Number(this.animation.currentTime) || 0);\n }\n set time(newTime) {\n this.manualStartTime = null;\n this.finishedTime = null;\n this.animation.currentTime = secondsToMilliseconds(newTime);\n }\n /**\n * The playback speed of the animation.\n * 1 = normal speed, 2 = double speed, 0.5 = half speed.\n */\n get speed() {\n return this.animation.playbackRate;\n }\n set speed(newSpeed) {\n // Allow backwards playback after finishing\n if (newSpeed < 0)\n this.finishedTime = null;\n this.animation.playbackRate = newSpeed;\n }\n get state() {\n return this.finishedTime !== null\n ? \"finished\"\n : this.animation.playState;\n }\n get startTime() {\n return this.manualStartTime ?? Number(this.animation.startTime);\n }\n set startTime(newStartTime) {\n this.manualStartTime = this.animation.startTime = newStartTime;\n }\n /**\n * Attaches a timeline to the animation, for instance the `ScrollTimeline`.\n */\n attachTimeline({ timeline, observe }) {\n if (this.allowFlatten) {\n this.animation.effect?.updateTiming({ easing: \"linear\" });\n }\n this.animation.onfinish = null;\n if (timeline && supportsScrollTimeline()) {\n this.animation.timeline = timeline;\n return noop;\n }\n else {\n return observe(this);\n }\n }\n}\n\nexport { NativeAnimation };\n//# sourceMappingURL=NativeAnimation.mjs.map\n","import { anticipate, backInOut, circInOut } from 'motion-utils';\n\nconst unsupportedEasingFunctions = {\n anticipate,\n backInOut,\n circInOut,\n};\nfunction isUnsupportedEase(key) {\n return key in unsupportedEasingFunctions;\n}\nfunction replaceStringEasing(transition) {\n if (typeof transition.ease === \"string\" &&\n isUnsupportedEase(transition.ease)) {\n transition.ease = unsupportedEasingFunctions[transition.ease];\n }\n}\n\nexport { replaceStringEasing };\n//# sourceMappingURL=unsupported-easing.mjs.map\n","import { clamp } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { JSAnimation } from './JSAnimation.mjs';\nimport { NativeAnimation } from './NativeAnimation.mjs';\nimport { replaceTransitionType } from './utils/replace-transition-type.mjs';\nimport { replaceStringEasing } from './waapi/utils/unsupported-easing.mjs';\n\n/**\n * 10ms is chosen here as it strikes a balance between smooth\n * results (more than one keyframe per frame at 60fps) and\n * keyframe quantity.\n */\nconst sampleDelta = 10; //ms\nclass NativeAnimationExtended extends NativeAnimation {\n constructor(options) {\n /**\n * The base NativeAnimation function only supports a subset\n * of Motion easings, and WAAPI also only supports some\n * easing functions via string/cubic-bezier definitions.\n *\n * This function replaces those unsupported easing functions\n * with a JS easing function. This will later get compiled\n * to a linear() easing function.\n */\n replaceStringEasing(options);\n /**\n * Ensure we replace the transition type with a generator function\n * before passing to WAAPI.\n *\n * TODO: Does this have a better home? It could be shared with\n * JSAnimation.\n */\n replaceTransitionType(options);\n super(options);\n if (options.startTime !== undefined) {\n this.startTime = options.startTime;\n }\n this.options = options;\n }\n /**\n * WAAPI doesn't natively have any interruption capabilities.\n *\n * Rather than read committed styles back out of the DOM, we can\n * create a renderless JS animation and sample it twice to calculate\n * its current value, \"previous\" value, and therefore allow\n * Motion to calculate velocity for any subsequent animation.\n */\n updateMotionValue(value) {\n const { motionValue, onUpdate, onComplete, element, ...options } = this.options;\n if (!motionValue)\n return;\n if (value !== undefined) {\n motionValue.set(value);\n return;\n }\n const sampleAnimation = new JSAnimation({\n ...options,\n autoplay: false,\n });\n /**\n * Use wall-clock elapsed time for sampling.\n * Under CPU load, WAAPI's currentTime may not reflect actual\n * elapsed time, causing incorrect sampling and visual jumps.\n */\n const sampleTime = Math.max(sampleDelta, time.now() - this.startTime);\n const delta = clamp(0, sampleDelta, sampleTime - sampleDelta);\n motionValue.setWithVelocity(sampleAnimation.sample(Math.max(0, sampleTime - delta)).value, sampleAnimation.sample(sampleTime).value, delta);\n sampleAnimation.stop();\n }\n}\n\nexport { NativeAnimationExtended };\n//# sourceMappingURL=NativeAnimationExtended.mjs.map\n","import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (value, name) => {\n // If the list of keys that might be non-animatable grows, replace with Set\n if (name === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n//# sourceMappingURL=is-animatable.mjs.map\n","import { warning } from 'motion-utils';\nimport { isGenerator } from '../generators/utils/is-generator.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\n\nfunction hasKeyframesChanged(keyframes) {\n const current = keyframes[0];\n if (keyframes.length === 1)\n return true;\n for (let i = 0; i < keyframes.length; i++) {\n if (keyframes[i] !== current)\n return true;\n }\n}\nfunction canAnimate(keyframes, name, type, velocity) {\n /**\n * Check if we're able to animate between the start and end keyframes,\n * and throw a warning if we're attempting to animate between one that's\n * animatable and another that isn't.\n */\n const originKeyframe = keyframes[0];\n if (originKeyframe === null) {\n return false;\n }\n /**\n * These aren't traditionally animatable but we do support them.\n * In future we could look into making this more generic or replacing\n * this function with mix() === mixImmediate\n */\n if (name === \"display\" || name === \"visibility\")\n return true;\n const targetKeyframe = keyframes[keyframes.length - 1];\n const isOriginAnimatable = isAnimatable(originKeyframe, name);\n const isTargetAnimatable = isAnimatable(targetKeyframe, name);\n warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from \"${originKeyframe}\" to \"${targetKeyframe}\". \"${isOriginAnimatable ? targetKeyframe : originKeyframe}\" is not an animatable value.`, \"value-not-animatable\");\n // Always skip if any of these are true\n if (!isOriginAnimatable || !isTargetAnimatable) {\n return false;\n }\n return (hasKeyframesChanged(keyframes) ||\n ((type === \"spring\" || isGenerator(type)) && velocity));\n}\n\nexport { canAnimate };\n//# sourceMappingURL=can-animate.mjs.map\n","function makeAnimationInstant(options) {\n options.duration = 0;\n options.type = \"keyframes\";\n}\n\nexport { makeAnimationInstant };\n//# sourceMappingURL=make-animation-instant.mjs.map\n","import { memo } from 'motion-utils';\n\n/**\n * A list of values that can be hardware-accelerated.\n */\nconst acceleratedValues = new Set([\n \"opacity\",\n \"clipPath\",\n \"filter\",\n \"transform\",\n // TODO: Could be re-enabled now we have support for linear() easing\n // \"background-color\"\n]);\nconst supportsWaapi = /*@__PURE__*/ memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\nfunction supportsBrowserAnimation(options) {\n const { motionValue, name, repeatDelay, repeatType, damping, type } = options;\n const subject = motionValue?.owner?.current;\n /**\n * We use this check instead of isHTMLElement() because we explicitly\n * **don't** want elements in different timing contexts (i.e. popups)\n * to be accelerated, as it's not possible to sync these animations\n * properly with those driven from the main window frameloop.\n */\n if (!(subject instanceof HTMLElement)) {\n return false;\n }\n const { onUpdate, transformTemplate } = motionValue.owner.getProps();\n return (supportsWaapi() &&\n name &&\n acceleratedValues.has(name) &&\n (name !== \"transform\" || !transformTemplate) &&\n /**\n * If we're outputting values to onUpdate then we can't use WAAPI as there's\n * no way to read the value from WAAPI every frame.\n */\n !onUpdate &&\n !repeatDelay &&\n repeatType !== \"mirror\" &&\n damping !== 0 &&\n type !== \"inertia\");\n}\n\nexport { supportsBrowserAnimation };\n//# sourceMappingURL=waapi.mjs.map\n","import { MotionGlobalConfig, noop } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { JSAnimation } from './JSAnimation.mjs';\nimport { getFinalKeyframe } from './keyframes/get-final.mjs';\nimport { KeyframeResolver, flushKeyframeResolvers } from './keyframes/KeyframesResolver.mjs';\nimport { NativeAnimationExtended } from './NativeAnimationExtended.mjs';\nimport { canAnimate } from './utils/can-animate.mjs';\nimport { makeAnimationInstant } from './utils/make-animation-instant.mjs';\nimport { WithPromise } from './utils/WithPromise.mjs';\nimport { supportsBrowserAnimation } from './waapi/supports/waapi.mjs';\n\n/**\n * Maximum time allowed between an animation being created and it being\n * resolved for us to use the latter as the start time.\n *\n * This is to ensure that while we prefer to \"start\" an animation as soon\n * as it's triggered, we also want to avoid a visual jump if there's a big delay\n * between these two moments.\n */\nconst MAX_RESOLVE_DELAY = 40;\nclass AsyncMotionValueAnimation extends WithPromise {\n constructor({ autoplay = true, delay = 0, type = \"keyframes\", repeat = 0, repeatDelay = 0, repeatType = \"loop\", keyframes, name, motionValue, element, ...options }) {\n super();\n /**\n * Bound to support return animation.stop pattern\n */\n this.stop = () => {\n if (this._animation) {\n this._animation.stop();\n this.stopTimeline?.();\n }\n this.keyframeResolver?.cancel();\n };\n this.createdAt = time.now();\n const optionsWithDefaults = {\n autoplay,\n delay,\n type,\n repeat,\n repeatDelay,\n repeatType,\n name,\n motionValue,\n element,\n ...options,\n };\n const KeyframeResolver$1 = element?.KeyframeResolver || KeyframeResolver;\n this.keyframeResolver = new KeyframeResolver$1(keyframes, (resolvedKeyframes, finalKeyframe, forced) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe, optionsWithDefaults, !forced), name, motionValue, element);\n this.keyframeResolver?.scheduleResolve();\n }\n onKeyframesResolved(keyframes, finalKeyframe, options, sync) {\n this.keyframeResolver = undefined;\n const { name, type, velocity, delay, isHandoff, onUpdate } = options;\n this.resolvedAt = time.now();\n /**\n * If we can't animate this value with the resolved keyframes\n * then we should complete it immediately.\n */\n if (!canAnimate(keyframes, name, type, velocity)) {\n if (MotionGlobalConfig.instantAnimations || !delay) {\n onUpdate?.(getFinalKeyframe(keyframes, options, finalKeyframe));\n }\n keyframes[0] = keyframes[keyframes.length - 1];\n makeAnimationInstant(options);\n options.repeat = 0;\n }\n /**\n * Resolve startTime for the animation.\n *\n * This method uses the createdAt and resolvedAt to calculate the\n * animation startTime. *Ideally*, we would use the createdAt time as t=0\n * as the following frame would then be the first frame of the animation in\n * progress, which would feel snappier.\n *\n * However, if there's a delay (main thread work) between the creation of\n * the animation and the first committed frame, we prefer to use resolvedAt\n * to avoid a sudden jump into the animation.\n */\n const startTime = sync\n ? !this.resolvedAt\n ? this.createdAt\n : this.resolvedAt - this.createdAt > MAX_RESOLVE_DELAY\n ? this.resolvedAt\n : this.createdAt\n : undefined;\n const resolvedOptions = {\n startTime,\n finalKeyframe,\n ...options,\n keyframes,\n };\n /**\n * Animate via WAAPI if possible. If this is a handoff animation, the optimised animation will be running via\n * WAAPI. Therefore, this animation must be JS to ensure it runs \"under\" the\n * optimised animation.\n */\n const useWaapi = !isHandoff && supportsBrowserAnimation(resolvedOptions);\n const element = resolvedOptions.motionValue?.owner?.current;\n const animation = useWaapi\n ? new NativeAnimationExtended({\n ...resolvedOptions,\n element,\n })\n : new JSAnimation(resolvedOptions);\n animation.finished.then(() => {\n this.notifyFinished();\n }).catch(noop);\n if (this.pendingTimeline) {\n this.stopTimeline = animation.attachTimeline(this.pendingTimeline);\n this.pendingTimeline = undefined;\n }\n this._animation = animation;\n }\n get finished() {\n if (!this._animation) {\n return this._finished;\n }\n else {\n return this.animation.finished;\n }\n }\n then(onResolve, _onReject) {\n return this.finished.finally(onResolve).then(() => { });\n }\n get animation() {\n if (!this._animation) {\n this.keyframeResolver?.resume();\n flushKeyframeResolvers();\n }\n return this._animation;\n }\n get duration() {\n return this.animation.duration;\n }\n get iterationDuration() {\n return this.animation.iterationDuration;\n }\n get time() {\n return this.animation.time;\n }\n set time(newTime) {\n this.animation.time = newTime;\n }\n get speed() {\n return this.animation.speed;\n }\n get state() {\n return this.animation.state;\n }\n set speed(newSpeed) {\n this.animation.speed = newSpeed;\n }\n get startTime() {\n return this.animation.startTime;\n }\n attachTimeline(timeline) {\n if (this._animation) {\n this.stopTimeline = this.animation.attachTimeline(timeline);\n }\n else {\n this.pendingTimeline = timeline;\n }\n return () => this.stop();\n }\n play() {\n this.animation.play();\n }\n pause() {\n this.animation.pause();\n }\n complete() {\n this.animation.complete();\n }\n cancel() {\n if (this._animation) {\n this.animation.cancel();\n }\n this.keyframeResolver?.cancel();\n }\n}\n\nexport { AsyncMotionValueAnimation };\n//# sourceMappingURL=AsyncMotionValueAnimation.mjs.map\n","function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n const index = Array.from(children)\n .sort((a, b) => a.sortNodePosition(b))\n .indexOf(child);\n const numChildren = children.size;\n const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n const delayIsFunction = typeof delayChildren === \"function\";\n return delayIsFunction\n ? delayChildren(index, numChildren)\n : staggerDirection === 1\n ? index * staggerChildren\n : maxStaggerDuration - index * staggerChildren;\n}\n\nexport { calcChildStagger };\n//# sourceMappingURL=calc-child-stagger.mjs.map\n","import { invariant, isNumericalString } from 'motion-utils';\nimport { isCSSVariableToken } from './is-css-variable.mjs';\n\n/**\n * Parse Framer's special CSS variable format into a CSS token and a fallback.\n *\n * ```\n * `var(--foo, #fff)` => [`--foo`, '#fff']\n * ```\n *\n * @param current\n */\nconst splitCSSVariableRegex = \n// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;\nfunction parseCSSVariable(current) {\n const match = splitCSSVariableRegex.exec(current);\n if (!match)\n return [,];\n const [, token1, token2, fallback] = match;\n return [`--${token1 ?? token2}`, fallback];\n}\nconst maxDepth = 4;\nfunction getVariableValue(current, element, depth = 1) {\n invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`, \"max-css-var-depth\");\n const [token, fallback] = parseCSSVariable(current);\n // No CSS variable detected\n if (!token)\n return;\n // Attempt to read this CSS variable off the element\n const resolved = window.getComputedStyle(element).getPropertyValue(token);\n if (resolved) {\n const trimmed = resolved.trim();\n return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n }\n return isCSSVariableToken(fallback)\n ? getVariableValue(fallback, element, depth + 1)\n : fallback;\n}\n\nexport { getVariableValue, parseCSSVariable };\n//# sourceMappingURL=css-variables-conversion.mjs.map\n","import { transformProps } from '../../render/utils/keys-transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n//# sourceMappingURL=default-transitions.mjs.map\n","const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1\n ? 0\n : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final-keyframe.mjs.map\n","function getValueTransition(transition, key) {\n return (transition?.[key] ??\n transition?.[\"default\"] ??\n transition);\n}\n\nexport { getValueTransition };\n//# sourceMappingURL=get-value-transition.mjs.map\n","/**\n * Decide whether a transition is defined on a given Transition.\n * This filters out orchestration options and returns true\n * if any options are left.\n */\nfunction isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {\n return !!Object.keys(transition).length;\n}\n\nexport { isTransitionDefined };\n//# sourceMappingURL=is-transition-defined.mjs.map\n","import { secondsToMilliseconds, MotionGlobalConfig } from 'motion-utils';\nimport { AsyncMotionValueAnimation } from '../AsyncMotionValueAnimation.mjs';\nimport { JSAnimation } from '../JSAnimation.mjs';\nimport { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { makeAnimationInstant } from '../utils/make-animation-instant.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { getFinalKeyframe } from '../utils/get-final-keyframe.mjs';\nimport { isTransitionDefined } from '../utils/is-transition-defined.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unique transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n Object.assign(options, getDefaultTransition(name, options));\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n options.duration && (options.duration = secondsToMilliseconds(options.duration));\n options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n /**\n * Support deprecated way to set initial value. Prefer keyframe syntax.\n */\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n makeAnimationInstant(options);\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (MotionGlobalConfig.instantAnimations ||\n MotionGlobalConfig.skipAnimations) {\n shouldSkip = true;\n makeAnimationInstant(options);\n options.delay = 0;\n }\n /**\n * If the transition type or easing has been explicitly set by the user\n * then we don't want to allow flattening the animation.\n */\n options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n return;\n }\n }\n return valueTransition.isSync\n ? new JSAnimation(options)\n : new AsyncMotionValueAnimation(options);\n};\n\nexport { animateMotionValue };\n//# sourceMappingURL=motion-value.mjs.map\n","function getValueState(visualElement) {\n const state = [{}, {}];\n visualElement?.values.forEach((value, key) => {\n state[0][key] = value.get();\n state[1][key] = value.getVelocity();\n });\n return state;\n}\nfunction resolveVariantFromProps(props, definition, custom, visualElement) {\n /**\n * If the variant definition is a function, resolve.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n /**\n * If the variant definition is a variant label, or\n * the function returned a variant label, resolve.\n */\n if (typeof definition === \"string\") {\n definition = props.variants && props.variants[definition];\n }\n /**\n * At this point we've resolved both functions and variant labels,\n * but the resolved variant label might itself have been a function.\n * If so, resolve. This can only have returned a valid target object.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n return definition;\n}\n\nexport { resolveVariantFromProps };\n//# sourceMappingURL=resolve-variants.mjs.map\n","import { resolveVariantFromProps } from './resolve-variants.mjs';\n\nfunction resolveVariant(visualElement, definition, custom) {\n const props = visualElement.getProps();\n return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);\n}\n\nexport { resolveVariant };\n//# sourceMappingURL=resolve-dynamic-variants.mjs.map\n","import { transformPropOrder } from './keys-transform.mjs';\n\nconst positionalKeys = new Set([\n \"width\",\n \"height\",\n \"top\",\n \"left\",\n \"right\",\n \"bottom\",\n ...transformPropOrder,\n]);\n\nexport { positionalKeys };\n//# sourceMappingURL=keys-position.mjs.map\n","import { warnOnce, SubscriptionManager, velocityPerSecond } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n */\n constructor(init, options = {}) {\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev) {\n this.events.change?.notify(this.current);\n if (this.dependents) {\n for (const dependent of this.dependents) {\n dependent.dirty();\n }\n }\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v) {\n if (!this.passiveEffect) {\n this.updateAndNotify(v);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n dirty() {\n this.events.change?.notify(this.current);\n }\n addDependent(dependent) {\n if (!this.dependents) {\n this.dependents = new Set();\n }\n this.dependents.add(dependent);\n }\n removeDependent(dependent) {\n if (this.dependents) {\n this.dependents.delete(dependent);\n }\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.dependents?.clear();\n this.events.destroy?.notify();\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n//# sourceMappingURL=index.mjs.map\n","const isKeyframesTarget = (v) => {\n return Array.isArray(v);\n};\n\nexport { isKeyframesTarget };\n//# sourceMappingURL=is-keyframes-target.mjs.map\n","import { motionValue } from '../../value/index.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { isKeyframesTarget } from './is-keyframes-target.mjs';\n\n/**\n * Set VisualElement's MotionValue, creating a new MotionValue for it if\n * it doesn't exist.\n */\nfunction setMotionValue(visualElement, key, value) {\n if (visualElement.hasValue(key)) {\n visualElement.getValue(key).set(value);\n }\n else {\n visualElement.addValue(key, motionValue(value));\n }\n}\nfunction resolveFinalValueInKeyframes(v) {\n // TODO maybe throw if v.length - 1 is placeholder token?\n return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;\n}\nfunction setTarget(visualElement, definition) {\n const resolved = resolveVariant(visualElement, definition);\n let { transitionEnd = {}, transition = {}, ...target } = resolved || {};\n target = { ...target, ...transitionEnd };\n for (const key in target) {\n const value = resolveFinalValueInKeyframes(target[key]);\n setMotionValue(visualElement, key, value);\n }\n}\n\nexport { setTarget };\n//# sourceMappingURL=setters.mjs.map\n","const isMotionValue = (value) => Boolean(value && value.getVelocity);\n\nexport { isMotionValue };\n//# sourceMappingURL=is-motion-value.mjs.map\n","import { isMotionValue } from '../utils/is-motion-value.mjs';\n\nfunction isWillChangeMotionValue(value) {\n return Boolean(isMotionValue(value) && value.add);\n}\n\nexport { isWillChangeMotionValue };\n//# sourceMappingURL=is.mjs.map\n","import { MotionGlobalConfig } from 'motion-utils';\nimport { isWillChangeMotionValue } from './is.mjs';\n\nfunction addValueToWillChange(visualElement, key) {\n const willChange = visualElement.getValue(\"willChange\");\n /**\n * It could be that a user has set willChange to a regular MotionValue,\n * in which case we can't add the value to it.\n */\n if (isWillChangeMotionValue(willChange)) {\n return willChange.add(key);\n }\n else if (!willChange && MotionGlobalConfig.WillChange) {\n const newWillChange = new MotionGlobalConfig.WillChange(\"auto\");\n visualElement.addValue(\"willChange\", newWillChange);\n newWillChange.add(key);\n }\n}\n\nexport { addValueToWillChange };\n//# sourceMappingURL=add-will-change.mjs.map\n","function camelToDash(str) {\n return str.replace(/([A-Z])/g, (match) => `-${match.toLowerCase()}`);\n}\n\nexport { camelToDash };\n//# sourceMappingURL=camel-to-dash.mjs.map\n","import { camelToDash } from '../../render/dom/utils/camel-to-dash.mjs';\n\nconst optimizedAppearDataId = \"framerAppearId\";\nconst optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\nexport { optimizedAppearDataAttribute, optimizedAppearDataId };\n//# sourceMappingURL=data-id.mjs.map\n","import { optimizedAppearDataAttribute } from './data-id.mjs';\n\nfunction getOptimisedAppearId(visualElement) {\n return visualElement.props[optimizedAppearDataAttribute];\n}\n\nexport { getOptimisedAppearId };\n//# sourceMappingURL=get-appear-id.mjs.map\n","import { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n /**\n * If the value is already at the defined target, skip the animation.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n Promise.all(animations).then(() => {\n frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n });\n }\n return animations;\n}\n\nexport { animateTarget };\n//# sourceMappingURL=visual-element-target.mjs.map\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { calcChildStagger } from '../utils/calc-child-stagger.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, forwardDelay, delayChildren, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delay = 0, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n for (const child of visualElement.variantChildren) {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delay +\n (typeof delayChildren === \"function\" ? 0 : delayChildren) +\n calcChildStagger(visualElement.variantChildren, child, delayChildren, staggerChildren, staggerDirection),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n }\n return Promise.all(animations);\n}\n\nexport { animateVariant };\n//# sourceMappingURL=visual-element-variant.mjs.map\n","import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n//# sourceMappingURL=visual-element.mjs.map\n","/**\n * ValueType for \"auto\"\n */\nconst auto = {\n test: (v) => v === \"auto\",\n parse: (v) => v,\n};\n\nexport { auto };\n//# sourceMappingURL=auto.mjs.map\n","/**\n * Tests a provided value against a ValueType\n */\nconst testValueType = (v) => (type) => type.test(v);\n\nexport { testValueType };\n//# sourceMappingURL=test.mjs.map\n","import { auto } from './auto.mjs';\nimport { number } from './numbers/index.mjs';\nimport { px, percent, degrees, vw, vh } from './numbers/units.mjs';\nimport { testValueType } from './test.mjs';\n\n/**\n * A list of value types commonly used for dimensions\n */\nconst dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];\n/**\n * Tests a dimensional value against the list of dimension ValueTypes\n */\nconst findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));\n\nexport { dimensionValueTypes, findDimensionValueType };\n//# sourceMappingURL=dimensions.mjs.map\n","import { isZeroValueString } from 'motion-utils';\n\nfunction isNone(value) {\n if (typeof value === \"number\") {\n return value === 0;\n }\n else if (value !== null) {\n return value === \"none\" || value === \"0\" || isZeroValueString(value);\n }\n else {\n return true;\n }\n}\n\nexport { isNone };\n//# sourceMappingURL=is-none.mjs.map\n","import { complex } from './index.mjs';\nimport { floatRegex } from '../utils/float-regex.mjs';\n\n/**\n * Properties that should default to 1 or 100%\n */\nconst maxDefaults = new Set([\"brightness\", \"contrast\", \"saturate\", \"opacity\"]);\nfunction applyDefaultFilter(v) {\n const [name, value] = v.slice(0, -1).split(\"(\");\n if (name === \"drop-shadow\")\n return v;\n const [number] = value.match(floatRegex) || [];\n if (!number)\n return v;\n const unit = value.replace(number, \"\");\n let defaultValue = maxDefaults.has(name) ? 1 : 0;\n if (number !== value)\n defaultValue *= 100;\n return name + \"(\" + defaultValue + unit + \")\";\n}\nconst functionRegex = /\\b([a-z-]*)\\(.*?\\)/gu;\nconst filter = {\n ...complex,\n getAnimatableNone: (v) => {\n const functions = v.match(functionRegex);\n return functions ? functions.map(applyDefaultFilter).join(\" \") : v;\n },\n};\n\nexport { filter };\n//# sourceMappingURL=filter.mjs.map\n","import { number } from './numbers/index.mjs';\n\nconst int = {\n ...number,\n transform: Math.round,\n};\n\nexport { int };\n//# sourceMappingURL=int.mjs.map\n","import { scale, alpha } from '../numbers/index.mjs';\nimport { degrees, px, progressPercentage } from '../numbers/units.mjs';\n\nconst transformValueTypes = {\n rotate: degrees,\n rotateX: degrees,\n rotateY: degrees,\n rotateZ: degrees,\n scale,\n scaleX: scale,\n scaleY: scale,\n scaleZ: scale,\n skew: degrees,\n skewX: degrees,\n skewY: degrees,\n distance: px,\n translateX: px,\n translateY: px,\n translateZ: px,\n x: px,\n y: px,\n z: px,\n perspective: px,\n transformPerspective: px,\n opacity: alpha,\n originX: progressPercentage,\n originY: progressPercentage,\n originZ: px,\n};\n\nexport { transformValueTypes };\n//# sourceMappingURL=transform.mjs.map\n","import { int } from '../int.mjs';\nimport { alpha } from '../numbers/index.mjs';\nimport { px } from '../numbers/units.mjs';\nimport { transformValueTypes } from './transform.mjs';\n\nconst numberValueTypes = {\n // Border props\n borderWidth: px,\n borderTopWidth: px,\n borderRightWidth: px,\n borderBottomWidth: px,\n borderLeftWidth: px,\n borderRadius: px,\n borderTopLeftRadius: px,\n borderTopRightRadius: px,\n borderBottomRightRadius: px,\n borderBottomLeftRadius: px,\n // Positioning props\n width: px,\n maxWidth: px,\n height: px,\n maxHeight: px,\n top: px,\n right: px,\n bottom: px,\n left: px,\n inset: px,\n insetBlock: px,\n insetBlockStart: px,\n insetBlockEnd: px,\n insetInline: px,\n insetInlineStart: px,\n insetInlineEnd: px,\n // Spacing props\n padding: px,\n paddingTop: px,\n paddingRight: px,\n paddingBottom: px,\n paddingLeft: px,\n paddingBlock: px,\n paddingBlockStart: px,\n paddingBlockEnd: px,\n paddingInline: px,\n paddingInlineStart: px,\n paddingInlineEnd: px,\n margin: px,\n marginTop: px,\n marginRight: px,\n marginBottom: px,\n marginLeft: px,\n marginBlock: px,\n marginBlockStart: px,\n marginBlockEnd: px,\n marginInline: px,\n marginInlineStart: px,\n marginInlineEnd: px,\n // Typography\n fontSize: px,\n // Misc\n backgroundPositionX: px,\n backgroundPositionY: px,\n ...transformValueTypes,\n zIndex: int,\n // SVG\n fillOpacity: alpha,\n strokeOpacity: alpha,\n numOctaves: int,\n};\n\nexport { numberValueTypes };\n//# sourceMappingURL=number.mjs.map\n","import { color } from '../color/index.mjs';\nimport { filter } from '../complex/filter.mjs';\nimport { numberValueTypes } from './number.mjs';\n\n/**\n * A map of default value types for common values\n */\nconst defaultValueTypes = {\n ...numberValueTypes,\n // Color props\n color,\n backgroundColor: color,\n outlineColor: color,\n fill: color,\n stroke: color,\n // Border props\n borderColor: color,\n borderTopColor: color,\n borderRightColor: color,\n borderBottomColor: color,\n borderLeftColor: color,\n filter,\n WebkitFilter: filter,\n};\n/**\n * Gets the default ValueType for the provided value key\n */\nconst getDefaultValueType = (key) => defaultValueTypes[key];\n\nexport { defaultValueTypes, getDefaultValueType };\n//# sourceMappingURL=defaults.mjs.map\n","import { complex } from '../complex/index.mjs';\nimport { filter } from '../complex/filter.mjs';\nimport { getDefaultValueType } from '../maps/defaults.mjs';\n\nfunction getAnimatableNone(key, value) {\n let defaultValueType = getDefaultValueType(key);\n if (defaultValueType !== filter)\n defaultValueType = complex;\n // If value is not recognised as animatable, ie \"none\", create an animatable version origin based on the target\n return defaultValueType.getAnimatableNone\n ? defaultValueType.getAnimatableNone(value)\n : undefined;\n}\n\nexport { getAnimatableNone };\n//# sourceMappingURL=animatable-none.mjs.map\n","import { analyseComplexValue } from '../../../value/types/complex/index.mjs';\nimport { getAnimatableNone } from '../../../value/types/utils/animatable-none.mjs';\n\n/**\n * If we encounter keyframes like \"none\" or \"0\" and we also have keyframes like\n * \"#fff\" or \"200px 200px\" we want to find a keyframe to serve as a template for\n * the \"none\" keyframes. In this case \"#fff\" or \"200px 200px\" - then these get turned into\n * zero equivalents, i.e. \"#fff0\" or \"0px 0px\".\n */\nconst invalidTemplates = new Set([\"auto\", \"none\", \"0\"]);\nfunction makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n let i = 0;\n let animatableTemplate = undefined;\n while (i < unresolvedKeyframes.length && !animatableTemplate) {\n const keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\" &&\n !invalidTemplates.has(keyframe) &&\n analyseComplexValue(keyframe).values.length) {\n animatableTemplate = unresolvedKeyframes[i];\n }\n i++;\n }\n if (animatableTemplate && name) {\n for (const noneIndex of noneKeyframeIndexes) {\n unresolvedKeyframes[noneIndex] = getAnimatableNone(name, animatableTemplate);\n }\n }\n}\n\nexport { makeNoneKeyframesAnimatable };\n//# sourceMappingURL=make-none-animatable.mjs.map\n","import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n","function resolveElements(elementOrSelector, scope, selectorCache) {\n if (elementOrSelector == null) {\n return [];\n }\n if (elementOrSelector instanceof EventTarget) {\n return [elementOrSelector];\n }\n else if (typeof elementOrSelector === \"string\") {\n let root = document;\n if (scope) {\n root = scope.current;\n }\n const elements = selectorCache?.[elementOrSelector] ??\n root.querySelectorAll(elementOrSelector);\n return elements ? Array.from(elements) : [];\n }\n return Array.from(elementOrSelector).filter((element) => element != null);\n}\n\nexport { resolveElements };\n//# sourceMappingURL=resolve-elements.mjs.map\n","/**\n * Provided a value and a ValueType, returns the value as that value type.\n */\nconst getValueAsType = (value, type) => {\n return type && typeof value === \"number\"\n ? type.transform(value)\n : value;\n};\n\nexport { getValueAsType };\n//# sourceMappingURL=get-as-type.mjs.map\n","import { isObject } from 'motion-utils';\n\n/**\n * Checks if an element is an HTML element in a way\n * that works across iframes\n */\nfunction isHTMLElement(element) {\n return isObject(element) && \"offsetHeight\" in element;\n}\n\nexport { isHTMLElement };\n//# sourceMappingURL=is-html-element.mjs.map\n","import { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: microtask, cancel: cancelMicrotask } = \n/* @__PURE__ */ createRenderBatcher(queueMicrotask, false);\n\nexport { cancelMicrotask, microtask };\n//# sourceMappingURL=microtask.mjs.map\n","const isDragging = {\n x: false,\n y: false,\n};\nfunction isDragActive() {\n return isDragging.x || isDragging.y;\n}\n\nexport { isDragActive, isDragging };\n//# sourceMappingURL=is-active.mjs.map\n","import { isDragging } from './is-active.mjs';\n\nfunction setDragLock(axis) {\n if (axis === \"x\" || axis === \"y\") {\n if (isDragging[axis]) {\n return null;\n }\n else {\n isDragging[axis] = true;\n return () => {\n isDragging[axis] = false;\n };\n }\n }\n else {\n if (isDragging.x || isDragging.y) {\n return null;\n }\n else {\n isDragging.x = isDragging.y = true;\n return () => {\n isDragging.x = isDragging.y = false;\n };\n }\n }\n}\n\nexport { setDragLock };\n//# sourceMappingURL=set-active.mjs.map\n","import { resolveElements } from '../../utils/resolve-elements.mjs';\n\nfunction setupGesture(elementOrSelector, options) {\n const elements = resolveElements(elementOrSelector);\n const gestureAbortController = new AbortController();\n const eventOptions = {\n passive: true,\n ...options,\n signal: gestureAbortController.signal,\n };\n const cancel = () => gestureAbortController.abort();\n return [elements, eventOptions, cancel];\n}\n\nexport { setupGesture };\n//# sourceMappingURL=setup.mjs.map\n","import { isDragActive } from './drag/state/is-active.mjs';\nimport { setupGesture } from './utils/setup.mjs';\n\nfunction isValidHover(event) {\n return !(event.pointerType === \"touch\" || isDragActive());\n}\n/**\n * Create a hover gesture. hover() is different to .addEventListener(\"pointerenter\")\n * in that it has an easier syntax, filters out polyfilled touch events, interoperates\n * with drag gestures, and automatically removes the \"pointerennd\" event listener when the hover ends.\n *\n * @public\n */\nfunction hover(elementOrSelector, onHoverStart, options = {}) {\n const [elements, eventOptions, cancel] = setupGesture(elementOrSelector, options);\n const onPointerEnter = (enterEvent) => {\n if (!isValidHover(enterEvent))\n return;\n const { target } = enterEvent;\n const onHoverEnd = onHoverStart(target, enterEvent);\n if (typeof onHoverEnd !== \"function\" || !target)\n return;\n const onPointerLeave = (leaveEvent) => {\n if (!isValidHover(leaveEvent))\n return;\n onHoverEnd(leaveEvent);\n target.removeEventListener(\"pointerleave\", onPointerLeave);\n };\n target.addEventListener(\"pointerleave\", onPointerLeave, eventOptions);\n };\n elements.forEach((element) => {\n element.addEventListener(\"pointerenter\", onPointerEnter, eventOptions);\n });\n return cancel;\n}\n\nexport { hover };\n//# sourceMappingURL=hover.mjs.map\n","/**\n * Recursively traverse up the tree to check whether the provided child node\n * is the parent or a descendant of it.\n *\n * @param parent - Element to find\n * @param child - Element to test against parent\n */\nconst isNodeOrChild = (parent, child) => {\n if (!child) {\n return false;\n }\n else if (parent === child) {\n return true;\n }\n else {\n return isNodeOrChild(parent, child.parentElement);\n }\n};\n\nexport { isNodeOrChild };\n//# sourceMappingURL=is-node-or-child.mjs.map\n","const isPrimaryPointer = (event) => {\n if (event.pointerType === \"mouse\") {\n return typeof event.button !== \"number\" || event.button <= 0;\n }\n else {\n /**\n * isPrimary is true for all mice buttons, whereas every touch point\n * is regarded as its own input. So subsequent concurrent touch points\n * will be false.\n *\n * Specifically match against false here as incomplete versions of\n * PointerEvents in very old browser might have it set as undefined.\n */\n return event.isPrimary !== false;\n }\n};\n\nexport { isPrimaryPointer };\n//# sourceMappingURL=is-primary-pointer.mjs.map\n","const interactiveElements = new Set([\n \"BUTTON\",\n \"INPUT\",\n \"SELECT\",\n \"TEXTAREA\",\n \"A\",\n]);\n/**\n * Checks if an element is an interactive form element that should prevent\n * drag gestures from starting when clicked.\n *\n * This specifically targets form controls, buttons, and links - not just any\n * element with tabIndex, since motion elements with tap handlers automatically\n * get tabIndex=0 for keyboard accessibility.\n */\nfunction isElementKeyboardAccessible(element) {\n return (interactiveElements.has(element.tagName) ||\n element.isContentEditable === true);\n}\n\nexport { isElementKeyboardAccessible };\n//# sourceMappingURL=is-keyboard-accessible.mjs.map\n","const isPressing = new WeakSet();\n\nexport { isPressing };\n//# sourceMappingURL=state.mjs.map\n","import { isPressing } from './state.mjs';\n\n/**\n * Filter out events that are not \"Enter\" keys.\n */\nfunction filterEvents(callback) {\n return (event) => {\n if (event.key !== \"Enter\")\n return;\n callback(event);\n };\n}\nfunction firePointerEvent(target, type) {\n target.dispatchEvent(new PointerEvent(\"pointer\" + type, { isPrimary: true, bubbles: true }));\n}\nconst enableKeyboardPress = (focusEvent, eventOptions) => {\n const element = focusEvent.currentTarget;\n if (!element)\n return;\n const handleKeydown = filterEvents(() => {\n if (isPressing.has(element))\n return;\n firePointerEvent(element, \"down\");\n const handleKeyup = filterEvents(() => {\n firePointerEvent(element, \"up\");\n });\n const handleBlur = () => firePointerEvent(element, \"cancel\");\n element.addEventListener(\"keyup\", handleKeyup, eventOptions);\n element.addEventListener(\"blur\", handleBlur, eventOptions);\n });\n element.addEventListener(\"keydown\", handleKeydown, eventOptions);\n /**\n * Add an event listener that fires on blur to remove the keydown events.\n */\n element.addEventListener(\"blur\", () => element.removeEventListener(\"keydown\", handleKeydown), eventOptions);\n};\n\nexport { enableKeyboardPress };\n//# sourceMappingURL=keyboard.mjs.map\n","import { isHTMLElement } from '../../utils/is-html-element.mjs';\nimport { isDragActive } from '../drag/state/is-active.mjs';\nimport { isNodeOrChild } from '../utils/is-node-or-child.mjs';\nimport { isPrimaryPointer } from '../utils/is-primary-pointer.mjs';\nimport { setupGesture } from '../utils/setup.mjs';\nimport { isElementKeyboardAccessible } from './utils/is-keyboard-accessible.mjs';\nimport { enableKeyboardPress } from './utils/keyboard.mjs';\nimport { isPressing } from './utils/state.mjs';\n\n/**\n * Filter out events that are not primary pointer events, or are triggering\n * while a Motion gesture is active.\n */\nfunction isValidPressEvent(event) {\n return isPrimaryPointer(event) && !isDragActive();\n}\n/**\n * Create a press gesture.\n *\n * Press is different to `\"pointerdown\"`, `\"pointerup\"` in that it\n * automatically filters out secondary pointer events like right\n * click and multitouch.\n *\n * It also adds accessibility support for keyboards, where\n * an element with a press gesture will receive focus and\n * trigger on Enter `\"keydown\"` and `\"keyup\"` events.\n *\n * This is different to a browser's `\"click\"` event, which does\n * respond to keyboards but only for the `\"click\"` itself, rather\n * than the press start and end/cancel. The element also needs\n * to be focusable for this to work, whereas a press gesture will\n * make an element focusable by default.\n *\n * @public\n */\nfunction press(targetOrSelector, onPressStart, options = {}) {\n const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);\n const startPress = (startEvent) => {\n const target = startEvent.currentTarget;\n if (!isValidPressEvent(startEvent))\n return;\n isPressing.add(target);\n const onPressEnd = onPressStart(target, startEvent);\n const onPointerEnd = (endEvent, success) => {\n window.removeEventListener(\"pointerup\", onPointerUp);\n window.removeEventListener(\"pointercancel\", onPointerCancel);\n if (isPressing.has(target)) {\n isPressing.delete(target);\n }\n if (!isValidPressEvent(endEvent)) {\n return;\n }\n if (typeof onPressEnd === \"function\") {\n onPressEnd(endEvent, { success });\n }\n };\n const onPointerUp = (upEvent) => {\n onPointerEnd(upEvent, target === window ||\n target === document ||\n options.useGlobalTarget ||\n isNodeOrChild(target, upEvent.target));\n };\n const onPointerCancel = (cancelEvent) => {\n onPointerEnd(cancelEvent, false);\n };\n window.addEventListener(\"pointerup\", onPointerUp, eventOptions);\n window.addEventListener(\"pointercancel\", onPointerCancel, eventOptions);\n };\n targets.forEach((target) => {\n const pointerDownTarget = options.useGlobalTarget ? window : target;\n pointerDownTarget.addEventListener(\"pointerdown\", startPress, eventOptions);\n if (isHTMLElement(target)) {\n target.addEventListener(\"focus\", (event) => enableKeyboardPress(event, eventOptions));\n if (!isElementKeyboardAccessible(target) &&\n !target.hasAttribute(\"tabindex\")) {\n target.tabIndex = 0;\n }\n }\n });\n return cancelEvents;\n}\n\nexport { press };\n//# sourceMappingURL=index.mjs.map\n","import { isObject } from 'motion-utils';\n\n/**\n * Checks if an element is an SVG element in a way\n * that works across iframes\n */\nfunction isSVGElement(element) {\n return isObject(element) && \"ownerSVGElement\" in element;\n}\n\nexport { isSVGElement };\n//# sourceMappingURL=is-svg-element.mjs.map\n","import { isSVGElement } from './is-svg-element.mjs';\n\n/**\n * Checks if an element is specifically an SVGSVGElement (the root SVG element)\n * in a way that works across iframes\n */\nfunction isSVGSVGElement(element) {\n return isSVGElement(element) && element.tagName === \"svg\";\n}\n\nexport { isSVGSVGElement };\n//# sourceMappingURL=is-svg-svg-element.mjs.map\n","import { color } from '../color/index.mjs';\nimport { complex } from '../complex/index.mjs';\nimport { dimensionValueTypes } from '../dimensions.mjs';\nimport { testValueType } from '../test.mjs';\n\n/**\n * A list of all ValueTypes\n */\nconst valueTypes = [...dimensionValueTypes, color, complex];\n/**\n * Tests a value against the list of ValueTypes\n */\nconst findValueType = (v) => valueTypes.find(testValueType(v));\n\nexport { findValueType };\n//# sourceMappingURL=find.mjs.map\n","const createAxisDelta = () => ({\n translate: 0,\n scale: 1,\n origin: 0,\n originPoint: 0,\n});\nconst createDelta = () => ({\n x: createAxisDelta(),\n y: createAxisDelta(),\n});\nconst createAxis = () => ({ min: 0, max: 0 });\nconst createBox = () => ({\n x: createAxis(),\n y: createAxis(),\n});\n\nexport { createAxis, createAxisDelta, createBox, createDelta };\n//# sourceMappingURL=models.mjs.map\n","// Does this device prefer reduced motion? Returns `null` server-side.\nconst prefersReducedMotion = { current: null };\nconst hasReducedMotionListener = { current: false };\n\nexport { hasReducedMotionListener, prefersReducedMotion };\n//# sourceMappingURL=state.mjs.map\n","import { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';\n\nconst isBrowser = typeof window !== \"undefined\";\nfunction initPrefersReducedMotion() {\n hasReducedMotionListener.current = true;\n if (!isBrowser)\n return;\n if (window.matchMedia) {\n const motionMediaQuery = window.matchMedia(\"(prefers-reduced-motion)\");\n const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches);\n motionMediaQuery.addEventListener(\"change\", setReducedMotionPreferences);\n setReducedMotionPreferences();\n }\n else {\n prefersReducedMotion.current = false;\n }\n}\n\nexport { hasReducedMotionListener, initPrefersReducedMotion, prefersReducedMotion };\n//# sourceMappingURL=index.mjs.map\n","const visualElementStore = new WeakMap();\n\nexport { visualElementStore };\n//# sourceMappingURL=store.mjs.map\n","function isAnimationControls(v) {\n return (v !== null &&\n typeof v === \"object\" &&\n typeof v.start === \"function\");\n}\n\nexport { isAnimationControls };\n//# sourceMappingURL=is-animation-controls.mjs.map\n","/**\n * Decides if the supplied variable is variant label\n */\nfunction isVariantLabel(v) {\n return typeof v === \"string\" || Array.isArray(v);\n}\n\nexport { isVariantLabel };\n//# sourceMappingURL=is-variant-label.mjs.map\n","const variantPriorityOrder = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\",\n];\nconst variantProps = [\"initial\", ...variantPriorityOrder];\n\nexport { variantPriorityOrder, variantProps };\n//# sourceMappingURL=variant-props.mjs.map\n","import { isAnimationControls } from './is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nfunction isControllingVariants(props) {\n return (isAnimationControls(props.animate) ||\n variantProps.some((name) => isVariantLabel(props[name])));\n}\nfunction isVariantNode(props) {\n return Boolean(isControllingVariants(props) || props.variants);\n}\n\nexport { isControllingVariants, isVariantNode };\n//# sourceMappingURL=is-controlling-variants.mjs.map\n","import { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\n/**\n * Updates motion values from props changes.\n * Uses `any` type for element to avoid circular dependencies with VisualElement.\n */\nfunction updateMotionValuesFromProps(element, next, prev) {\n for (const key in next) {\n const nextValue = next[key];\n const prevValue = prev[key];\n if (isMotionValue(nextValue)) {\n /**\n * If this is a motion value found in props or style, we want to add it\n * to our visual element's motion value map.\n */\n element.addValue(key, nextValue);\n }\n else if (isMotionValue(prevValue)) {\n /**\n * If we're swapping from a motion value to a static value,\n * create a new motion value from that\n */\n element.addValue(key, motionValue(nextValue, { owner: element }));\n }\n else if (prevValue !== nextValue) {\n /**\n * If this is a flat value that has changed, update the motion value\n * or create one if it doesn't exist. We only want to do this if we're\n * not handling the value with our animation state.\n */\n if (element.hasValue(key)) {\n const existingValue = element.getValue(key);\n if (existingValue.liveStyle === true) {\n existingValue.jump(nextValue);\n }\n else if (!existingValue.hasAnimated) {\n existingValue.set(nextValue);\n }\n }\n else {\n const latestValue = element.getStaticValue(key);\n element.addValue(key, motionValue(latestValue !== undefined ? latestValue : nextValue, { owner: element }));\n }\n }\n }\n // Handle removed values\n for (const key in prev) {\n if (next[key] === undefined)\n element.removeValue(key);\n }\n return next;\n}\n\nexport { updateMotionValuesFromProps };\n//# sourceMappingURL=motion-values.mjs.map\n","import { warnOnce, isNumericalString, isZeroValueString, SubscriptionManager } from 'motion-utils';\nimport { microtask } from '../frameloop/microtask.mjs';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { motionValue } from '../value/index.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { KeyframeResolver } from '../animation/keyframes/KeyframesResolver.mjs';\nimport { transformProps } from './utils/keys-transform.mjs';\nimport { complex } from '../value/types/complex/index.mjs';\nimport { findValueType } from '../value/types/utils/find.mjs';\nimport { getAnimatableNone } from '../value/types/utils/animatable-none.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { initPrefersReducedMotion } from './utils/reduced-motion/index.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from './utils/reduced-motion/state.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\n/**\n * Static feature definitions - can be injected by framework layer\n */\nlet featureDefinitions = {};\n/**\n * Set feature definitions for all VisualElements.\n * This should be called by the framework layer (e.g., framer-motion) during initialization.\n */\nfunction setFeatureDefinitions(definitions) {\n featureDefinitions = definitions;\n}\n/**\n * Get the current feature definitions\n */\nfunction getFeatureDefinitions() {\n return featureDefinitions;\n}\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n return {};\n }\n constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n this.KeyframeResolver = KeyframeResolver;\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.renderScheduledAt = 0.0;\n this.scheduleRender = () => {\n const now = time.now();\n if (this.renderScheduledAt < now) {\n this.renderScheduledAt = now;\n frame.render(this.render, false, true);\n }\n };\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.options = options;\n this.blockInitialAnimation = Boolean(blockInitialAnimation);\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't necessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key]);\n }\n }\n }\n mount(instance) {\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n /**\n * Determine reduced motion preference. Only initialize the matchMedia\n * listener if we actually need the dynamic value (i.e., when config\n * is neither \"never\" nor \"always\").\n */\n if (this.reducedMotionConfig === \"never\") {\n this.shouldReduceMotion = false;\n }\n else if (this.reducedMotionConfig === \"always\") {\n this.shouldReduceMotion = true;\n }\n else {\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion = prefersReducedMotion.current;\n }\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n }\n this.parent?.addChild(this);\n this.update(this.props, this.presenceContext);\n }\n unmount() {\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.valueSubscriptions.clear();\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent?.removeChild(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature) {\n feature.unmount();\n feature.isMounted = false;\n }\n }\n this.current = null;\n }\n addChild(child) {\n this.children.add(child);\n this.enteringChildren ?? (this.enteringChildren = new Set());\n this.enteringChildren.add(child);\n }\n removeChild(child) {\n this.children.delete(child);\n this.enteringChildren && this.enteringChildren.delete(child);\n }\n bindToMotionValue(key, value) {\n if (this.valueSubscriptions.has(key)) {\n this.valueSubscriptions.get(key)();\n }\n const valueIsTransform = transformProps.has(key);\n if (valueIsTransform && this.onBindTransform) {\n this.onBindTransform();\n }\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate && frame.preRender(this.notifyUpdate);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n this.scheduleRender();\n });\n let removeSyncCheck;\n if (typeof window !== \"undefined\" && window.MotionCheckAppearSync) {\n removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n }\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n if (removeSyncCheck)\n removeSyncCheck();\n if (value.owner)\n value.stop();\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n updateFeatures() {\n let key = \"animation\";\n for (key in featureDefinitions) {\n const featureDefinition = featureDefinitions[key];\n if (!featureDefinition)\n continue;\n const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n /**\n * If this feature is enabled but not active, make a new instance.\n */\n if (!this.features[key] &&\n FeatureConstructor &&\n isEnabled(this.props)) {\n this.features[key] = new FeatureConstructor(this);\n }\n /**\n * If we have a feature, mount or update it.\n */\n if (this.features[key]) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listenerName = (\"on\" + key);\n const listener = props[listenerName];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps || {}, this), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n const existingValue = this.values.get(key);\n if (value !== existingValue) {\n if (existingValue)\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key, target) {\n let value = this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : this.getBaseTargetFromProps(this.props, key) ??\n this.readValueFromInstance(this.current, key, this.options);\n if (value !== undefined && value !== null) {\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(target)) {\n value = getAnimatableNone(key, target);\n }\n this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n }\n return isMotionValue(value) ? value.get() : value;\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n const { initial } = this.props;\n let valueFromInitial;\n if (typeof initial === \"string\" || typeof initial === \"object\") {\n const variant = resolveVariantFromProps(this.props, initial, this.presenceContext?.custom);\n if (variant) {\n valueFromInitial = variant[key];\n }\n }\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n scheduleRenderMicrotask() {\n microtask.render(this.render);\n }\n}\n\nexport { VisualElement, getFeatureDefinitions, setFeatureDefinitions };\n//# sourceMappingURL=VisualElement.mjs.map\n","import { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { DOMKeyframesResolver } from '../../animation/keyframes/DOMKeyframesResolver.mjs';\nimport { VisualElement } from '../VisualElement.mjs';\n\nclass DOMVisualElement extends VisualElement {\n constructor() {\n super(...arguments);\n this.KeyframeResolver = DOMKeyframesResolver;\n }\n sortInstanceNodePosition(a, b) {\n /**\n * compareDocumentPosition returns a bitmask, by using the bitwise &\n * we're returning true if 2 in that bitmask is set to true. 2 is set\n * to true if b preceeds a.\n */\n return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(props, key) {\n const style = props.style;\n return style ? style[key] : undefined;\n }\n removeValueFromRenderState(key, { vars, style }) {\n delete vars[key];\n delete style[key];\n }\n handleChildMotionValue() {\n if (this.childSubscription) {\n this.childSubscription();\n delete this.childSubscription;\n }\n const { children } = this.props;\n if (isMotionValue(children)) {\n this.childSubscription = children.on(\"change\", (latest) => {\n if (this.current) {\n this.current.textContent = `${latest}`;\n }\n });\n }\n }\n}\n\nexport { DOMVisualElement };\n//# sourceMappingURL=DOMVisualElement.mjs.map\n","/**\n * Feature base class for extending VisualElement functionality.\n * Features are plugins that can be mounted/unmounted to add behavior\n * like gestures, animations, or layout tracking.\n */\nclass Feature {\n constructor(node) {\n this.isMounted = false;\n this.node = node;\n }\n update() { }\n}\n\nexport { Feature };\n//# sourceMappingURL=Feature.mjs.map\n","/**\n * Bounding boxes tend to be defined as top, left, right, bottom. For various operations\n * it's easier to consider each axis individually. This function returns a bounding box\n * as a map of single-axis min/max values.\n */\nfunction convertBoundingBoxToBox({ top, left, right, bottom, }) {\n return {\n x: { min: left, max: right },\n y: { min: top, max: bottom },\n };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\n/**\n * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function\n * provided by Framer to allow measured points to be corrected for device scaling. This is used\n * when measuring DOM elements and DOM event points.\n */\nfunction transformBoxPoints(point, transformPoint) {\n if (!transformPoint)\n return point;\n const topLeft = transformPoint({ x: point.left, y: point.top });\n const bottomRight = transformPoint({ x: point.right, y: point.bottom });\n return {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x,\n };\n}\n\nexport { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };\n//# sourceMappingURL=conversion.mjs.map\n","function isIdentityScale(scale) {\n return scale === undefined || scale === 1;\n}\nfunction hasScale({ scale, scaleX, scaleY }) {\n return (!isIdentityScale(scale) ||\n !isIdentityScale(scaleX) ||\n !isIdentityScale(scaleY));\n}\nfunction hasTransform(values) {\n return (hasScale(values) ||\n has2DTranslate(values) ||\n values.z ||\n values.rotate ||\n values.rotateX ||\n values.rotateY ||\n values.skewX ||\n values.skewY);\n}\nfunction has2DTranslate(values) {\n return is2DTranslate(values.x) || is2DTranslate(values.y);\n}\nfunction is2DTranslate(value) {\n return value && value !== \"0%\";\n}\n\nexport { has2DTranslate, hasScale, hasTransform };\n//# sourceMappingURL=has-transform.mjs.map\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nconst TREE_SCALE_SNAP_MIN = 0.999999999999;\nconst TREE_SCALE_SNAP_MAX = 1.0000000000001;\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const { visualElement } = node.options;\n if (visualElement &&\n visualElement.props.style &&\n visualElement.props.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a cumulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n if (treeScale.x < TREE_SCALE_SNAP_MAX &&\n treeScale.x > TREE_SCALE_SNAP_MIN) {\n treeScale.x = 1.0;\n }\n if (treeScale.y < TREE_SCALE_SNAP_MAX &&\n treeScale.y > TREE_SCALE_SNAP_MIN) {\n treeScale.y = 1.0;\n }\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform.x, transform.scaleX, transform.scale, transform.originX);\n transformAxis(box.y, transform.y, transform.scaleY, transform.scale, transform.originY);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n//# sourceMappingURL=delta-apply.mjs.map\n","import { convertBoundingBoxToBox, transformBoxPoints } from '../geometry/conversion.mjs';\nimport { translateAxis } from '../geometry/delta-apply.mjs';\n\nfunction measureViewportBox(instance, transformPoint) {\n return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));\n}\nfunction measurePageBox(element, rootProjectionNode, transformPagePoint) {\n const viewportBox = measureViewportBox(element, transformPagePoint);\n const { scroll } = rootProjectionNode;\n if (scroll) {\n translateAxis(viewportBox.x, scroll.offset.x);\n translateAxis(viewportBox.y, scroll.offset.y);\n }\n return viewportBox;\n}\n\nexport { measurePageBox, measureViewportBox };\n//# sourceMappingURL=measure.mjs.map\n","import { getValueAsType } from '../../../value/types/utils/get-as-type.mjs';\nimport { numberValueTypes } from '../../../value/types/maps/number.mjs';\nimport { transformPropOrder } from '../../utils/keys-transform.mjs';\n\nconst translateAlias = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n transformPerspective: \"perspective\",\n};\nconst numTransforms = transformPropOrder.length;\n/**\n * Build a CSS transform style from individual x/y/scale etc properties.\n *\n * This outputs with a default order of transforms/scales/rotations, this can be customised by\n * providing a transformTemplate function.\n */\nfunction buildTransform(latestValues, transform, transformTemplate) {\n // The transform string we're going to build into.\n let transformString = \"\";\n let transformIsDefault = true;\n /**\n * Loop over all possible transforms in order, adding the ones that\n * are present to the transform string.\n */\n for (let i = 0; i < numTransforms; i++) {\n const key = transformPropOrder[i];\n const value = latestValues[key];\n if (value === undefined)\n continue;\n let valueIsDefault = true;\n if (typeof value === \"number\") {\n valueIsDefault = value === (key.startsWith(\"scale\") ? 1 : 0);\n }\n else {\n const parsed = parseFloat(value);\n valueIsDefault = key.startsWith(\"scale\") ? parsed === 1 : parsed === 0;\n }\n if (!valueIsDefault || transformTemplate) {\n const valueAsType = getValueAsType(value, numberValueTypes[key]);\n if (!valueIsDefault) {\n transformIsDefault = false;\n const transformName = translateAlias[key] || key;\n transformString += `${transformName}(${valueAsType}) `;\n }\n if (transformTemplate) {\n transform[key] = valueAsType;\n }\n }\n }\n transformString = transformString.trim();\n // If we have a custom `transform` template, pass our transform values and\n // generated transformString to that before returning\n if (transformTemplate) {\n transformString = transformTemplate(transform, transformIsDefault ? \"\" : transformString);\n }\n else if (transformIsDefault) {\n transformString = \"none\";\n }\n return transformString;\n}\n\nexport { buildTransform };\n//# sourceMappingURL=build-transform.mjs.map\n","import { getValueAsType } from '../../../value/types/utils/get-as-type.mjs';\nimport { numberValueTypes } from '../../../value/types/maps/number.mjs';\nimport { transformProps } from '../../utils/keys-transform.mjs';\nimport { isCSSVariableName } from '../../../animation/utils/is-css-variable.mjs';\nimport { buildTransform } from './build-transform.mjs';\n\nfunction buildHTMLStyles(state, latestValues, transformTemplate) {\n const { style, vars, transformOrigin } = state;\n // Track whether we encounter any transform or transformOrigin values.\n let hasTransform = false;\n let hasTransformOrigin = false;\n /**\n * Loop over all our latest animated values and decide whether to handle them\n * as a style or CSS variable.\n *\n * Transforms and transform origins are kept separately for further processing.\n */\n for (const key in latestValues) {\n const value = latestValues[key];\n if (transformProps.has(key)) {\n // If this is a transform, flag to enable further transform processing\n hasTransform = true;\n continue;\n }\n else if (isCSSVariableName(key)) {\n vars[key] = value;\n continue;\n }\n else {\n // Convert the value to its default value type, ie 0 -> \"0px\"\n const valueAsType = getValueAsType(value, numberValueTypes[key]);\n if (key.startsWith(\"origin\")) {\n // If this is a transform origin, flag and enable further transform-origin processing\n hasTransformOrigin = true;\n transformOrigin[key] =\n valueAsType;\n }\n else {\n style[key] = valueAsType;\n }\n }\n }\n if (!latestValues.transform) {\n if (hasTransform || transformTemplate) {\n style.transform = buildTransform(latestValues, state.transform, transformTemplate);\n }\n else if (style.transform) {\n /**\n * If we have previously created a transform but currently don't have any,\n * reset transform style to none.\n */\n style.transform = \"none\";\n }\n }\n /**\n * Build a transformOrigin style. Uses the same defaults as the browser for\n * undefined origins.\n */\n if (hasTransformOrigin) {\n const { originX = \"50%\", originY = \"50%\", originZ = 0, } = transformOrigin;\n style.transformOrigin = `${originX} ${originY} ${originZ}`;\n }\n}\n\nexport { buildHTMLStyles };\n//# sourceMappingURL=build-styles.mjs.map\n","function renderHTML(element, { style, vars }, styleProp, projection) {\n const elementStyle = element.style;\n let key;\n for (key in style) {\n // CSSStyleDeclaration has [index: number]: string; in the types, so we use that as key type.\n elementStyle[key] = style[key];\n }\n // Write projection styles directly to element style\n projection?.applyProjectionStyles(elementStyle, styleProp);\n for (key in vars) {\n // Loop over any CSS variables and assign those.\n // They can only be assigned using `setProperty`.\n elementStyle.setProperty(key, vars[key]);\n }\n}\n\nexport { renderHTML };\n//# sourceMappingURL=render.mjs.map\n","import { px } from '../../value/types/numbers/units.mjs';\n\nfunction pixelsToPercent(pixels, axis) {\n if (axis.max === axis.min)\n return 0;\n return (pixels / (axis.max - axis.min)) * 100;\n}\n/**\n * We always correct borderRadius as a percentage rather than pixels to reduce paints.\n * For example, if you are projecting a box that is 100px wide with a 10px borderRadius\n * into a box that is 200px wide with a 20px borderRadius, that is actually a 10%\n * borderRadius in both states. If we animate between the two in pixels that will trigger\n * a paint each time. If we animate between the two in percentage we'll avoid a paint.\n */\nconst correctBorderRadius = {\n correct: (latest, node) => {\n if (!node.target)\n return latest;\n /**\n * If latest is a string, if it's a percentage we can return immediately as it's\n * going to be stretched appropriately. Otherwise, if it's a pixel, convert it to a number.\n */\n if (typeof latest === \"string\") {\n if (px.test(latest)) {\n latest = parseFloat(latest);\n }\n else {\n return latest;\n }\n }\n /**\n * If latest is a number, it's a pixel value. We use the current viewportBox to calculate that\n * pixel value as a percentage of each axis\n */\n const x = pixelsToPercent(latest, node.target.x);\n const y = pixelsToPercent(latest, node.target.y);\n return `${x}% ${y}%`;\n },\n};\n\nexport { correctBorderRadius, pixelsToPercent };\n//# sourceMappingURL=scale-border-radius.mjs.map\n","import { complex } from '../../value/types/complex/index.mjs';\nimport { mixNumber } from '../../utils/mix/number.mjs';\n\nconst correctBoxShadow = {\n correct: (latest, { treeScale, projectionDelta }) => {\n const original = latest;\n const shadow = complex.parse(latest);\n // TODO: Doesn't support multiple shadows\n if (shadow.length > 5)\n return original;\n const template = complex.createTransformer(latest);\n const offset = typeof shadow[0] !== \"number\" ? 1 : 0;\n // Calculate the overall context scale\n const xScale = projectionDelta.x.scale * treeScale.x;\n const yScale = projectionDelta.y.scale * treeScale.y;\n shadow[0 + offset] /= xScale;\n shadow[1 + offset] /= yScale;\n /**\n * Ideally we'd correct x and y scales individually, but because blur and\n * spread apply to both we have to take a scale average and apply that instead.\n * We could potentially improve the outcome of this by incorporating the ratio between\n * the two scales.\n */\n const averageScale = mixNumber(xScale, yScale, 0.5);\n // Blur\n if (typeof shadow[2 + offset] === \"number\")\n shadow[2 + offset] /= averageScale;\n // Spread\n if (typeof shadow[3 + offset] === \"number\")\n shadow[3 + offset] /= averageScale;\n return template(shadow);\n },\n};\n\nexport { correctBoxShadow };\n//# sourceMappingURL=scale-box-shadow.mjs.map\n","import { isCSSVariableName } from '../../animation/utils/is-css-variable.mjs';\nimport { correctBorderRadius } from './scale-border-radius.mjs';\nimport { correctBoxShadow } from './scale-box-shadow.mjs';\n\nconst scaleCorrectors = {\n borderRadius: {\n ...correctBorderRadius,\n applyTo: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomLeftRadius\",\n \"borderBottomRightRadius\",\n ],\n },\n borderTopLeftRadius: correctBorderRadius,\n borderTopRightRadius: correctBorderRadius,\n borderBottomLeftRadius: correctBorderRadius,\n borderBottomRightRadius: correctBorderRadius,\n boxShadow: correctBoxShadow,\n};\nfunction addScaleCorrector(correctors) {\n for (const key in correctors) {\n scaleCorrectors[key] = correctors[key];\n if (isCSSVariableName(key)) {\n scaleCorrectors[key].isCSSVariable = true;\n }\n }\n}\n\nexport { addScaleCorrector, scaleCorrectors };\n//# sourceMappingURL=scale-correction.mjs.map\n","import { transformProps } from './keys-transform.mjs';\nimport { scaleCorrectors } from '../../projection/styles/scale-correction.mjs';\nexport { addScaleCorrector } from '../../projection/styles/scale-correction.mjs';\n\nfunction isForcedMotionValue(key, { layout, layoutId }) {\n return (transformProps.has(key) ||\n key.startsWith(\"origin\") ||\n ((layout || layoutId !== undefined) &&\n (!!scaleCorrectors[key] || key === \"opacity\")));\n}\n\nexport { isForcedMotionValue, scaleCorrectors };\n//# sourceMappingURL=is-forced-motion-value.mjs.map\n","import { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\nimport { isForcedMotionValue } from '../../utils/is-forced-motion-value.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n const style = props.style;\n const prevStyle = prevProps?.style;\n const newValues = {};\n if (!style)\n return newValues;\n for (const key in style) {\n if (isMotionValue(style[key]) ||\n (prevStyle && isMotionValue(prevStyle[key])) ||\n isForcedMotionValue(key, props) ||\n visualElement?.getValue(key)?.liveStyle !== undefined) {\n newValues[key] = style[key];\n }\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n//# sourceMappingURL=scrape-motion-values.mjs.map\n","import { isCSSVariableName } from '../../animation/utils/is-css-variable.mjs';\nimport { transformProps } from '../utils/keys-transform.mjs';\nimport { defaultTransformValue, readTransformValue } from '../dom/parse-transform.mjs';\nimport { measureViewportBox } from '../../projection/utils/measure.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { renderHTML } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\n\nfunction getComputedStyle(element) {\n return window.getComputedStyle(element);\n}\nclass HTMLVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"html\";\n this.renderInstance = renderHTML;\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n return this.projection?.isProjecting\n ? defaultTransformValue(key)\n : readTransformValue(instance, key);\n }\n else {\n const computedStyle = getComputedStyle(instance);\n const value = (isCSSVariableName(key)\n ? computedStyle.getPropertyValue(key)\n : computedStyle[key]) || 0;\n return typeof value === \"string\" ? value.trim() : value;\n }\n }\n measureInstanceViewportBox(instance, { transformPagePoint }) {\n return measureViewportBox(instance, transformPagePoint);\n }\n build(renderState, latestValues, props) {\n buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n}\n\nexport { HTMLVisualElement, getComputedStyle };\n//# sourceMappingURL=HTMLVisualElement.mjs.map\n","const dashKeys = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\",\n};\nconst camelKeys = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\",\n};\n/**\n * Build SVG path properties. Uses the path's measured length to convert\n * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n * and stroke-dasharray attributes.\n *\n * This function is mutative to reduce per-frame GC.\n *\n * Note: We use unitless values for stroke-dasharray and stroke-dashoffset\n * because Safari incorrectly scales px values when the page is zoomed.\n */\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n // Normalise path length by setting SVG attribute pathLength to 1\n attrs.pathLength = 1;\n // We use dash case when setting attributes directly to the DOM node and camel case\n // when defining props on a React component.\n const keys = useDashCase ? dashKeys : camelKeys;\n // Build the dash offset (unitless to avoid Safari zoom bug)\n attrs[keys.offset] = `${-offset}`;\n // Build the dash array (unitless to avoid Safari zoom bug)\n attrs[keys.array] = `${length} ${spacing}`;\n}\n\nexport { buildSVGPath };\n//# sourceMappingURL=path.mjs.map\n","import { buildHTMLStyles } from '../../html/utils/build-styles.mjs';\nimport { buildSVGPath } from './path.mjs';\n\n/**\n * CSS Motion Path properties that should remain as CSS styles on SVG elements.\n */\nconst cssMotionPathProperties = [\n \"offsetDistance\",\n \"offsetPath\",\n \"offsetRotate\",\n \"offsetAnchor\",\n];\n/**\n * Build SVG visual attributes, like cx and style.transform\n */\nfunction buildSVGAttrs(state, { attrX, attrY, attrScale, pathLength, pathSpacing = 1, pathOffset = 0, \n// This is object creation, which we try to avoid per-frame.\n...latest }, isSVGTag, transformTemplate, styleProp) {\n buildHTMLStyles(state, latest, transformTemplate);\n /**\n * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n * as normal HTML tags.\n */\n if (isSVGTag) {\n if (state.style.viewBox) {\n state.attrs.viewBox = state.style.viewBox;\n }\n return;\n }\n state.attrs = state.style;\n state.style = {};\n const { attrs, style } = state;\n /**\n * However, we apply transforms as CSS transforms.\n * So if we detect a transform, transformOrigin we take it from attrs and copy it into style.\n */\n if (attrs.transform) {\n style.transform = attrs.transform;\n delete attrs.transform;\n }\n if (style.transform || attrs.transformOrigin) {\n style.transformOrigin = attrs.transformOrigin ?? \"50% 50%\";\n delete attrs.transformOrigin;\n }\n if (style.transform) {\n /**\n * SVG's element transform-origin uses its own median as a reference.\n * Therefore, transformBox becomes a fill-box\n */\n style.transformBox = styleProp?.transformBox ?? \"fill-box\";\n delete attrs.transformBox;\n }\n for (const key of cssMotionPathProperties) {\n if (attrs[key] !== undefined) {\n style[key] = attrs[key];\n delete attrs[key];\n }\n }\n // Render attrX/attrY/attrScale as attributes\n if (attrX !== undefined)\n attrs.x = attrX;\n if (attrY !== undefined)\n attrs.y = attrY;\n if (attrScale !== undefined)\n attrs.scale = attrScale;\n // Build SVG path if one has been defined\n if (pathLength !== undefined) {\n buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n }\n}\n\nexport { buildSVGAttrs };\n//# sourceMappingURL=build-attrs.mjs.map\n","/**\n * A set of attribute names that are always read/written as camel case.\n */\nconst camelCaseAttributes = new Set([\n \"baseFrequency\",\n \"diffuseConstant\",\n \"kernelMatrix\",\n \"kernelUnitLength\",\n \"keySplines\",\n \"keyTimes\",\n \"limitingConeAngle\",\n \"markerHeight\",\n \"markerWidth\",\n \"numOctaves\",\n \"targetX\",\n \"targetY\",\n \"surfaceScale\",\n \"specularConstant\",\n \"specularExponent\",\n \"stdDeviation\",\n \"tableValues\",\n \"viewBox\",\n \"gradientTransform\",\n \"pathLength\",\n \"startOffset\",\n \"textLength\",\n \"lengthAdjust\",\n]);\n\nexport { camelCaseAttributes };\n//# sourceMappingURL=camel-case-attrs.mjs.map\n","const isSVGTag = (tag) => typeof tag === \"string\" && tag.toLowerCase() === \"svg\";\n\nexport { isSVGTag };\n//# sourceMappingURL=is-svg-tag.mjs.map\n","import { camelToDash } from '../../dom/utils/camel-to-dash.mjs';\nimport { renderHTML } from '../../html/utils/render.mjs';\nimport { camelCaseAttributes } from './camel-case-attrs.mjs';\n\nfunction renderSVG(element, renderState, _styleProp, projection) {\n renderHTML(element, renderState, undefined, projection);\n for (const key in renderState.attrs) {\n element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);\n }\n}\n\nexport { renderSVG };\n//# sourceMappingURL=render.mjs.map\n","import { isMotionValue } from '../../../value/utils/is-motion-value.mjs';\nimport { transformPropOrder } from '../../utils/keys-transform.mjs';\nimport { scrapeMotionValuesFromProps as scrapeMotionValuesFromProps$1 } from '../../html/utils/scrape-motion-values.mjs';\n\nfunction scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n const newValues = scrapeMotionValuesFromProps$1(props, prevProps, visualElement);\n for (const key in props) {\n if (isMotionValue(props[key]) ||\n isMotionValue(prevProps[key])) {\n const targetKey = transformPropOrder.indexOf(key) !== -1\n ? \"attr\" + key.charAt(0).toUpperCase() + key.substring(1)\n : key;\n newValues[targetKey] = props[key];\n }\n }\n return newValues;\n}\n\nexport { scrapeMotionValuesFromProps };\n//# sourceMappingURL=scrape-motion-values.mjs.map\n","import { transformProps } from '../utils/keys-transform.mjs';\nimport { getDefaultValueType } from '../../value/types/maps/defaults.mjs';\nimport { createBox } from '../../projection/geometry/models.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { camelToDash } from '../dom/utils/camel-to-dash.mjs';\nimport { buildSVGAttrs } from './utils/build-attrs.mjs';\nimport { camelCaseAttributes } from './utils/camel-case-attrs.mjs';\nimport { isSVGTag } from './utils/is-svg-tag.mjs';\nimport { renderSVG } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\n\nclass SVGVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"svg\";\n this.isSVGTag = false;\n this.measureInstanceViewportBox = createBox;\n }\n getBaseTargetFromProps(props, key) {\n return props[key];\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n const defaultType = getDefaultValueType(key);\n return defaultType ? defaultType.default || 0 : 0;\n }\n key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n return instance.getAttribute(key);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n build(renderState, latestValues, props) {\n buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate, props.style);\n }\n renderInstance(instance, renderState, styleProp, projection) {\n renderSVG(instance, renderState, styleProp, projection);\n }\n mount(instance) {\n this.isSVGTag = isSVGTag(instance.tagName);\n super.mount(instance);\n }\n}\n\nexport { SVGVisualElement };\n//# sourceMappingURL=SVGVisualElement.mjs.map\n","import { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nconst numVariantProps = variantProps.length;\n/**\n * Get variant context from a visual element's parent chain.\n * Uses `any` type for visualElement to avoid circular dependencies.\n */\nfunction getVariantContext(visualElement) {\n if (!visualElement)\n return undefined;\n if (!visualElement.isControllingVariants) {\n const context = visualElement.parent\n ? getVariantContext(visualElement.parent) || {}\n : {};\n if (visualElement.props.initial !== undefined) {\n context.initial = visualElement.props.initial;\n }\n return context;\n }\n const context = {};\n for (let i = 0; i < numVariantProps; i++) {\n const name = variantProps[i];\n const prop = visualElement.props[name];\n if (isVariantLabel(prop) || prop === false) {\n context[name] = prop;\n }\n }\n return context;\n}\n\nexport { getVariantContext };\n//# sourceMappingURL=get-variant-context.mjs.map\n","function shallowCompare(next, prev) {\n if (!Array.isArray(prev))\n return false;\n const prevLength = prev.length;\n if (prevLength !== next.length)\n return false;\n for (let i = 0; i < prevLength; i++) {\n if (prev[i] !== next[i])\n return false;\n }\n return true;\n}\n\nexport { shallowCompare };\n//# sourceMappingURL=shallow-compare.mjs.map\n","import { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\nimport { calcChildStagger } from '../../animation/utils/calc-child-stagger.mjs';\nimport { getVariantContext } from './get-variant-context.mjs';\nimport { isAnimationControls } from './is-animation-controls.mjs';\nimport { isKeyframesTarget } from './is-keyframes-target.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { shallowCompare } from './shallow-compare.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction createAnimateFunction(visualElement) {\n return (animations) => {\n return Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n };\n}\nfunction createAnimationState(visualElement) {\n let animate = createAnimateFunction(visualElement);\n let state = createState();\n let isInitialRender = true;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (type) => (acc, definition) => {\n const resolved = resolveVariant(visualElement, definition, type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(changedActiveType) {\n const { props } = visualElement;\n const context = getVariantContext(visualElement.parent) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined\n ? props[type]\n : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] &&\n prop !== props[type] &&\n propIsVariant;\n if (isInherited &&\n isInitialRender &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n let handledRemovedValues = false;\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n if (removedKeys.has(key)) {\n handledRemovedValues = true;\n removedKeys.delete(key);\n }\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n let valueHasChanged = false;\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n valueHasChanged = !shallowCompare(next, prev);\n }\n else {\n valueHasChanged = next !== prev;\n }\n if (valueHasChanged) {\n if (next !== undefined && next !== null) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (isInitialRender && visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to skip this animation\n * unless the inherited variants haven't changed on this render.\n */\n const willAnimateViaParent = isInherited && variantDidChange;\n const needsAnimating = !willAnimateViaParent || handledRemovedValues;\n if (shouldAnimateType && needsAnimating) {\n animations.push(...definitionList.map((animation) => {\n const options = { type };\n /**\n * If we're performing the initial animation, but we're not\n * rendering at the same time as the variant-controlling parent,\n * we want to use the parent's transition to calculate the stagger.\n */\n if (typeof animation === \"string\" &&\n isInitialRender &&\n !willAnimateViaParent &&\n visualElement.manuallyAnimateOnMount &&\n visualElement.parent) {\n const { parent } = visualElement;\n const parentVariant = resolveVariant(parent, animation);\n if (parent.enteringChildren && parentVariant) {\n const { delayChildren } = parentVariant.transition || {};\n options.delay = calcChildStagger(parent.enteringChildren, visualElement, delayChildren);\n }\n }\n return {\n animation: animation,\n options,\n };\n }));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n /**\n * If the initial prop contains a transition we can use that, otherwise\n * allow the animation function to use the visual element's default.\n */\n if (typeof props.initial !== \"boolean\") {\n const initialTransition = resolveVariant(visualElement, Array.isArray(props.initial)\n ? props.initial[0]\n : props.initial);\n if (initialTransition && initialTransition.transition) {\n fallbackAnimation.transition = initialTransition.transition;\n }\n }\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n // @ts-expect-error - @mattgperry to figure if we should do something here\n fallbackAnimation[key] = fallbackTarget ?? null;\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n (props.initial === false || props.initial === props.animate) &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n reset: () => {\n state = createState();\n /**\n * Temporarily disabling resetting this flag as it prevents components\n * with initial={false} from animating after being remounted, for instance\n * as the child of an Activity component.\n */\n // isInitialRender = true\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n//# sourceMappingURL=animation-state.mjs.map\n","/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n/**\n * Reset a delta to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisDeltaInto(delta, originDelta) {\n delta.translate = originDelta.translate;\n delta.scale = originDelta.scale;\n delta.originPoint = originDelta.originPoint;\n delta.origin = originDelta.origin;\n}\n\nexport { copyAxisDeltaInto, copyAxisInto, copyBoxInto };\n//# sourceMappingURL=copy.mjs.map\n","import { mixNumber } from '../../utils/mix/number.mjs';\n\nconst SCALE_PRECISION = 0.0001;\nconst SCALE_MIN = 1 - SCALE_PRECISION;\nconst SCALE_MAX = 1 + SCALE_PRECISION;\nconst TRANSLATE_PRECISION = 0.01;\nconst TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nconst TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n delta.origin = origin;\n delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n delta.scale = calcLength(target) / calcLength(source);\n delta.translate =\n mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n if ((delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX) ||\n isNaN(delta.scale)) {\n delta.scale = 1.0;\n }\n if ((delta.translate >= TRANSLATE_MIN &&\n delta.translate <= TRANSLATE_MAX) ||\n isNaN(delta.translate)) {\n delta.translate = 0.0;\n }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);\n calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);\n}\nfunction calcRelativeAxis(target, relative, parent) {\n target.min = parent.min + relative.min;\n target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent) {\n calcRelativeAxis(target.x, relative.x, parent.x);\n calcRelativeAxis(target.y, relative.y, parent.y);\n}\nfunction calcRelativeAxisPosition(target, layout, parent) {\n target.min = layout.min - parent.min;\n target.max = target.min + calcLength(layout);\n}\nfunction calcRelativePosition(target, layout, parent) {\n calcRelativeAxisPosition(target.x, layout.x, parent.x);\n calcRelativeAxisPosition(target.y, layout.y, parent.y);\n}\n\nexport { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };\n//# sourceMappingURL=delta-calc.mjs.map\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent } from '../../value/types/numbers/units.mjs';\nimport { scalePoint } from './delta-apply.mjs';\n\n/**\n * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse\n */\nfunction removePointDelta(point, translate, scale, originPoint, boxScale) {\n point -= translate;\n point = scalePoint(point, 1 / scale, originPoint);\n if (boxScale !== undefined) {\n point = scalePoint(point, 1 / boxScale, originPoint);\n }\n return point;\n}\n/**\n * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse\n */\nfunction removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n if (percent.test(translate)) {\n translate = parseFloat(translate);\n const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n translate = relativeProgress - sourceAxis.min;\n }\n if (typeof translate !== \"number\")\n return;\n let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n if (axis === originAxis)\n originPoint -= translate;\n axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse\n * and acts as a bridge between motion values and removeAxisDelta\n */\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);\n removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);\n}\n\nexport { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };\n//# sourceMappingURL=delta-remove.mjs.map\n","import { calcLength } from './delta-calc.mjs';\n\nfunction isAxisDeltaZero(delta) {\n return delta.translate === 0 && delta.scale === 1;\n}\nfunction isDeltaZero(delta) {\n return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);\n}\nfunction axisEquals(a, b) {\n return a.min === b.min && a.max === b.max;\n}\nfunction boxEquals(a, b) {\n return axisEquals(a.x, b.x) && axisEquals(a.y, b.y);\n}\nfunction axisEqualsRounded(a, b) {\n return (Math.round(a.min) === Math.round(b.min) &&\n Math.round(a.max) === Math.round(b.max));\n}\nfunction boxEqualsRounded(a, b) {\n return axisEqualsRounded(a.x, b.x) && axisEqualsRounded(a.y, b.y);\n}\nfunction aspectRatio(box) {\n return calcLength(box.x) / calcLength(box.y);\n}\nfunction axisDeltaEquals(a, b) {\n return (a.translate === b.translate &&\n a.scale === b.scale &&\n a.originPoint === b.originPoint);\n}\n\nexport { aspectRatio, axisDeltaEquals, axisEquals, axisEqualsRounded, boxEquals, boxEqualsRounded, isDeltaZero };\n//# sourceMappingURL=utils.mjs.map\n","function eachAxis(callback) {\n return [callback(\"x\"), callback(\"y\")];\n}\n\nexport { eachAxis };\n//# sourceMappingURL=each-axis.mjs.map\n","function buildProjectionTransform(delta, treeScale, latestTransform) {\n let transform = \"\";\n /**\n * The translations we use to calculate are always relative to the viewport coordinate space.\n * But when we apply scales, we also scale the coordinate space of an element and its children.\n * For instance if we have a treeScale (the culmination of all parent scales) of 0.5 and we need\n * to move an element 100 pixels, we actually need to move it 200 in within that scaled space.\n */\n const xTranslate = delta.x.translate / treeScale.x;\n const yTranslate = delta.y.translate / treeScale.y;\n const zTranslate = latestTransform?.z || 0;\n if (xTranslate || yTranslate || zTranslate) {\n transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;\n }\n /**\n * Apply scale correction for the tree transform.\n * This will apply scale to the screen-orientated axes.\n */\n if (treeScale.x !== 1 || treeScale.y !== 1) {\n transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;\n }\n if (latestTransform) {\n const { transformPerspective, rotate, rotateX, rotateY, skewX, skewY } = latestTransform;\n if (transformPerspective)\n transform = `perspective(${transformPerspective}px) ${transform}`;\n if (rotate)\n transform += `rotate(${rotate}deg) `;\n if (rotateX)\n transform += `rotateX(${rotateX}deg) `;\n if (rotateY)\n transform += `rotateY(${rotateY}deg) `;\n if (skewX)\n transform += `skewX(${skewX}deg) `;\n if (skewY)\n transform += `skewY(${skewY}deg) `;\n }\n /**\n * Apply scale to match the size of the element to the size we want it.\n * This will apply scale to the element-orientated axes.\n */\n const elementScaleX = delta.x.scale * treeScale.x;\n const elementScaleY = delta.y.scale * treeScale.y;\n if (elementScaleX !== 1 || elementScaleY !== 1) {\n transform += `scale(${elementScaleX}, ${elementScaleY})`;\n }\n return transform || \"none\";\n}\n\nexport { buildProjectionTransform };\n//# sourceMappingURL=transform.mjs.map\n","import { mixNumber } from '../../utils/mix/number.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\nimport { progress, circOut, noop } from 'motion-utils';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mixNumber(0, lead.opacity ?? 1, easeCrossfadeIn(progress));\n target.opacityExit = mixNumber(follow.opacity ?? 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mixNumber(follow.opacity ?? 1, lead.opacity ?? 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mixNumber(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\nconst easeCrossfadeIn = /*@__PURE__*/ compress(0, 0.5, circOut);\nconst easeCrossfadeOut = /*@__PURE__*/ compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n//# sourceMappingURL=mix-values.mjs.map\n","import { animateMotionValue } from '../interfaces/motion-value.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction animateSingleValue(value, keyframes, options) {\n const motionValue$1 = isMotionValue(value) ? value : motionValue(value);\n motionValue$1.start(animateMotionValue(\"\", motionValue$1, keyframes, options));\n return motionValue$1.animation;\n}\n\nexport { animateSingleValue };\n//# sourceMappingURL=single-value.mjs.map\n","function addDomEvent(target, eventName, handler, options = { passive: true }) {\n target.addEventListener(eventName, handler, options);\n return () => target.removeEventListener(eventName, handler);\n}\n\nexport { addDomEvent };\n//# sourceMappingURL=add-dom-event.mjs.map\n","const compareByDepth = (a, b) => a.depth - b.depth;\n\nexport { compareByDepth };\n//# sourceMappingURL=compare-by-depth.mjs.map\n","import { addUniqueItem, removeItem } from 'motion-utils';\nimport { compareByDepth } from './compare-by-depth.mjs';\n\nclass FlatTree {\n constructor() {\n this.children = [];\n this.isDirty = false;\n }\n add(child) {\n addUniqueItem(this.children, child);\n this.isDirty = true;\n }\n remove(child) {\n removeItem(this.children, child);\n this.isDirty = true;\n }\n forEach(callback) {\n this.isDirty && this.children.sort(compareByDepth);\n this.isDirty = false;\n this.children.forEach(callback);\n }\n}\n\nexport { FlatTree };\n//# sourceMappingURL=flat-tree.mjs.map\n","import { time } from '../frameloop/sync-time.mjs';\nimport { secondsToMilliseconds } from 'motion-utils';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\n/**\n * Timeout defined in ms\n */\nfunction delay(callback, timeout) {\n const start = time.now();\n const checkElapsed = ({ timestamp }) => {\n const elapsed = timestamp - start;\n if (elapsed >= timeout) {\n cancelFrame(checkElapsed);\n callback(elapsed - timeout);\n }\n };\n frame.setup(checkElapsed, true);\n return () => cancelFrame(checkElapsed);\n}\nfunction delayInSeconds(callback, timeout) {\n return delay(callback, secondsToMilliseconds(timeout));\n}\n\nexport { delay, delayInSeconds };\n//# sourceMappingURL=delay.mjs.map\n","import { isMotionValue } from './is-motion-value.mjs';\n\n/**\n * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself\n */\nfunction resolveMotionValue(value) {\n return isMotionValue(value) ? value.get() : value;\n}\n\nexport { resolveMotionValue };\n//# sourceMappingURL=resolve-motion-value.mjs.map\n","import { addUniqueItem, removeItem } from 'motion-utils';\n\nclass NodeStack {\n constructor() {\n this.members = [];\n }\n add(node) {\n addUniqueItem(this.members, node);\n node.scheduleRender();\n }\n remove(node) {\n removeItem(this.members, node);\n if (node === this.prevLead) {\n this.prevLead = undefined;\n }\n if (node === this.lead) {\n const prevLead = this.members[this.members.length - 1];\n if (prevLead) {\n this.promote(prevLead);\n }\n }\n }\n relegate(node) {\n const indexOfNode = this.members.findIndex((member) => node === member);\n if (indexOfNode === 0)\n return false;\n /**\n * Find the next projection node that is present\n */\n let prevLead;\n for (let i = indexOfNode; i >= 0; i--) {\n const member = this.members[i];\n if (member.isPresent !== false) {\n prevLead = member;\n break;\n }\n }\n if (prevLead) {\n this.promote(prevLead);\n return true;\n }\n else {\n return false;\n }\n }\n promote(node, preserveFollowOpacity) {\n const prevLead = this.lead;\n if (node === prevLead)\n return;\n this.prevLead = prevLead;\n this.lead = node;\n node.show();\n if (prevLead) {\n prevLead.instance && prevLead.scheduleRender();\n node.scheduleRender();\n /**\n * If both the new and previous lead have the same defined layoutDependency,\n * skip the shared layout animation. This allows components with layoutId\n * to opt-out of animations when their layoutDependency hasn't changed,\n * even when the component unmounts and remounts in a different location.\n */\n const prevDep = prevLead.options.layoutDependency;\n const nextDep = node.options.layoutDependency;\n const dependencyMatches = prevDep !== undefined &&\n nextDep !== undefined &&\n prevDep === nextDep;\n if (!dependencyMatches) {\n node.resumeFrom = prevLead;\n if (preserveFollowOpacity) {\n node.resumeFrom.preserveOpacity = true;\n }\n if (prevLead.snapshot) {\n node.snapshot = prevLead.snapshot;\n node.snapshot.latestValues =\n prevLead.animationValues || prevLead.latestValues;\n }\n if (node.root && node.root.isUpdating) {\n node.isLayoutDirty = true;\n }\n }\n const { crossfade } = node.options;\n if (crossfade === false) {\n prevLead.hide();\n }\n }\n }\n exitAnimationComplete() {\n this.members.forEach((node) => {\n const { options, resumingFrom } = node;\n options.onExitComplete && options.onExitComplete();\n if (resumingFrom) {\n resumingFrom.options.onExitComplete &&\n resumingFrom.options.onExitComplete();\n }\n });\n }\n scheduleRender() {\n this.members.forEach((node) => {\n node.instance && node.scheduleRender(false);\n });\n }\n /**\n * Clear any leads that have been removed this render to prevent them from being\n * used in future animations and to prevent memory leaks\n */\n removeLeadSnapshot() {\n if (this.lead && this.lead.snapshot) {\n this.lead.snapshot = undefined;\n }\n }\n}\n\nexport { NodeStack };\n//# sourceMappingURL=stack.mjs.map\n","/**\n * This should only ever be modified on the client otherwise it'll\n * persist through server requests. If we need instanced states we\n * could lazy-init via root.\n */\nconst globalProjectionState = {\n /**\n * Global flag as to whether the tree has animated since the last time\n * we resized the window\n */\n hasAnimatedSinceResize: true,\n /**\n * We set this to true once, on the first update. Any nodes added to the tree beyond that\n * update will be given a `data-projection-id` attribute.\n */\n hasEverUpdated: false,\n};\n\nexport { globalProjectionState };\n//# sourceMappingURL=state.mjs.map\n","import { activeAnimations } from '../../stats/animation-count.mjs';\nimport { getValueTransition } from '../../animation/utils/get-value-transition.mjs';\nimport { microtask } from '../../frameloop/microtask.mjs';\nimport { time } from '../../frameloop/sync-time.mjs';\nimport { translateAxis, transformBox, applyBoxDelta, applyTreeDeltas } from '../geometry/delta-apply.mjs';\nimport { calcLength, calcRelativeBox, calcRelativePosition, calcBoxDelta, isNear } from '../geometry/delta-calc.mjs';\nimport { removeBoxTransforms } from '../geometry/delta-remove.mjs';\nimport { copyBoxInto, copyAxisDeltaInto } from '../geometry/copy.mjs';\nimport { createBox, createDelta } from '../geometry/models.mjs';\nimport { boxEqualsRounded, isDeltaZero, axisDeltaEquals, aspectRatio, boxEquals } from '../geometry/utils.mjs';\nimport { buildProjectionTransform } from '../styles/transform.mjs';\nimport { eachAxis } from '../utils/each-axis.mjs';\nimport { hasTransform, hasScale, has2DTranslate } from '../utils/has-transform.mjs';\nimport { mixValues } from '../animation/mix-values.mjs';\nimport { isSVGElement } from '../../utils/is-svg-element.mjs';\nimport { isSVGSVGElement } from '../../utils/is-svg-svg-element.mjs';\nimport { mixNumber } from '../../utils/mix/number.mjs';\nimport { motionValue } from '../../value/index.mjs';\nimport { scaleCorrectors } from '../styles/scale-correction.mjs';\nimport { statsBuffer } from '../../stats/buffer.mjs';\nimport { SubscriptionManager, clamp, noop } from 'motion-utils';\nimport { animateSingleValue } from '../../animation/animate/single-value.mjs';\nimport { getOptimisedAppearId } from '../../animation/optimized-appear/get-appear-id.mjs';\nimport { FlatTree } from '../utils/flat-tree.mjs';\nimport { delay } from '../../utils/delay.mjs';\nimport { resolveMotionValue } from '../../value/utils/resolve-motion-value.mjs';\nimport { NodeStack } from '../shared/stack.mjs';\nimport { globalProjectionState } from './state.mjs';\nimport { frame, cancelFrame, frameData, frameSteps } from '../../frameloop/frame.mjs';\n\nconst metrics = {\n nodes: 0,\n calculatedTargetDeltas: 0,\n calculatedProjections: 0,\n};\nconst transformAxes = [\"\", \"X\", \"Y\", \"Z\"];\n/**\n * We use 1000 as the animation target as 0-1000 maps better to pixels than 0-1\n * which has a noticeable difference in spring animations\n */\nconst animationTarget = 1000;\nlet id = 0;\nfunction resetDistortingTransform(key, visualElement, values, sharedAnimationValues) {\n const { latestValues } = visualElement;\n // Record the distorting transform and then temporarily set it to 0\n if (latestValues[key]) {\n values[key] = latestValues[key];\n visualElement.setStaticValue(key, 0);\n if (sharedAnimationValues) {\n sharedAnimationValues[key] = 0;\n }\n }\n}\nfunction cancelTreeOptimisedTransformAnimations(projectionNode) {\n projectionNode.hasCheckedOptimisedAppear = true;\n if (projectionNode.root === projectionNode)\n return;\n const { visualElement } = projectionNode.options;\n if (!visualElement)\n return;\n const appearId = getOptimisedAppearId(visualElement);\n if (window.MotionHasOptimisedAnimation(appearId, \"transform\")) {\n const { layout, layoutId } = projectionNode.options;\n window.MotionCancelOptimisedAnimation(appearId, \"transform\", frame, !(layout || layoutId));\n }\n const { parent } = projectionNode;\n if (parent && !parent.hasCheckedOptimisedAppear) {\n cancelTreeOptimisedTransformAnimations(parent);\n }\n}\nfunction createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {\n return class ProjectionNode {\n constructor(latestValues = {}, parent = defaultParent?.()) {\n /**\n * A unique ID generated for every projection node.\n */\n this.id = id++;\n /**\n * An id that represents a unique session instigated by startUpdate.\n */\n this.animationId = 0;\n this.animationCommitId = 0;\n /**\n * A Set containing all this component's children. This is used to iterate\n * through the children.\n *\n * TODO: This could be faster to iterate as a flat array stored on the root node.\n */\n this.children = new Set();\n /**\n * Options for the node. We use this to configure what kind of layout animations\n * we should perform (if any).\n */\n this.options = {};\n /**\n * We use this to detect when its safe to shut down part of a projection tree.\n * We have to keep projecting children for scale correction and relative projection\n * until all their parents stop performing layout animations.\n */\n this.isTreeAnimating = false;\n this.isAnimationBlocked = false;\n /**\n * Flag to true if we think this layout has been changed. We can't always know this,\n * currently we set it to true every time a component renders, or if it has a layoutDependency\n * if that has changed between renders. Additionally, components can be grouped by LayoutGroup\n * and if one node is dirtied, they all are.\n */\n this.isLayoutDirty = false;\n /**\n * Flag to true if we think the projection calculations for this node needs\n * recalculating as a result of an updated transform or layout animation.\n */\n this.isProjectionDirty = false;\n /**\n * Flag to true if the layout *or* transform has changed. This then gets propagated\n * throughout the projection tree, forcing any element below to recalculate on the next frame.\n */\n this.isSharedProjectionDirty = false;\n /**\n * Flag transform dirty. This gets propagated throughout the whole tree but is only\n * respected by shared nodes.\n */\n this.isTransformDirty = false;\n /**\n * Block layout updates for instant layout transitions throughout the tree.\n */\n this.updateManuallyBlocked = false;\n this.updateBlockedByResize = false;\n /**\n * Set to true between the start of the first `willUpdate` call and the end of the `didUpdate`\n * call.\n */\n this.isUpdating = false;\n /**\n * If this is an SVG element we currently disable projection transforms\n */\n this.isSVG = false;\n /**\n * Flag to true (during promotion) if a node doing an instant layout transition needs to reset\n * its projection styles.\n */\n this.needsReset = false;\n /**\n * Flags whether this node should have its transform reset prior to measuring.\n */\n this.shouldResetTransform = false;\n /**\n * Store whether this node has been checked for optimised appear animations. As\n * effects fire bottom-up, and we want to look up the tree for appear animations,\n * this makes sure we only check each path once, stopping at nodes that\n * have already been checked.\n */\n this.hasCheckedOptimisedAppear = false;\n /**\n * An object representing the calculated contextual/accumulated/tree scale.\n * This will be used to scale calculcated projection transforms, as these are\n * calculated in screen-space but need to be scaled for elements to layoutly\n * make it to their calculated destinations.\n *\n * TODO: Lazy-init\n */\n this.treeScale = { x: 1, y: 1 };\n /**\n *\n */\n this.eventHandlers = new Map();\n this.hasTreeAnimated = false;\n this.layoutVersion = 0;\n // Note: Currently only running on root node\n this.updateScheduled = false;\n this.scheduleUpdate = () => this.update();\n this.projectionUpdateScheduled = false;\n this.checkUpdateFailed = () => {\n if (this.isUpdating) {\n this.isUpdating = false;\n this.clearAllSnapshots();\n }\n };\n /**\n * This is a multi-step process as shared nodes might be of different depths. Nodes\n * are sorted by depth order, so we need to resolve the entire tree before moving to\n * the next step.\n */\n this.updateProjection = () => {\n this.projectionUpdateScheduled = false;\n /**\n * Reset debug counts. Manually resetting rather than creating a new\n * object each frame.\n */\n if (statsBuffer.value) {\n metrics.nodes =\n metrics.calculatedTargetDeltas =\n metrics.calculatedProjections =\n 0;\n }\n this.nodes.forEach(propagateDirtyNodes);\n this.nodes.forEach(resolveTargetDelta);\n this.nodes.forEach(calcProjection);\n this.nodes.forEach(cleanDirtyNodes);\n if (statsBuffer.addProjectionMetrics) {\n statsBuffer.addProjectionMetrics(metrics);\n }\n };\n /**\n * Frame calculations\n */\n this.resolvedRelativeTargetAt = 0.0;\n this.linkedParentVersion = 0;\n this.hasProjected = false;\n this.isVisible = true;\n this.animationProgress = 0;\n /**\n * Shared layout\n */\n // TODO Only running on root node\n this.sharedNodes = new Map();\n this.latestValues = latestValues;\n this.root = parent ? parent.root || parent : this;\n this.path = parent ? [...parent.path, parent] : [];\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n for (let i = 0; i < this.path.length; i++) {\n this.path[i].shouldResetTransform = true;\n }\n if (this.root === this)\n this.nodes = new FlatTree();\n }\n addEventListener(name, handler) {\n if (!this.eventHandlers.has(name)) {\n this.eventHandlers.set(name, new SubscriptionManager());\n }\n return this.eventHandlers.get(name).add(handler);\n }\n notifyListeners(name, ...args) {\n const subscriptionManager = this.eventHandlers.get(name);\n subscriptionManager && subscriptionManager.notify(...args);\n }\n hasListeners(name) {\n return this.eventHandlers.has(name);\n }\n /**\n * Lifecycles\n */\n mount(instance) {\n if (this.instance)\n return;\n this.isSVG = isSVGElement(instance) && !isSVGSVGElement(instance);\n this.instance = instance;\n const { layoutId, layout, visualElement } = this.options;\n if (visualElement && !visualElement.current) {\n visualElement.mount(instance);\n }\n this.root.nodes.add(this);\n this.parent && this.parent.children.add(this);\n if (this.root.hasTreeAnimated && (layout || layoutId)) {\n this.isLayoutDirty = true;\n }\n if (attachResizeListener) {\n let cancelDelay;\n let innerWidth = 0;\n const resizeUnblockUpdate = () => (this.root.updateBlockedByResize = false);\n // Set initial innerWidth in a frame.read callback to batch the read\n frame.read(() => {\n innerWidth = window.innerWidth;\n });\n attachResizeListener(instance, () => {\n const newInnerWidth = window.innerWidth;\n if (newInnerWidth === innerWidth)\n return;\n innerWidth = newInnerWidth;\n this.root.updateBlockedByResize = true;\n cancelDelay && cancelDelay();\n cancelDelay = delay(resizeUnblockUpdate, 250);\n if (globalProjectionState.hasAnimatedSinceResize) {\n globalProjectionState.hasAnimatedSinceResize = false;\n this.nodes.forEach(finishAnimation);\n }\n });\n }\n if (layoutId) {\n this.root.registerSharedNode(layoutId, this);\n }\n // Only register the handler if it requires layout animation\n if (this.options.animate !== false &&\n visualElement &&\n (layoutId || layout)) {\n this.addEventListener(\"didUpdate\", ({ delta, hasLayoutChanged, hasRelativeLayoutChanged, layout: newLayout, }) => {\n if (this.isTreeAnimationBlocked()) {\n this.target = undefined;\n this.relativeTarget = undefined;\n return;\n }\n // TODO: Check here if an animation exists\n const layoutTransition = this.options.transition ||\n visualElement.getDefaultTransition() ||\n defaultLayoutTransition;\n const { onLayoutAnimationStart, onLayoutAnimationComplete, } = visualElement.getProps();\n /**\n * The target layout of the element might stay the same,\n * but its position relative to its parent has changed.\n */\n const hasTargetChanged = !this.targetLayout ||\n !boxEqualsRounded(this.targetLayout, newLayout);\n /*\n * Note: Disabled to fix relative animations always triggering new\n * layout animations. If this causes further issues, we can try\n * a different approach to detecting relative target changes.\n */\n // || hasRelativeLayoutChanged\n /**\n * If the layout hasn't seemed to have changed, it might be that the\n * element is visually in the same place in the document but its position\n * relative to its parent has indeed changed. So here we check for that.\n */\n const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeLayoutChanged;\n if (this.options.layoutRoot ||\n this.resumeFrom ||\n hasOnlyRelativeTargetChanged ||\n (hasLayoutChanged &&\n (hasTargetChanged || !this.currentAnimation))) {\n if (this.resumeFrom) {\n this.resumingFrom = this.resumeFrom;\n this.resumingFrom.resumingFrom = undefined;\n }\n const animationOptions = {\n ...getValueTransition(layoutTransition, \"layout\"),\n onPlay: onLayoutAnimationStart,\n onComplete: onLayoutAnimationComplete,\n };\n if (visualElement.shouldReduceMotion ||\n this.options.layoutRoot) {\n animationOptions.delay = 0;\n animationOptions.type = false;\n }\n this.startAnimation(animationOptions);\n /**\n * Set animation origin after starting animation to avoid layout jump\n * caused by stopping previous layout animation\n */\n this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);\n }\n else {\n /**\n * If the layout hasn't changed and we have an animation that hasn't started yet,\n * finish it immediately. Otherwise it will be animating from a location\n * that was probably never committed to screen and look like a jumpy box.\n */\n if (!hasLayoutChanged) {\n finishAnimation(this);\n }\n if (this.isLead() && this.options.onExitComplete) {\n this.options.onExitComplete();\n }\n }\n this.targetLayout = newLayout;\n });\n }\n }\n unmount() {\n this.options.layoutId && this.willUpdate();\n this.root.nodes.remove(this);\n const stack = this.getStack();\n stack && stack.remove(this);\n this.parent && this.parent.children.delete(this);\n this.instance = undefined;\n this.eventHandlers.clear();\n cancelFrame(this.updateProjection);\n }\n // only on the root\n blockUpdate() {\n this.updateManuallyBlocked = true;\n }\n unblockUpdate() {\n this.updateManuallyBlocked = false;\n }\n isUpdateBlocked() {\n return this.updateManuallyBlocked || this.updateBlockedByResize;\n }\n isTreeAnimationBlocked() {\n return (this.isAnimationBlocked ||\n (this.parent && this.parent.isTreeAnimationBlocked()) ||\n false);\n }\n // Note: currently only running on root node\n startUpdate() {\n if (this.isUpdateBlocked())\n return;\n this.isUpdating = true;\n this.nodes && this.nodes.forEach(resetSkewAndRotation);\n this.animationId++;\n }\n getTransformTemplate() {\n const { visualElement } = this.options;\n return visualElement && visualElement.getProps().transformTemplate;\n }\n willUpdate(shouldNotifyListeners = true) {\n this.root.hasTreeAnimated = true;\n if (this.root.isUpdateBlocked()) {\n this.options.onExitComplete && this.options.onExitComplete();\n return;\n }\n /**\n * If we're running optimised appear animations then these must be\n * cancelled before measuring the DOM. This is so we can measure\n * the true layout of the element rather than the WAAPI animation\n * which will be unaffected by the resetSkewAndRotate step.\n *\n * Note: This is a DOM write. Worst case scenario is this is sandwiched\n * between other snapshot reads which will cause unnecessary style recalculations.\n * This has to happen here though, as we don't yet know which nodes will need\n * snapshots in startUpdate(), but we only want to cancel optimised animations\n * if a layout animation measurement is actually going to be affected by them.\n */\n if (window.MotionCancelOptimisedAnimation &&\n !this.hasCheckedOptimisedAppear) {\n cancelTreeOptimisedTransformAnimations(this);\n }\n !this.root.isUpdating && this.root.startUpdate();\n if (this.isLayoutDirty)\n return;\n this.isLayoutDirty = true;\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.shouldResetTransform = true;\n node.updateScroll(\"snapshot\");\n if (node.options.layoutRoot) {\n node.willUpdate(false);\n }\n }\n const { layoutId, layout } = this.options;\n if (layoutId === undefined && !layout)\n return;\n const transformTemplate = this.getTransformTemplate();\n this.prevTransformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n this.updateSnapshot();\n shouldNotifyListeners && this.notifyListeners(\"willUpdate\");\n }\n update() {\n this.updateScheduled = false;\n const updateWasBlocked = this.isUpdateBlocked();\n // When doing an instant transition, we skip the layout update,\n // but should still clean up the measurements so that the next\n // snapshot could be taken correctly.\n if (updateWasBlocked) {\n this.unblockUpdate();\n this.clearAllSnapshots();\n this.nodes.forEach(clearMeasurements);\n return;\n }\n /**\n * If this is a repeat of didUpdate then ignore the animation.\n */\n if (this.animationId <= this.animationCommitId) {\n this.nodes.forEach(clearIsLayoutDirty);\n return;\n }\n this.animationCommitId = this.animationId;\n if (!this.isUpdating) {\n this.nodes.forEach(clearIsLayoutDirty);\n }\n else {\n this.isUpdating = false;\n /**\n * Write\n */\n this.nodes.forEach(resetTransformStyle);\n /**\n * Read ==================\n */\n // Update layout measurements of updated children\n this.nodes.forEach(updateLayout);\n /**\n * Write\n */\n // Notify listeners that the layout is updated\n this.nodes.forEach(notifyLayoutUpdate);\n }\n this.clearAllSnapshots();\n /**\n * Manually flush any pending updates. Ideally\n * we could leave this to the following requestAnimationFrame but this seems\n * to leave a flash of incorrectly styled content.\n */\n const now = time.now();\n frameData.delta = clamp(0, 1000 / 60, now - frameData.timestamp);\n frameData.timestamp = now;\n frameData.isProcessing = true;\n frameSteps.update.process(frameData);\n frameSteps.preRender.process(frameData);\n frameSteps.render.process(frameData);\n frameData.isProcessing = false;\n }\n didUpdate() {\n if (!this.updateScheduled) {\n this.updateScheduled = true;\n microtask.read(this.scheduleUpdate);\n }\n }\n clearAllSnapshots() {\n this.nodes.forEach(clearSnapshot);\n this.sharedNodes.forEach(removeLeadSnapshots);\n }\n scheduleUpdateProjection() {\n if (!this.projectionUpdateScheduled) {\n this.projectionUpdateScheduled = true;\n frame.preRender(this.updateProjection, false, true);\n }\n }\n scheduleCheckAfterUnmount() {\n /**\n * If the unmounting node is in a layoutGroup and did trigger a willUpdate,\n * we manually call didUpdate to give a chance to the siblings to animate.\n * Otherwise, cleanup all snapshots to prevents future nodes from reusing them.\n */\n frame.postRender(() => {\n if (this.isLayoutDirty) {\n this.root.didUpdate();\n }\n else {\n this.root.checkUpdateFailed();\n }\n });\n }\n /**\n * Update measurements\n */\n updateSnapshot() {\n if (this.snapshot || !this.instance)\n return;\n this.snapshot = this.measure();\n if (this.snapshot &&\n !calcLength(this.snapshot.measuredBox.x) &&\n !calcLength(this.snapshot.measuredBox.y)) {\n this.snapshot = undefined;\n }\n }\n updateLayout() {\n if (!this.instance)\n return;\n this.updateScroll();\n if (!(this.options.alwaysMeasureLayout && this.isLead()) &&\n !this.isLayoutDirty) {\n return;\n }\n /**\n * When a node is mounted, it simply resumes from the prevLead's\n * snapshot instead of taking a new one, but the ancestors scroll\n * might have updated while the prevLead is unmounted. We need to\n * update the scroll again to make sure the layout we measure is\n * up to date.\n */\n if (this.resumeFrom && !this.resumeFrom.instance) {\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n node.updateScroll();\n }\n }\n const prevLayout = this.layout;\n this.layout = this.measure(false);\n this.layoutVersion++;\n this.layoutCorrected = createBox();\n this.isLayoutDirty = false;\n this.projectionDelta = undefined;\n this.notifyListeners(\"measure\", this.layout.layoutBox);\n const { visualElement } = this.options;\n visualElement &&\n visualElement.notify(\"LayoutMeasure\", this.layout.layoutBox, prevLayout ? prevLayout.layoutBox : undefined);\n }\n updateScroll(phase = \"measure\") {\n let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);\n if (this.scroll &&\n this.scroll.animationId === this.root.animationId &&\n this.scroll.phase === phase) {\n needsMeasurement = false;\n }\n if (needsMeasurement && this.instance) {\n const isRoot = checkIsScrollRoot(this.instance);\n this.scroll = {\n animationId: this.root.animationId,\n phase,\n isRoot,\n offset: measureScroll(this.instance),\n wasRoot: this.scroll ? this.scroll.isRoot : isRoot,\n };\n }\n }\n resetTransform() {\n if (!resetTransform)\n return;\n const isResetRequested = this.isLayoutDirty ||\n this.shouldResetTransform ||\n this.options.alwaysMeasureLayout;\n const hasProjection = this.projectionDelta && !isDeltaZero(this.projectionDelta);\n const transformTemplate = this.getTransformTemplate();\n const transformTemplateValue = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : undefined;\n const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;\n if (isResetRequested &&\n this.instance &&\n (hasProjection ||\n hasTransform(this.latestValues) ||\n transformTemplateHasChanged)) {\n resetTransform(this.instance, transformTemplateValue);\n this.shouldResetTransform = false;\n this.scheduleRender();\n }\n }\n measure(removeTransform = true) {\n const pageBox = this.measurePageBox();\n let layoutBox = this.removeElementScroll(pageBox);\n /**\n * Measurements taken during the pre-render stage\n * still have transforms applied so we remove them\n * via calculation.\n */\n if (removeTransform) {\n layoutBox = this.removeTransform(layoutBox);\n }\n roundBox(layoutBox);\n return {\n animationId: this.root.animationId,\n measuredBox: pageBox,\n layoutBox,\n latestValues: {},\n source: this.id,\n };\n }\n measurePageBox() {\n const { visualElement } = this.options;\n if (!visualElement)\n return createBox();\n const box = visualElement.measureViewportBox();\n const wasInScrollRoot = this.scroll?.wasRoot || this.path.some(checkNodeWasScrollRoot);\n if (!wasInScrollRoot) {\n // Remove viewport scroll to give page-relative coordinates\n const { scroll } = this.root;\n if (scroll) {\n translateAxis(box.x, scroll.offset.x);\n translateAxis(box.y, scroll.offset.y);\n }\n }\n return box;\n }\n removeElementScroll(box) {\n const boxWithoutScroll = createBox();\n copyBoxInto(boxWithoutScroll, box);\n if (this.scroll?.wasRoot) {\n return boxWithoutScroll;\n }\n /**\n * Performance TODO: Keep a cumulative scroll offset down the tree\n * rather than loop back up the path.\n */\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n const { scroll, options } = node;\n if (node !== this.root && scroll && options.layoutScroll) {\n /**\n * If this is a new scroll root, we want to remove all previous scrolls\n * from the viewport box.\n */\n if (scroll.wasRoot) {\n copyBoxInto(boxWithoutScroll, box);\n }\n translateAxis(boxWithoutScroll.x, scroll.offset.x);\n translateAxis(boxWithoutScroll.y, scroll.offset.y);\n }\n }\n return boxWithoutScroll;\n }\n applyTransform(box, transformOnly = false) {\n const withTransforms = createBox();\n copyBoxInto(withTransforms, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!transformOnly &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(withTransforms, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (!hasTransform(node.latestValues))\n continue;\n transformBox(withTransforms, node.latestValues);\n }\n if (hasTransform(this.latestValues)) {\n transformBox(withTransforms, this.latestValues);\n }\n return withTransforms;\n }\n removeTransform(box) {\n const boxWithoutTransform = createBox();\n copyBoxInto(boxWithoutTransform, box);\n for (let i = 0; i < this.path.length; i++) {\n const node = this.path[i];\n if (!node.instance)\n continue;\n if (!hasTransform(node.latestValues))\n continue;\n hasScale(node.latestValues) && node.updateSnapshot();\n const sourceBox = createBox();\n const nodeBox = node.measurePageBox();\n copyBoxInto(sourceBox, nodeBox);\n removeBoxTransforms(boxWithoutTransform, node.latestValues, node.snapshot ? node.snapshot.layoutBox : undefined, sourceBox);\n }\n if (hasTransform(this.latestValues)) {\n removeBoxTransforms(boxWithoutTransform, this.latestValues);\n }\n return boxWithoutTransform;\n }\n setTargetDelta(delta) {\n this.targetDelta = delta;\n this.root.scheduleUpdateProjection();\n this.isProjectionDirty = true;\n }\n setOptions(options) {\n this.options = {\n ...this.options,\n ...options,\n crossfade: options.crossfade !== undefined ? options.crossfade : true,\n };\n }\n clearMeasurements() {\n this.scroll = undefined;\n this.layout = undefined;\n this.snapshot = undefined;\n this.prevTransformTemplateValue = undefined;\n this.targetDelta = undefined;\n this.target = undefined;\n this.isLayoutDirty = false;\n }\n forceRelativeParentToResolveTarget() {\n if (!this.relativeParent)\n return;\n /**\n * If the parent target isn't up-to-date, force it to update.\n * This is an unfortunate de-optimisation as it means any updating relative\n * projection will cause all the relative parents to recalculate back\n * up the tree.\n */\n if (this.relativeParent.resolvedRelativeTargetAt !==\n frameData.timestamp) {\n this.relativeParent.resolveTargetDelta(true);\n }\n }\n resolveTargetDelta(forceRecalculation = false) {\n /**\n * Once the dirty status of nodes has been spread through the tree, we also\n * need to check if we have a shared node of a different depth that has itself\n * been dirtied.\n */\n const lead = this.getLead();\n this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);\n this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);\n this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n /**\n * We don't use transform for this step of processing so we don't\n * need to check whether any nodes have changed transform.\n */\n const canSkip = !(forceRecalculation ||\n (isShared && this.isSharedProjectionDirty) ||\n this.isProjectionDirty ||\n this.parent?.isProjectionDirty ||\n this.attemptToResolveRelativeTarget ||\n this.root.updateBlockedByResize);\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If we have no layout, we can't perform projection, so early return\n */\n if (!this.layout || !(layout || layoutId))\n return;\n this.resolvedRelativeTargetAt = frameData.timestamp;\n const relativeParent = this.getClosestProjectingParent();\n if (relativeParent &&\n this.linkedParentVersion !== relativeParent.layoutVersion &&\n !relativeParent.options.layoutRoot) {\n this.removeRelativeTarget();\n }\n /**\n * If we don't have a targetDelta but do have a layout, we can attempt to resolve\n * a relativeParent. This will allow a component to perform scale correction\n * even if no animation has started.\n */\n if (!this.targetDelta && !this.relativeTarget) {\n if (relativeParent && relativeParent.layout) {\n this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);\n }\n else {\n this.removeRelativeTarget();\n }\n }\n /**\n * If we have no relative target or no target delta our target isn't valid\n * for this frame.\n */\n if (!this.relativeTarget && !this.targetDelta)\n return;\n /**\n * Lazy-init target data structure\n */\n if (!this.target) {\n this.target = createBox();\n this.targetWithTransforms = createBox();\n }\n /**\n * If we've got a relative box for this component, resolve it into a target relative to the parent.\n */\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.relativeParent &&\n this.relativeParent.target) {\n this.forceRelativeParentToResolveTarget();\n calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target);\n /**\n * If we've only got a targetDelta, resolve it into a target\n */\n }\n else if (this.targetDelta) {\n if (Boolean(this.resumingFrom)) {\n // TODO: This is creating a new object every frame\n this.target = this.applyTransform(this.layout.layoutBox);\n }\n else {\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n applyBoxDelta(this.target, this.targetDelta);\n }\n else {\n /**\n * If no target, use own layout as target\n */\n copyBoxInto(this.target, this.layout.layoutBox);\n }\n /**\n * If we've been told to attempt to resolve a relative target, do so.\n */\n if (this.attemptToResolveRelativeTarget) {\n this.attemptToResolveRelativeTarget = false;\n if (relativeParent &&\n Boolean(relativeParent.resumingFrom) ===\n Boolean(this.resumingFrom) &&\n !relativeParent.options.layoutScroll &&\n relativeParent.target &&\n this.animationProgress !== 1) {\n this.createRelativeTarget(relativeParent, this.target, relativeParent.target);\n }\n else {\n this.relativeParent = this.relativeTarget = undefined;\n }\n }\n /**\n * Increase debug counter for resolved target deltas\n */\n if (statsBuffer.value) {\n metrics.calculatedTargetDeltas++;\n }\n }\n getClosestProjectingParent() {\n if (!this.parent ||\n hasScale(this.parent.latestValues) ||\n has2DTranslate(this.parent.latestValues)) {\n return undefined;\n }\n if (this.parent.isProjecting()) {\n return this.parent;\n }\n else {\n return this.parent.getClosestProjectingParent();\n }\n }\n isProjecting() {\n return Boolean((this.relativeTarget ||\n this.targetDelta ||\n this.options.layoutRoot) &&\n this.layout);\n }\n createRelativeTarget(relativeParent, layout, parentLayout) {\n this.relativeParent = relativeParent;\n this.linkedParentVersion = relativeParent.layoutVersion;\n this.forceRelativeParentToResolveTarget();\n this.relativeTarget = createBox();\n this.relativeTargetOrigin = createBox();\n calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);\n copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n }\n removeRelativeTarget() {\n this.relativeParent = this.relativeTarget = undefined;\n }\n calcProjection() {\n const lead = this.getLead();\n const isShared = Boolean(this.resumingFrom) || this !== lead;\n let canSkip = true;\n /**\n * If this is a normal layout animation and neither this node nor its nearest projecting\n * is dirty then we can't skip.\n */\n if (this.isProjectionDirty || this.parent?.isProjectionDirty) {\n canSkip = false;\n }\n /**\n * If this is a shared layout animation and this node's shared projection is dirty then\n * we can't skip.\n */\n if (isShared &&\n (this.isSharedProjectionDirty || this.isTransformDirty)) {\n canSkip = false;\n }\n /**\n * If we have resolved the target this frame we must recalculate the\n * projection to ensure it visually represents the internal calculations.\n */\n if (this.resolvedRelativeTargetAt === frameData.timestamp) {\n canSkip = false;\n }\n if (canSkip)\n return;\n const { layout, layoutId } = this.options;\n /**\n * If this section of the tree isn't animating we can\n * delete our target sources for the following frame.\n */\n this.isTreeAnimating = Boolean((this.parent && this.parent.isTreeAnimating) ||\n this.currentAnimation ||\n this.pendingAnimation);\n if (!this.isTreeAnimating) {\n this.targetDelta = this.relativeTarget = undefined;\n }\n if (!this.layout || !(layout || layoutId))\n return;\n /**\n * Reset the corrected box with the latest values from box, as we're then going\n * to perform mutative operations on it.\n */\n copyBoxInto(this.layoutCorrected, this.layout.layoutBox);\n /**\n * Record previous tree scales before updating.\n */\n const prevTreeScaleX = this.treeScale.x;\n const prevTreeScaleY = this.treeScale.y;\n /**\n * Apply all the parent deltas to this box to produce the corrected box. This\n * is the layout box, as it will appear on screen as a result of the transforms of its parents.\n */\n applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);\n /**\n * If this layer needs to perform scale correction but doesn't have a target,\n * use the layout as the target.\n */\n if (lead.layout &&\n !lead.target &&\n (this.treeScale.x !== 1 || this.treeScale.y !== 1)) {\n lead.target = lead.layout.layoutBox;\n lead.targetWithTransforms = createBox();\n }\n const { target } = lead;\n if (!target) {\n /**\n * If we don't have a target to project into, but we were previously\n * projecting, we want to remove the stored transform and schedule\n * a render to ensure the elements reflect the removed transform.\n */\n if (this.prevProjectionDelta) {\n this.createProjectionDeltas();\n this.scheduleRender();\n }\n return;\n }\n if (!this.projectionDelta || !this.prevProjectionDelta) {\n this.createProjectionDeltas();\n }\n else {\n copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x);\n copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y);\n }\n /**\n * Update the delta between the corrected box and the target box before user-set transforms were applied.\n * This will allow us to calculate the corrected borderRadius and boxShadow to compensate\n * for our layout reprojection, but still allow them to be scaled correctly by the user.\n * It might be that to simplify this we may want to accept that user-set scale is also corrected\n * and we wouldn't have to keep and calc both deltas, OR we could support a user setting\n * to allow people to choose whether these styles are corrected based on just the\n * layout reprojection or the final bounding box.\n */\n calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);\n if (this.treeScale.x !== prevTreeScaleX ||\n this.treeScale.y !== prevTreeScaleY ||\n !axisDeltaEquals(this.projectionDelta.x, this.prevProjectionDelta.x) ||\n !axisDeltaEquals(this.projectionDelta.y, this.prevProjectionDelta.y)) {\n this.hasProjected = true;\n this.scheduleRender();\n this.notifyListeners(\"projectionUpdate\", target);\n }\n /**\n * Increase debug counter for recalculated projections\n */\n if (statsBuffer.value) {\n metrics.calculatedProjections++;\n }\n }\n hide() {\n this.isVisible = false;\n // TODO: Schedule render\n }\n show() {\n this.isVisible = true;\n // TODO: Schedule render\n }\n scheduleRender(notifyAll = true) {\n this.options.visualElement?.scheduleRender();\n if (notifyAll) {\n const stack = this.getStack();\n stack && stack.scheduleRender();\n }\n if (this.resumingFrom && !this.resumingFrom.instance) {\n this.resumingFrom = undefined;\n }\n }\n createProjectionDeltas() {\n this.prevProjectionDelta = createDelta();\n this.projectionDelta = createDelta();\n this.projectionDeltaWithTransform = createDelta();\n }\n setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {\n const snapshot = this.snapshot;\n const snapshotLatestValues = snapshot ? snapshot.latestValues : {};\n const mixedValues = { ...this.latestValues };\n const targetDelta = createDelta();\n if (!this.relativeParent ||\n !this.relativeParent.options.layoutRoot) {\n this.relativeTarget = this.relativeTargetOrigin = undefined;\n }\n this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;\n const relativeLayout = createBox();\n const snapshotSource = snapshot ? snapshot.source : undefined;\n const layoutSource = this.layout ? this.layout.source : undefined;\n const isSharedLayoutAnimation = snapshotSource !== layoutSource;\n const stack = this.getStack();\n const isOnlyMember = !stack || stack.members.length <= 1;\n const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation &&\n !isOnlyMember &&\n this.options.crossfade === true &&\n !this.path.some(hasOpacityCrossfade));\n this.animationProgress = 0;\n let prevRelativeTarget;\n this.mixTargetDelta = (latest) => {\n const progress = latest / 1000;\n mixAxisDelta(targetDelta.x, delta.x, progress);\n mixAxisDelta(targetDelta.y, delta.y, progress);\n this.setTargetDelta(targetDelta);\n if (this.relativeTarget &&\n this.relativeTargetOrigin &&\n this.layout &&\n this.relativeParent &&\n this.relativeParent.layout) {\n calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox);\n mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress);\n /**\n * If this is an unchanged relative target we can consider the\n * projection not dirty.\n */\n if (prevRelativeTarget &&\n boxEquals(this.relativeTarget, prevRelativeTarget)) {\n this.isProjectionDirty = false;\n }\n if (!prevRelativeTarget)\n prevRelativeTarget = createBox();\n copyBoxInto(prevRelativeTarget, this.relativeTarget);\n }\n if (isSharedLayoutAnimation) {\n this.animationValues = mixedValues;\n mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress, shouldCrossfadeOpacity, isOnlyMember);\n }\n this.root.scheduleUpdateProjection();\n this.scheduleRender();\n this.animationProgress = progress;\n };\n this.mixTargetDelta(this.options.layoutRoot ? 1000 : 0);\n }\n startAnimation(options) {\n this.notifyListeners(\"animationStart\");\n this.currentAnimation?.stop();\n this.resumingFrom?.currentAnimation?.stop();\n if (this.pendingAnimation) {\n cancelFrame(this.pendingAnimation);\n this.pendingAnimation = undefined;\n }\n /**\n * Start the animation in the next frame to have a frame with progress 0,\n * where the target is the same as when the animation started, so we can\n * calculate the relative positions correctly for instant transitions.\n */\n this.pendingAnimation = frame.update(() => {\n globalProjectionState.hasAnimatedSinceResize = true;\n activeAnimations.layout++;\n this.motionValue || (this.motionValue = motionValue(0));\n this.currentAnimation = animateSingleValue(this.motionValue, [0, 1000], {\n ...options,\n velocity: 0,\n isSync: true,\n onUpdate: (latest) => {\n this.mixTargetDelta(latest);\n options.onUpdate && options.onUpdate(latest);\n },\n onStop: () => {\n activeAnimations.layout--;\n },\n onComplete: () => {\n activeAnimations.layout--;\n options.onComplete && options.onComplete();\n this.completeAnimation();\n },\n });\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = this.currentAnimation;\n }\n this.pendingAnimation = undefined;\n });\n }\n completeAnimation() {\n if (this.resumingFrom) {\n this.resumingFrom.currentAnimation = undefined;\n this.resumingFrom.preserveOpacity = undefined;\n }\n const stack = this.getStack();\n stack && stack.exitAnimationComplete();\n this.resumingFrom =\n this.currentAnimation =\n this.animationValues =\n undefined;\n this.notifyListeners(\"animationComplete\");\n }\n finishAnimation() {\n if (this.currentAnimation) {\n this.mixTargetDelta && this.mixTargetDelta(animationTarget);\n this.currentAnimation.stop();\n }\n this.completeAnimation();\n }\n applyTransformsToTarget() {\n const lead = this.getLead();\n let { targetWithTransforms, target, layout, latestValues } = lead;\n if (!targetWithTransforms || !target || !layout)\n return;\n /**\n * If we're only animating position, and this element isn't the lead element,\n * then instead of projecting into the lead box we instead want to calculate\n * a new target that aligns the two boxes but maintains the layout shape.\n */\n if (this !== lead &&\n this.layout &&\n layout &&\n shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout.layoutBox)) {\n target = this.target || createBox();\n const xLength = calcLength(this.layout.layoutBox.x);\n target.x.min = lead.target.x.min;\n target.x.max = target.x.min + xLength;\n const yLength = calcLength(this.layout.layoutBox.y);\n target.y.min = lead.target.y.min;\n target.y.max = target.y.min + yLength;\n }\n copyBoxInto(targetWithTransforms, target);\n /**\n * Apply the latest user-set transforms to the targetBox to produce the targetBoxFinal.\n * This is the final box that we will then project into by calculating a transform delta and\n * applying it to the corrected box.\n */\n transformBox(targetWithTransforms, latestValues);\n /**\n * Update the delta between the corrected box and the final target box, after\n * user-set transforms are applied to it. This will be used by the renderer to\n * create a transform style that will reproject the element from its layout layout\n * into the desired bounding box.\n */\n calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);\n }\n registerSharedNode(layoutId, node) {\n if (!this.sharedNodes.has(layoutId)) {\n this.sharedNodes.set(layoutId, new NodeStack());\n }\n const stack = this.sharedNodes.get(layoutId);\n stack.add(node);\n const config = node.options.initialPromotionConfig;\n node.promote({\n transition: config ? config.transition : undefined,\n preserveFollowOpacity: config && config.shouldPreserveFollowOpacity\n ? config.shouldPreserveFollowOpacity(node)\n : undefined,\n });\n }\n isLead() {\n const stack = this.getStack();\n return stack ? stack.lead === this : true;\n }\n getLead() {\n const { layoutId } = this.options;\n return layoutId ? this.getStack()?.lead || this : this;\n }\n getPrevLead() {\n const { layoutId } = this.options;\n return layoutId ? this.getStack()?.prevLead : undefined;\n }\n getStack() {\n const { layoutId } = this.options;\n if (layoutId)\n return this.root.sharedNodes.get(layoutId);\n }\n promote({ needsReset, transition, preserveFollowOpacity, } = {}) {\n const stack = this.getStack();\n if (stack)\n stack.promote(this, preserveFollowOpacity);\n if (needsReset) {\n this.projectionDelta = undefined;\n this.needsReset = true;\n }\n if (transition)\n this.setOptions({ transition });\n }\n relegate() {\n const stack = this.getStack();\n if (stack) {\n return stack.relegate(this);\n }\n else {\n return false;\n }\n }\n resetSkewAndRotation() {\n const { visualElement } = this.options;\n if (!visualElement)\n return;\n // If there's no detected skew or rotation values, we can early return without a forced render.\n let hasDistortingTransform = false;\n /**\n * An unrolled check for rotation values. Most elements don't have any rotation and\n * skipping the nested loop and new object creation is 50% faster.\n */\n const { latestValues } = visualElement;\n if (latestValues.z ||\n latestValues.rotate ||\n latestValues.rotateX ||\n latestValues.rotateY ||\n latestValues.rotateZ ||\n latestValues.skewX ||\n latestValues.skewY) {\n hasDistortingTransform = true;\n }\n // If there's no distorting values, we don't need to do any more.\n if (!hasDistortingTransform)\n return;\n const resetValues = {};\n if (latestValues.z) {\n resetDistortingTransform(\"z\", visualElement, resetValues, this.animationValues);\n }\n // Check the skew and rotate value of all axes and reset to 0\n for (let i = 0; i < transformAxes.length; i++) {\n resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n }\n // Force a render of this element to apply the transform with all skews and rotations\n // set to 0.\n visualElement.render();\n // Put back all the values we reset\n for (const key in resetValues) {\n visualElement.setStaticValue(key, resetValues[key]);\n if (this.animationValues) {\n this.animationValues[key] = resetValues[key];\n }\n }\n // Schedule a render for the next frame. This ensures we won't visually\n // see the element with the reset rotate value applied.\n visualElement.scheduleRender();\n }\n applyProjectionStyles(targetStyle, // CSSStyleDeclaration - doesn't allow numbers to be assigned to properties\n styleProp) {\n if (!this.instance || this.isSVG)\n return;\n if (!this.isVisible) {\n targetStyle.visibility = \"hidden\";\n return;\n }\n const transformTemplate = this.getTransformTemplate();\n if (this.needsReset) {\n this.needsReset = false;\n targetStyle.visibility = \"\";\n targetStyle.opacity = \"\";\n targetStyle.pointerEvents =\n resolveMotionValue(styleProp?.pointerEvents) || \"\";\n targetStyle.transform = transformTemplate\n ? transformTemplate(this.latestValues, \"\")\n : \"none\";\n return;\n }\n const lead = this.getLead();\n if (!this.projectionDelta || !this.layout || !lead.target) {\n if (this.options.layoutId) {\n targetStyle.opacity =\n this.latestValues.opacity !== undefined\n ? this.latestValues.opacity\n : 1;\n targetStyle.pointerEvents =\n resolveMotionValue(styleProp?.pointerEvents) || \"\";\n }\n if (this.hasProjected && !hasTransform(this.latestValues)) {\n targetStyle.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n this.hasProjected = false;\n }\n return;\n }\n targetStyle.visibility = \"\";\n const valuesToRender = lead.animationValues || lead.latestValues;\n this.applyTransformsToTarget();\n let transform = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);\n if (transformTemplate) {\n transform = transformTemplate(valuesToRender, transform);\n }\n targetStyle.transform = transform;\n const { x, y } = this.projectionDelta;\n targetStyle.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;\n if (lead.animationValues) {\n /**\n * If the lead component is animating, assign this either the entering/leaving\n * opacity\n */\n targetStyle.opacity =\n lead === this\n ? valuesToRender.opacity ??\n this.latestValues.opacity ??\n 1\n : this.preserveOpacity\n ? this.latestValues.opacity\n : valuesToRender.opacityExit;\n }\n else {\n /**\n * Or we're not animating at all, set the lead component to its layout\n * opacity and other components to hidden.\n */\n targetStyle.opacity =\n lead === this\n ? valuesToRender.opacity !== undefined\n ? valuesToRender.opacity\n : \"\"\n : valuesToRender.opacityExit !== undefined\n ? valuesToRender.opacityExit\n : 0;\n }\n /**\n * Apply scale correction\n */\n for (const key in scaleCorrectors) {\n if (valuesToRender[key] === undefined)\n continue;\n const { correct, applyTo, isCSSVariable } = scaleCorrectors[key];\n /**\n * Only apply scale correction to the value if we have an\n * active projection transform. Otherwise these values become\n * vulnerable to distortion if the element changes size without\n * a corresponding layout animation.\n */\n const corrected = transform === \"none\"\n ? valuesToRender[key]\n : correct(valuesToRender[key], lead);\n if (applyTo) {\n const num = applyTo.length;\n for (let i = 0; i < num; i++) {\n targetStyle[applyTo[i]] = corrected;\n }\n }\n else {\n // If this is a CSS variable, set it directly on the instance.\n // Replacing this function from creating styles to setting them\n // would be a good place to remove per frame object creation\n if (isCSSVariable) {\n this.options.visualElement.renderState.vars[key] = corrected;\n }\n else {\n targetStyle[key] = corrected;\n }\n }\n }\n /**\n * Disable pointer events on follow components. This is to ensure\n * that if a follow component covers a lead component it doesn't block\n * pointer events on the lead.\n */\n if (this.options.layoutId) {\n targetStyle.pointerEvents =\n lead === this\n ? resolveMotionValue(styleProp?.pointerEvents) || \"\"\n : \"none\";\n }\n }\n clearSnapshot() {\n this.resumeFrom = this.snapshot = undefined;\n }\n // Only run on root\n resetTree() {\n this.root.nodes.forEach((node) => node.currentAnimation?.stop());\n this.root.nodes.forEach(clearMeasurements);\n this.root.sharedNodes.clear();\n }\n };\n}\nfunction updateLayout(node) {\n node.updateLayout();\n}\nfunction notifyLayoutUpdate(node) {\n const snapshot = node.resumeFrom?.snapshot || node.snapshot;\n if (node.isLead() &&\n node.layout &&\n snapshot &&\n node.hasListeners(\"didUpdate\")) {\n const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;\n const { animationType } = node.options;\n const isShared = snapshot.source !== node.layout.source;\n // TODO Maybe we want to also resize the layout snapshot so we don't trigger\n // animations for instance if layout=\"size\" and an element has only changed position\n if (animationType === \"size\") {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(axisSnapshot);\n axisSnapshot.min = layout[axis].min;\n axisSnapshot.max = axisSnapshot.min + length;\n });\n }\n else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout)) {\n eachAxis((axis) => {\n const axisSnapshot = isShared\n ? snapshot.measuredBox[axis]\n : snapshot.layoutBox[axis];\n const length = calcLength(layout[axis]);\n axisSnapshot.max = axisSnapshot.min + length;\n /**\n * Ensure relative target gets resized and rerendererd\n */\n if (node.relativeTarget && !node.currentAnimation) {\n node.isProjectionDirty = true;\n node.relativeTarget[axis].max =\n node.relativeTarget[axis].min + length;\n }\n });\n }\n const layoutDelta = createDelta();\n calcBoxDelta(layoutDelta, layout, snapshot.layoutBox);\n const visualDelta = createDelta();\n if (isShared) {\n calcBoxDelta(visualDelta, node.applyTransform(measuredLayout, true), snapshot.measuredBox);\n }\n else {\n calcBoxDelta(visualDelta, layout, snapshot.layoutBox);\n }\n const hasLayoutChanged = !isDeltaZero(layoutDelta);\n let hasRelativeLayoutChanged = false;\n if (!node.resumeFrom) {\n const relativeParent = node.getClosestProjectingParent();\n /**\n * If the relativeParent is itself resuming from a different element then\n * the relative snapshot is not relavent\n */\n if (relativeParent && !relativeParent.resumeFrom) {\n const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;\n if (parentSnapshot && parentLayout) {\n const relativeSnapshot = createBox();\n calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox);\n const relativeLayout = createBox();\n calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox);\n if (!boxEqualsRounded(relativeSnapshot, relativeLayout)) {\n hasRelativeLayoutChanged = true;\n }\n if (relativeParent.options.layoutRoot) {\n node.relativeTarget = relativeLayout;\n node.relativeTargetOrigin = relativeSnapshot;\n node.relativeParent = relativeParent;\n }\n }\n }\n }\n node.notifyListeners(\"didUpdate\", {\n layout,\n snapshot,\n delta: visualDelta,\n layoutDelta,\n hasLayoutChanged,\n hasRelativeLayoutChanged,\n });\n }\n else if (node.isLead()) {\n const { onExitComplete } = node.options;\n onExitComplete && onExitComplete();\n }\n /**\n * Clearing transition\n * TODO: Investigate why this transition is being passed in as {type: false } from Framer\n * and why we need it at all\n */\n node.options.transition = undefined;\n}\nfunction propagateDirtyNodes(node) {\n /**\n * Increase debug counter for nodes encountered this frame\n */\n if (statsBuffer.value) {\n metrics.nodes++;\n }\n if (!node.parent)\n return;\n /**\n * If this node isn't projecting, propagate isProjectionDirty. It will have\n * no performance impact but it will allow the next child that *is* projecting\n * but *isn't* dirty to just check its parent to see if *any* ancestor needs\n * correcting.\n */\n if (!node.isProjecting()) {\n node.isProjectionDirty = node.parent.isProjectionDirty;\n }\n /**\n * Propagate isSharedProjectionDirty and isTransformDirty\n * throughout the whole tree. A future revision can take another look at\n * this but for safety we still recalcualte shared nodes.\n */\n node.isSharedProjectionDirty || (node.isSharedProjectionDirty = Boolean(node.isProjectionDirty ||\n node.parent.isProjectionDirty ||\n node.parent.isSharedProjectionDirty));\n node.isTransformDirty || (node.isTransformDirty = node.parent.isTransformDirty);\n}\nfunction cleanDirtyNodes(node) {\n node.isProjectionDirty =\n node.isSharedProjectionDirty =\n node.isTransformDirty =\n false;\n}\nfunction clearSnapshot(node) {\n node.clearSnapshot();\n}\nfunction clearMeasurements(node) {\n node.clearMeasurements();\n}\nfunction clearIsLayoutDirty(node) {\n node.isLayoutDirty = false;\n}\nfunction resetTransformStyle(node) {\n const { visualElement } = node.options;\n if (visualElement && visualElement.getProps().onBeforeLayoutMeasure) {\n visualElement.notify(\"BeforeLayoutMeasure\");\n }\n node.resetTransform();\n}\nfunction finishAnimation(node) {\n node.finishAnimation();\n node.targetDelta = node.relativeTarget = node.target = undefined;\n node.isProjectionDirty = true;\n}\nfunction resolveTargetDelta(node) {\n node.resolveTargetDelta();\n}\nfunction calcProjection(node) {\n node.calcProjection();\n}\nfunction resetSkewAndRotation(node) {\n node.resetSkewAndRotation();\n}\nfunction removeLeadSnapshots(stack) {\n stack.removeLeadSnapshot();\n}\nfunction mixAxisDelta(output, delta, p) {\n output.translate = mixNumber(delta.translate, 0, p);\n output.scale = mixNumber(delta.scale, 1, p);\n output.origin = delta.origin;\n output.originPoint = delta.originPoint;\n}\nfunction mixAxis(output, from, to, p) {\n output.min = mixNumber(from.min, to.min, p);\n output.max = mixNumber(from.max, to.max, p);\n}\nfunction mixBox(output, from, to, p) {\n mixAxis(output.x, from.x, to.x, p);\n mixAxis(output.y, from.y, to.y, p);\n}\nfunction hasOpacityCrossfade(node) {\n return (node.animationValues && node.animationValues.opacityExit !== undefined);\n}\nconst defaultLayoutTransition = {\n duration: 0.45,\n ease: [0.4, 0, 0.1, 1],\n};\nconst userAgentContains = (string) => typeof navigator !== \"undefined\" &&\n navigator.userAgent &&\n navigator.userAgent.toLowerCase().includes(string);\n/**\n * Measured bounding boxes must be rounded in Safari and\n * left untouched in Chrome, otherwise non-integer layouts within scaled-up elements\n * can appear to jump.\n */\nconst roundPoint = userAgentContains(\"applewebkit/\") && !userAgentContains(\"chrome/\")\n ? Math.round\n : noop;\nfunction roundAxis(axis) {\n // Round to the nearest .5 pixels to support subpixel layouts\n axis.min = roundPoint(axis.min);\n axis.max = roundPoint(axis.max);\n}\nfunction roundBox(box) {\n roundAxis(box.x);\n roundAxis(box.y);\n}\nfunction shouldAnimatePositionOnly(animationType, snapshot, layout) {\n return (animationType === \"position\" ||\n (animationType === \"preserve-aspect\" &&\n !isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));\n}\nfunction checkNodeWasScrollRoot(node) {\n return node !== node.root && node.scroll?.wasRoot;\n}\n\nexport { cleanDirtyNodes, createProjectionNode, mixAxis, mixAxisDelta, mixBox, propagateDirtyNodes };\n//# sourceMappingURL=create-projection-node.mjs.map\n","import { addDomEvent } from '../../events/add-dom-event.mjs';\nimport { createProjectionNode } from './create-projection-node.mjs';\n\nconst DocumentProjectionNode = createProjectionNode({\n attachResizeListener: (ref, notify) => addDomEvent(ref, \"resize\", notify),\n measureScroll: () => ({\n x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,\n y: document.documentElement.scrollTop || document.body?.scrollTop || 0,\n }),\n checkIsScrollRoot: () => true,\n});\n\nexport { DocumentProjectionNode };\n//# sourceMappingURL=DocumentProjectionNode.mjs.map\n","import { createProjectionNode } from './create-projection-node.mjs';\nimport { DocumentProjectionNode } from './DocumentProjectionNode.mjs';\n\nconst rootProjectionNode = {\n current: undefined,\n};\nconst HTMLProjectionNode = createProjectionNode({\n measureScroll: (instance) => ({\n x: instance.scrollLeft,\n y: instance.scrollTop,\n }),\n defaultParent: () => {\n if (!rootProjectionNode.current) {\n const documentNode = new DocumentProjectionNode({});\n documentNode.mount(window);\n documentNode.setOptions({ layoutScroll: true });\n rootProjectionNode.current = documentNode;\n }\n return rootProjectionNode.current;\n },\n resetTransform: (instance, value) => {\n instance.style.transform = value !== undefined ? value : \"none\";\n },\n checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === \"fixed\"),\n});\n\nexport { HTMLProjectionNode, rootProjectionNode };\n//# sourceMappingURL=HTMLProjectionNode.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n//# sourceMappingURL=MotionConfigContext.mjs.map\n","import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const parentHeight = isHTMLElement(parent)\n ? parent.offsetHeight || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n size.bottom = parentHeight - size.height - size.top;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, anchorY, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right, bottom } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n const y = anchorY === \"bottom\" ? `bottom: ${bottom}` : `top: ${top}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n ${y}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, anchorY: anchorY, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","\"use client\";\nimport { useContext, useId, useEffect, useCallback } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\n\n/**\n * When a component is the child of `AnimatePresence`, it can use `usePresence`\n * to access information about whether it's still present in the React tree.\n *\n * ```jsx\n * import { usePresence } from \"framer-motion\"\n *\n * export const Component = () => {\n * const [isPresent, safeToRemove] = usePresence()\n *\n * useEffect(() => {\n * !isPresent && setTimeout(safeToRemove, 1000)\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * If `isPresent` is `false`, it means that a component has been removed from the tree,\n * but `AnimatePresence` won't really remove it until `safeToRemove` has been called.\n *\n * @public\n */\nfunction usePresence(subscribe = true) {\n const context = useContext(PresenceContext);\n if (context === null)\n return [true, null];\n const { isPresent, onExitComplete, register } = context;\n // It's safe to call the following hooks conditionally (after an early return) because the context will always\n // either be null or non-null for the lifespan of the component.\n const id = useId();\n useEffect(() => {\n if (subscribe) {\n return register(id);\n }\n }, [subscribe]);\n const safeToRemove = useCallback(() => subscribe && onExitComplete && onExitComplete(id), [id, onExitComplete, subscribe]);\n return !isPresent && onExitComplete ? [false, safeToRemove] : [true];\n}\n/**\n * Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present.\n * There is no `safeToRemove` function.\n *\n * ```jsx\n * import { useIsPresent } from \"framer-motion\"\n *\n * export const Component = () => {\n * const isPresent = useIsPresent()\n *\n * useEffect(() => {\n * !isPresent && console.log(\"I've been removed!\")\n * }, [isPresent])\n *\n * return <div />\n * }\n * ```\n *\n * @public\n */\nfunction useIsPresent() {\n return isPresent(useContext(PresenceContext));\n}\nfunction isPresent(context) {\n return context === null ? true : context.isPresent;\n}\n\nexport { isPresent, useIsPresent, usePresence };\n//# sourceMappingURL=use-presence.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", anchorY = \"top\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, anchorY: anchorY, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\nconst LazyContext = createContext({ strict: false });\n\nexport { LazyContext };\n//# sourceMappingURL=LazyContext.mjs.map\n","import { getFeatureDefinitions, setFeatureDefinitions } from 'motion-dom';\n\nconst featureProps = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\",\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"],\n};\nlet isInitialized = false;\n/**\n * Initialize feature definitions with isEnabled checks.\n * This must be called before any motion components are rendered.\n */\nfunction initFeatureDefinitions() {\n if (isInitialized)\n return;\n const initialFeatureDefinitions = {};\n for (const key in featureProps) {\n initialFeatureDefinitions[key] = {\n isEnabled: (props) => featureProps[key].some((name) => !!props[name]),\n };\n }\n setFeatureDefinitions(initialFeatureDefinitions);\n isInitialized = true;\n}\n/**\n * Get the current feature definitions, initializing if needed.\n */\nfunction getInitializedFeatureDefinitions() {\n initFeatureDefinitions();\n return getFeatureDefinitions();\n}\n\nexport { getInitializedFeatureDefinitions, initFeatureDefinitions };\n//# sourceMappingURL=definitions.mjs.map\n","import { setFeatureDefinitions } from 'motion-dom';\nimport { getInitializedFeatureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n setFeatureDefinitions(featureDefinitions);\n}\n\nexport { loadFeatures };\n//# sourceMappingURL=load-features.mjs.map\n","/**\n * A list of all valid MotionProps.\n *\n * @privateRemarks\n * This doesn't throw if a `MotionProp` name is missing - it should.\n */\nconst validMotionProps = new Set([\n \"animate\",\n \"exit\",\n \"variants\",\n \"initial\",\n \"style\",\n \"values\",\n \"variants\",\n \"transition\",\n \"transformTemplate\",\n \"custom\",\n \"inherit\",\n \"onBeforeLayoutMeasure\",\n \"onAnimationStart\",\n \"onAnimationComplete\",\n \"onUpdate\",\n \"onDragStart\",\n \"onDrag\",\n \"onDragEnd\",\n \"onMeasureDragConstraints\",\n \"onDirectionLock\",\n \"onDragTransitionEnd\",\n \"_dragX\",\n \"_dragY\",\n \"onHoverStart\",\n \"onHoverEnd\",\n \"onViewportEnter\",\n \"onViewportLeave\",\n \"globalTapTarget\",\n \"ignoreStrict\",\n \"viewport\",\n]);\n/**\n * Check whether a prop name is a valid `MotionProp` key.\n *\n * @param key - Name of the property to check\n * @returns `true` is key is a valid `MotionProp`.\n *\n * @public\n */\nfunction isValidMotionProp(key) {\n return (key.startsWith(\"while\") ||\n (key.startsWith(\"drag\") && key !== \"draggable\") ||\n key.startsWith(\"layout\") ||\n key.startsWith(\"onTap\") ||\n key.startsWith(\"onPan\") ||\n key.startsWith(\"onLayout\") ||\n validMotionProps.has(key));\n}\n\nexport { isValidMotionProp };\n//# sourceMappingURL=valid-prop.mjs.map\n","export default {};\nthrow new Error(`Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?`)","import { isValidMotionProp } from '../../../motion/utils/valid-prop.mjs';\n\nlet shouldForward = (key) => !isValidMotionProp(key);\nfunction loadExternalIsValidProp(isValidProp) {\n if (typeof isValidProp !== \"function\")\n return;\n // Explicitly filter our events\n shouldForward = (key) => key.startsWith(\"on\") ? !isValidMotionProp(key) : isValidProp(key);\n}\n/**\n * Emotion and Styled Components both allow users to pass through arbitrary props to their components\n * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which\n * of these should be passed to the underlying DOM node.\n *\n * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props\n * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props\n * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of\n * `@emotion/is-prop-valid`, however to fix this problem we need to use it.\n *\n * By making it an optionalDependency we can offer this functionality only in the situations where it's\n * actually required.\n */\ntry {\n /**\n * We attempt to import this package but require won't be defined in esm environments, in that case\n * isPropValid will have to be provided via `MotionContext`. In a 6.0.0 this should probably be removed\n * in favour of explicit injection.\n */\n loadExternalIsValidProp(require(\"@emotion/is-prop-valid\").default);\n}\ncatch {\n // We don't need to actually do anything here - the fallback is the existing `isPropValid`.\n}\nfunction filterProps(props, isDom, forwardMotionProps) {\n const filteredProps = {};\n for (const key in props) {\n /**\n * values is considered a valid prop by Emotion, so if it's present\n * this will be rendered out to the DOM unless explicitly filtered.\n *\n * We check the type as it could be used with the `feColorMatrix`\n * element, which we support.\n */\n if (key === \"values\" && typeof props.values === \"object\")\n continue;\n if (shouldForward(key) ||\n (forwardMotionProps === true && isValidMotionProp(key)) ||\n (!isDom && !isValidMotionProp(key)) ||\n // If trying to use native HTML drag events, forward drag listeners\n (props[\"draggable\"] &&\n key.startsWith(\"onDrag\"))) {\n filteredProps[key] =\n props[key];\n }\n }\n return filteredProps;\n}\n\nexport { filterProps, loadExternalIsValidProp };\n//# sourceMappingURL=filter-props.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\nconst MotionContext = /* @__PURE__ */ createContext({});\n\nexport { MotionContext };\n//# sourceMappingURL=index.mjs.map\n","import { isControllingVariants, isVariantLabel } from 'motion-dom';\n\nfunction getCurrentTreeVariants(props, context) {\n if (isControllingVariants(props)) {\n const { initial, animate } = props;\n return {\n initial: initial === false || isVariantLabel(initial)\n ? initial\n : undefined,\n animate: isVariantLabel(animate) ? animate : undefined,\n };\n }\n return props.inherit !== false ? context : {};\n}\n\nexport { getCurrentTreeVariants };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { useContext, useMemo } from 'react';\nimport { MotionContext } from './index.mjs';\nimport { getCurrentTreeVariants } from './utils.mjs';\n\nfunction useCreateMotionContext(props) {\n const { initial, animate } = getCurrentTreeVariants(props, useContext(MotionContext));\n return useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);\n}\nfunction variantLabelsAsDependency(prop) {\n return Array.isArray(prop) ? prop.join(\" \") : prop;\n}\n\nexport { useCreateMotionContext };\n//# sourceMappingURL=create.mjs.map\n","const createHtmlRenderState = () => ({\n style: {},\n transform: {},\n transformOrigin: {},\n vars: {},\n});\n\nexport { createHtmlRenderState };\n//# sourceMappingURL=create-render-state.mjs.map\n","\"use client\";\nimport { isMotionValue, isForcedMotionValue, buildHTMLStyles } from 'motion-dom';\nimport { useMemo } from 'react';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nfunction copyRawValuesOnly(target, source, props) {\n for (const key in source) {\n if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n target[key] = source[key];\n }\n }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState) {\n return useMemo(() => {\n const state = createHtmlRenderState();\n buildHTMLStyles(state, visualState, transformTemplate);\n return Object.assign({}, state.vars, state.style);\n }, [visualState]);\n}\nfunction useStyle(props, visualState) {\n const styleProp = props.style || {};\n const style = {};\n /**\n * Copy non-Motion Values straight into style\n */\n copyRawValuesOnly(style, styleProp, props);\n Object.assign(style, useInitialMotionValues(props, visualState));\n return style;\n}\nfunction useHTMLProps(props, visualState) {\n // The `any` isn't ideal but it is the type of createElement props argument\n const htmlProps = {};\n const style = useStyle(props, visualState);\n if (props.drag && props.dragListener !== false) {\n // Disable the ghost element when a user drags\n htmlProps.draggable = false;\n // Disable text selection\n style.userSelect =\n style.WebkitUserSelect =\n style.WebkitTouchCallout =\n \"none\";\n // Disable scrolling on the draggable direction\n style.touchAction =\n props.drag === true\n ? \"none\"\n : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n }\n if (props.tabIndex === undefined &&\n (props.onTap || props.onTapStart || props.whileTap)) {\n htmlProps.tabIndex = 0;\n }\n htmlProps.style = style;\n return htmlProps;\n}\n\nexport { copyRawValuesOnly, useHTMLProps };\n//# sourceMappingURL=use-props.mjs.map\n","import { createHtmlRenderState } from '../../html/utils/create-render-state.mjs';\n\nconst createSvgRenderState = () => ({\n ...createHtmlRenderState(),\n attrs: {},\n});\n\nexport { createSvgRenderState };\n//# sourceMappingURL=create-render-state.mjs.map\n","\"use client\";\nimport { buildSVGAttrs, isSVGTag } from 'motion-dom';\nimport { useMemo } from 'react';\nimport { copyRawValuesOnly } from '../html/use-props.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\n\nfunction useSVGProps(props, visualState, _isStatic, Component) {\n const visualProps = useMemo(() => {\n const state = createSvgRenderState();\n buildSVGAttrs(state, visualState, isSVGTag(Component), props.transformTemplate, props.style);\n return {\n ...state.attrs,\n style: { ...state.style },\n };\n }, [visualState]);\n if (props.style) {\n const rawStyles = {};\n copyRawValuesOnly(rawStyles, props.style, props);\n visualProps.style = { ...rawStyles, ...visualProps.style };\n }\n return visualProps;\n}\n\nexport { useSVGProps };\n//# sourceMappingURL=use-props.mjs.map\n","/**\n * We keep these listed separately as we use the lowercase tag names as part\n * of the runtime bundle to detect SVG components\n */\nconst lowercaseSVGElements = [\n \"animate\",\n \"circle\",\n \"defs\",\n \"desc\",\n \"ellipse\",\n \"g\",\n \"image\",\n \"line\",\n \"filter\",\n \"marker\",\n \"mask\",\n \"metadata\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"rect\",\n \"stop\",\n \"switch\",\n \"symbol\",\n \"svg\",\n \"text\",\n \"tspan\",\n \"use\",\n \"view\",\n];\n\nexport { lowercaseSVGElements };\n//# sourceMappingURL=lowercase-elements.mjs.map\n","import { lowercaseSVGElements } from '../../svg/lowercase-elements.mjs';\n\nfunction isSVGComponent(Component) {\n if (\n /**\n * If it's not a string, it's a custom React component. Currently we only support\n * HTML custom React components.\n */\n typeof Component !== \"string\" ||\n /**\n * If it contains a dash, the element is a custom HTML webcomponent.\n */\n Component.includes(\"-\")) {\n return false;\n }\n else if (\n /**\n * If it's in our list of lowercase SVG tags, it's an SVG component\n */\n lowercaseSVGElements.indexOf(Component) > -1 ||\n /**\n * If it contains a capital letter, it's an SVG component\n */\n /[A-Z]/u.test(Component)) {\n return true;\n }\n return false;\n}\n\nexport { isSVGComponent };\n//# sourceMappingURL=is-svg-component.mjs.map\n","\"use client\";\nimport { isMotionValue } from 'motion-dom';\nimport { Fragment, useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nfunction useRender(Component, props, ref, { latestValues, }, isStatic, forwardMotionProps = false, isSVG) {\n const useVisualProps = (isSVG ?? isSVGComponent(Component)) ? useSVGProps : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = Component !== Fragment ? { ...filteredProps, ...visualProps, ref } : {};\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n}\n\nexport { useRender };\n//# sourceMappingURL=use-render.mjs.map\n","\"use client\";\nimport { resolveMotionValue, isControllingVariants, isVariantNode, isAnimationControls, resolveVariantFromProps } from 'motion-dom';\nimport { useContext } from 'react';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\n\nfunction makeState({ scrapeMotionValuesFromProps, createRenderState, }, props, context, presenceContext) {\n const state = {\n latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),\n renderState: createRenderState(),\n };\n return state;\n}\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n const values = {};\n const motionValues = scrapeMotionValues(props, {});\n for (const key in motionValues) {\n values[key] = resolveMotionValue(motionValues[key]);\n }\n let { initial, animate } = props;\n const isControllingVariants$1 = isControllingVariants(props);\n const isVariantNode$1 = isVariantNode(props);\n if (context &&\n isVariantNode$1 &&\n !isControllingVariants$1 &&\n props.inherit !== false) {\n if (initial === undefined)\n initial = context.initial;\n if (animate === undefined)\n animate = context.animate;\n }\n let isInitialAnimationBlocked = presenceContext\n ? presenceContext.initial === false\n : false;\n isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n const variantToSet = isInitialAnimationBlocked ? animate : initial;\n if (variantToSet &&\n typeof variantToSet !== \"boolean\" &&\n !isAnimationControls(variantToSet)) {\n const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n for (let i = 0; i < list.length; i++) {\n const resolved = resolveVariantFromProps(props, list[i]);\n if (resolved) {\n const { transitionEnd, transition, ...target } = resolved;\n for (const key in target) {\n let valueTarget = target[key];\n if (Array.isArray(valueTarget)) {\n /**\n * Take final keyframe if the initial animation is blocked because\n * we want to initialise at the end of that blocked animation.\n */\n const index = isInitialAnimationBlocked\n ? valueTarget.length - 1\n : 0;\n valueTarget = valueTarget[index];\n }\n if (valueTarget !== null) {\n values[key] = valueTarget;\n }\n }\n for (const key in transitionEnd) {\n values[key] = transitionEnd[key];\n }\n }\n }\n }\n return values;\n}\nconst makeUseVisualState = (config) => (props, isStatic) => {\n const context = useContext(MotionContext);\n const presenceContext = useContext(PresenceContext);\n const make = () => makeState(config, props, context, presenceContext);\n return isStatic ? make() : useConstant(make);\n};\n\nexport { makeUseVisualState };\n//# sourceMappingURL=use-visual-state.mjs.map\n","\"use client\";\nimport { scrapeHTMLMotionValuesFromProps } from 'motion-dom';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nconst useHTMLVisualState = /*@__PURE__*/ makeUseVisualState({\n scrapeMotionValuesFromProps: scrapeHTMLMotionValuesFromProps,\n createRenderState: createHtmlRenderState,\n});\n\nexport { useHTMLVisualState };\n//# sourceMappingURL=use-html-visual-state.mjs.map\n","\"use client\";\nimport { scrapeSVGMotionValuesFromProps } from 'motion-dom';\nimport { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';\nimport { createSvgRenderState } from './utils/create-render-state.mjs';\n\nconst useSVGVisualState = /*@__PURE__*/ makeUseVisualState({\n scrapeMotionValuesFromProps: scrapeSVGMotionValuesFromProps,\n createRenderState: createSvgRenderState,\n});\n\nexport { useSVGVisualState };\n//# sourceMappingURL=use-svg-visual-state.mjs.map\n","const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n","\"use client\";\nimport { useRef, useInsertionEffect, useCallback } from 'react';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n /**\n * Store externalRef in a ref to avoid including it in the useCallback\n * dependency array. Including externalRef in dependencies causes issues\n * with libraries like Radix UI that create new callback refs on each render\n * when using asChild - this would cause the callback to be recreated,\n * triggering element remounts and breaking AnimatePresence exit animations.\n */\n const externalRefContainer = useRef(externalRef);\n useInsertionEffect(() => {\n externalRefContainer.current = externalRef;\n });\n // Store cleanup function returned by callback refs (React 19 feature)\n const refCleanup = useRef(null);\n return useCallback((instance) => {\n if (instance) {\n visualState.onMount?.(instance);\n }\n if (visualElement) {\n instance ? visualElement.mount(instance) : visualElement.unmount();\n }\n const ref = externalRefContainer.current;\n if (typeof ref === \"function\") {\n if (instance) {\n const cleanup = ref(instance);\n if (typeof cleanup === \"function\") {\n refCleanup.current = cleanup;\n }\n }\n else if (refCleanup.current) {\n refCleanup.current();\n refCleanup.current = null;\n }\n else {\n ref(instance);\n }\n }\n else if (ref) {\n ref.current = instance;\n }\n }, [visualElement]);\n}\n\nexport { useMotionRef };\n//# sourceMappingURL=use-motion-ref.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * Internal, exported only for usage in Framer\n */\nconst SwitchLayoutGroupContext = createContext({});\n\nexport { SwitchLayoutGroupContext };\n//# sourceMappingURL=SwitchLayoutGroupContext.mjs.map\n","function isRefObject(ref) {\n return (ref &&\n typeof ref === \"object\" &&\n Object.prototype.hasOwnProperty.call(ref, \"current\"));\n}\n\nexport { isRefObject };\n//# sourceMappingURL=is-ref-object.mjs.map\n","\"use client\";\nimport { optimizedAppearDataAttribute } from 'motion-dom';\nimport { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../context/SwitchLayoutGroupContext.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\nfunction useVisualElement(Component, visualState, props, createVisualElement, ProjectionNodeConstructor, isSVG) {\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const reducedMotionConfig = useContext(MotionConfigContext).reducedMotion;\n const visualElementRef = useRef(null);\n /**\n * Track whether the component has been through React's commit phase.\n * Used to detect when LazyMotion features load after the component has mounted.\n */\n const hasMountedOnce = useRef(false);\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement =\n createVisualElement ||\n lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n isSVG,\n });\n /**\n * If the component has already mounted before features loaded (e.g. via\n * LazyMotion with async feature loading), we need to force the initial\n * animation to run. Otherwise state changes that occurred before features\n * loaded will be lost and the element will snap to its final state.\n */\n if (hasMountedOnce.current && visualElementRef.current) {\n visualElementRef.current.manuallyAnimateOnMount = true;\n }\n }\n const visualElement = visualElementRef.current;\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n if (visualElement &&\n !visualElement.projection &&\n ProjectionNodeConstructor &&\n (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n }\n const isMounted = useRef(false);\n useInsertionEffect(() => {\n /**\n * Check the component has already mounted before calling\n * `update` unnecessarily. This ensures we skip the initial update.\n */\n if (visualElement && isMounted.current) {\n visualElement.update(props, presenceContext);\n }\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const optimisedAppearId = props[optimizedAppearDataAttribute];\n const wantsHandoff = useRef(Boolean(optimisedAppearId) &&\n !window.MotionHandoffIsComplete?.(optimisedAppearId) &&\n window.MotionHasOptimisedAnimation?.(optimisedAppearId));\n useIsomorphicLayoutEffect(() => {\n /**\n * Track that this component has mounted. This is used to detect when\n * LazyMotion features load after the component has already committed.\n */\n hasMountedOnce.current = true;\n if (!visualElement)\n return;\n isMounted.current = true;\n window.MotionIsMounted = true;\n visualElement.updateFeatures();\n visualElement.scheduleRenderMicrotask();\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n if (!wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n if (wantsHandoff.current) {\n // This ensures all future calls to animateChanges() in this component will run in useEffect\n queueMicrotask(() => {\n window.MotionHandoffMarkAsComplete?.(optimisedAppearId);\n });\n wantsHandoff.current = false;\n }\n /**\n * Now we've finished triggering animations for this element we\n * can wipe the enteringChildren set for the next render.\n */\n visualElement.enteringChildren = undefined;\n });\n return visualElement;\n}\nfunction createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutCrossfade, } = props;\n visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"]\n ? undefined\n : getClosestProjectingNode(visualElement.parent));\n visualElement.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) || (dragConstraints && isRefObject(dragConstraints)),\n visualElement,\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig,\n crossfade: layoutCrossfade,\n layoutScroll,\n layoutRoot,\n });\n}\nfunction getClosestProjectingNode(visualElement) {\n if (!visualElement)\n return undefined;\n return visualElement.options.allowProjection !== false\n ? visualElement.projection\n : getClosestProjectingNode(visualElement.parent);\n}\n\nexport { useVisualElement };\n//# sourceMappingURL=use-visual-element.mjs.map\n","\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { useRender } from '../render/dom/use-render.mjs';\nimport { isSVGComponent } from '../render/dom/utils/is-svg-component.mjs';\nimport { useHTMLVisualState } from '../render/html/use-html-visual-state.mjs';\nimport { useSVGVisualState } from '../render/svg/use-svg-visual-state.mjs';\nimport { isBrowser } from '../utils/is-browser.mjs';\nimport { getInitializedFeatureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n /**\n * Determine whether to use SVG or HTML rendering based on:\n * 1. Explicit `type` option (highest priority)\n * 2. Auto-detection via `isSVGComponent`\n */\n const isSVG = type ? type === \"svg\" : isSVGComponent(Component);\n const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;\n function MotionDOMComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && isBrowser) {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG)] }));\n }\n MotionDOMComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage, \"lazy-strict-mode\")\n : invariant(false, strictMessage, \"lazy-strict-mode\");\n }\n}\nfunction getProjectionFunctionality(props) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n//# sourceMappingURL=index.mjs.map\n","import { warnOnce } from 'motion-utils';\nimport { createMotionComponent } from '../../motion/index.mjs';\n\nfunction createMotionProxy(preloadedFeatures, createVisualElement) {\n if (typeof Proxy === \"undefined\") {\n return createMotionComponent;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n const factory = (Component, options) => {\n return createMotionComponent(Component, options, preloadedFeatures, createVisualElement);\n };\n /**\n * Support for deprecated`motion(Component)` pattern\n */\n const deprecatedFactoryFunction = (Component, options) => {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, \"motion() is deprecated. Use motion.create() instead.\");\n }\n return factory(Component, options);\n };\n return new Proxy(deprecatedFactoryFunction, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n if (key === \"create\")\n return factory;\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, createMotionComponent(key, undefined, preloadedFeatures, createVisualElement));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createMotionProxy };\n//# sourceMappingURL=create-proxy.mjs.map\n","import { SVGVisualElement, HTMLVisualElement } from 'motion-dom';\nimport { Fragment } from 'react';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\n\nconst createDomVisualElement = (Component, options) => {\n /**\n * Use explicit isSVG override if provided, otherwise auto-detect\n */\n const isSVG = options.isSVG ?? isSVGComponent(Component);\n return isSVG\n ? new SVGVisualElement(options)\n : new HTMLVisualElement(options, {\n allowProjection: Component !== Fragment,\n });\n};\n\nexport { createDomVisualElement };\n//# sourceMappingURL=create-visual-element.mjs.map\n","import { Feature, createAnimationState, isAnimationControls } from 'motion-dom';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n if (isAnimationControls(animate)) {\n this.unmountControls = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() {\n this.node.animationState.reset();\n this.unmountControls?.();\n }\n}\n\nexport { AnimationFeature };\n//# sourceMappingURL=index.mjs.map\n","import { Feature } from 'motion-dom';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent, onExitComplete } = this.node.presenceContext;\n const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || isPresent === prevIsPresent) {\n return;\n }\n const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent);\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => {\n onExitComplete(this.id);\n });\n }\n }\n mount() {\n const { register, onExitComplete } = this.node.presenceContext || {};\n if (onExitComplete) {\n onExitComplete(this.id);\n }\n if (register) {\n this.unmount = register(this.id);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n//# sourceMappingURL=exit.mjs.map\n","import { AnimationFeature } from './animation/index.mjs';\nimport { ExitAnimationFeature } from './animation/exit.mjs';\n\nconst animations = {\n animation: {\n Feature: AnimationFeature,\n },\n exit: {\n Feature: ExitAnimationFeature,\n },\n};\n\nexport { animations };\n//# sourceMappingURL=animations.mjs.map\n","import { isPrimaryPointer } from 'motion-dom';\n\nfunction extractEventInfo(event) {\n return {\n point: {\n x: event.pageX,\n y: event.pageY,\n },\n };\n}\nconst addPointerInfo = (handler) => {\n return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));\n};\n\nexport { addPointerInfo, extractEventInfo };\n//# sourceMappingURL=event-info.mjs.map\n","import { addDomEvent } from 'motion-dom';\nimport { addPointerInfo } from './event-info.mjs';\n\nfunction addPointerEvent(target, eventName, handler, options) {\n return addDomEvent(target, eventName, addPointerInfo(handler), options);\n}\n\nexport { addPointerEvent };\n//# sourceMappingURL=add-pointer-event.mjs.map\n","// Fixes https://github.com/motiondivision/motion/issues/2270\nconst getContextWindow = ({ current }) => {\n return current ? current.ownerDocument.defaultView : null;\n};\n\nexport { getContextWindow };\n//# sourceMappingURL=get-context-window.mjs.map\n","const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\nexport { distance, distance2D };\n//# sourceMappingURL=distance.mjs.map\n","import { frame, isPrimaryPointer, cancelFrame, frameData } from 'motion-dom';\nimport { pipe, secondsToMilliseconds, millisecondsToSeconds } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { distance2D } from '../../utils/distance.mjs';\n\nconst overflowStyles = /*#__PURE__*/ new Set([\"auto\", \"scroll\"]);\n/**\n * @internal\n */\nclass PanSession {\n constructor(event, handlers, { transformPagePoint, contextWindow = window, dragSnapToOrigin = false, distanceThreshold = 3, element, } = {}) {\n /**\n * @internal\n */\n this.startEvent = null;\n /**\n * @internal\n */\n this.lastMoveEvent = null;\n /**\n * @internal\n */\n this.lastMoveEventInfo = null;\n /**\n * @internal\n */\n this.handlers = {};\n /**\n * @internal\n */\n this.contextWindow = window;\n /**\n * Scroll positions of scrollable ancestors and window.\n * @internal\n */\n this.scrollPositions = new Map();\n /**\n * Cleanup function for scroll listeners.\n * @internal\n */\n this.removeScrollListeners = null;\n this.onElementScroll = (event) => {\n this.handleScroll(event.target);\n };\n this.onWindowScroll = () => {\n this.handleScroll(window);\n };\n this.updatePoint = () => {\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const info = getPanInfo(this.lastMoveEventInfo, this.history);\n const isPanStarted = this.startEvent !== null;\n // Only start panning if the offset is larger than 3 pixels. If we make it\n // any larger than this we'll want to reset the pointer history\n // on the first update to avoid visual snapping to the cursor.\n const isDistancePastThreshold = distance2D(info.offset, { x: 0, y: 0 }) >= this.distanceThreshold;\n if (!isPanStarted && !isDistancePastThreshold)\n return;\n const { point } = info;\n const { timestamp } = frameData;\n this.history.push({ ...point, timestamp });\n const { onStart, onMove } = this.handlers;\n if (!isPanStarted) {\n onStart && onStart(this.lastMoveEvent, info);\n this.startEvent = this.lastMoveEvent;\n }\n onMove && onMove(this.lastMoveEvent, info);\n };\n this.handlePointerMove = (event, info) => {\n this.lastMoveEvent = event;\n this.lastMoveEventInfo = transformPoint(info, this.transformPagePoint);\n // Throttle mouse move event to once per frame\n frame.update(this.updatePoint, true);\n };\n this.handlePointerUp = (event, info) => {\n this.end();\n const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n // Resume animation if dragSnapToOrigin is set OR if no drag started (user just clicked)\n // This ensures constraint animations continue when interrupted by a click\n if (this.dragSnapToOrigin || !this.startEvent) {\n resumeAnimation && resumeAnimation();\n }\n if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n return;\n const panInfo = getPanInfo(event.type === \"pointercancel\"\n ? this.lastMoveEventInfo\n : transformPoint(info, this.transformPagePoint), this.history);\n if (this.startEvent && onEnd) {\n onEnd(event, panInfo);\n }\n onSessionEnd && onSessionEnd(event, panInfo);\n };\n // If we have more than one touch, don't start detecting this gesture\n if (!isPrimaryPointer(event))\n return;\n this.dragSnapToOrigin = dragSnapToOrigin;\n this.handlers = handlers;\n this.transformPagePoint = transformPagePoint;\n this.distanceThreshold = distanceThreshold;\n this.contextWindow = contextWindow || window;\n const info = extractEventInfo(event);\n const initialInfo = transformPoint(info, this.transformPagePoint);\n const { point } = initialInfo;\n const { timestamp } = frameData;\n this.history = [{ ...point, timestamp }];\n const { onSessionStart } = handlers;\n onSessionStart &&\n onSessionStart(event, getPanInfo(initialInfo, this.history));\n this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp));\n // Start scroll tracking if element provided\n if (element) {\n this.startScrollTracking(element);\n }\n }\n /**\n * Start tracking scroll on ancestors and window.\n */\n startScrollTracking(element) {\n // Store initial scroll positions for scrollable ancestors\n let current = element.parentElement;\n while (current) {\n const style = getComputedStyle(current);\n if (overflowStyles.has(style.overflowX) ||\n overflowStyles.has(style.overflowY)) {\n this.scrollPositions.set(current, {\n x: current.scrollLeft,\n y: current.scrollTop,\n });\n }\n current = current.parentElement;\n }\n // Track window scroll\n this.scrollPositions.set(window, {\n x: window.scrollX,\n y: window.scrollY,\n });\n // Capture listener catches element scroll events as they bubble\n window.addEventListener(\"scroll\", this.onElementScroll, {\n capture: true,\n passive: true,\n });\n // Direct window scroll listener (window scroll doesn't bubble)\n window.addEventListener(\"scroll\", this.onWindowScroll, {\n passive: true,\n });\n this.removeScrollListeners = () => {\n window.removeEventListener(\"scroll\", this.onElementScroll, {\n capture: true,\n });\n window.removeEventListener(\"scroll\", this.onWindowScroll);\n };\n }\n /**\n * Handle scroll compensation during drag.\n *\n * For element scroll: adjusts history origin since pageX/pageY doesn't change.\n * For window scroll: adjusts lastMoveEventInfo since pageX/pageY would change.\n */\n handleScroll(target) {\n const initial = this.scrollPositions.get(target);\n if (!initial)\n return;\n const isWindow = target === window;\n const current = isWindow\n ? { x: window.scrollX, y: window.scrollY }\n : {\n x: target.scrollLeft,\n y: target.scrollTop,\n };\n const delta = { x: current.x - initial.x, y: current.y - initial.y };\n if (delta.x === 0 && delta.y === 0)\n return;\n if (isWindow) {\n // Window scroll: pageX/pageY changes, so update lastMoveEventInfo\n if (this.lastMoveEventInfo) {\n this.lastMoveEventInfo.point.x += delta.x;\n this.lastMoveEventInfo.point.y += delta.y;\n }\n }\n else {\n // Element scroll: pageX/pageY unchanged, so adjust history origin\n if (this.history.length > 0) {\n this.history[0].x -= delta.x;\n this.history[0].y -= delta.y;\n }\n }\n this.scrollPositions.set(target, current);\n frame.update(this.updatePoint, true);\n }\n updateHandlers(handlers) {\n this.handlers = handlers;\n }\n end() {\n this.removeListeners && this.removeListeners();\n this.removeScrollListeners && this.removeScrollListeners();\n this.scrollPositions.clear();\n cancelFrame(this.updatePoint);\n }\n}\nfunction transformPoint(info, transformPagePoint) {\n return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n return {\n point,\n delta: subtractPoint(point, lastDevicePoint(history)),\n offset: subtractPoint(point, startDevicePoint(history)),\n velocity: getVelocity(history, 0.1),\n };\n}\nfunction startDevicePoint(history) {\n return history[0];\n}\nfunction lastDevicePoint(history) {\n return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n if (history.length < 2) {\n return { x: 0, y: 0 };\n }\n let i = history.length - 1;\n let timestampedPoint = null;\n const lastPoint = lastDevicePoint(history);\n while (i >= 0) {\n timestampedPoint = history[i];\n if (lastPoint.timestamp - timestampedPoint.timestamp >\n secondsToMilliseconds(timeDelta)) {\n break;\n }\n i--;\n }\n if (!timestampedPoint) {\n return { x: 0, y: 0 };\n }\n const time = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n if (time === 0) {\n return { x: 0, y: 0 };\n }\n const currentVelocity = {\n x: (lastPoint.x - timestampedPoint.x) / time,\n y: (lastPoint.y - timestampedPoint.y) / time,\n };\n if (currentVelocity.x === Infinity) {\n currentVelocity.x = 0;\n }\n if (currentVelocity.y === Infinity) {\n currentVelocity.y = 0;\n }\n return currentVelocity;\n}\n\nexport { PanSession };\n//# sourceMappingURL=PanSession.mjs.map\n","import { mixNumber, calcLength } from 'motion-dom';\nimport { progress, clamp } from 'motion-utils';\n\n/**\n * Apply constraints to a point. These constraints are both physical along an\n * axis, and an elastic factor that determines how much to constrain the point\n * by if it does lie outside the defined parameters.\n */\nfunction applyConstraints(point, { min, max }, elastic) {\n if (min !== undefined && point < min) {\n // If we have a min point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(min, point, elastic.min)\n : Math.max(point, min);\n }\n else if (max !== undefined && point > max) {\n // If we have a max point defined, and this is outside of that, constrain\n point = elastic\n ? mixNumber(max, point, elastic.max)\n : Math.min(point, max);\n }\n return point;\n}\n/**\n * Calculate constraints in terms of the viewport when defined relatively to the\n * measured axis. This is measured from the nearest edge, so a max constraint of 200\n * on an axis with a max value of 300 would return a constraint of 500 - axis length\n */\nfunction calcRelativeAxisConstraints(axis, min, max) {\n return {\n min: min !== undefined ? axis.min + min : undefined,\n max: max !== undefined\n ? axis.max + max - (axis.max - axis.min)\n : undefined,\n };\n}\n/**\n * Calculate constraints in terms of the viewport when\n * defined relatively to the measured bounding box.\n */\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n return {\n x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n y: calcRelativeAxisConstraints(layoutBox.y, top, bottom),\n };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative axis\n */\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n let min = constraintsAxis.min - layoutAxis.min;\n let max = constraintsAxis.max - layoutAxis.max;\n // If the constraints axis is actually smaller than the layout axis then we can\n // flip the constraints\n if (constraintsAxis.max - constraintsAxis.min <\n layoutAxis.max - layoutAxis.min) {\n [min, max] = [max, min];\n }\n return { min, max };\n}\n/**\n * Calculate viewport constraints when defined as another viewport-relative box\n */\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n return {\n x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y),\n };\n}\n/**\n * Calculate a transform origin relative to the source axis, between 0-1, that results\n * in an asthetically pleasing scale/transform needed to project from source to target.\n */\nfunction calcOrigin(source, target) {\n let origin = 0.5;\n const sourceLength = calcLength(source);\n const targetLength = calcLength(target);\n if (targetLength > sourceLength) {\n origin = progress(target.min, target.max - sourceLength, source.min);\n }\n else if (sourceLength > targetLength) {\n origin = progress(source.min, source.max - targetLength, target.min);\n }\n return clamp(0, 1, origin);\n}\n/**\n * Rebase the calculated viewport constraints relative to the layout.min point.\n */\nfunction rebaseAxisConstraints(layout, constraints) {\n const relativeConstraints = {};\n if (constraints.min !== undefined) {\n relativeConstraints.min = constraints.min - layout.min;\n }\n if (constraints.max !== undefined) {\n relativeConstraints.max = constraints.max - layout.min;\n }\n return relativeConstraints;\n}\nconst defaultElastic = 0.35;\n/**\n * Accepts a dragElastic prop and returns resolved elastic values for each axis.\n */\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n if (dragElastic === false) {\n dragElastic = 0;\n }\n else if (dragElastic === true) {\n dragElastic = defaultElastic;\n }\n return {\n x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n y: resolveAxisElastic(dragElastic, \"top\", \"bottom\"),\n };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n return {\n min: resolvePointElastic(dragElastic, minLabel),\n max: resolvePointElastic(dragElastic, maxLabel),\n };\n}\nfunction resolvePointElastic(dragElastic, label) {\n return typeof dragElastic === \"number\"\n ? dragElastic\n : dragElastic[label] || 0;\n}\n\nexport { applyConstraints, calcOrigin, calcRelativeAxisConstraints, calcRelativeConstraints, calcViewportAxisConstraints, calcViewportConstraints, defaultElastic, rebaseAxisConstraints, resolveAxisElastic, resolveDragElastic, resolvePointElastic };\n//# sourceMappingURL=constraints.mjs.map\n","import { createBox, frame, eachAxis, measurePageBox, convertBoxToBoundingBox, convertBoundingBoxToBox, addValueToWillChange, animateMotionValue, mixNumber, isElementKeyboardAccessible, addDomEvent, setDragLock, percent, calcLength } from 'motion-dom';\nimport { invariant } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { extractEventInfo } from '../../events/event-info.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { PanSession } from '../pan/PanSession.mjs';\nimport { applyConstraints, calcRelativeConstraints, resolveDragElastic, rebaseAxisConstraints, calcViewportConstraints, calcOrigin, defaultElastic } from './utils/constraints.mjs';\n\nconst elementDragControls = new WeakMap();\nclass VisualElementDragControls {\n constructor(visualElement) {\n this.openDragLock = null;\n this.isDragging = false;\n this.currentDirection = null;\n this.originPoint = { x: 0, y: 0 };\n /**\n * The permitted boundaries of travel, in pixels.\n */\n this.constraints = false;\n this.hasMutatedConstraints = false;\n /**\n * The per-axis resolved elastic values.\n */\n this.elastic = createBox();\n /**\n * The latest pointer event. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPointerEvent = null;\n /**\n * The latest pan info. Used as fallback when the `cancel` and `stop` functions are called without arguments.\n */\n this.latestPanInfo = null;\n this.visualElement = visualElement;\n }\n start(originEvent, { snapToCursor = false, distanceThreshold } = {}) {\n /**\n * Don't start dragging if this component is exiting\n */\n const { presenceContext } = this.visualElement;\n if (presenceContext && presenceContext.isPresent === false)\n return;\n const onSessionStart = (event) => {\n // Stop or pause animations based on context:\n // - snapToCursor: stop because we'll set new position values\n // - otherwise: pause to allow resume if no drag starts (for constraint animations)\n if (snapToCursor) {\n this.stopAnimation();\n this.snapToCursor(extractEventInfo(event).point);\n }\n else {\n this.pauseAnimation();\n }\n };\n const onStart = (event, info) => {\n // Stop any paused animation so motion values reflect true current position\n // (pauseAnimation was called in onSessionStart to allow resume if no drag started)\n this.stopAnimation();\n // Attempt to grab the global drag gesture lock - maybe make this part of PanSession\n const { drag, dragPropagation, onDragStart } = this.getProps();\n if (drag && !dragPropagation) {\n if (this.openDragLock)\n this.openDragLock();\n this.openDragLock = setDragLock(drag);\n // If we don 't have the lock, don't start dragging\n if (!this.openDragLock)\n return;\n }\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.isDragging = true;\n this.currentDirection = null;\n this.resolveConstraints();\n if (this.visualElement.projection) {\n this.visualElement.projection.isAnimationBlocked = true;\n this.visualElement.projection.target = undefined;\n }\n /**\n * Record gesture origin and pointer offset\n */\n eachAxis((axis) => {\n let current = this.getAxisMotionValue(axis).get() || 0;\n /**\n * If the MotionValue is a percentage value convert to px\n */\n if (percent.test(current)) {\n const { projection } = this.visualElement;\n if (projection && projection.layout) {\n const measuredAxis = projection.layout.layoutBox[axis];\n if (measuredAxis) {\n const length = calcLength(measuredAxis);\n current = length * (parseFloat(current) / 100);\n }\n }\n }\n this.originPoint[axis] = current;\n });\n // Fire onDragStart event\n if (onDragStart) {\n frame.postRender(() => onDragStart(event, info));\n }\n addValueToWillChange(this.visualElement, \"transform\");\n const { animationState } = this.visualElement;\n animationState && animationState.setActive(\"whileDrag\", true);\n };\n const onMove = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag, } = this.getProps();\n // If we didn't successfully receive the gesture lock, early return.\n if (!dragPropagation && !this.openDragLock)\n return;\n const { offset } = info;\n // Attempt to detect drag direction if directionLock is true\n if (dragDirectionLock && this.currentDirection === null) {\n this.currentDirection = getCurrentDirection(offset);\n // If we've successfully set a direction, notify listener\n if (this.currentDirection !== null) {\n onDirectionLock && onDirectionLock(this.currentDirection);\n }\n return;\n }\n // Update each point with the latest position\n this.updateAxis(\"x\", info.point, offset);\n this.updateAxis(\"y\", info.point, offset);\n /**\n * Ideally we would leave the renderer to fire naturally at the end of\n * this frame but if the element is about to change layout as the result\n * of a re-render we want to ensure the browser can read the latest\n * bounding box to ensure the pointer and element don't fall out of sync.\n */\n this.visualElement.render();\n /**\n * This must fire after the render call as it might trigger a state\n * change which itself might trigger a layout update.\n */\n onDrag && onDrag(event, info);\n };\n const onSessionEnd = (event, info) => {\n this.latestPointerEvent = event;\n this.latestPanInfo = info;\n this.stop(event, info);\n this.latestPointerEvent = null;\n this.latestPanInfo = null;\n };\n const resumeAnimation = () => eachAxis((axis) => this.getAnimationState(axis) === \"paused\" &&\n this.getAxisMotionValue(axis).animation?.play());\n const { dragSnapToOrigin } = this.getProps();\n this.panSession = new PanSession(originEvent, {\n onSessionStart,\n onStart,\n onMove,\n onSessionEnd,\n resumeAnimation,\n }, {\n transformPagePoint: this.visualElement.getTransformPagePoint(),\n dragSnapToOrigin,\n distanceThreshold,\n contextWindow: getContextWindow(this.visualElement),\n element: this.visualElement.current,\n });\n }\n /**\n * @internal\n */\n stop(event, panInfo) {\n const finalEvent = event || this.latestPointerEvent;\n const finalPanInfo = panInfo || this.latestPanInfo;\n const isDragging = this.isDragging;\n this.cancel();\n if (!isDragging || !finalPanInfo || !finalEvent)\n return;\n const { velocity } = finalPanInfo;\n this.startAnimation(velocity);\n const { onDragEnd } = this.getProps();\n if (onDragEnd) {\n frame.postRender(() => onDragEnd(finalEvent, finalPanInfo));\n }\n }\n /**\n * @internal\n */\n cancel() {\n this.isDragging = false;\n const { projection, animationState } = this.visualElement;\n if (projection) {\n projection.isAnimationBlocked = false;\n }\n this.endPanSession();\n const { dragPropagation } = this.getProps();\n if (!dragPropagation && this.openDragLock) {\n this.openDragLock();\n this.openDragLock = null;\n }\n animationState && animationState.setActive(\"whileDrag\", false);\n }\n /**\n * Clean up the pan session without modifying other drag state.\n * This is used during unmount to ensure event listeners are removed\n * without affecting projection animations or drag locks.\n * @internal\n */\n endPanSession() {\n this.panSession && this.panSession.end();\n this.panSession = undefined;\n }\n updateAxis(axis, _point, offset) {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!offset || !shouldDrag(axis, drag, this.currentDirection))\n return;\n const axisValue = this.getAxisMotionValue(axis);\n let next = this.originPoint[axis] + offset[axis];\n // Apply constraints\n if (this.constraints && this.constraints[axis]) {\n next = applyConstraints(next, this.constraints[axis], this.elastic[axis]);\n }\n axisValue.set(next);\n }\n resolveConstraints() {\n const { dragConstraints, dragElastic } = this.getProps();\n const layout = this.visualElement.projection &&\n !this.visualElement.projection.layout\n ? this.visualElement.projection.measure(false)\n : this.visualElement.projection?.layout;\n const prevConstraints = this.constraints;\n if (dragConstraints && isRefObject(dragConstraints)) {\n if (!this.constraints) {\n this.constraints = this.resolveRefConstraints();\n }\n }\n else {\n if (dragConstraints && layout) {\n this.constraints = calcRelativeConstraints(layout.layoutBox, dragConstraints);\n }\n else {\n this.constraints = false;\n }\n }\n this.elastic = resolveDragElastic(dragElastic);\n /**\n * If we're outputting to external MotionValues, we want to rebase the measured constraints\n * from viewport-relative to component-relative.\n */\n if (prevConstraints !== this.constraints &&\n layout &&\n this.constraints &&\n !this.hasMutatedConstraints) {\n eachAxis((axis) => {\n if (this.constraints !== false &&\n this.getAxisMotionValue(axis)) {\n this.constraints[axis] = rebaseAxisConstraints(layout.layoutBox[axis], this.constraints[axis]);\n }\n });\n }\n }\n resolveRefConstraints() {\n const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n if (!constraints || !isRefObject(constraints))\n return false;\n const constraintsElement = constraints.current;\n invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\", \"drag-constraints-ref\");\n const { projection } = this.visualElement;\n // TODO\n if (!projection || !projection.layout)\n return false;\n const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n /**\n * If there's an onMeasureDragConstraints listener we call it and\n * if different constraints are returned, set constraints to that\n */\n if (onMeasureDragConstraints) {\n const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n this.hasMutatedConstraints = !!userConstraints;\n if (userConstraints) {\n measuredConstraints = convertBoundingBoxToBox(userConstraints);\n }\n }\n return measuredConstraints;\n }\n startAnimation(velocity) {\n const { drag, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd, } = this.getProps();\n const constraints = this.constraints || {};\n const momentumAnimations = eachAxis((axis) => {\n if (!shouldDrag(axis, drag, this.currentDirection)) {\n return;\n }\n let transition = (constraints && constraints[axis]) || {};\n if (dragSnapToOrigin)\n transition = { min: 0, max: 0 };\n /**\n * Overdamp the boundary spring if `dragElastic` is disabled. There's still a frame\n * of spring animations so we should look into adding a disable spring option to `inertia`.\n * We could do something here where we affect the `bounceStiffness` and `bounceDamping`\n * using the value of `dragElastic`.\n */\n const bounceStiffness = dragElastic ? 200 : 1000000;\n const bounceDamping = dragElastic ? 40 : 10000000;\n const inertia = {\n type: \"inertia\",\n velocity: dragMomentum ? velocity[axis] : 0,\n bounceStiffness,\n bounceDamping,\n timeConstant: 750,\n restDelta: 1,\n restSpeed: 10,\n ...dragTransition,\n ...transition,\n };\n // If we're not animating on an externally-provided `MotionValue` we can use the\n // component's animation controls which will handle interactions with whileHover (etc),\n // otherwise we just have to animate the `MotionValue` itself.\n return this.startAxisValueAnimation(axis, inertia);\n });\n // Run all animations and then resolve the new drag constraints.\n return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n }\n startAxisValueAnimation(axis, transition) {\n const axisValue = this.getAxisMotionValue(axis);\n addValueToWillChange(this.visualElement, axis);\n return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement, false));\n }\n stopAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n }\n pauseAnimation() {\n eachAxis((axis) => this.getAxisMotionValue(axis).animation?.pause());\n }\n getAnimationState(axis) {\n return this.getAxisMotionValue(axis).animation?.state;\n }\n /**\n * Drag works differently depending on which props are provided.\n *\n * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n * - Otherwise, we apply the delta to the x/y motion values.\n */\n getAxisMotionValue(axis) {\n const dragKey = `_drag${axis.toUpperCase()}`;\n const props = this.visualElement.getProps();\n const externalMotionValue = props[dragKey];\n return externalMotionValue\n ? externalMotionValue\n : this.visualElement.getValue(axis, (props.initial\n ? props.initial[axis]\n : undefined) || 0);\n }\n snapToCursor(point) {\n eachAxis((axis) => {\n const { drag } = this.getProps();\n // If we're not dragging this axis, do an early return.\n if (!shouldDrag(axis, drag, this.currentDirection))\n return;\n const { projection } = this.visualElement;\n const axisValue = this.getAxisMotionValue(axis);\n if (projection && projection.layout) {\n const { min, max } = projection.layout.layoutBox[axis];\n /**\n * The layout measurement includes the current transform value,\n * so we need to add it back to get the correct snap position.\n * This fixes an issue where elements with initial coordinates\n * would snap to the wrong position on the first drag.\n */\n const current = axisValue.get() || 0;\n axisValue.set(point[axis] - mixNumber(min, max, 0.5) + current);\n }\n });\n }\n /**\n * When the viewport resizes we want to check if the measured constraints\n * have changed and, if so, reposition the element within those new constraints\n * relative to where it was before the resize.\n */\n scalePositionWithinConstraints() {\n if (!this.visualElement.current)\n return;\n const { drag, dragConstraints } = this.getProps();\n const { projection } = this.visualElement;\n if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n return;\n /**\n * Stop current animations as there can be visual glitching if we try to do\n * this mid-animation\n */\n this.stopAnimation();\n /**\n * Record the relative position of the dragged element relative to the\n * constraints box and save as a progress value.\n */\n const boxProgress = { x: 0, y: 0 };\n eachAxis((axis) => {\n const axisValue = this.getAxisMotionValue(axis);\n if (axisValue && this.constraints !== false) {\n const latest = axisValue.get();\n boxProgress[axis] = calcOrigin({ min: latest, max: latest }, this.constraints[axis]);\n }\n });\n /**\n * Update the layout of this element and resolve the latest drag constraints\n */\n const { transformTemplate } = this.visualElement.getProps();\n this.visualElement.current.style.transform = transformTemplate\n ? transformTemplate({}, \"\")\n : \"none\";\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n this.resolveConstraints();\n /**\n * For each axis, calculate the current progress of the layout axis\n * within the new constraints.\n */\n eachAxis((axis) => {\n if (!shouldDrag(axis, drag, null))\n return;\n /**\n * Calculate a new transform based on the previous box progress\n */\n const axisValue = this.getAxisMotionValue(axis);\n const { min, max } = this.constraints[axis];\n axisValue.set(mixNumber(min, max, boxProgress[axis]));\n });\n }\n addListeners() {\n if (!this.visualElement.current)\n return;\n elementDragControls.set(this.visualElement, this);\n const element = this.visualElement.current;\n /**\n * Attach a pointerdown event listener on this DOM element to initiate drag tracking.\n */\n const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n const { drag, dragListener = true } = this.getProps();\n const target = event.target;\n /**\n * Only block drag if clicking on a keyboard-accessible child element.\n * If the draggable element itself is keyboard-accessible (e.g., motion.button),\n * dragging should still work when clicking directly on it.\n */\n const isClickingKeyboardAccessibleChild = target !== element &&\n isElementKeyboardAccessible(target);\n if (drag && dragListener && !isClickingKeyboardAccessibleChild) {\n this.start(event);\n }\n });\n const measureDragConstraints = () => {\n const { dragConstraints } = this.getProps();\n if (isRefObject(dragConstraints) && dragConstraints.current) {\n this.constraints = this.resolveRefConstraints();\n }\n };\n const { projection } = this.visualElement;\n const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n if (projection && !projection.layout) {\n projection.root && projection.root.updateScroll();\n projection.updateLayout();\n }\n frame.read(measureDragConstraints);\n /**\n * Attach a window resize listener to scale the draggable target within its defined\n * constraints as the window resizes.\n */\n const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n /**\n * If the element's layout changes, calculate the delta and apply that to\n * the drag gesture's origin point.\n */\n const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n if (this.isDragging && hasLayoutChanged) {\n eachAxis((axis) => {\n const motionValue = this.getAxisMotionValue(axis);\n if (!motionValue)\n return;\n this.originPoint[axis] += delta[axis].translate;\n motionValue.set(motionValue.get() + delta[axis].translate);\n });\n this.visualElement.render();\n }\n }));\n return () => {\n stopResizeListener();\n stopPointerListener();\n stopMeasureLayoutListener();\n stopLayoutUpdateListener && stopLayoutUpdateListener();\n };\n }\n getProps() {\n const props = this.visualElement.getProps();\n const { drag = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true, } = props;\n return {\n ...props,\n drag,\n dragDirectionLock,\n dragPropagation,\n dragConstraints,\n dragElastic,\n dragMomentum,\n };\n }\n}\nfunction shouldDrag(direction, drag, currentDirection) {\n return ((drag === true || drag === direction) &&\n (currentDirection === null || currentDirection === direction));\n}\n/**\n * Based on an x/y offset determine the current drag direction. If both axis' offsets are lower\n * than the provided threshold, return `null`.\n *\n * @param offset - The x/y offset from origin.\n * @param lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction.\n */\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n let direction = null;\n if (Math.abs(offset.y) > lockThreshold) {\n direction = \"y\";\n }\n else if (Math.abs(offset.x) > lockThreshold) {\n direction = \"x\";\n }\n return direction;\n}\n\nexport { VisualElementDragControls, elementDragControls };\n//# sourceMappingURL=VisualElementDragControls.mjs.map\n","import { Feature } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n update() {\n const { dragControls } = this.node.getProps();\n const { dragControls: prevDragControls } = this.node.prevProps || {};\n if (dragControls !== prevDragControls) {\n this.removeGroupControls();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n }\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n /**\n * In React 19, during list reorder reconciliation, components may\n * briefly unmount and remount while the drag is still active. If we're\n * actively dragging, we should NOT end the pan session - it will\n * continue tracking pointer events via its window-level listeners.\n *\n * The pan session will be properly cleaned up when:\n * 1. The drag ends naturally (pointerup/pointercancel)\n * 2. The component is truly removed from the DOM\n */\n if (!this.controls.isDragging) {\n this.controls.endPanSession();\n }\n }\n}\n\nexport { DragGesture };\n//# sourceMappingURL=index.mjs.map\n","import { Feature, frame } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { PanSession } from './PanSession.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.postRender(() => handler(event, info));\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: getContextWindow(this.node),\n });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: onPan,\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.postRender(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { globalProjectionState, frame, microtask } from 'motion-dom';\nimport { useContext, Component } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\n\n/**\n * Track whether we've taken any snapshots yet. If not,\n * we can safely skip notification of didUpdate.\n *\n * Difficult to capture in a test but to prevent flickering\n * we must set this to true either on update or unmount.\n * Running `next-env/layout-id` in Safari will show this behaviour if broken.\n */\nlet hasTakenAnySnapshot = false;\nclass MeasureLayoutWithContext extends Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n if (hasTakenAnySnapshot) {\n projection.root.didUpdate();\n }\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n layoutDependency: this.props.layoutDependency,\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layoutDependency, visualElement, drag, isPresent } = this.props;\n const { projection } = visualElement;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (prevProps.layoutDependency !== layoutDependency) {\n projection.setOptions({\n ...projection.options,\n layoutDependency,\n });\n }\n hasTakenAnySnapshot = true;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined ||\n prevProps.isPresent !== isPresent) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { projection } = this.props.visualElement;\n if (projection) {\n projection.root.didUpdate();\n microtask.postRender(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n hasTakenAnySnapshot = true;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\n\nexport { MeasureLayout };\n//# sourceMappingURL=MeasureLayout.mjs.map\n","import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from 'motion-dom';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n//# sourceMappingURL=drag.mjs.map\n","import { Feature, hover, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handleHoverEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n }\n const eventName = (\"onHover\" + lifecycle);\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass HoverGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = hover(current, (_element, startEvent) => {\n handleHoverEvent(this.node, startEvent, \"Start\");\n return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n });\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n//# sourceMappingURL=hover.mjs.map\n","import { Feature, addDomEvent } from 'motion-dom';\nimport { pipe } from 'motion-utils';\n\nclass FocusGesture extends Feature {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n onFocus() {\n let isFocusVisible = false;\n /**\n * If this element doesn't match focus-visible then don't\n * apply whileHover. But, if matches throws that focus-visible\n * is not a valid selector then in that browser outline styles will be applied\n * to the element by default and we want to match that behaviour with whileFocus.\n */\n try {\n isFocusVisible = this.node.current.matches(\":focus-visible\");\n }\n catch (e) {\n isFocusVisible = true;\n }\n if (!isFocusVisible || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", true);\n this.isActive = true;\n }\n onBlur() {\n if (!this.isActive || !this.node.animationState)\n return;\n this.node.animationState.setActive(\"whileFocus\", false);\n this.isActive = false;\n }\n mount() {\n this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n }\n unmount() { }\n}\n\nexport { FocusGesture };\n//# sourceMappingURL=focus.mjs.map\n","import { Feature, press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, { useGlobalTarget: this.node.props.globalTapTarget });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n//# sourceMappingURL=press.mjs.map\n","/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n//# sourceMappingURL=observers.mjs.map\n","import { Feature } from 'motion-dom';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n//# sourceMappingURL=index.mjs.map\n","import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n//# sourceMappingURL=gestures.mjs.map\n","import { HTMLProjectionNode } from 'motion-dom';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n//# sourceMappingURL=layout.mjs.map\n","import { animations } from '../../../motion/features/animations.mjs';\nimport { drag } from '../../../motion/features/drag.mjs';\nimport { gestureAnimations } from '../../../motion/features/gestures.mjs';\nimport { layout } from '../../../motion/features/layout.mjs';\n\nconst featureBundle = {\n ...animations,\n ...gestureAnimations,\n ...drag,\n ...layout,\n};\n\nexport { featureBundle };\n//# sourceMappingURL=feature-bundle.mjs.map\n","import { createDomVisualElement } from '../../dom/create-visual-element.mjs';\nimport { createMotionProxy } from '../create-proxy.mjs';\nimport { featureBundle } from './feature-bundle.mjs';\n\nconst motion = /*@__PURE__*/ createMotionProxy(featureBundle, createDomVisualElement);\n\nexport { motion };\n//# sourceMappingURL=proxy.mjs.map\n","import React, { useEffect } from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport clsx from 'clsx';\n\nimport { IconX } from '@tabler/icons-react';\n\nimport { AnimatePresence, motion, type PanInfo } from 'motion/react';\nimport type { RecipeVariants } from '@vanilla-extract/recipes';\n\nimport {\n closeButton,\n content,\n dragHandle,\n header,\n overlay,\n sheetRecipe,\n titleStyle,\n} from './sheet.css.js';\n\ntype SheetVariants = RecipeVariants<typeof sheetRecipe>;\n\nexport type SheetProps = {\n isOpen: boolean;\n onClose: () => void;\n\n side?: NonNullable<SheetVariants>['side'];\n\n maxWidth?: NonNullable<SheetVariants>['width'];\n\n /**\n * Background color of the sheet.\n */\n color?: string;\n\n /**\n * Text color of the sheet content (including title and close button).\n * Use this to ensure contrast when using a custom background color.\n */\n textColor?: string;\n\n title?: React.ReactNode;\n showHandle?: boolean;\n children: React.ReactNode;\n className?: string;\n};\n\nconst sheetVariants = {\n bottom: {\n hidden: { y: '100%' },\n visible: { y: 0 },\n },\n right: {\n hidden: { x: '100%' },\n visible: { x: 0 },\n },\n left: {\n hidden: { x: '-100%' },\n visible: { x: 0 },\n },\n};\n\nexport const Sheet: React.FC<SheetProps> = ({\n isOpen,\n onClose,\n side = 'right',\n maxWidth = 'full',\n color,\n textColor,\n title,\n showHandle = true,\n children,\n className,\n}) => {\n useEffect(() => {\n const handleEsc = (e: KeyboardEvent) => {\n if (e.key === 'Escape') onClose();\n };\n\n if (isOpen) {\n document.body.style.overflow = 'hidden';\n globalThis.addEventListener('keydown', handleEsc);\n }\n\n return () => {\n globalThis.removeEventListener('keydown', handleEsc);\n };\n }, [isOpen, onClose]);\n\n const unlockScroll = () => {\n document.body.style.overflow = '';\n };\n\n const handleDragEnd = (_: never, info: PanInfo) => {\n if (info.offset.y > 100 || info.velocity.y > 500) {\n onClose();\n }\n };\n\n const appliedWidth = side === 'bottom' ? maxWidth : 'full';\n\n return createPortal(\n <AnimatePresence mode=\"wait\" onExitComplete={unlockScroll}>\n {isOpen && (\n <>\n <motion.div\n className={overlay}\n onClick={onClose}\n aria-hidden=\"true\"\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n transition={{ duration: 0.2 }}\n />\n\n <motion.div\n className={clsx(\n sheetRecipe({ side, width: appliedWidth }),\n className\n )}\n style={{\n backgroundColor: color,\n color: textColor,\n }}\n role=\"dialog\"\n aria-modal=\"true\"\n variants={sheetVariants[side]}\n initial=\"hidden\"\n animate=\"visible\"\n exit=\"hidden\"\n transition={{\n type: 'spring',\n damping: 25,\n stiffness: 300,\n mass: 0.8,\n }}\n drag={side === 'bottom' ? 'y' : false}\n dragConstraints={{ top: 0, bottom: 0 }}\n dragElastic={{ top: 0, bottom: 0.2 }}\n onDragEnd={handleDragEnd}\n >\n {side === 'bottom' && showHandle && <div className={dragHandle} />}\n\n <div className={header}>\n {title ? <h2 className={titleStyle}>{title}</h2> : <div />}\n <button\n className={closeButton}\n onClick={onClose}\n aria-label=\"Close sheet\"\n >\n <IconX size={24} />\n </button>\n </div>\n\n <div className={content}>{children}</div>\n </motion.div>\n </>\n )}\n </AnimatePresence>,\n document.body\n );\n};\n"],"x_google_ignoreList":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299],"mappings":";;;;;;;;;;;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ACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACD7V,MAAM;EACL;EACA;EACA;EACA;CACD8V,UAAU;EACT;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACD3X,MAAM;EACL;EACA;EACA;EACA;CACDN,OAAO;EACN;EACA;EACA;EACA;CACDkY,aAAa;EACZ;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,sBAAsB;EACrB;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACD5Z,SAAS;EACR;EACA;EACA;EACA;CACD6Z,QAAQ;EACP;EACA;EACA;EACA;CACDC,kBAAkB;EACjB;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,gBAAgB;EACf;EACA;EACA;EACA;CACDC,iBAAiB;EAChB;EACA;EACA;EACA;CACDC,mBAAmB;EAClB;EACA;EACA;EACA;CACDC,iBAAiB;EAChB;EACA;EACA;EACA;CACDC,iBAAiB;EAChB;EACA;EACA;EACA;CACDC,cAAc;EACb;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,eAAe;EACd;EACA;EACA;EACA;CACDlc,KAAK;EACJ;EACA;EACA;EACA;CACDmc,WAAW;EACV;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,YAAY;EACX;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,UAAU;EACT;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,aAAa;EACZ;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,KAAK;EACJ;EACA;EACA;EACA;CACDC,MAAM;EACL;EACA;EACA;EACA;CACDC,SAAS;EACR;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,WAAW;EACV;EACA;EACA;EACA;CACDC,QAAQ;EACP;EACA;EACA;EACA;CACDC,OAAO;EACN;EACA;EACA;EACA;CACDnd,OAAO;EACN;EACA;EACA;EACA;CACDod,YAAY;EACX;EACA;EACA;EACA;CACDxd,QAAQ;EACP;EACA;EACA;EACA;CACDyd,aAAa;EACZ;EACA;EACA;EAAE;CAEH;AACD,KAAK,MAAMx2C,OAAO6tC,OAAQvvC,QAAOuJ,OAAOgmC,OAAO7tC,KAAK;AACpD,IAAIy2C,qBAAqBn4C,OAAOuJ,OAAOgmC,OAAO;AAI9C,IAAM6I,eAAep4C,OAAOC,OAAO,KAAK;AACxC,KAAK,MAAM4M,QAAQsrC,mBAAoB,KAAIn4C,OAAOq4C,OAAOF,oBAAoBtrC,KAAK,CAAEurC,cAAaD,mBAAmBtrC,SAASA;AAC7H,IAAMyrC,KAAK;CACVp3C,IAAI,EAAE;CACNU,KAAK,EAAC;CACN;AACD02C,GAAG12C,MAAM,SAAS4D,QAAQ;CACzB,MAAMoX,SAASpX,OAAOgB,MAAM,GAAG,EAAE,CAACgI,aAAa;CAC/C,IAAIpM;CACJ,IAAIm2C;AACJ,SAAQ37B,QAAR;EACC,KAAK;AACJxa,WAAQk2C,GAAG12C,IAAI42C,IAAIhzC,OAAO;AAC1B+yC,WAAQ;AACR;EACD,KAAK;AACJn2C,WAAQk2C,GAAG12C,IAAI62C,IAAIjzC,O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