diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index cf64a52..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -.eslintrc.cjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 49ae23d..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,50 +0,0 @@ -require("@rushstack/eslint-patch/modern-module-resolution"); - -module.exports = { - root: true, - env: { - node: true - }, - parser: '@typescript-eslint/parser', - plugins: ["@typescript-eslint"], - overrides: [ - { - files: ['*.ts', '*.tsx'], - extends: [ - "plugin:vue/vue3-essential", - "@vue/eslint-config-typescript/recommended", - "@vue/eslint-config-prettier" - ], - parserOptions: { - ecmaVersion: 2020, - project: "./tsconfig.json" - }, - } - ], - ignorePatterns: ["src/lib"], - rules: { - "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", - "vue/script-setup-uses-vars": "warn", - "vue/no-mutating-props": "off", - "vue/multi-word-component-names": "off", - "@typescript-eslint/strict-boolean-expressions": [ - "error", - { - allowNullableObject: true, - allowNullableBoolean: true - } - ], - "eqeqeq": [ - "error", - "always", - { - "null": "never" - } - ] - }, - globals: { - defineProps: "readonly", - defineEmits: "readonly" - } -}; diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml deleted file mode 100644 index 6b767f3..0000000 --- a/.forgejo/workflows/deploy.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build and Deploy -on: - push: - branches: - - 'main' - workflow_dispatch: -jobs: - build-and-deploy: - if: github.repository != 'profectus-engine/Profectus' # Don't build placeholder mod on main repo - runs-on: docker - container: - image: node:21-bullseye - steps: - - name: Setup RSync - run: | - apt-get update - apt-get install -y rsync - - - name: Checkout 🛎️ - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. - run: | - npm ci - npm run build - - - name: Deploy 🚀 - uses: https://github.com/JamesIves/github-pages-deploy-action@v4.2.5 - with: - branch: pages # The branch the action should deploy to. - folder: dist # The folder the action should deploy. diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml deleted file mode 100644 index 67e39a8..0000000 --- a/.forgejo/workflows/test.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Run Tests -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] -jobs: - test: - runs-on: docker - container: - image: node:21-bullseye - - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - run: npm ci - - run: npm run build --if-present - - run: npm test - - run: npm run lint diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 8293b9e..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build and Deploy -on: - push: - branches: - - 'main' - workflow_dispatch: -jobs: - build-and-deploy: - if: github.repository != 'profectus-engine/Profectus' # Don't build placeholder mod on main repo - runs-on: ubuntu-latest - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. - run: | - npm ci - npm run build - - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4.2.5 - with: - branch: gh-pages # The branch the action should deploy to. - folder: dist # The folder the action should deploy. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 3db2cb7..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Run Tests -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Use Node.js 21.x - uses: actions/setup-node@v3 - with: - node-version: 21.x - - run: npm ci - - run: npm run build --if-present - - run: npm test - - run: npm run lint diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 403adbc..0000000 --- a/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -.DS_Store -node_modules -/dist - - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 008a2f9..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "arrowParens": "avoid", - "endOfLine": "auto", - "printWidth": 100, - "tabWidth": 4, - "trailingComma": "none" -} diff --git a/.replit b/.replit deleted file mode 100644 index 89785c6..0000000 --- a/.replit +++ /dev/null @@ -1,13 +0,0 @@ -run = "npm install; npm run dev" - -[packager] -language = "nodejs" - [packager.features] - packageSearch = true - guessImports = false - -[languages.javascript] -pattern = "**/{*.js,*.jsx,*.ts,*.tsx}" - - [languages.javascript.languageServer] - start = [ "typescript-language-server", "--stdio" ] diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 28c8581..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "pwa-node", - "request": "launch", - "name": "Debug Current Test File", - "autoAttachChildProcesses": true, - "skipFiles": [ - "/**", - "**/node_modules/**" - ], - "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs", - "args": [ - "run", - "${relativeFile}" - ], - "smartStep": true, - "console": "integratedTerminal" - } - ] -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 65fe597..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "vitest.commandLine": "npx vitest", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" - }, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "git.ignoreLimitWarning": true, - "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "typescript.tsdk": "node_modules/typescript/lib" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 3f49192..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,495 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## [0.7.0] - 2024-12-31 -### Additions -- Added modal to take a mental health break (can be disabled via projInfo.json) -- Added `ConversionType` symbol -- Added `isType` function that uses a type symbol to check -- Added `MaybeGetter` utility type for something that may be a getter function or a static value (but not a ref) - -### Changes -- **BREAKING** Replaced Board feature with generic Board system that works with SVG and DOM elements -- **BREAKING** Rewrote how features are written, simplifying them greatly -- **BREAKING** Replaced decorators with mixins and wrappers -- **BREAKING** Moved modals to `src/components/modals` -- **BREAKING** Updated a very large amount of dependencies, making any necessary adjustments -- **BREAKING** Removed Grid component -- **BREAKING** `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column -- **BREAKING** Moved all features that use the clickable component into the clickable folder -- **BREAKING** Removed small property from clickable, since its a single css rule (min-height: unset) -- **BREAKING** Removed `setDefault`, just use `??=` -- **BREAKING** Made Achievement.vue use a Renderable for the display. The object of components can still be passed to createAchievement -- **BREAKING** Made Challenge.vue use a Renderable for the display. The object of components can still be passed to createChallenge -- Upgrades now use the clickable component - -### Fixes -- Hotkey descriptions were not being wrapped in `unref` -- Links wouldn't check if the end node existed when determining valid links -- `forceHideGoBack` was not being respected -- Saves manager not being imported in addiction warning component - -Contributors: thepaperpilot - -## [0.6.2] - 2024-04-01 -### Added -- Export save button in error boundaries -- isRendered utility function -- Automatic galaxy.click cloud saves support -- Support for null and undefined in persistent refs -### Changes -- round, floor, ceil, trunc, and add now invert as no-ops -- "The Paper Pilot Community" renamed to "Profectus & Friends" -- Updated CI etc. to work with Forgejo -- Improved modifier typing -- Rename `printFormula` to `Formula.stringify` -### Fixed -- Hotkeys not working correctly with most combinations of modifiers -- Reset button using `currentAt` when not gaining -- Formulas not using modifiers that are disabled initially -- branchedResetPropagation logic being incorrect -- Fixed default elementsd in the main layer not updating Context when being added or removed -- Board links props not working in camelCase -- Board links absorbing pointer events -- Thrown errors not appearing in console -- Disabled elements would eat mouse events -- Fixed cost requirement without formula counting as being able to afford infinite purchases rather than just one -- Pinnable tooltips causing innocuous console error -- Bars with direction as "Left" wouldn't appear correctly -### Documentation -- Clarified expected progress values for board nodes -- Added CONTRIBUTING.md and enforce eslint on all PRs -### Tests -- Update formula test cases -- Tree reset propagation - -Contributors: thepaperpilot, escapee, nif - -## [0.6.1] - 2023-05-17 -### Added -- Error boundaries around each layer, and errors now display on the page when in development -- Utility for creating requirement based on whether a conversion has met a requirement -### Changed -- **BREAKING** Formulas/requirements refactor - - spendResources renamed to cumulativeCost - - summedPurchases renamed to directSum - - calculateMaxAffordable now takes optional 'maxBulkAmount' parameter - - cost requirements now pass cumulativeCost, maxBulkAmount, and directSum to calculateMaxAffordable - - Non-integrable and non-invertible formulas will now work in more situations - - Repeatable.maximize is removed - - Challenge.maximize is removed -- Formulas have better typing information now -- Integrate functions now log errors if the variable input is not integrable -- Cyclical proxies now throw errors -- createFormulaPreview is now a JSX function -- Tree nodes are not automatically capitalized anymore -- upgrade.canPurchase now returns false if the upgrade is already bought -- TPS display is simplified and more performant now -### Fixed -- Actions could not be constructed -- Progress bar on actions was misaligned -- Many different issues the Board features (and many changes/improvements) -- Calculating max affordable could sometimes infinite loop -- Non-integrable formulas could cause errors in cost requirements -- estimateTime would not show "never" when production is 0 -- isInvertible and isIntegrable now properly handle nested formulas -- Repeatables' amount display would show the literal text "joinJSX" -- Repeatables would not buy max properly -- Reset buttons were showing wrong "currentAt" vs "nextAt" -- Step-wise formulas not updating their value correctly -- Bonus amount decorator now checks for `amount` property in the post construct callback -### Documentation -- Various typos fixed and a few sections made more thorough - -## [0.6.0] - 2023-04-20 -### Added -- **BREAKING** New requirements system - - Replaces many features' existing requirements with new generic form -- **BREAKING** Formulas, which can be used to calculate buy max for you - - Requirements can use them so repeatables and challenges can be "buy max" without any extra effort - - Conversions now use formulas instead of the old scaling functions system, allowing for arbitrary functions that are much easier to follow - - Modifiers have a new getFormula property -- Feature decorators, which simplify the process of adding extra values to features -- Action feature, which is a clickable with a cooldown -- ETA util (calculates time until a specific amount of a resource, based on its current gain rate) -- createCollapsibleAchievements util -- deleteLowerSaves util -- Minimized layers can now display a component -- submitOnBlur property to Text fields -- showPopups property to achievements -- Mouse/touch events to more onClick listeners -- Example hotkey to starting layer -- Schema for projInfo.json -### Changes -- **BREAKING** Buyables renamed to Repeatables - - Renamed purchaseLimit to limit - - Renamed buyMax to maximize - - Added initialAmount property -- **BREAKING** Persistent refs no longer have redundancies in save object - - Requires referencing persistent refs either through a proxy or by wrapping in `noPersist()` -- **BREAKING** Visibility properties can now take booleans - - Removed showIf util -- **BREAKING** Lazy proxies and options functions now pass the base object in as `this` as well as the first parameter. -- Tweaked settings display -- setupPassiveGeneration will no longer lower the resource -- displayResource now floors resource amounts -- Tweaked modifier displays, incl showing negative modifiers in red -- Hotkeys now appear on key graphic -- Mofifier sections now accept computable strings for title and subtitle -- Every VueFeature's `[Component]` property is now typed as GenericComponent -- Make errors throw objects instead of strings -- Updated b_e -### Fixed -- NaN detection stopped working - - Now specifically only checks persistent refs -- trackTotal would increase the total when loading the save -- PWAs wouldn't show updates -- Board feature no longer working at all -- Some discord links didn't open in new tab -- Adjacent grid cells wouldn't merge -- When fixing old saves, the modVersion would not be updated -- Default layer would display `Dev Speed: 0x` when paused -- Fixed hotkeys not working with shift + numbers -- Fixed console errors about deleted persistent refs not being included in the layer object -- Modifiers wouldn't display small numbers -- Conversions' addSoftcap wouldn't affect currentAt or nextAt -- MainDisplay not respecting style and classes props -- Tabs could sometimes not update correctly -- offlineTime not capping properly -- Tooltips being user-selectable -- Pinnable tooltips causing stack overflow -- Workflows not working with submodules -- Various minor typing issues -### Removed -- **BREAKING** Removed milestones (achievements now have small and large displays) -### Documented -- every single feature -- formulas -- requirements -### Tests -- conversions -- formulas -- modifiers -- requirements - -Contributors: thepaperpilot, escapee, adsaf, ducdat - -## [0.5.2] - 2022-08-22 -### Added -- onLoad event -- fontsLoaded event -- Dismissable notification you can add to VueFeatures when they're interactable -- Option on exponential modifiers to better support numbers less than 1 -- Utility function to track if a VueFeature is being hovered over -- Utility to unwrap Resources that may be in refs -- Utility to join JSX elements together with a joiner -- Type for converting readonly string arrays into a union of string values -### Changed -- The main and prestige layers no longer use arrow functions for their options functions -- Modifiers are now lazily loaded -- Collapsible modifier sections are now lazily loaded -- Converted several refs into shallow refs for improved performance -- Roboto Mono and Material Icons fonts are now bundled instead of downloaded from the web, so they work with PWAs -- Node bounds are now updated whenever that context has a node removed or added, fixing many issues with incorrect bounds -### Fixed -- trackResetTime not updating -- colorText prepending $s -- Default .replit config was broken -- Pixi.js canvases no longer rendering -- Node positions being shifted on initial page load due to fonts loading on firefox -- Modifier sections looked wrong if the topmost section wasn't visible - -## [0.5.1] - 2022-07-17 -### Added -- Notif component that displays a jumping exclamation point -- showAmount boolean to buyable displays -- Tab families now take option to style the tab buttons container -- Utility for creating text of a certain color -### Changed -- Improved typing of player.layers -- Improved typing of createCollapsibleModifierSections's parameters -- Made Particles vue component typed as GenericComponent due to issues generating documentation -- Minimized how much of pixi.js is included in the built site -- Split bundles into smaller bundles for faster loading -- Updated TypeScript -- Descriptions on buyables are now optional -- Improved tooltips performance -- Improved how MainDisplay displays effect strings -- MainDisplays are now sticky -- processComputable now binds uncached functions as well -### Fixed -- trackResetTime stopped working once its layer was removed and re-added -- Runtime compilation was disabled in vite config -- Websites had to be hosted on root directory to have assets load correctly -- Tooltips' persistent ref was lazily created -- In some situations Links would not update its bounding rect -- Achievements' and milestones' onComplete callbacks were firing on load -- Processed JSXFunctions were not considered coercable components by isCoercableComponent -- Error from passing in overlay text to bar component -### Removed -- lodash.cloneDeep dependency, which hasn't been used in awhile -- Some unused configs from vue-cli-service -### Documented -- Update vitepress, and updated the content of many pages -- Rest of /game -- Rest of /data -- layers.tsx -- Any type augmentations to Window object -- Various cleanup of docs comments -- Fixed doc generation being broken from switch to vite -### Tests -- Switched from jest to vitest - -## [0.5.0] - 2022-06-27 -### Added -- Projects now cache for offline play, and show notification when an update is available -- Projects can now be "installed" as a Progressive Web App -- Conversions can now be given a custom spend function, which defaults to setting the base resource amount to 0 -- Components for displaying Floor and Square Root symbols -### Changed -- **BREAKING** Several projInfo properties now default to empty strings, to prevent things like reusing project IDs -- **BREAKING** Replaced vue-cli-service with vite (should not break most projects) -- Updated dependencies -- Made all type-only imports explicit -- setupPassiveGeneration now works properly on independent conversions -- setupPassiveGeneration now takes an option cap it can't go over -- Improved typing for PlayerData.layers -- Options Functions have an improved `this` type - it now includes the options themselves -- Removed v-show being used in data/common.tsx -### Tests -- Implement Jest, and running tests automatically on push -- Tests written for utils/common.ts - -## [0.4.2] - 2022-05-23 -### Added -- costModifier to conversions -- onConvert(amountGained) to conversions -### Changed -- **BREAKING** getFirstFeature has a new signature, that will lead to improved performance -- trackResetTime is now intended to be used with a reset button -- regularFormat handles small numbers better -- Slider tooltips now appear below the slider, not above -- Node's mutation observers now ignore attributes. This shouldn't have issues with links/particle effect positions, but prevents a _lot_ of unnecessary node updates -- OptionsFunc no longer takes its S type parameter, as it was unnecessary. Layer options functions now have proper `this` typing - - Several functions have been updated to take BaseLayer instead of GenericLayer, to allow them to work with `this` inside layer options functions -### Fixed -- Particle effects and links would not always appear on reload or when switching layers -- Particle effects and links no longer appear in wrong spot after nodes are added or removed -- Collapsibles having wrong widths on the button and collapsed content sections -- Additive modifiers with negative values appeared like "+-" instead of "-" -- Buyables' onPurchase was not being called -- Reset button would display "Next:" if the buyMax property is a ref - -## [0.4.1] - 2022-05-10 -### Added -- findFeatures can now accept multiple feature types -- excludeFeatures can now be used to find features with a feature type _blacklist_ -- All the icons in the saves manager now have tooltips -### Changed -- All touch events that can be passive now are -- Layers' style and classes attributes are now applied to the tab element rather than the layer-tab -- Saving now always uses lz-string, and saveEncoding has been renamed to exportEncoding - - The property will now only affect exports, and defaults to base64 so exports can be shared in more places without issues -- Buyables can now have their onClick/purchase function overwritten -### Fixed -- Arrays in player were not being wrapped in proxies for things like NaN detection -- Error when switching between saves with different layers -- Links would sometimes error from trying to use nodes that were removed earlier that frame -- createModifierSection would require modifiers to have revert and enabled properties despite not using them -- Tab buttons would not use the style property if it was a ref -- Typings on the Board vue component were incorrect -- Offline time would always show, if offlineLimit is set to 0 -- Buyables will now call onPurchase() when cost and/or resource were not set -- Presets dropdown wouldn't deselect the option after creating the save -### Documented -- feature.ts - -## [0.4.0] - 2022-05-01 -### Added -- Saves can now be encoded in two new options: plaintext and lz compressed, determined by a new "saveEncoding" property in projInfo - - Saves will be loaded in whatever format is detected. The setting only applies when writing saves -- createModifierSection has new parameter to override the label used for the base value -- createCollapsibleModifierSections utility function to display `createModifierSection`s in collapsible forms -### Fixed -- Saves manager would not clear the current save from its cache when switching saves, leading to progress loss if flipping between saves -- Layer.minWidth being ignored -- Separators between tabs (player.tabs) would not extend to the bottom of the screen when scrolling -- Tree nodes not being clicked on their edges -### Changed -- **BREAKING** No features extend persistent anymore - - This will break ALL existing saves that aren't manually dealt with in fixOldSave - - Affected features: Achievement, Buyable, Grid, Infobox, Milestone, TabFamily, and Upgrade - - Affected features will now have a property within them where the persistent ref is stored. This means new persistent refs can now be safely added to these features -- Features with option functions with 0 required properties now don't require passing in an options function -- Improved the look of the goBack and minimize buttons (and made them more consistent with each other) -- Newly created saves are immediately switched to -- TooltipDirection and Direction have been merged into one enum -- Made layers shallow reactive, so it works better with dynamic layers -- Modifier functions all have more explicit types now -- Scaling functions take computables instead of processed computables -### Removed -- Unused tsParticles.d.ts file -### Documented -- modifiers.ts -- conversions.ts - -## [0.3.3] - 2022-04-24 -### Fixed -- Spacing between rows in Tree components -- Computed style attributes on tooltips were ignored -- Tooltips could cause infinite loops due to cyclical dependencies - -## [0.3.2] - 2022-04-23 -### Fixed -- Clickables and several other elements would not register clicks sometimes, if the display is updating rapidly -- createLayerTreeNode wasn't using display option correctly - -## [0.3.1] - 2022-04-23 -### Added -- Render utility methods that always return JSX Elements -### Changed -- **BREAKING** Tooltips overhaul - - Tree Nodes no longer have tooltips related properties - - Tooltips can now be added to any feature with a Vue component using the `addTooltip` function - - Any tooltip can be made pinnable by setting pinnable to true in the addTooltip options, or by passing a `Ref` to a Tooltip component - - Pinned tooltips have an icon to represent that. It can be disabled by setting the theme's `showPin` property to false -- Modifiers are now their own features rather than a part of conversions - - Including utilities to display the current state of all the modifiers -- TabFamilies' options function is now optional -- Layer.minWidth can take string values - - If parseable into a number, it'll have "px" appended. Otherwise it'll be un-processed -- TreeNodes now have Vue components attached to them -- `createResourceTooltip` now shows the resource name -- Made classic and aqua theme's `feature-foreground` color dark rather than light - -## [0.3.0] - 2022-04-10 -### Added -- conversion.currentAt [#4](https://github.com/profectus-engine/Profectus/pull/4) -- OptionsFunc utility type, improving type inferencing in feature types -- minimumGain property to ResetButton, defaulting to 1 -### Changed -- **BREAKING** Major persistence rework - - Removed makePersistent - - Removed old Persistent, and renamed PersistentRef to Persistent - - createLazyProxy now takes optional base object (replacing use cases for makePersistent) - - Added warnings when creating refs outside a layer - - Added warnings when persistent refs aren't included in their layer object -- **BREAKING** createLayer now takes id as the first param, rather than inside the option function -- resetButton now shows "Req:" instead of "Next:" when conversion.buyMax is false -- Conversion nextAt and currentAt now cap at 0 after reverting modifier -### Fixed -- Independent conversion gain calculation [#4](https://github.com/profectus-engine/Profectus/pull/4) -- Persistence issue when loading layer dynamically -- resetButton's gain and requirement display being incorrect when conversion.buyMax is false -- Independent conversions with buyMax false capping incorrectly - -## [0.2.2] - 2022-04-01 -Unironically posting an update on April Fool's Day ;) -### Changed -- **BREAKING** Replaced tsparticles with pixi-emitter. Different options, and behaves differently. -- Print key and value in lazy proxy's setter message -- Update bounding boxes after web fonts load in -### Removed -- safff.txt - -## [0.2.1] - 2022-03-29 -### Changed -- **BREAKING** Reworked conversion.modifyGainAmount into conversion.gainModifier, with several utility functions. This makes nextAt accurate with modified gain -### Fixed -- Made overlay nav not overlap leftmost layer - -## [0.2.0] - 2022-03-27 -### Added -- Particles feature -- Collapsible layout component -- Utility function for splitting off the first from the list of features that meets a given filter -### Changed -- **BREAKING** Reworked most of the code from Links into a generic Context component that manages the positions of features in the DOM -- Updated vue-cli and TS dependencies -- Challenges cannot be started when maxed, and `canStart` now defaults to `true` -- onClick listeners on various features now get passed a MouseEvent or TouchEvent when possible -- Minor style changes to Milestones, most notably removing min-height -### Fixed -- Buyables didn't support CoercableComponents for displays -- TreeNodes would have a double glow effect on hover -### Removed -- Unused mousemove listener attached to App.vue - -## [0.1.4] - 2022-03-13 -### Added -- You can now access this.on() from within a createLayer function (and other BaseLayer properties) -- Support for passing non-persistent refs to createResource -- dontMerge class to allow features to ignore mergeAdjacent -### Fixed -- Clickables would not merge adjacent -- onClick and onHold functions would not be bound to their object when being called -- Refs passed to a components style prop would be ignored -- Fixed z-index issue when stopping hovering over features with .can class - -## [0.1.3] - 2022-03-11 -### Added -- Milestone.complete -- Challenge.complete -- setupAutoClick function to run a clickable's onClick every tick -- setupAutoComplete function to attempt to complete a challenge every tick -- isAnyChallengeActive function to query if any challenge from a given list is active -- Hotkeys now appear in info modal, if any exist -- projInfo.json now includes a "enablePausing" option that can be used to prevent the player from pausing the game -- Added a "gameWon" global event -### Changed -- **BREAKING** Buyables now default to an infinite purchase limit -- **BREAKING** devSpeed, playedTime, offlineTime, and diff now use numbers instead of Decimals -- **BREAKING** Achievements and milestones now use watchEffect to check for completion, instead of polling each tick. shouldEarn properties now only accept functions -- Cached more decimal values for optimization -### Fixed -- Many types not being exported -- setupHoldToClick wouldn't stop clicking after a component is unmounted -- Header's banner would not have correct width -### Removed -- **BREAKING** Removed setupAutoReset -### Documentation -- Support for documentation generation using typedoc -- Hide main layer from docs -- Hide prestige layer from docs -- Use stub declaration files for libs that don't provide types (vue-panzoom and vue-textarea-autosize) - -## [0.1.2] - 2022-03-05 -### Changed -- **BREAKING** Removed "@" path alias, and used baseUrl instead -- **BREAKING** Renamed createExponentialScaling to createPolynomialScaling and removed coefficient parameter -- Changed options passed into createLayerTreeNode; now allows overriding display -- App component is no longer cloned before being passed to `createApp` -- Changed TS version from ^4.5.4 to ~4.5.5 -### Fixed -- Document title is set as soon as possible now - -## [0.1.1] - 2022-03-02 -### Added -- Configuration for Glitch projects -- Configuration for Replit projects -- Hide versionTitle if blank -### Changed -- **BREAKING** Renamed modInfo.json -> projInfo.json -- **BREAKING** Renamed mod.tsx -> projEntry.tsx -- Improved performance of branch drawing code -- Improved performance of formatting numbers -- Changed some projInfo default values to empty strings -- Renamed projInfo.allowSmall -> projInfo.defaultShowSmall -### Fixed -- Spacing on discord logo in NaN screen -- Some files accessing old location for persistence code -- Fixed lint-staged not being listed in devDependencies -- Branch locations were not accurate after scrolling -- Saves Manager displayed "default body" while closing -- Reset buttons activating when held down when canClick is false -- Lifting up on auto clickable elements not stopping the auto clicker -### Removed -- Removed Theme.stackedInfoboxes -- Removed Theme.showSingleTab - -## [0.1.0] - Initial Release diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 4fc4ea1..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,31 +0,0 @@ -# Contributing to Profectus - -Thank you for considering contributing to Profectus! We appreciate your interest in improving our project. Please take a moment to review the following guidelines to streamline the contribution process. - -## Getting Started - -For detailed instructions on setting up local development environment, please refer to the [Setup Guide](https://moddingtree.com/guide/getting-started/setup). - -## Issue Reporting - -If you encounter a bug or have a suggestion for improvement, please open an issue on Incremental Social. Provide as much detail as possible, including an example repo or steps to reproduce the issue if applicable. - -## Contributing - -Make sure to open your PR on [Incremental Social](https://code.incremental.social/profectus/Profectus) - the GitHub repo is just a mirror! - -### Code Review - -All PRs must be reviewed and approved by at least one of the project maintainers before merging. Please be patient during the review process and be open to feedback. - -### Testing - -Ensure that your changes pass all existing tests and, if applicable, add new tests to cover the changes you've made. Run `npm run test` to run all the tests. - -### Code Style - -We use ESLint and Prettier to enforce consistent code style throughout the project. Before submitting a PR, run `npm run lint:fix` to automatically fix any linting issues. - -## License - -By contributing to Profectus, you agree that your contributions will be licensed under the project's [LICENSE](./LICENSE). diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 01c0262..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Anthony Lawn - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Logo.png b/Logo.png new file mode 100644 index 0000000..53973a7 Binary files /dev/null and b/Logo.png differ diff --git a/README.md b/README.md deleted file mode 100644 index 5f8c741..0000000 --- a/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# Profectus - -A game engine that grows with you - -[![Run on Repl.it](https://repl.it/badge/github/profectus-engine/Profectus)](https://repl.it/github/profectus-engine/Profectus) - -[Read the docs](https://moddingtree.com) - -## Project setup -``` -npm install -``` - -### Hosts dev server and hot-reloads modules as they're changed -``` -npm start -``` - -### Compiles and minifies for production -``` -npm run build -``` - -### Hosts the production build -``` -npm run preview -``` - -### Runs the tests using vite-jest -``` -npm run test -``` diff --git a/public/pwa-192x192.png b/android-chrome-192x192.png similarity index 100% rename from public/pwa-192x192.png rename to android-chrome-192x192.png diff --git a/public/pwa-512x512.png b/android-chrome-512x512.png similarity index 100% rename from public/pwa-512x512.png rename to android-chrome-512x512.png diff --git a/public/apple-touch-icon.png b/apple-touch-icon.png similarity index 100% rename from public/apple-touch-icon.png rename to apple-touch-icon.png diff --git a/css/app.ac3eef8b.css b/css/app.ac3eef8b.css new file mode 100644 index 0000000..bf64cd7 --- /dev/null +++ b/css/app.ac3eef8b.css @@ -0,0 +1 @@ +.resize-listener[data-v-5bf46048],svg[data-v-5bf46048]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5);transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{transform:scale(1.1)}.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature,.row.mergeAdjacent>.tooltip-container>.feature{margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature{border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature{border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature{border-radius:var(--border-radius)}.col.mergeAdjacent .feature{margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:first-child:last-child{border-radius:var(--border-radius)}.layer-container[data-v-666ada59]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-666ada59]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-666ada59]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-666ada59]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:0;padding-top:55px;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-666ada59]{margin:0;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-666ada59]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-666ada59]{padding-bottom:0}.modal-body .layer-tab[data-v-666ada59]:not(.hasSubtabs){padding-top:0}.minimize[data-v-666ada59]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;width:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;padding:0;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-666ada59]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-666ada59]{position:absolute;top:0;left:20px;background-color:transparent;border:1px solid transparent;color:var(--foreground);font-size:40px;cursor:pointer;line-height:40px;z-index:7}.goBack[data-v-666ada59]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-3303e3d5]{margin:10px 0;padding-left:18px}summary[data-v-3303e3d5]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-3303e3d5]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-3303e3d5]{margin:8px 0}li[data-v-3303e3d5]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-3303e3d5]:before{content:"Feature";background:var(--accent1)}.fix[data-v-3303e3d5]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-3303e3d5]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-3303e3d5]:before{content:"Breaking";background:var(--danger)}.info-modal-header[data-v-0b3812f2]{display:flex;margin:-20px;margin-bottom:0;background:var(--raised-background);align-items:center}.info-modal-header [data-v-0b3812f2]{margin:0}.info-modal-logo[data-v-0b3812f2]{height:4em;width:4em}.info-modal-title[data-v-0b3812f2]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-0b3812f2]{display:flex;align-items:center}.info-modal-discord[data-v-0b3812f2]{margin:0;margin-right:4px}.field{display:flex;position:relative;min-height:2em;margin:10px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.field[data-v-7db643c6]{cursor:pointer}input[data-v-7db643c6]{-webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:none}span[data-v-7db643c6]{width:100%;position:relative}input+span[data-v-7db643c6]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-7db643c6]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transition:background-color .2s,transform .2s}input:checked+span[data-v-7db643c6]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-7db643c6]:after{background-color:var(--link);transform:translateX(16px)}input:active+span[data-v-7db643c6]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-7db643c6]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-7db643c6]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-7db643c6]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-7db643c6]:before{background-color:var(--link);opacity:.6}.icon.delete{display:flex;justify-content:center;align-items:center;padding:0;margin:0;border:none;background:none;height:8px;width:8px;min-height:8px;min-width:8px;max-height:8px;max-width:8px;cursor:pointer}.icon.arrow-downward{color:#999;border-style:solid;border-width:4px 4px 0;border-color:#999 transparent transparent;content:"";transition:transform .2s linear;cursor:pointer}.icon.arrow-downward.active{transform:rotate(180deg)}.vue-select{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;width:150px;border-radius:4px;border:1px solid #999;box-sizing:border-box;outline:none}.vue-select[aria-disabled=true]{background-color:#efefef}.vue-select[aria-disabled=true] *,.vue-select[aria-disabled=true] input{cursor:not-allowed}.vue-select-header{display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-header .icon.arrow-downward,.vue-select-header .icon.loading{margin-right:4px}.vue-tags{display:flex;flex-wrap:wrap;margin:0;padding:2px;min-height:calc(1rem + 4px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vue-tags.collapsed{flex-wrap:nowrap;overflow:auto}.vue-tag{display:none;align-items:center;justify-content:center;list-style-type:none;border-radius:4px;background-color:#999;padding:0 4px;margin:2px;min-height:1rem;font-size:.8rem}.vue-tag span{margin-right:4px}.vue-tag.selected{display:flex;align-items:center;justify-content:center;background-color:#999;border-radius:4px;padding:0 4px;font-size:.8rem}.vue-tags[data-removable=false] .vue-tag.selected img:hover{cursor:not-allowed}.vue-select-input-wrapper{position:relative;display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-input-wrapper .icon.loading{margin-right:4px}.vue-input{display:inline-flex;align-items:center;border-radius:4px;border:none;outline:none;max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding:4px}.vue-select[data-is-focusing=false][aria-disabled=false] .vue-input input,input[readonly]{cursor:default}.vue-input input{border:none;outline:none;width:100%;min-width:0;font-size:.8rem;padding:0}.vue-input input[disabled]{background-color:#efefef}.vue-input input[readonly],.vue-select-header .vue-input input[disabled]{background-color:unset}.vue-dropdown{display:none;position:absolute;background-color:#fff;z-index:1;overflow-y:auto;width:100%;min-width:0;margin:0;padding:0;left:-1px;box-sizing:content-box;border:1px solid #999;list-style-type:none}.vue-select[aria-expanded=true] .vue-dropdown{display:unset}.vue-dropdown[data-visible-length="0"]{border:none}.vue-dropdown-item{list-style-type:none;padding:4px;cursor:pointer;min-height:1rem}.vue-dropdown-item.highlighted{background-color:#41b883}.vue-dropdown-item.disabled{background-color:#efefef;cursor:not-allowed}.vue-dropdown-item.selected{background-color:#f3f3f3}.vue-dropdown-item.selected.highlighted{background-color:#ff6a6a}.vue-dropdown[data-addable=false][data-multiple=true] .vue-dropdown-item:not(.selected):hover,.vue-dropdown[data-removable=false] .vue-dropdown-item.selected:hover{cursor:not-allowed}.icon.loading{display:inline-block;position:relative;width:8px;min-width:8px;height:8px;min-height:8px}.icon.loading div{box-sizing:border-box;display:block;position:absolute;border:1px solid #999;width:8px;height:8px;border-radius:50%;-webkit-animation:loading 1s cubic-bezier(.5,0,.5,1) infinite;animation:loading 1s cubic-bezier(.5,0,.5,1) infinite;border-color:#999 transparent transparent transparent}.icon.loading div:first-child{-webkit-animation-delay:-.08s;animation-delay:-.08s}.icon.loading div:nth-child(2){-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.inline-flex{display:inline-flex}.vue-select[aria-expanded=true].direction-bottom{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-select[aria-expanded=true].direction-top{border-top-left-radius:0;border-top-right-radius:0}.vue-select.direction-top .vue-dropdown{bottom:100%;border-top-left-radius:3px;border-top-right-radius:3px}.vue-select.direction-bottom .vue-dropdown{top:100%;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-dropdown,.vue-select{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--feature-foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.highlighted.selected,.vue-dropdown-item.selected{background-color:var(--bought)}.vue-input input::-moz-placeholder{color:var(--link)}.vue-input input:-ms-input-placeholder{color:var(--link)}.vue-input input::placeholder{color:var(--link)}.tooltip-container[data-v-2ee899a0]{position:relative;--xoffset:0px;--yoffset:0px}.tooltip[data-v-2ee899a0],.tooltip[data-v-2ee899a0]:after{pointer-events:none;position:absolute}.tooltip[data-v-2ee899a0]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translateX(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.shown[data-v-2ee899a0]{z-index:10}.fade-enter-from[data-v-2ee899a0],.fade-leave-to[data-v-2ee899a0]{opacity:0}.tooltip[data-v-2ee899a0]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.side-nodes .tooltip[data-v-2ee899a0]:not(.right):not(.bottom):not(.top),.tooltip.left[data-v-2ee899a0]{bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.side-nodes .tooltip[data-v-2ee899a0]:not(.right):not(.bottom):not(.top):after,.tooltip.left[data-v-2ee899a0]:after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-2ee899a0]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-2ee899a0]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-2ee899a0]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translateX(-50%)}.tooltip.bottom[data-v-2ee899a0]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.header[data-v-54e795a4]{margin-bottom:-10px}[data-v-54e795a4] .tooltip-container{display:inline;margin-left:5px}form[data-v-540fa62c]{margin:0;width:100%}.field>[data-v-540fa62c]{margin:0}input[data-v-540fa62c]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-540fa62c]{width:100%}.container[data-v-bf59fca4]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-bf59fca4]{font-size:1em}.container>[data-v-bf59fca4]{margin:0 4px}.button.danger,.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-5bbcedd3]{position:relative}.feedback[data-v-5bbcedd3]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"✔";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px rgba(111,148,182,0);text-shadow:none}.feedback.left[data-v-5bbcedd3]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-5bbcedd3]:after{-webkit-animation:feedback-5bbcedd3 .5s ease-out forwards;animation:feedback-5bbcedd3 .5s ease-out forwards}@-webkit-keyframes feedback-5bbcedd3{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}@keyframes feedback-5bbcedd3{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-4c4580ca]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-4c4580ca]{border-color:var(--bought)}.open[data-v-4c4580ca]{display:inline;margin:0;padding-left:0}.handle[data-v-4c4580ca]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-4c4580ca]{margin:0;flex-grow:1;margin-right:80px}.error[data-v-4c4580ca]{font-size:.8em;color:var(--danger)}.save-version[data-v-4c4580ca]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-4c4580ca]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-4c4580ca]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.field .field-buttons[data-v-199ffea0],.field .field-title[data-v-199ffea0],.field form[data-v-199ffea0],.save .field{margin:0}.field-buttons[data-v-199ffea0]{display:flex}.field-buttons .field[data-v-199ffea0]{margin:0;margin-left:8px}.modal-footer[data-v-199ffea0]{margin-top:-20px}.footer[data-v-199ffea0]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-72eb8c78]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>[data-v-72eb8c78]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.overlay-nav[data-v-72eb8c78]{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;z-index:1}.overlay-nav>[data-v-72eb8c78]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-72eb8c78]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-72eb8c78]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .info[data-v-72eb8c78],.nav .saves[data-v-72eb8c78]{display:flex}.tooltip-container[data-v-72eb8c78]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-72eb8c78]{position:relative}.discord img[data-v-72eb8c78]{width:100%;height:100%}.discord-links[data-v-72eb8c78]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-72eb8c78]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-72eb8c78]{left:-10px}.discord-links li[data-v-72eb8c78]{margin-bottom:4px}.discord-links li[data-v-72eb8c78]:first-child{font-size:1.2em}:not(.overlay-nav) .discord:hover .discord-links[data-v-72eb8c78]{right:0}.material-icons[data-v-72eb8c78]{font-size:36px}.material-icons[data-v-72eb8c78]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-72eb8c78]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-72eb8c78]{width:unset;height:25px}.version[data-v-72eb8c78]{color:var(--points)}.version:hover span[data-v-72eb8c78]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-72eb8c78],.overlay-nav>div>a[data-v-72eb8c78]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-6bcb9872]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tab[data-v-6bcb9872]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-6bcb9872]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.separator[data-v-6bcb9872]{position:absolute;right:-4px;top:0;bottom:0;width:8px;background:var(--outline);z-index:1}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) -10px}.tab .modal-body hr{margin:7px 0}.branch[data-v-1318daf7]{position:absolute;z-index:-10;top:0;left:0;width:100%;height:100%;pointer-events:none}.mark[data-v-c476c56a]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;border-bottom:.7em solid transparent}.mark[data-v-c476c56a],.star[data-v-c476c56a]{pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-c476c56a]{left:-10px;width:0;height:0;border-bottom:.7em solid #fc0}.star[data-v-c476c56a]:after,.star[data-v-c476c56a]:before{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #fc0;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-c476c56a]:after{transform:rotate(35deg)}.treeNode[data-v-176052a6]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px 0 10px}.treeNode button[data-v-176052a6]{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:rgba(0,0,0,.5);text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px rgba(0,0,0,.25) inset,0 0 20px var(--background);text-transform:capitalize}.treeNode.small[data-v-176052a6]{height:60px;width:60px}.treeNode.small button[data-v-176052a6]{font-size:30px}.ghost[data-v-176052a6]{visibility:hidden;pointer-events:none}.row[data-v-e6ef63ea]{margin:50px auto}.left-side-nodes[data-v-e6ef63ea]{position:absolute;left:15px;top:65px}.side-nodes[data-v-e6ef63ea]{position:absolute;right:15px;top:65px}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground)}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.clickable[data-v-2d81e1cc]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-2d81e1cc]{min-height:unset}.game-over-modal-header[data-v-364b55bc]{display:flex;margin:-20px;margin-bottom:0;background:var(--raised-background);align-items:center}.game-over-modal-header [data-v-364b55bc]{margin:0}.game-over-modal-logo[data-v-364b55bc]{height:4em;width:4em}.game-over-modal-title[data-v-364b55bc]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-364b55bc]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-364b55bc]{margin:0 10px}.game-over-modal-discord-link[data-v-364b55bc]{display:flex;align-items:center}.game-over-modal-discord[data-v-364b55bc]{margin:0;margin-right:4px}.nan-modal-header[data-v-0f93e378]{padding:10px 0;margin-left:10px}.nan-footer[data-v-0f93e378]{display:flex;justify-content:flex-end}.nan-footer button[data-v-0f93e378]{margin:0 10px}.nan-modal-discord-link[data-v-0f93e378]{display:flex;align-items:center}.nan-modal-discord[data-v-0f93e378]{height:2em;margin:0;margin-right:4px}.tpsDisplay[data-v-323f9b12]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-323f9b12]{color:var(--danger)}.fade-leave-to[data-v-323f9b12]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none}:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}#app,body,html{min-height:100%;height:100%}b,h1,h2,h3,input{display:inline}button{color:#000}.button,.link,a{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}.button:hover,.link:hover,a:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-e0e491f6]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-e0e491f6]{position:absolute;min-height:100%;height:100%} \ No newline at end of file diff --git a/favicon-16x16.png b/favicon-16x16.png new file mode 100644 index 0000000..9d30dea Binary files /dev/null and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png new file mode 100644 index 0000000..c2142d0 Binary files /dev/null and b/favicon-32x32.png differ diff --git a/public/favicon.ico b/favicon.ico similarity index 100% rename from public/favicon.ico rename to favicon.ico diff --git a/index.html b/index.html index 0b4bf62..ff85080 100644 --- a/index.html +++ b/index.html @@ -1,25 +1 @@ - - - - - - - - - - - - - - Profectus - - - - - -
- - - +profectus
\ No newline at end of file diff --git a/js/app-legacy.c9c8b381.js b/js/app-legacy.c9c8b381.js new file mode 100644 index 0000000..9b669a2 --- /dev/null +++ b/js/app-legacy.c9c8b381.js @@ -0,0 +1,2 @@ +(function(){var n={5679:function(n,e,o){"use strict";o.d(e,{b:function(){return r}});var r,t=o(5082),l={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#eee","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},stackedInfoboxes:!1,floatingTabs:!0,showSingleTab:!1,mergeAdjacent:!0};(function(n){n["Classic"]="classic",n["Paper"]="paper",n["Nordic"]="nordic",n["Aqua"]="aqua"})(r||(r={})),e["Z"]={classic:l,paper:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"}),stackedInfoboxes:!0,floatingTabs:!1}),nordic:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"}),stackedInfoboxes:!0,floatingTabs:!1}),aqua:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"})})}},6113:function(n,e,o){"use strict";o.d(e,{wA:function(){return l},tj:function(){return i},QI:function(){return a},EE:function(){return r},tZ:function(){return f},Rh:function(){return m}});o(3336),o(2526),o(1817),o(1539),o(4747),o(7941),o(9706);var r,t=o(9583),l=(o(4865),Symbol("Component")),i=Symbol("GatherProps"),u=0;function a(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:"feature-";return function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](u++):e+u++}()}function f(n){return n[t.mM]=!0,n}function m(n,e,o){void 0===n[e]&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o}()&&(n[e]=o)}(function(n){n[n["Visible"]=0]="Visible",n[n["Hidden"]=1]="Hidden",n[n["None"]=2]="None"})(r||(r={}))},630:function(n,e,o){"use strict";o.d(e,{Z:function(){return r},w:function(){return t}});o(2526),o(1817),o(1539);var r=Symbol("RegisterLinkNode"),t=Symbol("UnregisterLinkNode")},7302:function(n,e,o){"use strict";o.r(e),o.d(e,{globalBus:function(){return m},startGameLoop:function(){return d}});var r=o(8534),t=(o(5666),o(2526),o(1817),o(1539),o(7042),o(86),o(8783),o(3948),o(2345)),l=o(9706),i=o(8111),u=o(5967),a=o(9266),f=o(3032),m=(0,i.i)(),s=null,c=null;function y(){var n,e=Date.now(),o=function(){return e-u.Z.time!==void 0&&e-u.Z.time!==null&&(e-u.Z.time)[Symbol.for("/")]?(e-u.Z.time)[Symbol.for("/")](1e3):(e-u.Z.time)/1e3}();u.Z.time=e;var r=o;if(f.Z.lastTenTicks.push(r),function(){return void 0!==f.Z.lastTenTicks.length&&null!==f.Z.lastTenTicks.length&&f.Z.lastTenTicks.length[Symbol.for(">")]?f.Z.lastTenTicks.length[Symbol.for(">")](10):f.Z.lastTenTicks.length>10}()&&(f.Z.lastTenTicks=f.Z.lastTenTicks.slice(1)),!(function(){return void 0!==(n=c)&&null!==(n=c)&&(n=c)[Symbol.for("!==")]?(n=c)[Symbol.for("!==")](null):null!==(n=c)}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()&&n.value&&function(){return void 0!==u.Z.keepGoing&&null!==u.Z.keepGoing&&u.Z.keepGoing[Symbol.for("!")]?u.Z.keepGoing[Symbol.for("!")]():!u.Z.keepGoing}())&&!f.Z.hasNaN&&(o=new l.ZP(o).max(0),0!==u.Z.devSpeed)){if(function(){return void 0!==u.Z.offlineTime&&null!==u.Z.offlineTime&&u.Z.offlineTime[Symbol.for("!=")]?u.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=u.Z.offlineTime}()){if(l.ZP.gt(u.Z.offlineTime,function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())&&(u.Z.offlineTime=new l.ZP(function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())),l.ZP.gt(u.Z.offlineTime,0)&&function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!==")]?u.Z.devSpeed[Symbol.for("!==")](0):0!==u.Z.devSpeed}()){var i=l.ZP.div(u.Z.offlineTime,10).max(o);u.Z.offlineTime=l.ZP.sub(u.Z.offlineTime,i),o=o.add(i)}else 0===u.Z.devSpeed&&(u.Z.offlineTime=l.ZP.add(u.Z.offlineTime,o));(function(){return void 0!==u.Z.offlineProd&&null!==u.Z.offlineProd&&u.Z.offlineProd[Symbol.for("!")]?u.Z.offlineProd[Symbol.for("!")]():!u.Z.offlineProd}()||l.ZP.lt(u.Z.offlineTime,0))&&(u.Z.offlineTime=null)}o=l.ZP.min(o,t.maxTickLength),function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!=")]?u.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=u.Z.devSpeed}()&&(o=o.times(u.Z.devSpeed)),o.eq(0)||(u.Z.timePlayed=l.ZP.add(u.Z.timePlayed,o),m.emit("update",o,r),a.ZP.unthrottled?(requestAnimationFrame(y),function(){return void 0!==s&&null!==s&&s[Symbol.for("!=")]?s[Symbol.for("!=")](null):null!=s}()&&(clearInterval(s),s=null)):function(){return void 0!==s&&null!==s&&s[Symbol.for("==")]?s[Symbol.for("==")](null):null==s}()&&(s=setInterval(y,50)))}}function d(){return b.apply(this,arguments)}function b(){return b=(0,r.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Promise.resolve().then(o.bind(o,8097));case 2:c=n.sent.hasWon,a.ZP.unthrottled?requestAnimationFrame(y):s=setInterval(y,50);case 4:case"end":return n.stop()}}),n)}))),b.apply(this,arguments)}},4061:function(n,e,o){"use strict";o.d(e,{ax:function(){return c}});var r=o(9584),t=o(3336),l=(o(2526),o(1817),o(1539),o(4747),o(7941),o(6699),o(2222),o(7302)),i=o(9706),u=o(3273),a=o(3577),f=o(4865),m=Symbol("PersistentState"),s=Symbol("DefaultValue");function c(n){var e=(0,f.isRef)(n)?n:(0,f.ref)(n);return e[m]=e,e[s]=(0,f.isRef)(n)?n.value:n,e}l.globalBus.on("addLayer",(function(n,e){var o=[],l=function n(l){var c=arguments,y=function(){return void 0!==c.length&&null!==c.length&&c.length[Symbol.for(">")]?c.length[Symbol.for(">")](1):c.length>1}()&&function(){return void 0!==c[1]&&null!==c[1]&&c[1][Symbol.for("!==")]?c[1][Symbol.for("!==")](void 0):void 0!==c[1]}()?arguments[1]:[],d=!1;return Object.keys(l).forEach((function(c){var b=l[c];if(b&&"object"===(0,t.Z)(b))if(function(){return void 0!==m&&null!==m&&m[Symbol.for("in")]?m[Symbol.for("in")](b):m in b}()){d=!0;var v=y.reduce((function(n,e){return function(){return e in n!==void 0&&e in n!==null&&(e in n)[Symbol.for("!")]?(e in n)[Symbol.for("!")]():!(e in n)}()&&(n[e]={}),n[e]}),e),S=v[c];v[c]=b[m],!function(){return void 0!==S&&null!==S&&S[Symbol.for("!=")]?S[Symbol.for("!=")](null):null!=S}()?v[c].value=b[s]:v[c].value=S}else if(function(){return b instanceof i.ZP!==void 0&&b instanceof i.ZP!==null&&(b instanceof i.ZP)[Symbol.for("!")]?(b instanceof i.ZP)[Symbol.for("!")]():!(b instanceof i.ZP)}()&&function(){return void 0!==(0,f.isRef)(b)&&null!==(0,f.isRef)(b)&&(0,f.isRef)(b)[Symbol.for("!")]?(0,f.isRef)(b)[Symbol.for("!")]():!(0,f.isRef)(b)}()&&function(){return void 0!==o.includes(b)&&null!==o.includes(b)&&o.includes(b)[Symbol.for("!")]?o.includes(b)[Symbol.for("!")]():!o.includes(b)}()){"symbol"===(0,t.Z)(b.type)&&o.push(b);var g=n(b,[].concat((0,r.Z)(y),[c]));g&&((0,a.kJ)(b)&&function(){return void 0!==(0,a.kJ)(l)&&null!==(0,a.kJ)(l)&&(0,a.kJ)(l)[Symbol.for("!")]?(0,a.kJ)(l)[Symbol.for("!")]():!(0,a.kJ)(l)}()?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",function(){return void 0!==u.Le&&null!==u.Le&&u.Le[Symbol.for("in")]?u.Le[Symbol.for("in")](l):u.Le in l}()?l[u.Le]:l,c):d=!0)}})),d};l(n)}))},5967:function(n,e,o){"use strict";o.d(e,{U:function(){return c}});var r,t=o(2482),l=o(9584),i=(o(2526),o(1817),o(1539),o(8862),o(2222),o(7556),o(1299),o(1037),o(5003),o(9706)),u=o(1349),a=o(3273),f=o(4865),m=o(3032),s=(0,f.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:new i.ZP(0),keepGoing:!1,modID:"",modVersion:"",layers:{}});function c(n){return JSON.stringify(n,(function(n,e){return(0,f.unref)(e)}))}var y={get:function(n,e){if(e===a.Le||e===a.c4)return n[e];var o=n[a.Le][e];if(function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")]("value"):"value"!==e}()&&(0,u.PO)(o)&&function(){return o instanceof i.ZP!==void 0&&o instanceof i.ZP!==null&&(o instanceof i.ZP)[Symbol.for("!")]?(o instanceof i.ZP)[Symbol.for("!")]():!(o instanceof i.ZP)}()){if(function(){var r,t;return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](null===(r=n[e])||void 0===r?void 0:r[a.Le]):o!==(null===(t=n[e])||void 0===t?void 0:t[a.Le])}()){var r,f=[].concat((0,l.Z)(n[a.c4]),[e]);n[e]=new Proxy((r={},(0,t.Z)(r,a.Le,o),(0,t.Z)(r,a.c4,f),r),y)}return n[e]}return o},set:function(n,e,o,r){if(function(){return void 0!==m.Z.hasNaN&&null!==m.Z.hasNaN&&m.Z.hasNaN[Symbol.for("!")]?m.Z.hasNaN[Symbol.for("!")]():!m.Z.hasNaN}()&&("number"===typeof o&&isNaN(o)||o instanceof i.ZP&&(isNaN(o.sign)||isNaN(o.layer)||isNaN(o.mag)))){var t=n[a.Le][e];if(function(){return void 0!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))}())throw s.autosave=!1,m.Z.hasNaN=!0,m.Z.NaNPath=[].concat((0,l.Z)(n[a.c4]),[e]),m.Z.NaNReceiver=r,console.error("Attempted to set NaN value",[].concat((0,l.Z)(n[a.c4]),[e]),n[a.Le]),"Attempted to set NaN value. See above for details"}return n[a.Le][e]=o,!0},ownKeys:function(n){return Reflect.ownKeys(n[a.Le])},has:function(n,e){return Reflect.has(n[a.Le],e)},getOwnPropertyDescriptor:function(n,e){return Object.getOwnPropertyDescriptor(n[a.Le],e)}};e["Z"]=window.player=new Proxy((r={},(0,t.Z)(r,a.Le,s),(0,t.Z)(r,a.c4,["player"]),r),y)},9266:function(n,e,o){"use strict";o.d(e,{ri:function(){return m},V$:function(){return s}});var r=o(3336),t=(o(8862),o(2526),o(1817),o(1539),o(2345)),l=o(5679),i=o(7302),u=o(463),a=o(4865),f=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:l.b.Nordic,unthrottled:!1});function m(){try{var n=localStorage.getItem(t.id);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](""):""!==n}()){var e=JSON.parse(decodeURIComponent(escape(atob(n))));"object"===(0,r.Z)(e)&&Object.assign(f,e)}i.globalBus.emit("loadSettings",f)}catch(o){}}(0,a.watch)(f,(function(n){return localStorage.setItem(t.id,btoa(unescape(encodeURIComponent(JSON.stringify(n)))))}),{deep:!0}),e["ZP"]=window.settings=f;window.hardResetSettings=function(){var n={active:"",saves:[],showTPS:!0,theme:l.b.Nordic};i.globalBus.emit("loadSettings",n),Object.assign(f,n),(0,u.y6)()};var s=(0,a.reactive)([])},3032:function(n,e,o){"use strict";var r=o(4865);e["Z"]=window.state=(0,r.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},1008:function(n,e,o){"use strict";o.d(e,{Z:function(){return W}});var r,t,l,i,u,a,f,m,s,c,y,d=o(3087),b=o(2833),v=o(2482),S=o(3336),g=(o(658),o(2526),o(1817),o(1539),o(9653),o(6977),o(2420),o(3689),o(5192),o(1703),o(9714),o(86),o(4916),o(5306),o(3123),o(3210),o(2481),o(1354),o(4914),17),h=9e15,p=Math.log10(9e15),N=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15}(),k=308,M=function(){return 324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324}(),Z=5,V=!0,w=!1,x=function(){for(var n=[],e=function(){return void 0!==M&&null!==M&&M[Symbol.for("+")]?M[Symbol.for("+")](1):M+1}();function(){return void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](k):e<=k}();function(){return void 0!==e&&null!==e&&"object"===(0,S.Z)(e)&&e[Symbol.for("postfix-increment")]?e[Symbol.for("postfix-increment")]():e++}())n.push(Number(function(){return"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](e):"1e"+e}()));var o=323;return function(e){return n[function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](o):e+o}()]}}(),C=[2,Math.E,3,4,5,6,7,8,9,10],E=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],B=[[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025}(),function(){return.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468}(),function(){return.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978}(),function(){return.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437}(),function(){return.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869}(),function(){return.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769}(),function(){return.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494}(),function(){return.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962}(),function(){return.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014}(),function(){return.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596}(),function(){return.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634}(),function(){return.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664}(),function(){return.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117}(),function(){return.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768}(),function(){return.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755}(),function(){return.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866}(),function(){return.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141}(),function(){return.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203}(),function(){return.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391}(),function(){return.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454}(),function(){return.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545}(),function(){return.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083}(),function(){return.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615}(),function(){return.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894}(),function(){return.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535}(),function(){return.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964}(),function(){return.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455}(),function(){return.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509}(),function(){return.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134}(),function(){return.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966}(),function(){return.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552}(),function(){return.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526}(),function(){return.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064}(),function(){return.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243}(),function(){return.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552}(),function(){return.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841}(),function(){return.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936}(),function(){return.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424}(),function(){return.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147}(),function(){return.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467}(),function(){return.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346}(),function(){return.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886}(),function(){return.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064}(),function(){return.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926}(),function(){return.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314}(),function(){return.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232}(),function(){return.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858}(),function(){return.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259}(),function(){return.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583}(),function(){return.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209}(),function(){return.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752}(),function(){return.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787}(),function(){return.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956}(),function(){return.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963}(),function(){return.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518}(),function(){return.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619}(),function(){return.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649}(),function(){return.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081}(),function(){return.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548}(),function(){return.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242}(),function(){return.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167}(),function(){return.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456}(),function(){return.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863}(),function(){return.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109}(),function(){return.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213}(),function(){return.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306}(),function(){return.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293}(),function(){return.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807}(),function(){return.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678}(),function(){return.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695}(),function(){return.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688}(),function(){return.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652}(),function(){return.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857}(),function(){return.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535}(),function(){return.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322}(),function(){return.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696}(),function(){return.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922}(),function(){return.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767}(),function(){return.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622}(),function(){return.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268}(),function(){return.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186}(),0]],I=function(n){return W.fromValue_noAlloc(n)},P=function(n,e,o){return W.fromComponents(n,e,o)},F=function(n,e,o){return W.fromComponents_noNormalize(n,e,o)},D=function(n,e){var o=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](1):e+1}(),r=Math.ceil(Math.log10(Math.abs(n))),t=function(){return void 0!==Math.round(n*Math.pow(10,o-r))&&null!==Math.round(n*Math.pow(10,o-r))&&Math.round(n*Math.pow(10,o-r))[Symbol.for("*")]?Math.round(n*Math.pow(10,o-r))[Symbol.for("*")](Math.pow(10,r-o)):Math.round(n*Math.pow(10,o-r))*Math.pow(10,r-o)}();return parseFloat(t.toFixed(Math.max(function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](r):o-r}(),0)))},T=function(n){return function(){return void 0!==Math.sign(n)&&null!==Math.sign(n)&&Math.sign(n)[Symbol.for("*")]?Math.sign(n)[Symbol.for("*")](Math.log10(Math.abs(n))):Math.sign(n)*Math.log10(Math.abs(n))}()},_=function(n){if(function(){return void 0!==isFinite(n)&&null!==isFinite(n)&&isFinite(n)[Symbol.for("!")]?isFinite(n)[Symbol.for("!")]():!isFinite(n)}())return n;if(function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](-50):n<-50}())return n===Math.trunc(n)?Number.NEGATIVE_INFINITY:0;var e=1;while(function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](10):n<10}())e=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](n):e*n}(),function(){void 0!==n&&null!==n&&"object"===(0,S.Z)(n)&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n}();n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}();var o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((n+.5)*Math.log(n)):o+(n+.5)*Math.log(n)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](n):o-n}();var r=function(){return void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](n):n*n}(),t=n;return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(12*t)):o+1/(12*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(360*t)):o+1/(360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1260*t)):o+1/(1260*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1680*t)):o+1/(1680*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1188*t)):o+1/(1188*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](691/(360360*t)):o+691/(360360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](7/(1092*t)):o+7/(1092*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](3617/(122400*t)):o+3617/(122400*t)}(),function(){return void 0!==Math.exp(o)&&null!==Math.exp(o)&&Math.exp(o)[Symbol.for("/")]?Math.exp(o)[Symbol.for("/")](e):Math.exp(o)/e}()},O=.5671432904097838,R=function(n){var e,o,r=arguments,t=function(){return void 0!==r.length&&null!==r.length&&r.length[Symbol.for(">")]?r.length[Symbol.for(">")](1):r.length>1}()&&function(){return void 0!==r[1]&&null!==r[1]&&r[1][Symbol.for("!==")]?r[1][Symbol.for("!==")](void 0):void 0!==r[1]}()?arguments[1]:1e-10;if(function(){return void 0!==Number.isFinite(n)&&null!==Number.isFinite(n)&&Number.isFinite(n)[Symbol.for("!")]?Number.isFinite(n)[Symbol.for("!")]():!Number.isFinite(n)}())return n;if(0===n)return n;if(1===n)return O;e=function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](10):n<10}()?0:function(){return void 0!==Math.log(n)&&null!==Math.log(n)&&Math.log(n)[Symbol.for("-")]?Math.log(n)[Symbol.for("-")](Math.log(Math.log(n))):Math.log(n)-Math.log(Math.log(n))}();for(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100}();function(){return void 0!==l&&null!==l&&"object"===(0,S.Z)(l)&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l}()){if(o=function(){return n*Math.exp(-e)+e*e!==void 0&&n*Math.exp(-e)+e*e!==null&&(n*Math.exp(-e)+e*e)[Symbol.for("/")]?(n*Math.exp(-e)+e*e)[Symbol.for("/")](e+1):(n*Math.exp(-e)+e*e)/(e+1)}(),function(){return void 0!==Math.abs(o-e)&&null!==Math.abs(o-e)&&Math.abs(o-e)[Symbol.for("<")]?Math.abs(o-e)[Symbol.for("<")](t*Math.abs(o)):Math.abs(o-e)")]?l.length[Symbol.for(">")](1):l.length>1}()&&function(){return void 0!==l[1]&&null!==l[1]&&l[1][Symbol.for("!==")]?l[1][Symbol.for("!==")](void 0):void 0!==l[1]}()?arguments[1]:1e-10;if(function(){return void 0!==Number.isFinite(n.mag)&&null!==Number.isFinite(n.mag)&&Number.isFinite(n.mag)[Symbol.for("!")]?Number.isFinite(n.mag)[Symbol.for("!")]():!Number.isFinite(n.mag)}())return n;if(n===W.dZero)return n;if(n===W.dOne)return I(O);W.abs(n);e=W.ln(n);for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](100):u<100}();function(){return void 0!==u&&null!==u&&"object"===(0,S.Z)(u)&&u[Symbol.for("prefix-increment")]?u[Symbol.for("prefix-increment")]():++u}()){if(o=W.exp(function(){return void 0!==e&&null!==e&&e[Symbol.for("minus")]?e[Symbol.for("minus")]():-e}()),r=e.sub(n.mul(o)),t=e.sub(r.div(e.add(1).sub(e.add(2).mul(r).div(W.mul(2,e).add(2))))),W.abs(t.sub(e)).lt(W.abs(t).mul(i)))return t;e=t}throw Error("Iteration failed to converge: ".concat(n.toString()))}r=Symbol.for("+"),t=Symbol.for("-"),l=Symbol.for("*"),i=Symbol.for("/"),u=Symbol.for("minus"),a=Symbol.for("=="),f=Symbol.for(">"),m=Symbol.for("<"),s=Symbol.for(">="),c=Symbol.for("<="),y=Symbol.for("!=");var W=function(n,e,o,r,t,l,i,u,a,f,m){function s(n){(0,d.Z)(this,s),(0,v.Z)(this,"sign",Number.NaN),(0,v.Z)(this,"mag",Number.NaN),(0,v.Z)(this,"layer",Number.NaN),n instanceof s||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(this.sign=0,this.layer=0,this.mag=0)}return(0,b.Z)(s,[{key:"m",get:function(){var n=this;if(0===this.sign)return 0;if(0===this.layer){var e,o=Math.floor(Math.log10(this.mag));return e=5e-324===this.mag?5:function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("/")]?n.mag[Symbol.for("/")](x(o)):n.mag/x(o)}(),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](e):n.sign*e}()}if(1===this.layer){var r=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](Math.floor(n.mag)):n.mag-Math.floor(n.mag)}();return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.pow(10,r)):n.sign*Math.pow(10,r)}()}return this.sign},set:function(n){var e=this;!function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<=")]?e.layer[Symbol.for("<=")](2):e.layer<=2}()?(this.sign=Math.sign(n),0===this.sign&&(this.layer,this.exponent)):this.fromMantissaExponent(n,this.e)}},{key:"e",get:function(){var n=this;return 0===this.sign?0:0===this.layer?Math.floor(Math.log10(this.mag)):1===this.layer?Math.floor(this.mag):2===this.layer?Math.floor(function(){return void 0!==Math.sign(n.mag)&&null!==Math.sign(n.mag)&&Math.sign(n.mag)[Symbol.for("*")]?Math.sign(n.mag)[Symbol.for("*")](Math.pow(10,Math.abs(n.mag))):Math.sign(n.mag)*Math.pow(10,Math.abs(n.mag))}()):function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("*")]?n.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):n.mag*Number.POSITIVE_INFINITY}()},set:function(n){this.fromMantissaExponent(this.m,n)}},{key:"s",get:function(){return this.sign},set:function(n){0===n?(this.sign=0,this.layer=0,this.mag=0):this.sign=n}},{key:"mantissa",get:function(){return this.m},set:function(n){this.m=n}},{key:"exponent",get:function(){return this.e},set:function(n){this.e=n}},{key:n,value:function(n){return this.add(n)}},{key:e,value:function(n){return this.sub(n)}},{key:o,value:function(n){return this.times(n)}},{key:r,value:function(n){return this.div(n)}},{key:t,value:function(){return this.neg()}},{key:l,value:function(n){return this.eq(n)}},{key:i,value:function(n){return this.gt(n)}},{key:u,value:function(n){return this.lt(n)}},{key:a,value:function(n){return this.gte(n)}},{key:f,value:function(n){return this.lte(n)}},{key:m,value:function(n){return this.neq(n)}},{key:"normalize",value:function(){var n=this;if(0===this.sign||0===this.mag&&0===this.layer)return this.sign=0,this.mag=0,this.layer=0,this;if(0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()&&(this.mag=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}(),this.sign=function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}()),0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](N):n.mag=")]?e[Symbol.for(">=")](h):e>=h}())return n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(e)):o*Math.log10(e)}(),this;while(function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](p):e")]?n.layer[Symbol.for(">")](0):n.layer>0}())n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,e)):o*Math.pow(10,e)}(),e=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&(!function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?0===this.mag&&(this.sign=0):(this.mag=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}(),this.sign=function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}())),this}},{key:"fromComponents",value:function(n,e,o){return this.sign=n,this.layer=e,this.mag=o,this.normalize(),this}},{key:"fromComponents_noNormalize",value:function(n,e,o){return this.sign=n,this.layer=e,this.mag=o,this}},{key:"fromMantissaExponent",value:function(n,e){return this.layer=1,this.sign=Math.sign(n),n=Math.abs(n),this.mag=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](Math.log10(n)):e+Math.log10(n)}(),this.normalize(),this}},{key:"fromMantissaExponent_noNormalize",value:function(n,e){return this.fromMantissaExponent(n,e),this}},{key:"fromDecimal",value:function(n){return this.sign=n.sign,this.layer=n.layer,this.mag=n.mag,this}},{key:"fromNumber",value:function(n){return this.mag=Math.abs(n),this.sign=Math.sign(n),this.layer=0,this.normalize(),this}},{key:"fromString",value:function(n){V?n=n.replace(",",""):w&&(n=n.replace(",","."));var e=n.split("^^^");if(2===e.length){var o=parseFloat(e[0]),r=parseFloat(e[1]),t=e[1].split(";"),l=1;if(2===t.length&&(l=parseFloat(t[1]),function(){return void 0!==isFinite(l)&&null!==isFinite(l)&&isFinite(l)[Symbol.for("!")]?isFinite(l)[Symbol.for("!")]():!isFinite(l)}()&&(l=1)),isFinite(o)&&isFinite(r)){var i=s.pentate(o,r,l);return this.sign=i.sign,this.layer=i.layer,this.mag=i.mag,this}}var u=n.split("^^");if(2===u.length){var a=parseFloat(u[0]),f=parseFloat(u[1]),m=u[1].split(";"),c=1;if(2===m.length&&(c=parseFloat(m[1]),function(){return void 0!==isFinite(c)&&null!==isFinite(c)&&isFinite(c)[Symbol.for("!")]?isFinite(c)[Symbol.for("!")]():!isFinite(c)}()&&(c=1)),isFinite(a)&&isFinite(f)){var y=s.tetrate(a,f,c);return this.sign=y.sign,this.layer=y.layer,this.mag=y.mag,this}}var d,b,v=n.split("^");if(2===v.length){var g=parseFloat(v[0]),h=parseFloat(v[1]);if(isFinite(g)&&isFinite(h)){var p=s.pow(g,h);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,this}}n=n.trim().toLowerCase();var N=n.split("pt");if(2===N.length){d=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var k=parseFloat(N[1]);if(function(){return void 0!==isFinite(k)&&null!==isFinite(k)&&isFinite(k)[Symbol.for("!")]?isFinite(k)[Symbol.for("!")]():!isFinite(k)}()&&(k=1),isFinite(d)&&isFinite(b)){var M=s.tetrate(d,b,k);return this.sign=M.sign,this.layer=M.layer,this.mag=M.mag,this}}if(N=n.split("p"),2===N.length){d=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var Z=parseFloat(N[1]);if(function(){return void 0!==isFinite(Z)&&null!==isFinite(Z)&&isFinite(Z)[Symbol.for("!")]?isFinite(Z)[Symbol.for("!")]():!isFinite(Z)}()&&(Z=1),isFinite(d)&&isFinite(b)){var x=s.tetrate(d,b,Z);return this.sign=x.sign,this.layer=x.layer,this.mag=x.mag,this}}var C=n.split("e"),E=function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}();if(0===E){var B=parseFloat(n);if(isFinite(B))return this.fromNumber(B)}else if(1===E){var F=parseFloat(n);if(isFinite(F)&&function(){return void 0!==F&&null!==F&&F[Symbol.for("!==")]?F[Symbol.for("!==")](0):0!==F}())return this.fromNumber(F)}var D=n.split("e^");if(2===D.length){this.sign=1,function(){return void 0!==D[0].charAt(0)&&null!==D[0].charAt(0)&&D[0].charAt(0)[Symbol.for("==")]?D[0].charAt(0)[Symbol.for("==")]("-"):"-"==D[0].charAt(0)}()&&(this.sign=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}());for(var _="",O=0;function(){return void 0!==O&&null!==O&&O[Symbol.for("<")]?O[Symbol.for("<")](D[1].length):O=")]?R[Symbol.for(">=")](43):R>=43}()&&function(){return void 0!==R&&null!==R&&R[Symbol.for("<=")]?R[Symbol.for("<=")](57):R<=57}()||101===R))return this.layer=parseFloat(_),this.mag=parseFloat(D[1].substr(function(){return void 0!==O&&null!==O&&O[Symbol.for("+")]?O[Symbol.for("+")](1):O+1}())),this.normalize(),this;_=function(){return void 0!==_&&null!==_&&_[Symbol.for("+")]?_[Symbol.for("+")](D[1].charAt(O)):_+D[1].charAt(O)}()}}if(function(){return void 0!==E&&null!==E&&E[Symbol.for("<")]?E[Symbol.for("<")](1):E<1}())return this.sign=0,this.layer=0,this.mag=0,this;var j=parseFloat(C[0]);if(0===j)return this.sign=0,this.layer=0,this.mag=0,this;var W=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}()]);if(function(){return void 0!==E&&null!==E&&E[Symbol.for(">=")]?E[Symbol.for(">=")](2):E>=2}()){var q=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](2):C.length-2}()]);isFinite(q)&&(W=function(){return void 0!==W&&null!==W&&W[Symbol.for("*")]?W[Symbol.for("*")](Math.sign(q)):W*Math.sign(q)}(),W=function(){return void 0!==W&&null!==W&&W[Symbol.for("+")]?W[Symbol.for("+")](T(q)):W+T(q)}())}if(function(){return void 0!==isFinite(j)&&null!==isFinite(j)&&isFinite(j)[Symbol.for("!")]?isFinite(j)[Symbol.for("!")]():!isFinite(j)}())this.sign="-"===C[0]?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():1,this.layer=E,this.mag=W;else if(1===E)this.sign=Math.sign(j),this.layer=1,this.mag=function(){return void 0!==W&&null!==W&&W[Symbol.for("+")]?W[Symbol.for("+")](Math.log10(Math.abs(j))):W+Math.log10(Math.abs(j))}();else{if(this.sign=Math.sign(j),this.layer=E,2===E){var A=s.mul(P(1,2,W),I(j));return this.sign=A.sign,this.layer=A.layer,this.mag=A.mag,this}this.mag=W}return this.normalize(),this}},{key:"fromValue",value:function(n){return n instanceof s||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(this.sign=0,this.layer=0,this.mag=0,this)}},{key:"toNumber",value:function(){var n=this;return function(){return void 0!==Number.isFinite(n.layer)&&null!==Number.isFinite(n.layer)&&Number.isFinite(n.layer)[Symbol.for("!")]?Number.isFinite(n.layer)[Symbol.for("!")]():!Number.isFinite(n.layer)}()?Number.NaN:0===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}():1===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.pow(10,n.mag)):n.sign*Math.pow(10,n.mag)}():function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](0):n.mag>0}()?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for(">")]?n.sign[Symbol.for(">")](0):n.sign>0}()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}},{key:"mantissaWithDecimalPlaces",value:function(n){return isNaN(this.m)?Number.NaN:0===this.m?0:D(this.m,n)}},{key:"magnitudeWithDecimalPlaces",value:function(n){return isNaN(this.mag)?Number.NaN:0===this.mag?0:D(this.mag,n)}},{key:"toString",value:function(){var n=this;return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?1===this.sign?"Infinity":"-Infinity":0===this.layer?function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](1e21):n.mag<1e21}()&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](1e-7):n.mag>1e-7}()||0===this.mag?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}().toString():function(){return n.m+"e"!==void 0&&n.m+"e"!==null&&(n.m+"e")[Symbol.for("+")]?(n.m+"e")[Symbol.for("+")](n.e):n.m+"e"+n.e}():1===this.layer?function(){return n.m+"e"!==void 0&&n.m+"e"!==null&&(n.m+"e")[Symbol.for("+")]?(n.m+"e")[Symbol.for("+")](n.e):n.m+"e"+n.e}():function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<=")]?n.layer[Symbol.for("<=")](Z):n.layer<=Z}()?function(){return(-1===n.sign?"-":"")+"e".repeat(n.layer)!==void 0&&(-1===n.sign?"-":"")+"e".repeat(n.layer)!==null&&((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")]?((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")](n.mag):(-1===n.sign?"-":"")+"e".repeat(n.layer)+n.mag}():function(){return(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==void 0&&(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==null&&((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")]?((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")](n.mag):(-1===n.sign?"-":"")+"(e^"+n.layer+")"+n.mag}()}},{key:"toExponential",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toExponential(n):this.toStringWithDecimalPlaces(n)}},{key:"toFixed",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toFixed(n):this.toStringWithDecimalPlaces(n)}},{key:"toPrecision",value:function(n){var e=this;return function(){return void 0!==e.e&&null!==e.e&&e.e[Symbol.for("<=")]?e.e[Symbol.for("<=")](-7):e.e<=-7}()?this.toExponential(function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}()):function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](e.e):n>e.e}()?this.toFixed(function(){return n-e.exponent!==void 0&&n-e.exponent!==null&&(n-e.exponent)[Symbol.for("-")]?(n-e.exponent)[Symbol.for("-")](1):n-e.exponent-1}()):this.toExponential(function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}())}},{key:"valueOf",value:function(){return this.toString()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toStringWithDecimalPlaces",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e21):e.mag<1e21}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">")]?e.mag[Symbol.for(">")](1e-7):e.mag>1e-7}()||0===this.mag?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toFixed(n):function(){return D(e.m,n)+"e"!==void 0&&D(e.m,n)+"e"!==null&&(D(e.m,n)+"e")[Symbol.for("+")]?(D(e.m,n)+"e")[Symbol.for("+")](D(e.e,n)):D(e.m,n)+"e"+D(e.e,n)}():1===this.layer?function(){return D(e.m,n)+"e"!==void 0&&D(e.m,n)+"e"!==null&&(D(e.m,n)+"e")[Symbol.for("+")]?(D(e.m,n)+"e")[Symbol.for("+")](D(e.e,n)):D(e.m,n)+"e"+D(e.e,n)}():function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<=")]?e.layer[Symbol.for("<=")](Z):e.layer<=Z}()?function(){return(-1===e.sign?"-":"")+"e".repeat(e.layer)!==void 0&&(-1===e.sign?"-":"")+"e".repeat(e.layer)!==null&&((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")]?((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")](D(e.mag,n)):(-1===e.sign?"-":"")+"e".repeat(e.layer)+D(e.mag,n)}():function(){return(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==void 0&&(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==null&&((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")]?((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")](D(e.mag,n)):(-1===e.sign?"-":"")+"(e^"+e.layer+")"+D(e.mag,n)}()}},{key:"abs",value:function(){return F(0===this.sign?0:1,this.layer,this.mag)}},{key:"neg",value:function(){var n=this;return F(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}(),this.layer,this.mag)}},{key:"negate",value:function(){return this.neg()}},{key:"negated",value:function(){return this.neg()}},{key:"sgn",value:function(){return this.sign}},{key:"round",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.round(this.mag)):this}},{key:"floor",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.floor(this.mag)):this}},{key:"ceil",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.ceil(this.mag)):this}},{key:"trunc",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.trunc(this.mag)):this}},{key:"add",value:function(n){var e,o,r=this,t=I(n);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign)return t;if(0===t.sign)return this;if(this.sign===function(){return void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("minus")]?t.sign[Symbol.for("minus")]():-t.sign}()&&this.layer===t.layer&&this.mag===t.mag)return F(0,0,0);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">=")]?r.layer[Symbol.for(">=")](2):r.layer>=2}()||function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](2):t.layer>=2}())return this.maxabs(t);if(!function(){return void 0!==s.cmpabs(r,t)&&null!==s.cmpabs(r,t)&&s.cmpabs(r,t)[Symbol.for(">")]?s.cmpabs(r,t)[Symbol.for(">")](0):s.cmpabs(r,t)>0}()?(e=t,o=this):(e=this,o=t),0===e.layer&&0===o.layer)return I(function(){return e.sign*e.mag!==void 0&&e.sign*e.mag!==null&&(e.sign*e.mag)[Symbol.for("+")]?(e.sign*e.mag)[Symbol.for("+")](o.sign*o.mag):e.sign*e.mag+o.sign*o.mag}());var l=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("*")]?e.layer[Symbol.for("*")](Math.sign(e.mag)):e.layer*Math.sign(e.mag)}(),i=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("*")]?o.layer[Symbol.for("*")](Math.sign(o.mag)):o.layer*Math.sign(o.mag)}();if(function(){return l-i!==void 0&&l-i!==null&&(l-i)[Symbol.for(">=")]?(l-i)[Symbol.for(">=")](2):l-i>=2}())return e;if(0===l&&i===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()){if(function(){return void 0!==Math.abs(o.mag-Math.log10(e.mag))&&null!==Math.abs(o.mag-Math.log10(e.mag))&&Math.abs(o.mag-Math.log10(e.mag))[Symbol.for(">")]?Math.abs(o.mag-Math.log10(e.mag))[Symbol.for(">")](g):Math.abs(o.mag-Math.log10(e.mag))>g}())return e;var u=Math.pow(10,function(){return void 0!==Math.log10(e.mag)&&null!==Math.log10(e.mag)&&Math.log10(e.mag)[Symbol.for("-")]?Math.log10(e.mag)[Symbol.for("-")](o.mag):Math.log10(e.mag)-o.mag}()),a=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*u):o.sign+e.sign*u}();return P(Math.sign(a),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(a))):o.mag+Math.log10(Math.abs(a))}())}if(1===l&&0===i){if(function(){return void 0!==Math.abs(e.mag-Math.log10(o.mag))&&null!==Math.abs(e.mag-Math.log10(o.mag))&&Math.abs(e.mag-Math.log10(o.mag))[Symbol.for(">")]?Math.abs(e.mag-Math.log10(o.mag))[Symbol.for(">")](g):Math.abs(e.mag-Math.log10(o.mag))>g}())return e;var f=Math.pow(10,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](Math.log10(o.mag)):e.mag-Math.log10(o.mag)}()),m=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*f):o.sign+e.sign*f}();return P(Math.sign(m),1,function(){return void 0!==Math.log10(o.mag)&&null!==Math.log10(o.mag)&&Math.log10(o.mag)[Symbol.for("+")]?Math.log10(o.mag)[Symbol.for("+")](Math.log10(Math.abs(m))):Math.log10(o.mag)+Math.log10(Math.abs(m))}())}if(function(){return void 0!==Math.abs(e.mag-o.mag)&&null!==Math.abs(e.mag-o.mag)&&Math.abs(e.mag-o.mag)[Symbol.for(">")]?Math.abs(e.mag-o.mag)[Symbol.for(">")](g):Math.abs(e.mag-o.mag)>g}())return e;var c=Math.pow(10,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](o.mag):e.mag-o.mag}()),y=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*c):o.sign+e.sign*c}();return P(Math.sign(y),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(y))):o.mag+Math.log10(Math.abs(y))}())}},{key:"plus",value:function(n){return this.add(n)}},{key:"sub",value:function(n){return this.add(I(n).neg())}},{key:"subtract",value:function(n){return this.sub(n)}},{key:"minus",value:function(n){return this.sub(n)}},{key:"mul",value:function(n){var e,o,r=this,t=I(n);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign||0===t.sign)return F(0,0,0);if(this.layer===t.layer&&this.mag===function(){return void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("minus")]?t.mag[Symbol.for("minus")]():-t.mag}())return F(function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("*")]?r.sign[Symbol.for("*")](t.sign):r.sign*t.sign}(),0,1);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">")]?r.layer[Symbol.for(">")](t.layer):r.layer>t.layer}()||function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("==")]?r.layer[Symbol.for("==")](t.layer):r.layer==t.layer}()&&function(){return void 0!==Math.abs(r.mag)&&null!==Math.abs(r.mag)&&Math.abs(r.mag)[Symbol.for(">")]?Math.abs(r.mag)[Symbol.for(">")](Math.abs(t.mag)):Math.abs(r.mag)>Math.abs(t.mag)}()?(e=this,o=t):(e=t,o=this),0===e.layer&&0===o.layer)return I(function(){return e.sign*o.sign*e.mag!==void 0&&e.sign*o.sign*e.mag!==null&&(e.sign*o.sign*e.mag)[Symbol.for("*")]?(e.sign*o.sign*e.mag)[Symbol.for("*")](o.mag):e.sign*o.sign*e.mag*o.mag}());if(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](3):e.layer>=3}()||function(){return e.layer-o.layer!==void 0&&e.layer-o.layer!==null&&(e.layer-o.layer)[Symbol.for(">=")]?(e.layer-o.layer)[Symbol.for(">=")](2):e.layer-o.layer>=2}())return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),e.layer,e.mag);if(1===e.layer&&0===o.layer)return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),1,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("+")]?e.mag[Symbol.for("+")](Math.log10(o.mag)):e.mag+Math.log10(o.mag)}());if(1===e.layer&&1===o.layer)return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),1,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("+")]?e.mag[Symbol.for("+")](o.mag):e.mag+o.mag}());if(2===e.layer&&1===o.layer){var l=P(Math.sign(e.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(e.mag)).add(P(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),function(){return void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("+")]?l.layer[Symbol.for("+")](1):l.layer+1}(),function(){return void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("*")]?l.sign[Symbol.for("*")](l.mag):l.sign*l.mag}())}if(2===e.layer&&2===o.layer){var i=P(Math.sign(e.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(e.mag)).add(P(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),function(){return void 0!==i.layer&&null!==i.layer&&i.layer[Symbol.for("+")]?i.layer[Symbol.for("+")](1):i.layer+1}(),function(){return void 0!==i.sign&&null!==i.sign&&i.sign[Symbol.for("*")]?i.sign[Symbol.for("*")](i.mag):i.sign*i.mag}())}throw Error(function(){return"Bad arguments to mul: "+r+", "!==void 0&&"Bad arguments to mul: "+r+", "!==null&&("Bad arguments to mul: "+r+", ")[Symbol.for("+")]?("Bad arguments to mul: "+r+", ")[Symbol.for("+")](n):"Bad arguments to mul: "+r+", "+n}())}},{key:"multiply",value:function(n){return this.mul(n)}},{key:"times",value:function(n){return this.mul(n)}},{key:"div",value:function(n){var e=I(n);return this.mul(e.recip())}},{key:"divide",value:function(n){return this.div(n)}},{key:"divideBy",value:function(n){return this.div(n)}},{key:"dividedBy",value:function(n){return this.div(n)}},{key:"recip",value:function(){var n=this;return 0===this.mag?s.dNaN:0===this.layer?P(this.sign,0,function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](n.mag):1/n.mag}()):P(this.sign,this.layer,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}())}},{key:"reciprocal",value:function(){return this.recip()}},{key:"reciprocate",value:function(){return this.recip()}},{key:"cmp",value:function(n){var e=this,o=I(n);return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](o.sign):e.sign>o.sign}()?1:function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](o.sign):e.sign")]?e.mag[Symbol.for(">")](0):e.mag>0}()?this.layer:function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("minus")]?e.layer[Symbol.for("minus")]():-e.layer}(),t=function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0}()?o.layer:function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](t):r>t}()?1:function(){return void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](t):r")]?e.mag[Symbol.for(">")](o.mag):e.mag>o.mag}()?1:function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](o.mag):e.mag")]?e.cmpabs(o)[Symbol.for(">")](0):e.cmpabs(o)>0}()?o:this}},{key:"clamp",value:function(n,e){return this.max(n).min(e)}},{key:"clampMin",value:function(n){return this.max(n)}},{key:"clampMax",value:function(n){return this.min(n)}},{key:"cmp_tolerance",value:function(n,e){var o=I(n);return this.eq_tolerance(o,e)?0:this.cmp(o)}},{key:"compare_tolerance",value:function(n,e){return this.cmp_tolerance(n,e)}},{key:"eq_tolerance",value:function(n,e){var o=this,r=I(n);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&(e=1e-7),function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("!==")]?o.sign[Symbol.for("!==")](r.sign):o.sign!==r.sign}())return!1;if(function(){return void 0!==Math.abs(o.layer-r.layer)&&null!==Math.abs(o.layer-r.layer)&&Math.abs(o.layer-r.layer)[Symbol.for(">")]?Math.abs(o.layer-r.layer)[Symbol.for(">")](1):Math.abs(o.layer-r.layer)>1}())return!1;var t=this.mag,l=r.mag;return function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](r.layer):o.layer>r.layer}()&&(l=T(l)),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](r.layer):o.layer")]?n.layer[Symbol.for(">")](0):n.layer>0}()?P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):P(1,0,Math.log10(this.mag))}},{key:"log10",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">")]?n.layer[Symbol.for(">")](0):n.layer>0}()?P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):P(this.sign,0,Math.log10(this.mag))}},{key:"log",value:function(n){var e=this;return n=I(n),function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0}()||function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()||1===n.sign&&0===n.layer&&1===n.mag?s.dNaN:0===this.layer&&0===n.layer?P(this.sign,0,function(){return void 0!==Math.log(e.mag)&&null!==Math.log(e.mag)&&Math.log(e.mag)[Symbol.for("/")]?Math.log(e.mag)[Symbol.for("/")](Math.log(n.mag)):Math.log(e.mag)/Math.log(n.mag)}()):s.div(this.log10(),n.log10())}},{key:"log2",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:0===this.layer?P(this.sign,0,Math.log2(this.mag)):1===this.layer?P(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(n.mag)}()):2===this.layer?P(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.5213902276543247):Math.abs(n.mag)+.5213902276543247}()):P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"ln",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:0===this.layer?P(this.sign,0,Math.log(this.mag)):1===this.layer?P(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(n.mag)}()):2===this.layer?P(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.36221568869946325):Math.abs(n.mag)+.36221568869946325}()):P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"logarithm",value:function(n){return this.log(n)}},{key:"pow",value:function(n){var e=I(n),o=this,r=e;if(0===o.sign)return r.eq(0)?F(1,0,1):o;if(1===o.sign&&0===o.layer&&1===o.mag)return o;if(0===r.sign)return F(1,0,1);if(1===r.sign&&0===r.layer&&1===r.mag)return o;var t=o.absLog10().mul(r).pow10();return this.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()?1===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t.neg():0===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t:s.dNaN:t}},{key:"pow10",value:function(){var n=this;if(function(){return void 0!==Number.isFinite(n.layer)&&null!==Number.isFinite(n.layer)&&Number.isFinite(n.layer)[Symbol.for("!")]?Number.isFinite(n.layer)[Symbol.for("!")]():!Number.isFinite(n.layer)}()||function(){return void 0!==Number.isFinite(n.mag)&&null!==Number.isFinite(n.mag)&&Number.isFinite(n.mag)[Symbol.for("!")]?Number.isFinite(n.mag)[Symbol.for("!")]():!Number.isFinite(n.mag)}())return s.dNaN;var e=this;if(0===e.layer){var o=Math.pow(10,function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}());if(Number.isFinite(o)&&function(){return void 0!==Math.abs(o)&&null!==Math.abs(o)&&Math.abs(o)[Symbol.for(">=")]?Math.abs(o)[Symbol.for(">=")](.1):Math.abs(o)>=.1}())return P(1,0,o);if(0===e.sign)return s.dOne;e=F(e.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),Math.log10(e.mag))}return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0}()?P(e.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),e.mag):function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0}()?P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign}(),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}()):s.dOne}},{key:"pow_base",value:function(n){return I(n).pow(this)}},{key:"root",value:function(n){var e=I(n);return this.pow(e.recip())}},{key:"factorial",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()||0===this.layer?this.add(1).gamma():1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"gamma",value:function(){var n=this;if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}())return this.recip();if(0===this.layer){if(this.lt(F(1,0,24)))return I(_(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));var e=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](1):n.mag-1}(),o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e}();var r=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e}(),t=e,l=function(){return 12[Symbol.for("*")]?12[Symbol.for("*")](t):12*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](i):o+i}();if(u===o)return s.exp(o);if(o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 360[Symbol.for("*")]?360[Symbol.for("*")](t):360*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),u===o)return s.exp(o);o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1260[Symbol.for("*")]?1260[Symbol.for("*")](t):1260*t}();var a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}();return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1680[Symbol.for("*")]?1680[Symbol.for("*")](t):1680*t}(),a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a}(),s.exp(o)}return 1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"lngamma",value:function(){return this.gamma().ln()}},{key:"exp",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dOne:0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<=")]?n.mag[Symbol.for("<=")](709.7):n.mag<=709.7}()?I(Math.exp(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):0===this.layer?P(1,1,function(){return n.sign*Math.log10(Math.E)!==void 0&&n.sign*Math.log10(Math.E)!==null&&(n.sign*Math.log10(Math.E))[Symbol.for("*")]?(n.sign*Math.log10(Math.E))[Symbol.for("*")](n.mag):n.sign*Math.log10(Math.E)*n.mag}()):1===this.layer?P(1,2,function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.log10(.4342944819032518)+n.mag):n.sign*(Math.log10(.4342944819032518)+n.mag)}()):P(1,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())}},{key:"sqr",value:function(){return this.pow(2)}},{key:"sqrt",value:function(){var n=this;if(0===this.layer)return I(Math.sqrt(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));if(1===this.layer)return P(1,2,function(){return void 0!==Math.log10(n.mag)&&null!==Math.log10(n.mag)&&Math.log10(n.mag)[Symbol.for("-")]?Math.log10(n.mag)[Symbol.for("-")](.3010299956639812):Math.log10(n.mag)-.3010299956639812}());var e=s.div(F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag),F(1,0,2));return e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),e.normalize(),e}},{key:"cube",value:function(){return this.pow(3)}},{key:"cbrt",value:function(){return this.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3}())}},{key:"tetrate",value:function(){var n=arguments,e=this,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);if(1===o)return s.pow(this,r);if(0===o)return new s(r);if(this.eq(s.dOne))return s.dOne;if(this.eq(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()))return s.pow(this,r);if(o===Number.POSITIVE_INFINITY){var t=this.toNumber();if(function(){return void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](1.444667861009766):t<=1.444667861009766}()&&function(){return void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](.06598803584531254):t>=.06598803584531254}()){if(function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009099):t>1.444667861009099}())return new s(Math.E);var l=s.ln(this).neg();return l.lambertw().div(l)}return function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009766):t>1.444667861009766}()?new s(Number.POSITIVE_INFINITY):s.dNaN}if(this.eq(s.dZero)){var i=Math.abs(function(){return o+1!==void 0&&o+1!==null&&(o+1)[Symbol.for("%")]?(o+1)[Symbol.for("%")](2):(o+1)%2}());return function(){return void 0!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](1):i>1}()&&(i=function(){return 2[Symbol.for("-")]?2[Symbol.for("-")](i):2-i}()),new s(i)}if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.iteratedlog(r,this,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}());r=I(r);var u=o;o=Math.trunc(o);var a=function(){return void 0!==u&&null!==u&&u[Symbol.for("-")]?u[Symbol.for("-")](o):u-o}();if(this.gt(s.dZero)&&this.lte(1.444667861009766)){o=Math.min(1e4,o);for(var f=0;function(){return void 0!==f&&null!==f&&f[Symbol.for("<")]?f[Symbol.for("<")](o):f")]?(r.layer-e.layer)[Symbol.for(">")](3):r.layer-e.layer>3}())return F(r.sign,function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("+")]?r.layer[Symbol.for("+")](o-y-1):r.layer+(o-y-1)}(),r.mag);if(function(){return void 0!==y&&null!==y&&y[Symbol.for(">")]?y[Symbol.for(">")](1e4):y>1e4}())return r}return r}},{key:"iteratedexp",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);return this.tetrate(e,o)}},{key:"iteratedlog",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:1;if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.tetrate(e,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}(),this);e=I(e);var r=I(this),t=o;o=Math.trunc(o);var l=function(){return void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](o):t-o}();if(function(){return r.layer-e.layer!==void 0&&r.layer-e.layer!==null&&(r.layer-e.layer)[Symbol.for(">")]?(r.layer-e.layer)[Symbol.for(">")](3):r.layer-e.layer>3}()){var i=Math.min(o,function(){return r.layer-e.layer!==void 0&&r.layer-e.layer!==null&&(r.layer-e.layer)[Symbol.for("-")]?(r.layer-e.layer)[Symbol.for("-")](3):r.layer-e.layer-3}());o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),r.layer=function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("-")]?r.layer[Symbol.for("-")](i):r.layer-i}()}for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](o):u")]?u[Symbol.for(">")](1e4):u>1e4}())return r}return function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](0):l>0}()&&function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](1):l<1}()&&(r=e.eq(10)?r.layeradd10(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}()):r.layeradd(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}(),e)),r}},{key:"slog",value:function(){var n=arguments,e=this,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10;if(o=I(o),o.lte(s.dZero))return s.dNaN;if(o.eq(s.dOne))return s.dNaN;if(o.lt(s.dOne))return this.eq(s.dOne)?s.dZero:this.eq(s.dZero)?s.dNegOne:s.dNaN;if(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()||this.eq(s.dZero))return s.dNegOne;var r=0,t=I(this);if(function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for(">")]?(t.layer-o.layer)[Symbol.for(">")](3):t.layer-o.layer>3}()){var l=function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for("-")]?(t.layer-o.layer)[Symbol.for("-")](3):t.layer-o.layer-3}();r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](l):r+l}(),t.layer=function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l}()}for(var i=0;function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](100):i<100}();function(){return void 0!==i&&null!==i&&"object"===(0,S.Z)(i)&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i}())if(t.lt(s.dZero))t=s.pow(o,t),r=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](1):r-1}();else{if(t.lte(s.dOne))return I(function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](s.slog_critical(o.toNumber(),t.toNumber())):r+s.slog_critical(o.toNumber(),t.toNumber())}());r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}(),t=s.log(t,o)}return I(r)}},{key:"layeradd10",value:function(n){n=s.fromValue_noAlloc(n).toNumber();var e=I(this);if(function(){return void 0!==n&&null!==n&&n[Symbol.for(">=")]?n[Symbol.for(">=")](1):n>=1}()){(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0})()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">")]?e.layer[Symbol.for(">")](0):e.layer>0}()?(e.sign=0,e.mag=0,e.layer=0):e.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("==")]?e.layer[Symbol.for("==")](0):0==e.layer}()&&(e.sign=1,e.mag=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}());var o=Math.trunc(n);n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](o):n-o}(),e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](o):e.layer+o}()}if(function(){return void 0!==n&&null!==n&&n[Symbol.for("<=")]?n[Symbol.for("<=")](-1):n<=-1}()){var r=Math.trunc(n);if(n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](r):n-r}(),e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](r):e.layer+r}(),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}())for(var t=0;function(){return void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](100):t<100}();function(){return void 0!==t&&null!==t&&"object"===(0,S.Z)(t)&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t}()){if(function(){void 0!==e.layer&&null!==e.layer&&"object"===(0,S.Z)(e.layer)&&e.layer[Symbol.for("postfix-increment")]?e.layer[Symbol.for("postfix-increment")]():e.layer++}(),e.mag=Math.log10(e.mag),function(){return void 0!==isFinite(e.mag)&&null!==isFinite(e.mag)&&isFinite(e.mag)[Symbol.for("!")]?isFinite(e.mag)[Symbol.for("!")]():!isFinite(e.mag)}())return 0===e.sign&&(e.sign=1),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}()&&(e.layer=0),e.normalize();if(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](0):e.layer>=0}())break}}while(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}())(function(){void 0!==e.layer&&null!==e.layer&&"object"===(0,S.Z)(e.layer)&&e.layer[Symbol.for("postfix-increment")]?e.layer[Symbol.for("postfix-increment")]():e.layer++})(),e.mag=Math.log10(e.mag);return 0===e.sign&&(e.sign=1,0===e.mag&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](1):e.layer>=1}()&&(e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),e.mag=1)),e.normalize(),function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](0):0!==n}()?e.layeradd(n,10):e}},{key:"layeradd",value:function(n,e){var o=this.slog(e).toNumber(),r=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](n):o+n}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](0):r>=0}()?s.tetrate(e,r):function(){return void 0!==Number.isFinite(r)&&null!==Number.isFinite(r)&&Number.isFinite(r)[Symbol.for("!")]?Number.isFinite(r)[Symbol.for("!")]():!Number.isFinite(r)}()?s.dNaN:function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](-1):r>=-1}()?s.log(s.tetrate(e,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}()),e):s.log(s.log(s.tetrate(e,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](2):r+2}()),e),e)}},{key:"lambertw",value:function(){var n=this;if(this.lt(function(){return.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499}()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}())return I(R(this.toNumber()));if(0===this.layer)return I(R(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));if(1===this.layer)return j(this);if(2===this.layer)return j(this);if(function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](3):n.layer>=3}())return F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag);throw"Unhandled behavior in lambertw()"}},{key:"ssqrt",value:function(){var n=this;if(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("==")]?n.sign[Symbol.for("==")](1):1==n.sign}()&&function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](3):n.layer>=3}())return F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag);var e=this.ln();return e.div(e.lambertw())}},{key:"pentate",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);o=I(o);var r=e;e=Math.trunc(e);var t=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](e):r-e}();(function(){return void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](0):0!==t})()&&(o.eq(s.dOne)?(function(){void 0!==e&&null!==e&&"object"===(0,S.Z)(e)&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e}(),o=new s(t)):o=this.eq(10)?o.layeradd10(t):o.layeradd(t,this));for(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](e):l")]?l[Symbol.for(">")](10):l>10}())return o}return o}},{key:"sin",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.sin(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"cos",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dOne:0===this.layer?I(Math.cos(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"tan",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.tan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"asin",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.asin(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(Number.NaN,Number.NaN,Number.NaN)}},{key:"acos",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?I(Math.acos(this.toNumber())):0===this.layer?I(Math.acos(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(Number.NaN,Number.NaN,Number.NaN)}},{key:"atan",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.atan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):I(Math.atan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Infinity):Infinity*n.sign}()))}},{key:"sinh",value:function(){return this.exp().sub(this.negate().exp()).div(2)}},{key:"cosh",value:function(){return this.exp().add(this.negate().exp()).div(2)}},{key:"tanh",value:function(){return this.sinh().div(this.cosh())}},{key:"asinh",value:function(){return s.ln(this.add(this.sqr().add(1).sqrt()))}},{key:"acosh",value:function(){return s.ln(this.add(this.sqr().sub(1).sqrt()))}},{key:"atanh",value:function(){return this.abs().gte(1)?F(Number.NaN,Number.NaN,Number.NaN):s.ln(this.add(1).div(I(1).sub(this))).div(2)}},{key:"ascensionPenalty",value:function(n){return 0===n?this:this.root(s.pow(10,n))}},{key:"egg",value:function(){return this.add(9)}},{key:"lessThanOrEqualTo",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for("<")]?e.cmp(n)[Symbol.for("<")](1):e.cmp(n)<1}()}},{key:"lessThan",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for("<")]?e.cmp(n)[Symbol.for("<")](0):e.cmp(n)<0}()}},{key:"greaterThanOrEqualTo",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for(">")]?e.cmp(n)[Symbol.for(">")](-1):e.cmp(n)>-1}()}},{key:"greaterThan",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for(">")]?e.cmp(n)[Symbol.for(">")](0):e.cmp(n)>0}()}}],[{key:"fromComponents",value:function(n,e,o){return(new s).fromComponents(n,e,o)}},{key:"fromComponents_noNormalize",value:function(n,e,o){return(new s).fromComponents_noNormalize(n,e,o)}},{key:"fromMantissaExponent",value:function(n,e){return(new s).fromMantissaExponent(n,e)}},{key:"fromMantissaExponent_noNormalize",value:function(n,e){return(new s).fromMantissaExponent_noNormalize(n,e)}},{key:"fromDecimal",value:function(n){return(new s).fromDecimal(n)}},{key:"fromNumber",value:function(n){return(new s).fromNumber(n)}},{key:"fromString",value:function(n){return(new s).fromString(n)}},{key:"fromValue",value:function(n){return(new s).fromValue(n)}},{key:"fromValue_noAlloc",value:function(n){return n instanceof s?n:new s(n)}},{key:"abs",value:function(n){return I(n).abs()}},{key:"neg",value:function(n){return I(n).neg()}},{key:"negate",value:function(n){return I(n).neg()}},{key:"negated",value:function(n){return I(n).neg()}},{key:"sign",value:function(n){return I(n).sign}},{key:"sgn",value:function(n){return I(n).sign}},{key:"round",value:function(n){return I(n).round()}},{key:"floor",value:function(n){return I(n).floor()}},{key:"ceil",value:function(n){return I(n).ceil()}},{key:"trunc",value:function(n){return I(n).trunc()}},{key:"add",value:function(n,e){return I(n).add(e)}},{key:"plus",value:function(n,e){return I(n).add(e)}},{key:"sub",value:function(n,e){return I(n).sub(e)}},{key:"subtract",value:function(n,e){return I(n).sub(e)}},{key:"minus",value:function(n,e){return I(n).sub(e)}},{key:"mul",value:function(n,e){return I(n).mul(e)}},{key:"multiply",value:function(n,e){return I(n).mul(e)}},{key:"times",value:function(n,e){return I(n).mul(e)}},{key:"div",value:function(n,e){return I(n).div(e)}},{key:"divide",value:function(n,e){return I(n).div(e)}},{key:"recip",value:function(n){return I(n).recip()}},{key:"reciprocal",value:function(n){return I(n).recip()}},{key:"reciprocate",value:function(n){return I(n).reciprocate()}},{key:"cmp",value:function(n,e){return I(n).cmp(e)}},{key:"cmpabs",value:function(n,e){return I(n).cmpabs(e)}},{key:"compare",value:function(n,e){return I(n).cmp(e)}},{key:"isNaN",value:function(n){function e(e){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}((function(n){return n=I(n),isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)}))},{key:"isFinite",value:function(n){function e(e){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}((function(n){return n=I(n),isFinite(n.sign)&&isFinite(n.layer)&&isFinite(n.mag)}))},{key:"eq",value:function(n,e){return I(n).eq(e)}},{key:"equals",value:function(n,e){return I(n).eq(e)}},{key:"neq",value:function(n,e){return I(n).neq(e)}},{key:"notEquals",value:function(n,e){return I(n).notEquals(e)}},{key:"lt",value:function(n,e){return I(n).lt(e)}},{key:"lte",value:function(n,e){return I(n).lte(e)}},{key:"gt",value:function(n,e){return I(n).gt(e)}},{key:"gte",value:function(n,e){return I(n).gte(e)}},{key:"max",value:function(n,e){return I(n).max(e)}},{key:"min",value:function(n,e){return I(n).min(e)}},{key:"minabs",value:function(n,e){return I(n).minabs(e)}},{key:"maxabs",value:function(n,e){return I(n).maxabs(e)}},{key:"clamp",value:function(n,e,o){return I(n).clamp(e,o)}},{key:"clampMin",value:function(n,e){return I(n).clampMin(e)}},{key:"clampMax",value:function(n,e){return I(n).clampMax(e)}},{key:"cmp_tolerance",value:function(n,e,o){return I(n).cmp_tolerance(e,o)}},{key:"compare_tolerance",value:function(n,e,o){return I(n).cmp_tolerance(e,o)}},{key:"eq_tolerance",value:function(n,e,o){return I(n).eq_tolerance(e,o)}},{key:"equals_tolerance",value:function(n,e,o){return I(n).eq_tolerance(e,o)}},{key:"neq_tolerance",value:function(n,e,o){return I(n).neq_tolerance(e,o)}},{key:"notEquals_tolerance",value:function(n,e,o){return I(n).notEquals_tolerance(e,o)}},{key:"lt_tolerance",value:function(n,e,o){return I(n).lt_tolerance(e,o)}},{key:"lte_tolerance",value:function(n,e,o){return I(n).lte_tolerance(e,o)}},{key:"gt_tolerance",value:function(n,e,o){return I(n).gt_tolerance(e,o)}},{key:"gte_tolerance",value:function(n,e,o){return I(n).gte_tolerance(e,o)}},{key:"pLog10",value:function(n){return I(n).pLog10()}},{key:"absLog10",value:function(n){return I(n).absLog10()}},{key:"log10",value:function(n){return I(n).log10()}},{key:"log",value:function(n,e){return I(n).log(e)}},{key:"log2",value:function(n){return I(n).log2()}},{key:"ln",value:function(n){return I(n).ln()}},{key:"logarithm",value:function(n,e){return I(n).logarithm(e)}},{key:"pow",value:function(n,e){return I(n).pow(e)}},{key:"pow10",value:function(n){return I(n).pow10()}},{key:"root",value:function(n,e){return I(n).root(e)}},{key:"factorial",value:function(n,e){return I(n).factorial()}},{key:"gamma",value:function(n,e){return I(n).gamma()}},{key:"lngamma",value:function(n,e){return I(n).lngamma()}},{key:"exp",value:function(n){return I(n).exp()}},{key:"sqr",value:function(n){return I(n).sqr()}},{key:"sqrt",value:function(n){return I(n).sqrt()}},{key:"cube",value:function(n){return I(n).cube()}},{key:"cbrt",value:function(n){return I(n).cbrt()}},{key:"tetrate",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).tetrate(o,r)}},{key:"iteratedexp",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).iteratedexp(o,r)}},{key:"iteratedlog",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:10,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:1;return I(n).iteratedlog(o,r)}},{key:"layeradd10",value:function(n,e){return I(n).layeradd10(e)}},{key:"layeradd",value:function(n,e){var o=arguments,r=function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()&&function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()?arguments[2]:10;return I(n).layeradd(e,r)}},{key:"slog",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:10;return I(n).slog(o)}},{key:"lambertw",value:function(n){return I(n).lambertw()}},{key:"ssqrt",value:function(n){return I(n).ssqrt()}},{key:"pentate",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).pentate(o,r)}},{key:"affordGeometricSeries",value:function(n,e,o,r){return this.affordGeometricSeries_core(I(n),I(e),I(o),r)}},{key:"sumGeometricSeries",value:function(n,e,o,r){return this.sumGeometricSeries_core(n,I(e),I(o),r)}},{key:"affordArithmeticSeries",value:function(n,e,o,r){return this.affordArithmeticSeries_core(I(n),I(e),I(o),I(r))}},{key:"sumArithmeticSeries",value:function(n,e,o,r){return this.sumArithmeticSeries_core(I(n),I(e),I(o),I(r))}},{key:"efficiencyOfPurchase",value:function(n,e,o){return this.efficiencyOfPurchase_core(I(n),I(e),I(o))}},{key:"randomDecimalForTesting",value:function(n){if(function(){return 20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1}())return F(0,0,0);var e=function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5}()?1:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();if(function(){return 20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1}())return F(e,0,1);var o=Math.floor(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](n+1):Math.random()*(n+1)}()),r=0===o?function(){return 616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308}():function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random()}();(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9})()&&(r=Math.trunc(r));var t=Math.pow(10,r);return function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9}()&&(t=Math.trunc(t)),P(e,o,t)}},{key:"affordGeometricSeries_core",value:function(n,e,o,r){var t=e.mul(o.pow(r));return s.floor(n.div(t).mul(o.sub(1)).add(1).log10().div(o.log10()))}},{key:"sumGeometricSeries_core",value:function(n,e,o,r){return e.mul(o.pow(r)).mul(s.sub(1,o.pow(n))).div(s.sub(1,o))}},{key:"affordArithmeticSeries_core",value:function(n,e,o,r){var t=e.add(r.mul(o)),l=t.sub(o.div(2)),i=l.pow(2);return l.neg().add(i.add(o.mul(n).mul(2)).sqrt()).div(o).floor()}},{key:"sumArithmeticSeries_core",value:function(n,e,o,r){var t=e.add(r.mul(o));return n.div(2).mul(t.mul(2).plus(n.sub(1).mul(o)))}},{key:"efficiencyOfPurchase_core",value:function(n,e,o){return n.div(e).add(n.div(o))}},{key:"slog_critical",value:function(n,e){return function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()?function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1}():s.critical_section(n,e,B)}},{key:"tetrate_critical",value:function(n,e){return s.critical_section(n,e,E)}},{key:"critical_section",value:function(n,e,o){e=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](10):10*e}(),function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](0):e<0}()&&(e=0),function(){return void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10}()&&(e=10),function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](2):n<2}()&&(n=2),function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()&&(n=10);for(var r=0,t=0,l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](C.length):l")]?C[l+1][Symbol.for(">")](n):C[l+1]>n}()){var i=function(){return n-C[l]!==void 0&&n-C[l]!==null&&(n-C[l])[Symbol.for("/")]?(n-C[l])[Symbol.for("/")](C[l+1]-C[l]):(n-C[l])/(C[l+1]-C[l])}();r=function(){return o[l][Math.floor(e)]*(1-i)!==void 0&&o[l][Math.floor(e)]*(1-i)!==null&&(o[l][Math.floor(e)]*(1-i))[Symbol.for("+")]?(o[l][Math.floor(e)]*(1-i))[Symbol.for("+")](o[l+1][Math.floor(e)]*i):o[l][Math.floor(e)]*(1-i)+o[l+1][Math.floor(e)]*i}(),t=function(){return o[l][Math.ceil(e)]*(1-i)!==void 0&&o[l][Math.ceil(e)]*(1-i)!==null&&(o[l][Math.ceil(e)]*(1-i))[Symbol.for("+")]?(o[l][Math.ceil(e)]*(1-i))[Symbol.for("+")](o[l+1][Math.ceil(e)]*i):o[l][Math.ceil(e)]*(1-i)+o[l+1][Math.ceil(e)]*i}();break}}var u=function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](Math.floor(e)):e-Math.floor(e)}(),a=function(){return r*(1-u)!==void 0&&r*(1-u)!==null&&(r*(1-u))[Symbol.for("+")]?(r*(1-u))[Symbol.for("+")](t*u):r*(1-u)+t*u}();return a}}]),s}(r,t,l,i,u,a,f,m,s,c,y);(0,v.Z)(W,"dZero",F(0,0,0)),(0,v.Z)(W,"dOne",F(1,0,1)),(0,v.Z)(W,"dNegOne",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),0,1)),(0,v.Z)(W,"dTwo",F(1,0,2)),(0,v.Z)(W,"dTen",F(1,0,10)),(0,v.Z)(W,"dNaN",F(Number.NaN,Number.NaN,Number.NaN)),(0,v.Z)(W,"dInf",F(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,v.Z)(W,"dNegInf",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,v.Z)(W,"dNumberMax",P(1,0,Number.MAX_VALUE)),(0,v.Z)(W,"dNumberMin",P(1,0,Number.MIN_VALUE))},5634:function(n,e,o){"use strict";var r=o(5082),t=o(8534),l=(o(6992),o(8674),o(9601),o(7727),o(5666),o(4865)),i=(o(7941),o(8309),o(2526),o(1817),o(1539),o(6699),o(2023),o(2345)),u=o(9365),a=o(5967);function f(n,e,o,r,t,i){var u=(0,l.resolveComponent)("Links");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"layer-container",style:(0,l.normalizeStyle)({"--layer-color":n.unref(n.color)})},[n.showGoBack?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:"goBack",onClick:e[0]||(e[0]=function(){return n.goBack&&n.goBack.apply(n,arguments)})},"←")):(0,l.createCommentVNode)("",!0),n.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:e[1]||(e[1]=function(e){return n.minimized.value=!1})},[(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(n.unref(n.name)),1)])):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(["layer-tab",[{showGoBack:n.showGoBack},n.unref(n.classes)]]),style:(0,l.normalizeStyle)(n.unref(n.style))},[(0,l.createVNode)(u,{links:n.unref(n.links)},{default:(0,l.withCtx)((function(){return[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(n.component)))]})),_:1},8,["links"])],6)),n.unref(n.minimizable)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:3,class:"minimize",onClick:e[2]||(e[2]=function(e){return n.minimized.value=!0})}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var m=o(6084),s=(o(9653),o(561),o(5389)),c=o(8755),y=(0,l.defineComponent)({components:{Links:s.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,c.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,c.P5)(Number),required:!0},name:{type:(0,c.P5)(String),required:!0},color:(0,c.P5)(String),style:(0,c.P5)(String,Object,Array),classes:(0,c.P5)(Object),links:(0,c.P5)(Array),minimizable:(0,c.P5)(Boolean)},setup:function(n){var e=(0,l.toRefs)(n),o=e.display,r=e.index,t=e.minimized,u=e.minWidth,f=e.tab,s=(0,c.vq)(o),y=(0,l.computed)((function(){return i.allowGoBack&&function(){return void 0!==r.value&&null!==r.value&&r.value[Symbol.for(">")]?r.value[Symbol.for(">")](0):r.value>0}()&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}()}));function d(){a.Z.tabs.splice((0,l.unref)(n.index),1/0)}function b(n,e){var o=f.value();(function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o})()&&(n?(o.style.flexGrow="0",o.style.flexShrink="0",o.style.width="60px",o.style.minWidth=o.style.flexBasis="",o.style.margin="0"):(o.style.flexGrow="",o.style.flexShrink="",o.style.width="",o.style.minWidth=o.style.flexBasis="".concat(e,"px"),o.style.margin=""))}return(0,l.nextTick)((function(){return b(t.value,(0,l.unref)(u.value))})),(0,l.watch)([t,(0,c.o9)(u)],(function(n){var e=(0,m.Z)(n,2),o=e[0],r=e[1];return b(o,r)})),{component:s,showGoBack:y,unref:l.unref,goBack:d}}}),d=o(3744);const b=(0,d.Z)(y,[["render",f],["__scopeId","data-v-666ada59"]]);var v=b,S=o(7286),g=function(n){return(0,l.pushScopeId)("data-v-3303e3d5"),n=n(),(0,l.popScopeId)(),n},h=g((function(){return(0,l.createElementVNode)("h2",null,"Changelog",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),p=g((function(){return(0,l.createElementVNode)("details",{open:""},[(0,l.createElementVNode)("summary",null,[(0,l.createTextVNode)("v0.0 Initial Commit - "),(0,l.createElementVNode)("time",null,"2021-09-04")]),(0,l.createTextVNode)(" This is the first release :D "),(0,l.createElementVNode)("ul",null,[(0,l.createElementVNode)("li",{class:"feature"},"Did everything"),(0,l.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,l.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,l.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),N=(0,l.defineComponent)({setup:function(n,e){var o=e.expose,r=(0,l.ref)(!1);return o({open:function(){r.value=!0}}),function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return r.value=n})},{header:(0,l.withCtx)((function(){return[h]})),body:(0,l.withCtx)((function(){return[p]})),_:1},8,["modelValue"])}}});const k=(0,d.Z)(N,[["__scopeId","data-v-3303e3d5"]]);var M=k,Z=o(9706),V=function(n){return(0,l.pushScopeId)("data-v-0b3812f2"),n=n(),(0,l.popScopeId)(),n},w={class:"info-modal-header"},x=["src","alt"],C={class:"info-modal-title"},E={key:0},B={key:0},I=V((function(){return(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),P=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),F=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),D=["href"],T=V((function(){return(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_=V((function(){return(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Paper Pilot Community ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),O=V((function(){return(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Modding Tree ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),R=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),j=(0,l.defineComponent)({props:{changelog:null},setup:function(n,e){var o=e.expose,r=n,t=i.title,u=i.logo,f=i.author,m=i.discordName,s=i.discordLink,c=i.versionNumber,y=i.versionTitle,d=(0,l.toRefs)(r),b=(0,l.ref)(!1),v=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)}));function g(){var n;null===(n=(0,l.unref)(d.changelog))||void 0===n||n.open()}return o({open:function(){b.value=!0}}),function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:b.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return b.value=n})},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",w,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(u),alt:(0,l.unref)(t)},null,8,x)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",C,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(t)),1),(0,l.createElementVNode)("h4",null,function(){return"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==void 0&&"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==null&&("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]?("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "+(0,l.toDisplayString)((0,l.unref)(y))}(),1)])])]})),body:(0,l.withCtx)((function(n){var e=n.shown;return[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",E,[(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("div",B,function(){return"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"By "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)):(0,l.createCommentVNode)("",!0),I,P,(0,l.createElementVNode)("div",{class:"link",onClick:g},"Changelog"),F,(0,l.createElementVNode)("div",null,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(s),class:"info-modal-discord-link"},[T,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):" "+(0,l.toDisplayString)((0,l.unref)(m))}(),1)],8,D)):(0,l.createCommentVNode)("",!0)]),_,O,R,(0,l.createElementVNode)("div",null,function(){return"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(v))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(v))}(),1)])):(0,l.createCommentVNode)("",!0)]})),_:1},8,["modelValue"])}}});const W=(0,d.Z)(j,[["__scopeId","data-v-0b3812f2"]]);var q=W,A=(o(1249),o(5679)),L=o(9266),z=o(1349),U={class:"field"},G=(0,l.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.computed)((function(){return(0,c.MM)((0,l.unref)(r.title)||"","span")})),i=(0,l.computed)({get:function(){return function(){return void 0!==!r.modelValue&&null!==!r.modelValue&&(!r.modelValue)[Symbol.for("!")]?(!r.modelValue)[Symbol.for("!")]():!!r.modelValue}()},set:function(n){o("update:modelValue",n)}});return function(n,e){return(0,l.openBlock)(),(0,l.createElementBlock)("label",U,[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":e[0]||(e[0]=function(n){return(0,l.isRef)(i)?i.value=n:null})},null,512),[[l.vModelCheckbox,(0,l.unref)(i)]]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(t))))])}}});const J=(0,d.Z)(G,[["__scopeId","data-v-7db643c6"]]);var Y=J,H=(o(9826),o(9179)),X={class:"field"},$={key:0,class:"field-title"},Q=(0,l.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup:function(n,e){var o=e.emit,r=n,t=(0,c.KO)((0,l.toRef)(r,"title"),"span"),i=(0,l.ref)(r.options.find((function(n){return n.value===r.modelValue})));function u(n){o("update:modelValue",n.value)}return(0,l.watch)((0,l.toRef)(r,"modelValue"),(function(n){(function(){var e,o,r,t,l;return void 0!==(null===(e=i.value)||void 0===e?void 0:e.value)&&null!==(null===(o=i.value)||void 0===o?void 0:o.value)&&(null===(r=i.value)||void 0===r?void 0:r.value)[Symbol.for("!==")]?(null===(t=i.value)||void 0===t?void 0:t.value)[Symbol.for("!==")](n):(null===(l=i.value)||void 0===l?void 0:l.value)!==n})()&&(i.value=r.options.find((function(e){return e.value===n})))})),function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("div",X,[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("span",$,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(t))))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(H.Z),{options:n.options,modelValue:i.value,"onUpdate:modelValue":[o[0]||(o[0]=function(n){return i.value=n}),u],min:1,"label-by":"label",placeholder:n.placeholder,"close-on-select":n.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])])}}});const K=Q;var nn=K,en=o(5939),on=o(6113),rn=function(n){return(0,l.pushScopeId)("data-v-54e795a4"),n=n(),(0,l.popScopeId)(),n},tn=rn((function(){return(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ln=rn((function(){return(0,l.createElementVNode)("hr",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),un=(0,l.defineComponent)({setup:function(n,e){var o=e.expose,r=(0,l.ref)(!1);o({open:function(){r.value=!0}});var t=Object.keys(A.Z).map((function(n){return{label:(0,z.IJ)(n),value:n}})),i=(0,l.computed)((function(){return(0,c.MM)((0,on.tZ)((function(){return(0,l.createVNode)(l.Fragment,null,[L.V$.map(c.sY)])})))})),u=(0,l.toRefs)(L.ZP),f=u.showTPS,m=u.theme,s=u.unthrottled,y=(0,l.toRefs)(a.Z),d=y.autosave,b=y.offlineProd,v=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(n){a.Z.devSpeed=n?0:null}}),g=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),h=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),p=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])}));return function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=function(n){return r.value=n})},{header:(0,l.withCtx)((function(){return[tn]})),body:(0,l.withCtx)((function(){return[(0,l.createVNode)(nn,{title:"Theme",options:(0,l.unref)(t),modelValue:(0,l.unref)(m),"onUpdate:modelValue":e[0]||(e[0]=function(n){return(0,l.isRef)(m)?m.value=n:null})},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i)))),(0,l.createVNode)(Y,{title:"Show TPS",modelValue:(0,l.unref)(f),"onUpdate:modelValue":e[1]||(e[1]=function(n){return(0,l.isRef)(f)?f.value=n:null})},null,8,["modelValue"]),ln,(0,l.createVNode)(Y,{title:"Unthrottled",modelValue:(0,l.unref)(s),"onUpdate:modelValue":e[2]||(e[2]=function(n){return(0,l.isRef)(s)?s.value=n:null})},null,8,["modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(g),modelValue:(0,l.unref)(b),"onUpdate:modelValue":e[3]||(e[3]=function(n){return(0,l.isRef)(b)?b.value=n:null})},null,8,["title","modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(h),modelValue:(0,l.unref)(d),"onUpdate:modelValue":e[4]||(e[4]=function(n){return(0,l.isRef)(d)?d.value=n:null})},null,8,["title","modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(p),modelValue:(0,l.unref)(v),"onUpdate:modelValue":e[5]||(e[5]=function(n){return(0,l.isRef)(v)?v.value=n:null})},null,8,["title","modelValue"])]})),_:1},8,["modelValue"])}}});const an=(0,d.Z)(un,[["__scopeId","data-v-54e795a4"]]);var fn=an,mn=o(3336),sn=(o(8862),o(3948),o(7042),o(2222),o(4747),o(7327),o(463)),cn=o(7197),yn=["onSubmit"],dn={class:"field"},bn={key:0,class:"field-title"},vn=["placeholder"],Sn=(0,l.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=(0,l.computed)((function(){var n;return(null===(n=t.title)||void 0===n?void 0:n.value)&&(0,c.MM)((0,l.unref)(t.title.value),"span")})),u=(0,l.ref)(null);(0,l.onMounted)((function(){var n;null===(n=u.value)||void 0===n||n.focus()}));var a=(0,l.computed)({get:function(){return(0,l.unref)(t.modelValue)||""},set:function(n){o("update:modelValue",n)}});function f(){o("submit")}return function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("form",{onSubmit:(0,l.withModifiers)(f,["prevent"])},[(0,l.createElementVNode)("div",dn,[(0,l.unref)(i)?((0,l.openBlock)(),(0,l.createElementBlock)("span",bn,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i))))])):(0,l.createCommentVNode)("",!0),n.textArea?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(cn.Z),{key:1,modelValue:(0,l.unref)(a),"onUpdate:modelValue":o[0]||(o[0]=function(n){return(0,l.isRef)(a)?a.value=n:null}),placeholder:n.placeholder,maxHeight:n.maxHeight,onBlur:f,ref_key:"field",ref:u},null,8,["modelValue","placeholder","maxHeight"])):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":o[1]||(o[1]=function(n){return(0,l.isRef)(a)?a.value=n:null}),placeholder:n.placeholder,class:(0,l.normalizeClass)({fullWidth:function(){return void 0!==n.title&&null!==n.title&&n.title[Symbol.for("!")]?n.title[Symbol.for("!")]():!n.title}()}),onBlur:f,ref_key:"field",ref:u},null,42,vn)),[[l.vModelText,(0,l.unref)(a)]])])],40,yn)}}});const gn=(0,d.Z)(Sn,[["__scopeId","data-v-540fa62c"]]);var hn=gn,pn={key:0},Nn=["onClick","disabled"],kn={key:0},Mn=["onClick"],Zn=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=(0,l.ref)(!1);function u(){(0,l.unref)(t.skipConfirm)?o("click"):(i.value&&o("click"),i.value=function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value}())}function a(){i.value=!1}return(0,l.watch)(i,(function(n){o("confirmingChanged",n)})),function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:i.value}])},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",pn,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(u,["stop"]),class:"button danger",disabled:n.disabled},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",kn,"Yes")):(0,l.renderSlot)(e.$slots,"default",{key:1})],8,Nn),i.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,Mn)):(0,l.createCommentVNode)("",!0)],2)}}});const Vn=(0,d.Z)(Zn,[["__scopeId","data-v-bf59fca4"]]);var wn=Vn,xn=["onClick"],Cn=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup:function(n,e){var o=e.emit,r=(0,l.ref)(!1),t=(0,l.ref)(null);function i(){o("click"),t.value&&clearTimeout(t.value),r.value=!1,(0,l.nextTick)((function(){r.value=!0,t.value=setTimeout((function(){return r.value=!1}),500)}))}return function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:r.value,left:n.left}])},[(0,l.renderSlot)(e.$slots,"default")],10,xn)}}});const En=(0,d.Z)(Cn,[["__scopeId","data-v-5bbcedd3"]]);var Bn=En,In=function(n){return(0,l.pushScopeId)("data-v-4c4580ca"),n=n(),(0,l.popScopeId)(),n},Pn=In((function(){return(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Fn={key:0,class:"actions"},Dn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Tn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_n=[Tn],On=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"edit",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Rn=[On],jn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Wn={key:1,class:"actions"},qn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"check",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),An=[qn],Ln=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"close",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),zn=[Ln],Un={key:2,class:"details"},Gn={class:"save-version"},Jn=In((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Yn={key:0},Hn={key:3,class:"details"},Xn={key:4,class:"details error"},$n=In((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Qn=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=t.save,u=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),f=(0,l.ref)(!1),m=(0,l.ref)(!1),s=(0,l.ref)("");(0,l.watch)(f,(function(){return s.value=i.value.name||""}));var c=(0,l.computed)((function(){return i.value&&i.value.id===a.Z.id})),y=(0,l.computed)((function(){return c.value?a.Z.time:i.value&&i.value.time||0}));function d(){o("editName",s.value),f.value=!1}return function(n,e){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(c)}])},[Pn,function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Fn,[function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createBlock)(Bn,{key:0,onClick:e[0]||(e[0]=function(n){return o("export")}),class:"button",left:""},{default:(0,l.withCtx)((function(){return[Dn]})),_:1})):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:e[1]||(e[1]=function(n){return o("duplicate")}),class:"button"},_n)):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:e[2]||(e[2]=function(n){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},Rn)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(wn,{disabled:(0,l.unref)(c),onClick:e[3]||(e[3]=function(n){return o("delete")}),onConfirmingChanged:e[4]||(e[4]=function(n){return m.value=n})},{default:(0,l.withCtx)((function(){return[jn]})),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Wn,[(0,l.createElementVNode)("button",{onClick:d,class:"button"},An),(0,l.createElementVNode)("button",{onClick:e[5]||(e[5]=function(n){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},zn)])),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Un,[(0,l.createElementVNode)("button",{class:"button open",onClick:e[6]||(e[6]=function(n){return o("open")})},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(i).name),1)]),(0,l.createElementVNode)("span",Gn,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(i).modVersion)}(),1),Jn,(0,l.unref)(y)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Yn,function(){return"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(y)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(y)))}(),1)):(0,l.createCommentVNode)("",!0)])):function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&f.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",Hn,[(0,l.createVNode)(hn,{modelValue:s.value,"onUpdate:modelValue":e[7]||(e[7]=function(n){return s.value=n}),class:"editname",onSubmit:d},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Xn,[(0,l.createTextVNode)(function(){return" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(i).id)}(),1),$n,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(i).error),1)]))],2)}}});const Kn=(0,d.Z)(Qn,[["__scopeId","data-v-4c4580ca"]]);var ne=Kn,ee=o(9980),oe=o.n(ee),re=function(n){return(0,l.pushScopeId)("data-v-199ffea0"),n=n(),(0,l.popScopeId)(),n},te=re((function(){return(0,l.createElementVNode)("h2",null,"Saves Manager",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),le={class:"modal-footer"},ie={class:"field"},ue=re((function(){return(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ae={class:"field-buttons"},fe={class:"footer"},me=re((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),se=(0,l.defineComponent)({setup:function(n,e){var t=e.expose,i=(0,l.ref)(!1),u=(0,l.ref)(null);t({open:function(){i.value=!0}});var f=(0,l.ref)(!1),m=(0,l.ref)("");(0,l.watch)(m,(function(n){n?(0,l.nextTick)((function(){try{var e=JSON.parse(decodeURIComponent(escape(atob(n))));if(function(){return void 0!==(0,mn.Z)(e)&&null!==typeof e&&(0,mn.Z)(e)[Symbol.for("!==")]?(0,mn.Z)(e)[Symbol.for("!==")]("object"):"object"!==(0,mn.Z)(e)}())return void(f.value=!0);var o=(0,sn.QI)();e.id=o,localStorage.setItem(o,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),m.value="",f.value=!1,L.ZP.saves.push(o)}catch(r){f.value=!0}})):f.value=!1}));var s=o(7634),c=(0,l.ref)(s.keys().reduce((function(n,e){return n.push({label:e.slice(2,function(){return 4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4}()),value:s(e).default}),n}),[])),y=(0,l.shallowReactive)({});function d(n){if(function(){return void 0!==y[n]&&null!==y[n]&&y[n][Symbol.for("==")]?y[n][Symbol.for("==")](null):null==y[n]}()){var e=localStorage.getItem(n);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())y[n]={error:"Save doesn't exist in localStorage",id:n};else if("dW5kZWZpbmVk"===e)y[n]={error:"Save is undefined",id:n};else try{y[n]=(0,r.Z)((0,r.Z)({},JSON.parse(decodeURIComponent(escape(atob(e))))),{},{id:n})}catch(o){y[n]={error:o,id:n},console.warn("SavesManager: Failed to load info about save with id ".concat(n,":\n").concat(o,"\n").concat(e))}}return y[n]}(0,l.watch)(i,(function(n){n&&Object.keys(y).forEach((function(n){return function(){return void 0!==y&&null!==y&&y[Symbol.for("delete")]?y[Symbol.for("delete")]("key"):delete y.key}()}))}));var b=(0,l.computed)((function(){return L.ZP.saves.reduce((function(n,e){return n[e]=d(e),n}),{})}));function v(n){var e;e=a.Z.id===n?(0,sn.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(b.value[n]))));var o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),o.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(o)}function g(n){a.Z.id===n&&(0,sn.a1)();var e=(0,r.Z)((0,r.Z)({},b.value[n]),{},{id:(0,sn.QI)()});localStorage.setItem(e.id,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),L.ZP.saves.push(e.id)}function h(n){L.ZP.saves=L.ZP.saves.filter((function(e){return function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](n):e!==n}()})),localStorage.removeItem(n),y[n]=void 0}function p(n){b.value[a.Z.id].time=a.Z.time,(0,sn.a1)(),(0,sn.uW)(b.value[n]),y[n]=void 0}function N(n){var e=JSON.parse(decodeURIComponent(escape(atob(n))));e.id=(0,sn.QI)(),localStorage.setItem(e.id,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),L.ZP.saves.push(e.id)}function k(n,e){var o=b.value[n];o&&(o.name=e,a.Z.id===n?(a.Z.name=e,(0,sn.a1)()):(localStorage.setItem(n,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),y[n]=void 0))}return function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=function(n){return i.value=n}),ref_key:"modal",ref:u},{header:(0,l.withCtx)((function(){return[te]})),body:(0,l.withCtx)((function(){var n;return[(0,l.unref)(null===(n=u.value)||void 0===n?void 0:n.isOpen)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(oe()),{key:0,list:(0,l.unref)(L.ZP).saves,handle:".handle",itemKey:function(n){return n}},{item:(0,l.withCtx)((function(n){var e=n.element;return[(0,l.createVNode)(ne,{save:(0,l.unref)(b)[e],onOpen:function(n){return p(e)},onExport:function(n){return v(e)},onEditName:function(n){return k(e,n)},onDuplicate:function(n){return g(e)},onDelete:function(n){return h(e)}},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]})),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",le,[(0,l.createVNode)(hn,{modelValue:m.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return m.value=n}),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:f.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",ie,[ue,(0,l.createElementVNode)("div",ae,[(0,l.createElementVNode)("button",{class:"button",onClick:e[1]||(e[1]=function(){return(0,l.unref)(sn.xM)&&(0,l.unref)(sn.xM).apply(void 0,arguments)})},"New Game"),function(){return void 0!==Object.keys((0,l.unref)(c)).length&&null!==Object.keys((0,l.unref)(c)).length&&Object.keys((0,l.unref)(c)).length[Symbol.for(">")]?Object.keys((0,l.unref)(c)).length[Symbol.for(">")](0):Object.keys((0,l.unref)(c)).length>0}()?((0,l.openBlock)(),(0,l.createBlock)(nn,{key:0,options:(0,l.unref)(c),modelValue:void 0,"onUpdate:modelValue":e[2]||(e[2]=function(n){return N(n)}),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",fe,[me,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:e[3]||(e[3]=function(n){return i.value=!1})}," Close ")])])]})),_:1},8,["modelValue"])}}});const ce=(0,d.Z)(se,[["__scopeId","data-v-199ffea0"]]);var ye=ce,de=function(n){return(0,l.pushScopeId)("data-v-72eb8c78"),n=n(),(0,l.popScopeId)(),n},be=["src","alt"],ve={key:1,class:"title"},Se=de((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ge={class:"discord"},he={class:"discord-links"},pe={key:0},Ne=["href"],ke=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Me=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ze={href:"https://forums.moddingtree.com/",target:"_blank"},Ve=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),we=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),xe=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ce=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ee=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Be=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ie=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Pe={href:"https://forums.moddingtree.com/",target:"_blank"},Fe=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),De={class:"discord"},Te={class:"discord-links"},_e={key:0},Oe=["href"],Re=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),je=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),We=(0,l.defineComponent)({setup:function(n){var e=(0,l.ref)(null),o=(0,l.ref)(null),r=(0,l.ref)(null),t=(0,l.ref)(null),u=i.useHeader,a=i.banner,f=i.title,m=i.discordName,s=i.discordLink,c=i.versionNumber;function y(){window.open(s,"mywindow")}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},n.$attrs),[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(a),height:"100%",alt:(0,l.unref)(f)},null,8,be)):((0,l.openBlock)(),(0,l.createElementBlock)("div",ve,(0,l.toDisplayString)((0,l.unref)(f)),1)),(0,l.createElementVNode)("div",{onClick:i[0]||(i[0]=function(n){var e;return null===(e=t.value)||void 0===e?void 0:e.open()}),class:"version-container"},[(0,l.createVNode)(en.Z,{display:"Changelog",bottom:"",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):"v"+(0,l.toDisplayString)((0,l.unref)(c))}(),1)]})),_:1})]),Se,(0,l.createElementVNode)("div",ge,[(0,l.createElementVNode)("span",{onClick:y,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",he,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",pe,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,Ne)])):(0,l.createCommentVNode)("",!0),ke,Me])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Ze,[(0,l.createVNode)(en.Z,{display:"Forums",bottom:"",yoffset:"5px"},{default:(0,l.withCtx)((function(){return[Ve]})),_:1})])]),(0,l.createElementVNode)("div",{onClick:i[1]||(i[1]=function(n){var o;return null===(o=e.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(en.Z,{display:"Info",bottom:"",class:"info"},{default:(0,l.withCtx)((function(){return[we]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[2]||(i[2]=function(n){var e;return null===(e=o.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Saves",bottom:"",xoffset:"-20px"},{default:(0,l.withCtx)((function(){return[xe]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[3]||(i[3]=function(n){var e;return null===(e=r.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Options",bottom:"",xoffset:"-66px"},{default:(0,l.withCtx)((function(){return[Ce]})),_:1})])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},n.$attrs),[(0,l.createElementVNode)("div",{onClick:i[4]||(i[4]=function(n){var e;return null===(e=t.value)||void 0===e?void 0:e.open()}),class:"version-container"},[(0,l.createVNode)(en.Z,{display:"Changelog",right:"",xoffset:"25%",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):"v"+(0,l.toDisplayString)((0,l.unref)(c))}(),1)]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[5]||(i[5]=function(n){var e;return null===(e=o.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Saves",right:""},{default:(0,l.withCtx)((function(){return[Ee]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[6]||(i[6]=function(n){var e;return null===(e=r.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Options",right:""},{default:(0,l.withCtx)((function(){return[Be]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[7]||(i[7]=function(n){var o;return null===(o=e.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(en.Z,{display:"Info",right:""},{default:(0,l.withCtx)((function(){return[Ie]})),_:1})]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Pe,[(0,l.createVNode)(en.Z,{display:"Forums",right:"",xoffset:"7px"},{default:(0,l.withCtx)((function(){return[Fe]})),_:1})])]),(0,l.createElementVNode)("div",De,[(0,l.createElementVNode)("span",{onClick:y,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",Te,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",_e,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,Oe)])):(0,l.createCommentVNode)("",!0),Re,je])])],16)),(0,l.createVNode)(q,{ref_key:"info",ref:e,changelog:t.value},null,8,["changelog"]),(0,l.createVNode)(ye,{ref_key:"savesManager",ref:o},null,512),(0,l.createVNode)(fn,{ref_key:"options",ref:r},null,512),(0,l.createVNode)(M,{ref_key:"changelog",ref:t},null,512)],64)}}});const qe=(0,d.Z)(We,[["__scopeId","data-v-72eb8c78"]]);var Ae=qe,Le={class:"tabs-container"},ze={class:"inner-tab"},Ue={key:1,class:"separator"},Ge=(0,l.defineComponent)({setup:function(n){var e=(0,l.toRef)(a.Z,"tabs"),o=(0,l.computed)((function(){return Object.keys(u.layers)})),r=i.useHeader;function t(n){var e=n.display,o=n.minimized,r=n.minWidth,t=n.name,l=n.color,i=n.style,u=n.classes,a=n.links,f=n.minimizable;return{display:e,minimized:o,minWidth:r,name:t,color:l,style:i,classes:u,links:a,minimizable:f}}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",Le,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(e),(function(i,a){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{key:a,class:"tab",ref_for:!0,ref:"tab-".concat(a)},[0===a&&function(){return void 0!==(0,l.unref)(r)&&null!==(0,l.unref)(r)&&(0,l.unref)(r)[Symbol.for("!")]?(0,l.unref)(r)[Symbol.for("!")]():!(0,l.unref)(r)}()?((0,l.openBlock)(),(0,l.createBlock)(Ae,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",ze,[(0,l.unref)(o).includes(i)?((0,l.openBlock)(),(0,l.createBlock)(v,(0,l.mergeProps)({key:0},t((0,l.unref)(u.layers)[i]),{index:a,tab:function(){var e;return null===(e=n.$refs["tab-".concat(a)])||void 0===e?void 0:e[0]}}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(i),{key:1,index:a},null,8,["index"]))]),function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")]((0,l.unref)(e).length-1):a!==(0,l.unref)(e).length-1}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ue)):(0,l.createCommentVNode)("",!0)])})),128))])}}});const Je=(0,d.Z)(Ge,[["__scopeId","data-v-6bcb9872"]]);var Ye=Je,He=o(8097),Xe=function(n){return(0,l.pushScopeId)("data-v-364b55bc"),n=n(),(0,l.popScopeId)(),n},$e={class:"game-over-modal-header"},Qe=["src","alt"],Ke={class:"game-over-modal-title"},no=Xe((function(){return(0,l.createElementVNode)("h2",null,"Congratulations!",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),eo={key:0},oo=Xe((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ro=Xe((function(){return(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),to=Xe((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),lo=["href"],io=Xe((function(){return(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),uo=(0,l.defineComponent)({setup:function(n){var e=i.title,o=i.logo,r=i.discordName,t=i.discordLink,u=i.versionNumber,f=i.versionTitle,m=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)})),s=(0,l.computed)((function(){return He.hasWon.value&&function(){return void 0!==a.Z.keepGoing&&null!==a.Z.keepGoing&&a.Z.keepGoing[Symbol.for("!")]?a.Z.keepGoing[Symbol.for("!")]():!a.Z.keepGoing}()})),c=(0,l.toRef)(a.Z,"autosave");function y(){a.Z.keepGoing=!0}function d(){(0,sn.uW)((0,sn.xM)())}return function(n,i){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{"model-value":(0,l.unref)(s)},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",$e,[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(o),alt:(0,l.unref)(e)},null,8,Qe)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Ke,[no,(0,l.createElementVNode)("h4",null,function(){return"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)])])]})),body:(0,l.withCtx)((function(n){var e=n.shown;return[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",eo,[(0,l.createElementVNode)("div",null,function(){return"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(m))+" to beat the game."}(),1),oo,ro,to,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"game-over-modal-discord-link"},[io,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r))):" "+(0,l.toDisplayString)((0,l.unref)(r))}(),1)],8,lo)]),(0,l.createVNode)(Y,{title:"Autosave",modelValue:(0,l.unref)(c),"onUpdate:modelValue":i[0]||(i[0]=function(n){return(0,l.isRef)(c)?c.value=n:null})},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:d,class:"button danger"},"Play Again")])]})),_:1},8,["model-value"])}}});const ao=(0,d.Z)(uo,[["__scopeId","data-v-364b55bc"]]);var fo=ao,mo=(o(9600),o(3032)),so=function(n){return(0,l.pushScopeId)("data-v-0f93e378"),n=n(),(0,l.popScopeId)(),n},co=so((function(){return(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),yo={key:0},bo=so((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),vo=["href"],So=so((function(){return(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),go=so((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ho={class:"nan-footer"},po=(0,l.defineComponent)({setup:function(n){var e=i.discordName,o=i.discordLink,r=(0,l.toRef)(a.Z,"autosave"),t=(0,l.toRef)(mo.Z,"hasNaN"),u=(0,l.ref)(null),f=(0,l.computed)((function(){var n;return null===(n=mo.Z.NaNPath)||void 0===n?void 0:n.join(".")})),m=(0,l.computed)((function(){var n;return null===(n=mo.Z.NaNPath)||void 0===n?void 0:n.slice(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())[0]})),s=(0,l.computed)((function(){return mo.Z.NaNReceiver&&m.value?mo.Z.NaNReceiver[m.value]:null})),c=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(n){a.Z.devSpeed=n?null:0}});function y(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(0),mo.Z.hasNaN=!1)}function d(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(1),mo.Z.hasNaN=!1)}function b(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(NaN),mo.Z.hasNaN=!1)}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(S.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(t),"onUpdate:modelValue":i[4]||(i[4]=function(n){return(0,l.isRef)(t)?t.value=n:null})},n.$attrs),{header:(0,l.withCtx)((function(){return[co]})),body:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)(function(){return' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))+'" to NaN'}(),1),(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("span",yo,function(){return(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))+")"}(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)(function(){return". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled"))[Symbol.for("+")](". Check the console for more details, and consider sharing it with the developers on discord. "):". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. "}(),1)]),bo,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(o),class:"nan-modal-discord-link"},[So,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(e))):" "+(0,l.toDisplayString)((0,l.unref)(e))}(),1)],8,vo)]),go,(0,l.createVNode)(Y,{title:"Autosave",modelValue:(0,l.unref)(r),"onUpdate:modelValue":i[0]||(i[0]=function(n){return(0,l.isRef)(r)?r.value=n:null})},null,8,["modelValue"]),(0,l.createVNode)(Y,{title:"Pause game",modelValue:(0,l.unref)(c),"onUpdate:modelValue":i[1]||(i[1]=function(n){return(0,l.isRef)(c)?c.value=n:null})},null,8,["modelValue"])]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",ho,[(0,l.createElementVNode)("button",{onClick:i[2]||(i[2]=function(n){var e;return null===(e=u.value)||void 0===e?void 0:e.open()}),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Set to 1"),(0,l.unref)(s)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),0)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:i[3]||(i[3]=function(n){return t.value=!1}),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:b,class:"button danger"},"Ignore")])]})),_:1},16,["modelValue"]),(0,l.createVNode)(ye,{ref_key:"savesManager",ref:u},null,512)],64)}}});const No=(0,d.Z)(po,[["__scopeId","data-v-0f93e378"]]);var ko=No,Mo=(o(86),{key:0,class:"tpsDisplay"}),Zo={key:0,class:"low"},Vo=(0,l.defineComponent)({setup:function(n){var e=(0,l.computed)((function(){return Z.ZP.div(mo.Z.lastTenTicks.length,mo.Z.lastTenTicks.reduce((function(n,e){return function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](e):n+e}()}),0))})),o=(0,l.ref)([]);(0,l.watchEffect)((function(){o.value.push(Math.round(e.value.toNumber())),function(){return void 0!==o.value.length&&null!==o.value.length&&o.value.length[Symbol.for(">")]?o.value.length[Symbol.for(">")](10):o.value.length>10}()&&(o.value=o.value.slice(1))}));var r=(0,l.computed)((function(){return o.value.reduce((function(n,e){return Z.ZP.max(n,e)}),0)})),t=(0,l.computed)((function(){return Z.ZP.sub(e.value,r.value).gt(1)}));return function(n,o){return function(){return void 0!==(0,l.unref)(e).isNan()&&null!==(0,l.unref)(e).isNan()&&(0,l.unref)(e).isNan()[Symbol.for("!")]?(0,l.unref)(e).isNan()[Symbol.for("!")]():!(0,l.unref)(e).isNan()}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Mo,[(0,l.createTextVNode)(function(){return" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))+" "}(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((function(){return[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Zo,(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(r))),1)):(0,l.createCommentVNode)("",!0)]})),_:1})])):(0,l.createCommentVNode)("",!0)}}});const wo=(0,d.Z)(Vo,[["__scopeId","data-v-323f9b12"]]);var xo=wo,Co=(0,l.defineComponent)({setup:function(n){function e(){}var o=i.useHeader,r=(0,l.computed)((function(){return A.Z[L.ZP.theme].variables})),t=(0,l.toRef)(L.ZP,"showTPS");return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(r))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(o)}]),onMousemove:e,style:(0,l.normalizeStyle)((0,l.unref)(r))},[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createBlock)(Ae,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ye),(0,l.unref)((0,l.unref)(t))?((0,l.openBlock)(),(0,l.createBlock)(xo,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(fo),(0,l.createVNode)(ko)],38)],64)}}});const Eo=(0,d.Z)(Co,[["__scopeId","data-v-e0e491f6"]]);var Bo=Eo;requestAnimationFrame((0,t.Z)(regeneratorRuntime.mark((function n(){var e,t,u,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("%cMade in Profectus%c\nLearn more at www.moddingtree.com","font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),n.next=3,(0,sn.zD)();case 3:return n.next=5,o(7302);case 5:e=n.sent,t=e.globalBus,u=e.startGameLoop,a=window.vue=(0,l.createApp)((0,r.Z)({},Bo)),t.emit("setupVue",a),a.mount("#app"),document.title=i.title,u();case 13:case"end":return n.stop()}}),n)})))),window.modInfo=i},9706:function(n,e,o){"use strict";o.d(e,{WU:function(){return u},Ht:function(){return a},mr:function(){return f}});var r=o(3243),t=r.m6,l=r.Qv,i=r.hm,u=r.WU,a=r.Ht,f=r.mr,m=r.FP,s=r.T3,c=r.Hv;window.Decimal=r.ZP,window.exponentialFormat=t,window.commaFormat=l,window.regularFormat=i,window.format=u,window.formatWhole=a,window.formatTime=f,window.toPlaces=m,window.formatSmall=s,window.invertOOM=c,e["ZP"]=r.ZP},3243:function(n,e,o){"use strict";o.d(e,{m6:function(){return i},Qv:function(){return u},hm:function(){return a},WU:function(){return f},Ht:function(){return m},mr:function(){return s},FP:function(){return c},T3:function(){return y},Hv:function(){return d}});o(2526),o(1817),o(1539),o(6977),o(4916),o(3123),o(5306),o(9653),o(86);var r=o(1008),t=o(2345);e["ZP"]=r.Z;var l=new r.Z(1);function i(n,e){var o=arguments,i=!function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()||!function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()||arguments[2],a=r.Z.log10(n).floor(),m=r.Z.div(n,r.Z.pow(10,a));"10"===m.toStringWithDecimalPlaces(e)&&(m=l,a=a.add(1));var s=a.gte(1e9)?f(a,Math.max(Math.max(e,3),t.defaultDecimalsShown)):a.gte(1e4)?u(a,0):a.toStringWithDecimalPlaces(0);return i?function(){return m.toStringWithDecimalPlaces(e)+"e"!==void 0&&m.toStringWithDecimalPlaces(e)+"e"!==null&&(m.toStringWithDecimalPlaces(e)+"e")[Symbol.for("+")]?(m.toStringWithDecimalPlaces(e)+"e")[Symbol.for("+")](s):m.toStringWithDecimalPlaces(e)+"e"+s}():function(){return"e"[Symbol.for("+")]?"e"[Symbol.for("+")](s):"e"+s}()}function u(n,e){if(null===n||void 0===n)return"NaN";if(n=new r.Z(n),function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](.001):n.mag<.001}())return(0).toFixed(e);var o=n.toStringWithDecimalPlaces(e),t=o.split(".");return t[0]=t[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for("==")]?t.length[Symbol.for("==")](1):1==t.length}()?t[0]:function(){return t[0]+"."!==void 0&&t[0]+"."!==null&&(t[0]+".")[Symbol.for("+")]?(t[0]+".")[Symbol.for("+")](t[1]):t[0]+"."+t[1]}()}function a(n,e){return null===n||void 0===n?"NaN":(n=new r.Z(n),function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](1e-4):n.mag<1e-4}()?(0).toFixed(e):(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](.1):n.mag<.1}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e}()&&(e=Math.max(Math.max(e,4),t.defaultDecimalsShown)),n.toStringWithDecimalPlaces(e)))}function f(n,e,o){if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&(e=t.defaultDecimalsShown),o=o||t.allowSmall,n=new r.Z(n),isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag))return"NaN";if(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](0):n.sign<0}())return function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](f(n.neg(),e)):"-"+f(n.neg(),e)}();if(n.mag===Number.POSITIVE_INFINITY)return"Infinity";if(n.gte("eeee1000")){var l=n.slog();return l.gte(1e6)?function(){return"F"[Symbol.for("+")]?"F"[Symbol.for("+")](f(l.floor())):"F"+f(l.floor())}():function(){return r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](u(l.floor(),0)):r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"+u(l.floor(),0)}()}if(n.gte("1e100000"))return i(n,0,!1);if(n.gte("1e1000"))return i(n,0);if(n.gte(1e9))return i(n,e);if(n.gte(1e3))return u(n,0);if(n.gte(.001)||function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}())return a(n,e);if(n.eq(0))return(0).toFixed(e);if(n=d(n),n.lt("1e1000")){var m=i(n,e);return m.replace(/([^(?:e|F)]*)$/,"-$1")}return function(){return void 0!==f(n,e)&&null!==f(n,e)&&f(n,e)[Symbol.for("+")]?f(n,e)[Symbol.for("+")]("⁻¹"):f(n,e)+"⁻¹"}()}function m(n){return n=new r.Z(n),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](0):n.sign<0}()?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](m(n.neg())):"-"+m(n.neg())}():n.gte(1e9)||n.lte(.98)&&function(){return void 0!==n.eq(0)&&null!==n.eq(0)&&n.eq(0)[Symbol.for("!")]?n.eq(0)[Symbol.for("!")]():!n.eq(0)}()?f(n):f(n,0)}function s(n){return r.Z.lt(n,0)?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](s(r.Z.neg(n))):"-"+s(r.Z.neg(n))}():r.Z.gt(n,function(){return 2[Symbol.for("**")]?2[Symbol.for("**")](51):Math.pow(2,51)}())?function(){return void 0!==f(r.Z.div(n,31536e3))&&null!==f(r.Z.div(n,31536e3))&&f(r.Z.div(n,31536e3))[Symbol.for("+")]?f(r.Z.div(n,31536e3))[Symbol.for("+")]("y"):f(r.Z.div(n,31536e3))+"y"}():(n=new r.Z(n).toNumber(),function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](60):n<60}()?function(){return void 0!==f(n)&&null!==f(n)&&f(n)[Symbol.for("+")]?f(n)[Symbol.for("+")]("s"):f(n)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](3600):n<3600}()?function(){return m(Math.floor(n/60))+"m "+f(n%60)!==void 0&&m(Math.floor(n/60))+"m "+f(n%60)!==null&&(m(Math.floor(n/60))+"m "+f(n%60))[Symbol.for("+")]?(m(Math.floor(n/60))+"m "+f(n%60))[Symbol.for("+")]("s"):m(Math.floor(n/60))+"m "+f(n%60)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](86400):n<86400}()?function(){return m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)!==void 0&&m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)!==null&&(m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60))[Symbol.for("+")]?(m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60))[Symbol.for("+")]("s"):m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](31536e3):n<31536e3}()?function(){return m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)!==void 0&&m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)!==null&&(m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60))[Symbol.for("+")]?(m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60))[Symbol.for("+")]("m"):m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)+"m"}():function(){return m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)!==void 0&&m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)!==null&&(m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24))[Symbol.for("+")]?(m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24))[Symbol.for("+")]("h"):m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h"}())}function c(n,e,o){n=new r.Z(n);var t=n.toStringWithDecimalPlaces(e);return new r.Z(t).gte(o)&&(t=r.Z.sub(o,Math.pow(.1,e)).toStringWithDecimalPlaces(e)),t}function y(n,e){return f(n,e,!0)}function d(n){var e=r.Z.log10(n).ceil(),o=r.Z.div(n,r.Z.pow(10,e));return e=e.neg(),n=new r.Z(10).pow(e).times(o),n}},1349:function(n,e,o){"use strict";o.d(e,{IJ:function(){return r},PO:function(){return t},mf:function(){return l}});o(4916),o(5306),o(2526),o(1817),o(1539),o(7042);function r(n){var e=n.replace(/([A-Z])/g," $1");return e=function(){return void 0!==e.charAt(0).toUpperCase()&&null!==e.charAt(0).toUpperCase()&&e.charAt(0).toUpperCase()[Symbol.for("+")]?e.charAt(0).toUpperCase()[Symbol.for("+")](e.slice(1)):e.charAt(0).toUpperCase()+e.slice(1)}(),e}function t(n){return"[object Object]"===Object.prototype.toString.call(n)}function l(n){return"function"===typeof n}},9583:function(n,e,o){"use strict";o.d(e,{mM:function(){return l},yB:function(){return i}});o(2526),o(1817),o(1539);var r=o(4865),t=o(1349),l=Symbol("DoNotCache");function i(n,e){var o=n[e];(0,t.mf)(o)&&0===o.length&&function(){return void 0!==o[l]&&null!==o[l]&&o[l][Symbol.for("!")]?o[l][Symbol.for("!")]():!o[l]}()&&(n[e]=(0,r.computed)(o.bind(n)))}},3273:function(n,e,o){"use strict";o.d(e,{Le:function(){return r},c4:function(){return t},z2:function(){return l}});o(2526),o(1817),o(1539),o(1037),o(1299),o(7556),o(5003);var r=Symbol("ProxyState"),t=Symbol("ProxyPath");function l(n){var e={},o=!1;function t(){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(e,n()),o=!0),e}return new Proxy(e,{get:function(n,e){return e===r?t():t()[e]},set:function(){return console.error("Layers and features are shallow readonly"),!1},has:function(n,e){return e===r||Reflect.has(t(),e)},ownKeys:function(){return Reflect.ownKeys(t())},getOwnPropertyDescriptor:function(r,t){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(e,n()),o=!0),Object.getOwnPropertyDescriptor(r,t)}})}},463:function(n,e,o){"use strict";o.d(e,{a1:function(){return s},zD:function(){return c},xM:function(){return d},QI:function(){return b},uW:function(){return v},y6:function(){return g}});var r=o(3336),t=o(8534),l=(o(5666),o(2526),o(1817),o(1539),o(7042),o(2222),o(8783),o(3948),o(4747),o(2345)),i=o(5967),u=o(9266),a=o(9706),f=o(3273);function m(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:{};return Object.assign({id:"".concat(l.id,"-0"),name:"Default Save",tabs:l.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:new a.ZP(0),timePlayed:new a.ZP(0),keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},e)}function s(){var n=btoa(unescape(encodeURIComponent((0,i.U)(i.Z[f.Le]))));return localStorage.setItem(i.Z.id,n),n}function c(){return y.apply(this,arguments)}function y(){return y=(0,t.Z)(regeneratorRuntime.mark((function n(){var e,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if((0,u.ri)(),n.prev=1,e=localStorage.getItem(u.ZP.active),function(){return void 0!==function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&null!==function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()[Symbol.for("!")]?function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()[Symbol.for("!")]():!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()}()){n.next=7;break}return n.next=6,v(d());case 6:return n.abrupt("return");case 7:if(o=JSON.parse(decodeURIComponent(escape(atob(e)))),function(){return void 0!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&null!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]?function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]():!function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()}()){n.next=12;break}return n.next=11,v(d());case 11:return n.abrupt("return");case 12:return o.id=u.ZP.active,n.next=15,v(o);case 15:n.next=22;break;case 17:return n.prev=17,n.t0=n["catch"](1),console.error("Failed to load save. Falling back to new save.\n",n.t0),n.next=22,v(d());case 22:case"end":return n.stop()}}),n,null,[[1,17]])}))),y.apply(this,arguments)}function d(){var n=b(),e=m({id:n});return localStorage.setItem(n,btoa(unescape(encodeURIComponent((0,i.U)(e))))),u.ZP.saves.push(n),e}function b(){var n,e=0;do{n="".concat(l.id,"-").concat(function(){return void 0!==e&&null!==e&&"object"===(0,r.Z)(e)&&e[Symbol.for("postfix-increment")]?e[Symbol.for("postfix-increment")]():e++}())}while(localStorage.getItem(n));return n}function v(n){return S.apply(this,arguments)}function S(){return S=(0,t.Z)(regeneratorRuntime.mark((function n(e){var r,t,f,s,c,y,d,b;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.info("Loading save",e),n.next=3,Promise.resolve().then(o.bind(o,9365));case 3:return r=n.sent,t=r.layers,f=r.removeLayer,s=r.addLayer,n.next=9,Promise.resolve().then(o.bind(o,8097));case 9:for(b in c=n.sent,y=c.fixOldSave,d=c.getInitialLayers,t)f(t[b]);d(e).forEach((function(n){return s(n,e)})),e=m(e),e.offlineProd&&e.time&&(function(){return void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("==")]?e.offlineTime[Symbol.for("==")](void 0):void 0==e.offlineTime}()&&(e.offlineTime=new a.ZP(0)),e.offlineTime=a.ZP.add(e.offlineTime,function(){return Date.now()-e.time!==void 0&&Date.now()-e.time!==null&&(Date.now()-e.time)[Symbol.for("/")]?(Date.now()-e.time)[Symbol.for("/")](1e3):(Date.now()-e.time)/1e3}())),e.time=Date.now(),function(){return void 0!==e.modVersion&&null!==e.modVersion&&e.modVersion[Symbol.for("!==")]?e.modVersion[Symbol.for("!==")](l.versionNumber):e.modVersion!==l.versionNumber}()&&y(e.modVersion,e),Object.assign(i.Z,e),u.ZP.active=i.Z.id;case 20:case"end":return n.stop()}}),n)}))),S.apply(this,arguments)}setInterval((function(){i.Z.autosave&&s()}),1e3),window.onbeforeunload=function(){i.Z.autosave&&s()},window.save=s;var g=window.hardReset=(0,t.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,v(d());case 2:case"end":return n.stop()}}),n)})))},8097:function(n,e,o){"use strict";o.r(e),o.d(e,{fixOldSave:function(){return Fn},getInitialLayers:function(){return In},hasWon:function(){return Pn},main:function(){return Bn}});var r=o(4865),t=(o(2526),o(1817),o(1539),(0,r.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup:function(n){return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{style:(0,r.normalizeStyle)({width:n.width,height:n.height})},null,4)}}}));const l=t;var i=l,u=o(6113),a=o(3336),f=(o(7268),o(86),o(9706)),m=o(7302),s=o(4061);function c(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"points",r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:0,t=!(!function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](3):e.length>3}()||!function(){return void 0!==e[3]&&null!==e[3]&&e[3][Symbol.for("!==")]?e[3][Symbol.for("!==")](void 0):void 0!==e[3]}())&&arguments[3],l=(0,s.ax)(n);return l.displayName=o,l.precision=r,l.small=t,l}function y(n){var e=(0,s.ax)(n.value);return(0,r.watch)(n,(function(n){f.ZP.gt(n,e.value)&&(e.value=n)})),e}function d(n){var e=(0,s.ax)(n.value);return(0,r.watch)(n,(function(n,o){f.ZP.gt(n,o)&&(e.value=f.ZP.add(e.value,f.ZP.sub(n,o)))})),e}function b(n,e){var o=(0,r.ref)(0),t=(0,r.ref)(0),l=(0,r.ref)(0);m.globalBus.on("update",(function(e){if(t.value=0,f.ZP.lte(n.value,1e100))l.value=n.value;else{var r=n.value,i=l.value;if(l.value=r,f.ZP.gt(r,i))if(f.ZP.gte(r,"10^^8"))r=f.ZP.slog(r,1e10),i=f.ZP.slog(i,1e10),o.value=r.sub(i).div(e),t.value=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();else while(f.ZP.div(r,i).log(10).div(e).gte("100")&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("<=")]?t.value[Symbol.for("<=")](5):t.value<=5}()&&f.ZP.gt(i,0))r=f.ZP.log10(r),i=f.ZP.log10(i),o.value=r.sub(i).div(e),function(){void 0!==t.value&&null!==t.value&&"object"===(0,a.Z)(t.value)&&t.value[Symbol.for("postfix-increment")]?t.value[Symbol.for("postfix-increment")]():t.value++}()}}));var i=(0,r.computed)((function(){return 0===t.value?e?function(){return(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName!==void 0&&(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName!==null&&((0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName)[Symbol.for("+")]?((0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName)[Symbol.for("+")]("/s"):(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName+"/s"}():"":function(){return(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==void 0&&(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==null&&((0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]?((0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]("s/sec"):(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)+"s/sec"}()}));return i}function v(n,e){var o=function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](null):null!==e}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:n.value;return f.ZP.eq(n.precision,0)?(0,f.Ht)(o):(0,f.WU)(o,n.precision,n.small)}var S=o(9584),g=(o(4553),o(6699),o(2023),o(4747),o(7327),o(1249),o(2222),{key:0,class:"left-side-nodes"}),h={key:1,class:"side-nodes"};function p(n,e,o,t,l,i){var u=(0,r.resolveComponent)("TreeNode");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.nodes),(function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("span",(0,r.mergeProps)({class:"row",key:o},n.$attrs),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip}),null,16,["force-tooltip"])})),128))],16)})),128)),n.unref(n.leftSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.leftSideNodes),(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0),n.unref(n.rightSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.rightSideNodes),(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0)],64)}var N=o(8755),k=o(5082),M=["disabled"];function Z(n,e,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode"),f=(0,r.resolveComponent)("Tooltip");return function(){return void 0!==n.unref(n.visibility)&&null!==n.unref(n.visibility)&&n.unref(n.visibility)[Symbol.for("!==")]?n.unref(n.visibility)[Symbol.for("!==")](n.Visibility.None):n.unref(n.visibility)!==n.Visibility.None}()?((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({key:0},n.tooltipToBind&&n.gatherTooltipProps(n.tooltipToBind),{display:n.tooltipDisplay,force:n.forceTooltip,style:{visibility:n.unref(n.visibility)===n.Visibility.Hidden?"hidden":void 0},class:(0,k.Z)({treeNode:!0,can:n.unref(n.canClick),small:n.unref(n.small)},n.unref(n.classes))}),{default:(0,r.withCtx)((function(){var o;return[(0,r.createElementVNode)("button",{onClick:e[0]||(e[0]=function(){return n.click&&n.click.apply(n,arguments)}),onMousedown:e[1]||(e[1]=function(){return n.start&&n.start.apply(n,arguments)}),onMouseleave:e[2]||(e[2]=function(){return n.stop&&n.stop.apply(n,arguments)}),onMouseup:e[3]||(e[3]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchstart:e[4]||(e[4]=function(){return n.start&&n.start.apply(n,arguments)}),onTouchend:e[5]||(e[5]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchcancel:e[6]||(e[6]=function(){return n.stop&&n.stop.apply(n,arguments)}),style:(0,r.normalizeStyle)([{backgroundColor:n.unref(n.color),boxShadow:"-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ".concat(n.unref(n.glowColor))},function(){return void 0!==(o=n.unref(n.style))&&null!==(o=n.unref(n.style))&&(o=n.unref(n.style))[Symbol.for("!==")]?(o=n.unref(n.style))[Symbol.for("!==")](null):null!==(o=n.unref(n.style))}()&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](void 0):void 0!==o}()?o:[]]),disabled:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}()},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(n.unref(n.comp))))],44,M),(0,r.createVNode)(u,{mark:n.unref(n.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:n.id},null,8,["id"])]})),_:1},16,["display","force","style","class"])):(0,r.createCommentVNode)("",!0)}o(9653);var V=o(6084),w=o(630),x=(0,r.defineComponent)({props:{id:null},setup:function(n){var e=n,o=(0,r.toRefs)(e),t=(0,r.inject)(w.Z),l=(0,r.inject)(w.w),i=(0,r.ref)(null),u=(0,r.computed)((function(){return i.value&&i.value.parentElement}));return t&&l&&((0,r.watch)([u,o.id],(function(n,e){var o=(0,V.Z)(n,2),i=o[0],u=o[1],a=(0,V.Z)(e,2),f=a[0],m=a[1];f&&l((0,r.unref)(m)),i&&t(u,i)})),(0,r.onUnmounted)((function(){return l((0,r.unref)(o.id))}))),function(n,e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"branch",ref_key:"node",ref:i},null,512)}}}),C=o(3744);const E=(0,C.Z)(x,[["__scopeId","data-v-1318daf7"]]);var B=E,I={key:0},P={key:0,class:"mark star"},F=["src"],D=(0,r.defineComponent)({props:{mark:{type:[Boolean,String]}},setup:function(n){return function(e,o){return n.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",I,[!0===n.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",P)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"mark",src:n.mark},null,8,F))])):(0,r.createCommentVNode)("",!0)}}});const T=(0,C.Z)(D,[["__scopeId","data-v-c476c56a"]]);var _=T,O=o(5939);function R(n){var e=n.display,o=n.top,r=n.left,t=n.right,l=n.bottom,i=n.xoffset,u=n.yoffset,a=n.force;return{display:e,top:o,left:r,right:t,bottom:l,xoffset:i,yoffset:u,force:a}}var j=(0,r.defineComponent)({props:{display:(0,N.P5)(Object,String,Function),visibility:{type:(0,N.P5)(Number),required:!0},style:(0,N.P5)(String,Object,Array),classes:(0,N.P5)(Object),tooltip:(0,N.P5)(Object,String,Function),onClick:Function,onHold:Function,color:(0,N.P5)(String),glowColor:(0,N.P5)(String),forceTooltip:{type:Object,required:!0},canClick:{type:(0,N.P5)(Boolean),required:!0},mark:(0,N.P5)(Boolean,String),id:{type:String,required:!0},small:(0,N.P5)(Boolean)},components:{Tooltip:O.Z,MarkNode:_,LinkNode:B},setup:function(n){var e=(0,r.toRefs)(n),o=e.tooltip,t=e.forceTooltip,l=e.onClick,i=e.onHold,f=e.display;function m(n){var e;n.shiftKey&&o?t.value=function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}():null===(e=(0,r.unref)(l))||void 0===e||e()}var s=(0,N.KO)(f),c=(0,r.shallowRef)(void 0);(0,r.watchEffect)((function(){var n=(0,N.Uv)(o);"object"===(0,a.Z)(n)&&function(){return void 0!==(0,N.RU)(n)&&null!==(0,N.RU)(n)&&(0,N.RU)(n)[Symbol.for("!")]?(0,N.RU)(n)[Symbol.for("!")]():!(0,N.RU)(n)}()?c.value=n.display:c.value=n}));var y=(0,r.computed)((function(){var n=(0,N.Uv)(o);return"object"===(0,a.Z)(n)&&function(){return void 0!==(0,N.RU)(n)&&null!==(0,N.RU)(n)&&(0,N.RU)(n)[Symbol.for("!")]?(0,N.RU)(n)[Symbol.for("!")]():!(0,N.RU)(n)}()?n:null})),d=(0,N.ix)(l,i),b=d.start,v=d.stop;return{click:m,start:b,stop:v,comp:s,tooltipDisplay:c,tooltipToBind:y,unref:r.unref,Visibility:u.EE,gatherTooltipProps:R,isCoercableComponent:N.RU}}});const W=(0,C.Z)(j,[["render",Z],["__scopeId","data-v-176052a6"]]);var q=W,A=(0,r.defineComponent)({props:{nodes:{type:(0,N.P5)(Array),required:!0},leftSideNodes:(0,N.P5)(Array),rightSideNodes:(0,N.P5)(Array)},components:{TreeNode:q},setup:function(){function n(n){var e=n.display,o=n.visibility,r=n.style,t=n.classes,l=n.tooltip,i=n.onClick,u=n.onHold,a=n.color,f=n.glowColor,m=n.forceTooltip,s=n.canClick,c=n.mark,y=n.id;return{display:e,visibility:o,style:r,classes:t,tooltip:l,onClick:i,onHold:u,color:a,glowColor:f,forceTooltip:m,canClick:s,mark:c,id:y}}return{gatherNodeProps:n,unref:r.unref}}});const L=(0,C.Z)(A,[["render",p],["__scopeId","data-v-e6ef63ea"]]);var z=L,U=(o(3243),o(9583)),G=o(3273),J=Symbol("TreeNode"),Y=Symbol("Tree");function H(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("treeNode-"),e.type=J,e.tooltip?e.forceTooltip=(0,s.ax)(!1):e.forceTooltip=(0,r.ref)(!1),(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"canClick"),(0,u.Rh)(e,"canClick",!0),(0,U.yB)(e,"color"),(0,U.yB)(e,"display"),(0,U.yB)(e,"tooltip"),(0,U.yB)(e,"glowColor"),(0,U.yB)(e,"classes"),(0,U.yB)(e,"style"),(0,U.yB)(e,"mark"),e}))}function X(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("tree-"),e.type=Y,e[u.wA]=z,e.isResetting=(0,r.ref)(!1),e.resettingNode=(0,r.ref)(null),e.reset=function(n){var o,r,t=e;t.isResetting.value=!0,t.resettingNode.value=n,null===(o=t.resetPropagation)||void 0===o||o.call(t,t,n),null===(r=t.onReset)||void 0===r||r.call(t,n),t.isResetting.value=!1,t.resettingNode.value=null},e.links=(0,r.computed)((function(){var n,o=e;return function(){return void 0!==(n=(0,r.unref)(o.branches))&&null!==(n=(0,r.unref)(o.branches))&&(n=(0,r.unref)(o.branches))[Symbol.for("!==")]?(n=(0,r.unref)(o.branches))[Symbol.for("!==")](null):null!==(n=(0,r.unref)(o.branches))}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()?n:[]})),(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"nodes"),(0,U.yB)(e,"leftSideNodes"),(0,U.yB)(e,"rightSideNodes"),(0,U.yB)(e,"branches"),e[u.tj]=function(){var n=this.nodes,e=this.leftSideNodes,o=this.rightSideNodes;return{nodes:n,leftSideNodes:e,rightSideNodes:o}},e}))}var $=function(n,e){var o=[e],t=[e];(function(){return void 0!==n.branches&&null!==n.branches&&n.branches[Symbol.for("!=")]?n.branches[Symbol.for("!=")](null):null!=n.branches})()&&function(){var e=(0,r.unref)(n.branches),l=function(){var n=[];t.forEach((function(r){e.filter((function(n){return n.startNode===r||n.endNode===r})).map((function(n){return n.startNode===r?n.endNode:n.startNode})).filter((function(n){return function(){return void 0!==o.includes(n)&&null!==o.includes(n)&&o.includes(n)[Symbol.for("!")]?o.includes(n)[Symbol.for("!")]():!o.includes(n)}()})).forEach((function(e){var o;(function(){return void 0!==n.includes(e)&&null!==n.includes(e)&&n.includes(e)[Symbol.for("!")]?n.includes(e)[Symbol.for("!")]():!n.includes(e)})()&&(n.push(e),null===(o=e.reset)||void 0===o||o.reset())}))})),t=n,o.push.apply(o,(0,S.Z)(t))};while(function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for(">")]?t.length[Symbol.for(">")](0):t.length>0}())l()}()};var Q=o(9365),K=o(5967);function nn(n){return(0,G.z2)((function(){var e=n();return function(){return void 0!==e.currentGain&&null!==e.currentGain&&e.currentGain[Symbol.for("==")]?e.currentGain[Symbol.for("==")](null):null==e.currentGain}()&&(e.currentGain=(0,r.computed)((function(){return e.scaling.currentGain(e)}))),function(){return void 0!==e.nextAt&&null!==e.nextAt&&e.nextAt[Symbol.for("==")]?e.nextAt[Symbol.for("==")](null):null==e.nextAt}()&&(e.nextAt=(0,r.computed)((function(){return e.scaling.nextAt(e)}))),function(){return void 0!==e.convert&&null!==e.convert&&e.convert[Symbol.for("==")]?e.convert[Symbol.for("==")](null):null==e.convert}()&&(e.convert=function(){e.gainResource.value=f.ZP.add(e.gainResource.value,e.modifyGainAmount?e.modifyGainAmount((0,r.unref)(e.currentGain)):(0,r.unref)(e.currentGain)),e.baseResource.value=0}),(0,U.yB)(e,"currentGain"),(0,U.yB)(e,"nextAt"),(0,U.yB)(e,"buyMax"),(0,u.Rh)(e,"buyMax",!0),(0,U.yB)(e,"roundUpCost"),(0,u.Rh)(e,"roundUpCost",!0),e}))}function en(n,e,o){return{currentGain:function(e){var t=f.ZP.div(e.baseResource.value,(0,r.unref)(n)).pow((0,r.unref)(o)).floor().max(0);return t.isNan()?new f.ZP(0):(function(){return void 0!==e.buyMax&&null!==e.buyMax&&e.buyMax[Symbol.for("!")]?e.buyMax[Symbol.for("!")]():!e.buyMax}()&&(t=t.min(1)),t)},nextAt:function(e){var t=f.ZP.add((0,r.unref)(e.currentGain),1).root((0,r.unref)(o)).times((0,r.unref)(n)).max((0,r.unref)(n));return e.roundUpCost&&(t=t.ceil()),t}}}function on(n){return nn(n)}o(2479);var rn=o(1008),tn=Symbol("Reset");function ln(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("reset-"),e.type=tn,e.reset=function(){var n,o=function n(e){e&&"object"===(0,a.Z)(e)&&(!function(){return void 0!==u.PersistentState&&null!==u.PersistentState&&u.PersistentState[Symbol.for("in")]?u.PersistentState[Symbol.for("in")](e):u.PersistentState in e}()?function(){return e instanceof rn.Z!==void 0&&e instanceof rn.Z!==null&&(e instanceof rn.Z)[Symbol.for("!")]?(e instanceof rn.Z)[Symbol.for("!")]():!(e instanceof rn.Z)}()&&function(){return void 0!==(0,r.isRef)(e)&&null!==(0,r.isRef)(e)&&(0,r.isRef)(e)[Symbol.for("!")]?(0,r.isRef)(e)[Symbol.for("!")]():!(0,r.isRef)(e)}()&&Object.values(e).forEach((function(e){return n(e)})):e[u.PersistentState].value=e[u.DefaultValue])};(0,r.unref)(e.thingsToReset).forEach(o),m.globalBus.emit("reset",e),null===(n=e.onReset)||void 0===n||n.call(e)},(0,U.yB)(e,"thingsToReset"),e}))}var un={};m.globalBus.on("removeLayer",(function(n){var e;null===(e=un[n.id])||void 0===e||e.call(un),un[n.id]=void 0}));var an=(0,r.defineComponent)({props:{resource:null,color:null},setup:function(n){var e=n,o=(0,r.computed)((function(){return v(e.resource)}));return function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("h2",{style:(0,r.normalizeStyle)({color:n.color,"text-shadow":function(){return"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](n.color):"0px 0px 10px "+n.color}()})},(0,r.toDisplayString)((0,r.unref)(o)),5)}}});const fn=an;var mn=fn,sn={key:0},cn={key:1},yn=(0,r.createTextVNode)(", "),dn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),bn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),vn=(0,r.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup:function(n){var e=n,o=(0,r.toRefs)(e),t=(0,N.KO)(o.effectDisplay),l=(0,r.computed)((function(){return f.ZP.lt(o.resource.value,"1e1000")}));return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.unref)(l)?((0,r.openBlock)(),(0,r.createElementBlock)("span",sn,"You have ")):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(mn,{resource:n.resource,color:n.color||"white"},null,8,["resource","color"]),(0,r.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,r.toDisplayString)(n.resource.displayName)):" "+(0,r.toDisplayString)(n.resource.displayName)}(),1),(0,r.unref)(t)?((0,r.openBlock)(),(0,r.createElementBlock)("span",cn,[yn,((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(t))))])):(0,r.createCommentVNode)("",!0),dn,bn])}}});const Sn=vn;var gn=Sn,hn=(o(561),["disabled"]);function pn(n,e,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode");return function(){return void 0!==n.unref(n.visibility)&&null!==n.unref(n.visibility)&&n.unref(n.visibility)[Symbol.for("!==")]?n.unref(n.visibility)[Symbol.for("!==")](n.Visibility.None):n.unref(n.visibility)!==n.Visibility.None}()?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)({visibility:n.unref(n.visibility)===n.Visibility.Hidden?"hidden":void 0})},[(0,r.createElementVNode)("button",{style:(0,r.normalizeStyle)(n.unref(n.style)),onClick:e[0]||(e[0]=function(){return n.onClick&&n.onClick.apply(n,arguments)}),onMousedown:e[1]||(e[1]=function(){return n.start&&n.start.apply(n,arguments)}),onMouseleave:e[2]||(e[2]=function(){return n.stop&&n.stop.apply(n,arguments)}),onMouseup:e[3]||(e[3]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchstart:e[4]||(e[4]=function(){return n.start&&n.start.apply(n,arguments)}),onTouchend:e[5]||(e[5]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchcancel:e[6]||(e[6]=function(){return n.stop&&n.stop.apply(n,arguments)}),disabled:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}(),class:(0,r.normalizeClass)((0,k.Z)({feature:!0,clickable:!0,can:n.unref(n.canClick),locked:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}(),small:n.small},n.unref(n.classes)))},[n.unref(n.comp)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(n.unref(n.comp)),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{mark:n.unref(n.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:n.id},null,8,["id"])],46,hn)],4)):(0,r.createCommentVNode)("",!0)}var Nn=(0,r.defineComponent)({props:{display:{type:(0,N.P5)(Object,String,Function),required:!0},visibility:{type:(0,N.P5)(Number),required:!0},style:(0,N.P5)(Object,String,Array),classes:(0,N.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,N.P5)(Boolean),required:!0},small:Boolean,mark:(0,N.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:B,MarkNode:_},setup:function(n){var e=(0,r.toRefs)(n),o=e.display,t=e.onClick,l=e.onHold,i=(0,r.shallowRef)("");(0,r.watchEffect)((function(){var n=(0,N.Uv)(o);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())i.value="";else if((0,N.RU)(n))i.value=(0,N.MM)(n);else{var e=(0,N.MM)(n.title||"","h3"),t=(0,N.MM)(n.description,"div");i.value=(0,N.MM)((0,u.tZ)((function(){return(0,r.createVNode)("span",null,[n.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(e,null,null)]):null,(0,r.createVNode)(t,null,null)])})))}}));var a=(0,N.ix)(t,l),f=a.start,m=a.stop;return{start:f,stop:m,comp:i,Visibility:u.EE,unref:r.unref}}});const kn=(0,C.Z)(Nn,[["render",pn],["__scopeId","data-v-2d81e1cc"]]);var Mn=kn,Zn=Symbol("Clickable");function Vn(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("clickable-"),e.type=Zn,e[u.wA]=Mn,(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"canClick"),(0,u.Rh)(e,"canClick",!0),(0,U.yB)(e,"classes"),(0,U.yB)(e,"style"),(0,U.yB)(e,"mark"),(0,U.yB)(e,"display"),e[u.tj]=function(){var n=this.display,e=this.visibility,o=this.style,r=this.classes,t=this.onClick,l=this.onHold,i=this.canClick,u=this.small,a=this.mark,f=this.id;return{display:n,visibility:e,style:o,classes:r,onClick:t,onHold:l,canClick:i,small:u,mark:a,id:f}},e}))}function wn(n){return Vn((function(){var e=n();(0,U.yB)(e,"showNextAt"),(0,u.Rh)(e,"showNextAt",!0),!function(){return void 0!==e.resetDescription&&null!==e.resetDescription&&e.resetDescription[Symbol.for("==")]?e.resetDescription[Symbol.for("==")](null):null==e.resetDescription}()?(0,U.yB)(e,"resetDescription"):e.resetDescription=(0,r.computed)((function(){return f.ZP.lt(e.conversion.gainResource.value,1e3)?"Reset for ":""})),function(){return void 0!==e.display&&null!==e.display&&e.display[Symbol.for("==")]?e.display[Symbol.for("==")](null):null==e.display}()&&(e.display=(0,u.tZ)((function(){return(0,r.createVNode)("span",null,[(0,r.unref)(e.resetDescription),(0,r.createVNode)("b",null,[v(e.conversion.gainResource,(0,r.unref)(e.conversion.currentGain))])," ",e.conversion.gainResource.displayName,(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Next:")," ",v(e.conversion.baseResource,(0,r.unref)(e.conversion.nextAt))," ",e.conversion.baseResource.displayName]),[[r.vShow,(0,r.unref)(e.showNextAt)]])])}))),function(){return void 0!==e.canClick&&null!==e.canClick&&e.canClick[Symbol.for("==")]?e.canClick[Symbol.for("==")](null):null==e.canClick}()&&(e.canClick=(0,r.computed)((function(){return f.ZP.gt((0,r.unref)(e.conversion.currentGain),0)})));var o=e.onClick;return e.onClick=function(){e.conversion.convert(),e.tree.reset(e.treeNode),null===o||void 0===o||o()},e}))}function xn(n){return H((function(){var e=n();return(0,U.yB)(e,"append"),(0,k.Z)((0,k.Z)({},e),{},{display:e.layerID,onClick:function(){return void 0!==e.append&&null!==e.append&&e.append[Symbol.for("!=")]?e.append[Symbol.for("!=")](null):null!=e.append}()&&e.append?function(){if(K.Z.tabs.includes(e.layerID)){var n=K.Z.tabs.lastIndexOf(e.layerID);K.Z.tabs.splice(n,1)}else K.Z.tabs.push(e.layerID)}:function(){K.Z.tabs.splice(1,1,e.layerID)}})}))}var Cn=(0,Q.createLayer)((function(){var n="p",e="Prestige",o="#4BDC13",t=c(0,"prestige points"),l=on((function(){return{scaling:en(10,5,.5),baseResource:Bn.points,gainResource:t,roundUpCost:!0}})),i=ln((function(){return{thingsToReset:function(){return[Cn]}}})),a=xn((function(){return{layerID:n,color:o,reset:i}})),f=wn((function(){return{conversion:l,tree:Bn.tree,treeNode:a}}));return{id:n,name:e,color:o,points:t,display:(0,u.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(gn,{resource:t,color:o},null),(0,N.sY)(f)])})),treeNode:a}})),En=Cn,Bn=(0,Q.createLayer)((function(){var n=c(10),e=y(n),o=d(n),t=(0,r.computed)((function(){var n=new f.ZP(1);return n}));m.globalBus.on("update",(function(e){n.value=f.ZP.add(n.value,f.ZP.times(t.value,e))}));var l=b(n,t),a=X((function(){return{nodes:[[En.treeNode]],branches:[],onReset:function(){n.value=(0,r.toRaw)(this.resettingNode.value)===(0,r.toRaw)(En.treeNode)?0:10,e.value=n.value,o.value=n.value},resetPropagation:$}}));return{id:"main",name:"Tree",links:a.links,display:(0,u.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Game Paused")]),[[r.vShow,0===K.Z.devSpeed]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Dev Speed: "),(0,f.WU)(K.Z.devSpeed||0),(0,r.createTextVNode)("x")]),[[r.vShow,K.Z.devSpeed&&function(){return void 0!==K.Z.devSpeed&&null!==K.Z.devSpeed&&K.Z.devSpeed[Symbol.for("!==")]?K.Z.devSpeed[Symbol.for("!==")](1):1!==K.Z.devSpeed}()]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Offline Time: "),(0,f.mr)(K.Z.offlineTime||0)]),[[r.vShow,function(){return void 0!==K.Z.offlineTime&&null!==K.Z.offlineTime&&K.Z.offlineTime[Symbol.for("!=")]?K.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=K.Z.offlineTime}()]]),(0,r.createVNode)("div",null,[(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)("You have ")]),[[r.vShow,f.ZP.lt(n.value,"1e1000")]]),(0,r.createVNode)("h2",null,[(0,f.WU)(n.value)]),(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)(" points")]),[[r.vShow,f.ZP.lt(n.value,"1e1e6")]])]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("("),l.value,(0,r.createTextVNode)(")")]),[[r.vShow,f.ZP.gt(t.value,0)]]),(0,r.createVNode)(i,null,null),(0,N.sY)(a)])})),points:n,best:e,total:o,oomps:l,tree:a}})),In=function(n){return[Bn,En]},Pn=(0,r.computed)((function(){return!1}));function Fn(n,e){}},9365:function(n,e,o){"use strict";o.r(e),o.d(e,{layers:function(){return c},createLayer:function(){return y},addLayer:function(){return d},getLayer:function(){return b},removeLayer:function(){return v},reloadLayer:function(){return S},setupLayerModal:function(){return g}});var r=o(4865),t=(o(2526),o(1817),o(1539),o(8309),o(4747),o(2479),o(7286)),l=o(6113),i=o(9583),u=o(3273),a=o(8111),f=o(7302),m=o(4061),s=o(5967),c={};function y(n){return(0,u.z2)((function(){var e=n(),o=e.emitter=(0,a.i)();return e.on=o.on.bind(o),e.emit=o.emit.bind(o),e.minimized=(0,m.ax)(!1),(0,i.yB)(e,"color"),(0,i.yB)(e,"display"),(0,i.yB)(e,"name"),(0,l.Rh)(e,"name",e.id),(0,i.yB)(e,"minWidth"),(0,l.Rh)(e,"minWidth",600),(0,i.yB)(e,"minimizable"),(0,l.Rh)(e,"minimizable",!0),(0,i.yB)(e,"links"),e}))}function d(n,e){console.info("Adding layer",n.id),c[n.id]?console.error("Attempted to add layer with same ID as existing layer",n.id,c[n.id]):((0,l.Rh)(e,"layers",{}),function(){return void 0!==e.layers[n.id]&&null!==e.layers[n.id]&&e.layers[n.id][Symbol.for("==")]?e.layers[n.id][Symbol.for("==")](null):null==e.layers[n.id]}()&&(e.layers[n.id]={}),c[n.id]=n,f.globalBus.emit("addLayer",n,e.layers[n.id]))}function b(n){return c[n]}function v(n){console.info("Removing layer",n.id),f.globalBus.emit("removeLayer",n),c[n.id]=void 0}function S(n){v(n),d(n,s.Z)}function g(n){var e=(0,r.ref)(!1);return{openModal:function(){return e.value=!0},modal:(0,l.tZ)((function(){return(0,r.createVNode)(t.Z,{modelValue:e.value,"onUpdate:modelValue":function(n){return e.value=n}},{header:function(){return(0,r.createVNode)("h2",null,[(0,r.unref)(n.name)])},body:(0,r.unref)(n.display)})}))}}window.layers=c,f.globalBus.on("update",(function(n){Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("preUpdate",n)})),Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("update",n)})),Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("postUpdate",n)}))}))},8755:function(n,e,o){"use strict";o.d(e,{MM:function(){return u},vq:function(){return s},KO:function(){return c},RU:function(){return f},P5:function(){return b},sY:function(){return a},ix:function(){return m},Uv:function(){return d},o9:function(){return y}});var r=o(3336),t=o(4865);o(2526),o(1817),o(1539),o(3210),o(2222),o(1249),o(6699),o(2023),o(5679),o(9266);var l=o(6113),i=o(9583);function u(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"span";return"function"===typeof n?(0,t.defineComponent)({render:n}):"string"===typeof n?function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()?(n=n.trim(),function(){return void 0!==n.charAt(0)&&null!==n.charAt(0)&&n.charAt(0)[Symbol.for("!==")]?n.charAt(0)[Symbol.for("!==")]("<"):"<"!==n.charAt(0)}()&&(n="<".concat(o,">").concat(n,"")),(0,t.defineComponent)({template:n})):(0,t.defineComponent)({render:function(){return{}}}):n}function a(n){if(f(n))return"function"===typeof n?n():u(n);var e=n[l.wA];return(0,t.createVNode)(e,n[l.tj](),null)}function f(n){return"string"===typeof n||("object"===(0,r.Z)(n)?!function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&(function(){return"render"[Symbol.for("in")]?"render"[Symbol.for("in")](n):"render"in n}()||function(){return"component"[Symbol.for("in")]?"component"[Symbol.for("in")](n):"component"in n}()):"function"===typeof n&&!0===n[i.mM])}function m(n,e){var o=(0,t.ref)(null);function r(){(function(){return void 0!==o.value&&null!==o.value&&o.value[Symbol.for("!")]?o.value[Symbol.for("!")]():!o.value})()&&(o.value=setInterval(i,250))}function l(){o.value&&(clearInterval(o.value),o.value=null)}function i(){e&&e.value?e.value():n&&n.value&&n.value()}return{start:r,stop:l,handleHolding:i}}function s(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"div",r=(0,t.shallowRef)();return(0,t.watchEffect)((function(){r.value=u(d(n),o)})),r}function c(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"div",r=(0,t.shallowRef)(null);return(0,t.watchEffect)((function(){var e=d(n);r.value=function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?null:u(e,o)})),r}function y(n){return(0,t.computed)((function(){return d(n)}))}function d(n){return(0,t.unref)((0,t.unref)(n))}function b(){for(var n=arguments.length,e=new Array(n),o=0;function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](n):o=l)&&Object.keys(o.O).every((function(n){return o.O[n](r[a])}))?r.splice(a--,1):(u=!1,l0&&n[m-1][2]>l;m--)n[m]=n[m-1];n[m]=[r,t,l]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var r in e)o.o(e,r)&&!o.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}}(),function(){var n={143:0};o.O.j=function(e){return 0===n[e]};var e=function(e,r){var t,l,i=r[0],u=r[1],a=r[2],f=0;if(i.some((function(e){return 0!==n[e]}))){for(t in u)o.o(u,t)&&(o.m[t]=u[t]);if(a)var m=a(o)}for(e&&e(r);f {}\n}\n\nconst defaultTheme: Theme = {\n variables: {\n \"--foreground\": \"#dfdfdf\",\n \"--background\": \"#0f0f0f\",\n \"--feature-foreground\": \"#eee\",\n \"--tooltip-background\": \"rgba(0, 0, 0, 0.75)\",\n \"--raised-background\": \"#0f0f0f\",\n \"--points\": \"#ffffff\",\n \"--locked\": \"#bf8f8f\",\n \"--highlighted\": \"#333\",\n \"--bought\": \"#77bf5f\",\n \"--danger\": \"rgb(220, 53, 69)\",\n \"--link\": \"#02f2f2\",\n \"--outline\": \"#dfdfdf\",\n \"--accent1\": \"#627a82\",\n \"--accent2\": \"#658262\",\n \"--accent3\": \"#7c6282\",\n\n \"--border-radius\": \"15px\",\n \"--modal-border\": \"solid 2px var(--color)\",\n \"--feature-margin\": \"0px\"\n },\n stackedInfoboxes: false,\n floatingTabs: true,\n showSingleTab: false,\n mergeAdjacent: true\n};\n\nexport enum Themes {\n Classic = \"classic\",\n Paper = \"paper\",\n Nordic = \"nordic\",\n Aqua = \"aqua\"\n}\n\nexport default {\n classic: defaultTheme,\n paper: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--background\": \"#2a323d\",\n \"--feature-foreground\": \"#000\",\n \"--raised-background\": \"#333c4a\",\n \"--locked\": \"#3a3e45\",\n \"--bought\": \"#5C8A58\",\n \"--outline\": \"#333c4a\",\n \"--border-radius\": \"4px\",\n \"--modal-border\": \"\",\n \"--feature-margin\": \"5px\"\n },\n stackedInfoboxes: true,\n floatingTabs: false\n } as Theme,\n // Based on https://www.nordtheme.com\n nordic: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--foreground\": \"#D8DEE9\",\n \"--background\": \"#2E3440\",\n \"--feature-foreground\": \"#000\",\n \"--raised-background\": \"#3B4252\",\n \"--points\": \"#E5E9F0\",\n \"--locked\": \"#4c566a\",\n \"--highlighted\": \"#434c5e\",\n \"--bought\": \"#8FBCBB\",\n \"--danger\": \"#D08770\",\n \"--link\": \"#88C0D0\",\n \"--outline\": \"#3B4252\",\n \"--accent1\": \"#B48EAD\",\n \"--accent2\": \"#A3BE8C\",\n \"--accent3\": \"#EBCB8B\",\n \"--border-radius\": \"4px\",\n \"--modal-border\": \"solid 2px #3B4252\",\n \"--feature-margin\": \"5px\"\n },\n stackedInfoboxes: true,\n floatingTabs: false\n } as Theme,\n aqua: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--foreground\": \"#bfdfff\",\n \"--background\": \"#001f3f\",\n \"--tooltip-background\": \"rgba(0, 15, 31, 0.75)\",\n \"--raised-background\": \"#001f3f\",\n \"--points\": \"#dfefff\",\n \"--locked\": \"#c4a7b3\",\n \"--outline\": \"#bfdfff\"\n }\n } as Theme\n} as Record;\n","import { DefaultValue } from \"@/game/persistence\";\nimport Decimal from \"@/util/bignum\";\nimport { DoNotCache, ProcessedComputable } from \"@/util/computed\";\nimport { CSSProperties, DefineComponent, isRef } from \"vue\";\n\nexport const Component = Symbol(\"Component\");\nexport const GatherProps = Symbol(\"GatherProps\");\n\nexport type JSXFunction = (() => JSX.Element) & { [DoNotCache]: true };\nexport type CoercableComponent = string | DefineComponent | JSXFunction;\nexport type StyleValue = string | CSSProperties | Array;\n\n// TODO if importing .vue components in .tsx can become type safe,\n// this type can probably be safely removed\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type GenericComponent = DefineComponent;\n\nexport type FeatureComponent = Omit<\n {\n [K in keyof T]: T[K] extends ProcessedComputable ? S : T[K];\n },\n typeof Component | typeof DefaultValue\n>;\n\nexport type Replace = S & Omit;\n\nlet id = 0;\n// Get a unique ID to allow a feature to be found for creating branches\n// and any other uses requiring unique identifiers for each feature\n// IDs are gauranteed unique, but should not be saved as they are not\n// guaranteed to be persistent through updates and such\nexport function getUniqueID(prefix = \"feature-\"): string {\n return prefix + id++;\n}\n\nexport enum Visibility {\n Visible,\n Hidden,\n None\n}\n\nexport function jsx(func: () => JSX.Element | \"\"): JSXFunction {\n (func as Partial)[DoNotCache] = true;\n return func as JSXFunction;\n}\n\nexport function showIf(condition: boolean, otherwise = Visibility.None): Visibility {\n return condition ? Visibility.Visible : otherwise;\n}\n\nexport function setDefault(\n object: T,\n key: K,\n value: T[K]\n): asserts object is Exclude & Required> {\n if (object[key] === undefined && value != undefined) {\n object[key] = value;\n }\n}\n\nexport function findFeatures(obj: Record, type: symbol): unknown[] {\n const objects: unknown[] = [];\n const handleObject = (obj: Record) => {\n Object.keys(obj).forEach(key => {\n const value = obj[key];\n if (value && typeof value === \"object\") {\n if ((value as Record).type === type) {\n objects.push(value);\n } else if (!(value instanceof Decimal) && !isRef(value)) {\n handleObject(value as Record);\n }\n }\n });\n };\n handleObject(obj);\n return objects;\n}\n","import { Position } from \"@/game/layers\";\nimport { InjectionKey, SVGAttributes } from \"vue\";\n\nexport interface LinkNode {\n x?: number;\n y?: number;\n element: HTMLElement;\n}\n\nexport interface Link extends SVGAttributes {\n startNode: { id: string };\n endNode: { id: string };\n offsetStart?: Position;\n offsetEnd?: Position;\n}\n\nexport const RegisterLinkNodeInjectionKey: InjectionKey<\n (id: string, element: HTMLElement) => void\n> = Symbol(\"RegisterLinkNode\");\nexport const UnregisterLinkNodeInjectionKey: InjectionKey<(id: string) => void> =\n Symbol(\"UnregisterLinkNode\");\n","import modInfo from \"@/data/modInfo.json\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { createNanoEvents } from \"nanoevents\";\nimport { App, Ref } from \"vue\";\nimport { GenericLayer } from \"./layers\";\nimport player from \"./player\";\nimport settings, { Settings } from \"./settings\";\nimport state from \"./state\";\n\nexport interface GlobalEvents {\n addLayer: (layer: GenericLayer, saveData: Record) => void;\n removeLayer: (layer: GenericLayer) => void;\n update: (diff: Decimal, trueDiff: number) => void;\n loadSettings: (settings: Partial) => void;\n setupVue: (vue: App) => void;\n}\n\nexport const globalBus = createNanoEvents();\n\nlet intervalID: number | null = null;\n\n// Not imported immediately due to dependency cycles\n// This gets set during startGameLoop(), and will only be used in the update function\nlet hasWon: null | Ref = null;\n\nfunction update() {\n const now = Date.now();\n let diff: DecimalSource = (now - player.time) / 1e3;\n player.time = now;\n const trueDiff = diff;\n\n state.lastTenTicks.push(trueDiff);\n if (state.lastTenTicks.length > 10) {\n state.lastTenTicks = state.lastTenTicks.slice(1);\n }\n\n // Stop here if the game is paused on the win screen\n if (hasWon?.value && !player.keepGoing) {\n return;\n }\n // Stop here if the player had a NaN value\n if (state.hasNaN) {\n return;\n }\n\n diff = new Decimal(diff).max(0);\n\n if (player.devSpeed === 0) {\n return;\n }\n\n // Add offline time if any\n if (player.offlineTime != undefined) {\n if (Decimal.gt(player.offlineTime, modInfo.offlineLimit * 3600)) {\n player.offlineTime = new Decimal(modInfo.offlineLimit * 3600);\n }\n if (Decimal.gt(player.offlineTime, 0) && player.devSpeed !== 0) {\n const offlineDiff = Decimal.div(player.offlineTime, 10).max(diff);\n player.offlineTime = Decimal.sub(player.offlineTime, offlineDiff);\n diff = diff.add(offlineDiff);\n } else if (player.devSpeed === 0) {\n player.offlineTime = Decimal.add(player.offlineTime, diff);\n }\n if (!player.offlineProd || Decimal.lt(player.offlineTime, 0)) {\n player.offlineTime = null;\n }\n }\n\n // Cap at max tick length\n diff = Decimal.min(diff, modInfo.maxTickLength);\n\n // Apply dev speed\n if (player.devSpeed != undefined) {\n diff = diff.times(player.devSpeed);\n }\n\n // Update\n if (diff.eq(0)) {\n return;\n }\n player.timePlayed = Decimal.add(player.timePlayed, diff);\n globalBus.emit(\"update\", diff, trueDiff);\n\n if (settings.unthrottled) {\n requestAnimationFrame(update);\n if (intervalID != null) {\n clearInterval(intervalID);\n intervalID = null;\n }\n } else if (intervalID == null) {\n intervalID = setInterval(update, 50);\n }\n}\n\nexport async function startGameLoop() {\n hasWon = (await import(\"@/data/mod\")).hasWon;\n if (settings.unthrottled) {\n requestAnimationFrame(update);\n } else {\n intervalID = setInterval(update, 50);\n }\n}\n","import { globalBus } from \"@/game/events\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { ProxyState } from \"@/util/proxies\";\nimport { isArray } from \"@vue/shared\";\nimport { isRef, Ref, ref } from \"vue\";\nimport { GenericLayer } from \"./layers\";\n\nexport const PersistentState = Symbol(\"PersistentState\");\nexport const DefaultValue = Symbol(\"DefaultValue\");\n\n// Note: This is a union of things that should be safely stringifiable without needing\n// special processes for knowing what to load them in as\n// - Decimals aren't allowed because we'd need to know to parse them back.\n// - DecimalSources are allowed because the string is a valid value for them\nexport type State =\n | string\n | number\n | boolean\n | DecimalSource\n | { [key: string]: State }\n | { [key: number]: State };\n\nexport type Persistent = {\n [PersistentState]: Ref;\n [DefaultValue]: T;\n};\nexport type PersistentRef = Ref & Persistent;\n\nexport function persistent(defaultValue: T | Ref): PersistentRef {\n const persistent = (\n isRef(defaultValue) ? defaultValue : (ref(defaultValue) as unknown)\n ) as PersistentRef;\n\n persistent[PersistentState] = persistent;\n persistent[DefaultValue] = isRef(defaultValue) ? defaultValue.value : defaultValue;\n return persistent as PersistentRef;\n}\n\nexport function makePersistent(\n obj: unknown,\n defaultValue: T\n): asserts obj is Persistent {\n const persistent = obj as Partial>;\n const state = ref(defaultValue) as Ref;\n\n persistent[PersistentState] = state;\n persistent[DefaultValue] = isRef(defaultValue) ? (defaultValue.value as T) : defaultValue;\n}\n\nglobalBus.on(\"addLayer\", (layer: GenericLayer, saveData: Record) => {\n const features: { type: typeof Symbol }[] = [];\n const handleObject = (obj: Record, path: string[] = []): boolean => {\n let foundPersistent = false;\n Object.keys(obj).forEach(key => {\n const value = obj[key];\n if (value && typeof value === \"object\") {\n if (PersistentState in value) {\n foundPersistent = true;\n\n // Construct save path if it doesn't exist\n const persistentState = path.reduce>((acc, curr) => {\n if (!(curr in acc)) {\n acc[curr] = {};\n }\n return acc[curr] as Record;\n }, saveData);\n\n // Cache currently saved value\n const savedValue = persistentState[key];\n // Add ref to save data\n persistentState[key] = (value as Persistent)[PersistentState];\n // Load previously saved value\n if (savedValue != null) {\n (persistentState[key] as Ref).value = savedValue;\n } else {\n (persistentState[key] as Ref).value = (value as Persistent)[\n DefaultValue\n ];\n }\n } else if (\n !(value instanceof Decimal) &&\n !isRef(value) &&\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n !features.includes(value as { type: typeof Symbol })\n ) {\n if (typeof (value as { type: typeof Symbol }).type === \"symbol\") {\n features.push(value as { type: typeof Symbol });\n }\n\n // Continue traversing\n const foundPersistentInChild = handleObject(value as Record, [\n ...path,\n key\n ]);\n\n // Show warning for persistent values inside arrays\n // TODO handle arrays better\n if (foundPersistentInChild) {\n if (isArray(value) && !isArray(obj)) {\n console.warn(\n \"Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.\",\n ProxyState in obj\n ? (obj as Record)[ProxyState]\n : obj,\n key\n );\n } else {\n foundPersistent = true;\n }\n }\n }\n }\n });\n return foundPersistent;\n };\n handleObject(layer);\n});\n","import Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { isPlainObject } from \"@/util/common\";\nimport { ProxiedWithState, ProxyPath, ProxyState } from \"@/util/proxies\";\nimport { reactive, unref } from \"vue\";\nimport transientState from \"./state\";\n\nexport interface PlayerData {\n id: string;\n devSpeed: DecimalSource | null;\n name: string;\n tabs: Array;\n time: number;\n autosave: boolean;\n offlineProd: boolean;\n offlineTime: DecimalSource | null;\n timePlayed: DecimalSource;\n keepGoing: boolean;\n modID: string;\n modVersion: string;\n layers: Record>;\n}\n\nexport type Player = ProxiedWithState;\n\nconst state = reactive({\n id: \"\",\n devSpeed: null,\n name: \"\",\n tabs: [],\n time: -1,\n autosave: true,\n offlineProd: true,\n offlineTime: null,\n timePlayed: new Decimal(0),\n keepGoing: false,\n modID: \"\",\n modVersion: \"\",\n layers: {}\n});\n\nexport function stringifySave(player: PlayerData): string {\n return JSON.stringify(player, (key, value) => unref(value));\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst playerHandler: ProxyHandler> = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get(target: Record, key: PropertyKey): any {\n if (key === ProxyState || key === ProxyPath) {\n return target[key];\n }\n\n const value = target[ProxyState][key];\n if (key !== \"value\" && isPlainObject(value) && !(value instanceof Decimal)) {\n if (value !== target[key]?.[ProxyState]) {\n const path = [...target[ProxyPath], key];\n target[key] = new Proxy({ [ProxyState]: value, [ProxyPath]: path }, playerHandler);\n }\n return target[key];\n }\n\n return value;\n },\n set(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target: Record,\n property: PropertyKey,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: any,\n receiver: ProxyConstructor\n ): boolean {\n if (\n !transientState.hasNaN &&\n ((typeof value === \"number\" && isNaN(value)) ||\n (value instanceof Decimal &&\n (isNaN(value.sign) || isNaN(value.layer) || isNaN(value.mag))))\n ) {\n const currentValue = target[ProxyState][property];\n if (\n !(\n (typeof currentValue === \"number\" && isNaN(currentValue)) ||\n (currentValue instanceof Decimal &&\n (isNaN(currentValue.sign) ||\n isNaN(currentValue.layer) ||\n isNaN(currentValue.mag)))\n )\n ) {\n state.autosave = false;\n transientState.hasNaN = true;\n transientState.NaNPath = [...target[ProxyPath], property];\n transientState.NaNReceiver = receiver as unknown as Record;\n console.error(\n `Attempted to set NaN value`,\n [...target[ProxyPath], property],\n target[ProxyState]\n );\n throw \"Attempted to set NaN value. See above for details\";\n }\n }\n target[ProxyState][property] = value;\n return true;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ownKeys(target: Record) {\n return Reflect.ownKeys(target[ProxyState]);\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n has(target: Record, key: string) {\n return Reflect.has(target[ProxyState], key);\n },\n getOwnPropertyDescriptor(target, key) {\n return Object.getOwnPropertyDescriptor(target[ProxyState], key);\n }\n};\nexport default window.player = new Proxy(\n { [ProxyState]: state, [ProxyPath]: [\"player\"] },\n playerHandler\n) as Player;\n","import modInfo from \"@/data/modInfo.json\";\nimport { Themes } from \"@/data/themes\";\nimport { CoercableComponent } from \"@/features/feature\";\nimport { globalBus } from \"@/game/events\";\nimport { hardReset } from \"@/util/save\";\nimport { reactive, watch } from \"vue\";\n\nexport interface Settings {\n active: string;\n saves: string[];\n showTPS: boolean;\n theme: Themes;\n unthrottled: boolean;\n}\n\nconst state = reactive>({\n active: \"\",\n saves: [],\n showTPS: true,\n theme: Themes.Nordic,\n unthrottled: false\n});\n\nwatch(\n state,\n state =>\n localStorage.setItem(modInfo.id, btoa(unescape(encodeURIComponent(JSON.stringify(state))))),\n { deep: true }\n);\nexport default window.settings = state as Settings;\n\nexport function loadSettings(): void {\n try {\n const item: string | null = localStorage.getItem(modInfo.id);\n if (item != null && item !== \"\") {\n const settings = JSON.parse(decodeURIComponent(escape(atob(item))));\n if (typeof settings === \"object\") {\n Object.assign(state, settings);\n }\n }\n globalBus.emit(\"loadSettings\", state);\n // eslint-disable-next-line no-empty\n } catch {}\n}\n\nexport const hardResetSettings = (window.hardResetSettings = () => {\n const settings = {\n active: \"\",\n saves: [],\n showTPS: true,\n theme: Themes.Nordic\n };\n globalBus.emit(\"loadSettings\", settings);\n Object.assign(state, settings);\n hardReset();\n});\n\nexport const settingFields: CoercableComponent[] = reactive([]);\n\nexport function registerSettingField(component: CoercableComponent) {\n settingFields.push(component);\n}\n","import { shallowReactive } from \"vue\";\n\nexport interface Transient {\n lastTenTicks: number[];\n hasNaN: boolean;\n NaNPath?: string[];\n NaNReceiver?: Record;\n}\n\nexport default window.state = shallowReactive({\n lastTenTicks: [],\n hasNaN: false,\n NaNPath: []\n});\n","/* eslint-disable @typescript-eslint/no-this-alias */\nexport type CompareResult = -1 | 0 | 1;\n\nconst MAX_SIGNIFICANT_DIGITS = 17; //Maximum number of digits of precision to assume in Number\n\nconst EXP_LIMIT = 9e15; //If we're ABOVE this value, increase a layer. (9e15 is close to the largest integer that can fit in a Number.)\n\nconst LAYER_DOWN: number = Math.log10(9e15);\n\nconst FIRST_NEG_LAYER = 1 / 9e15; //At layer 0, smaller non-zero numbers than this become layer 1 numbers with negative mag. After that the pattern continues as normal.\n\nconst NUMBER_EXP_MAX = 308; //The largest exponent that can appear in a Number, though not all mantissas are valid here.\n\nconst NUMBER_EXP_MIN = -324; //The smallest exponent that can appear in a Number, though not all mantissas are valid here.\n\nconst MAX_ES_IN_A_ROW = 5; //For default toString behaviour, when to swap from eee... to (e^n) syntax.\n\nconst IGNORE_COMMAS = true;\nconst COMMAS_ARE_DECIMAL_POINTS = false;\n\nconst powerOf10 = (function() {\n // We need this lookup table because Math.pow(10, exponent)\n // when exponent's absolute value is large is slightly inaccurate.\n // You can fix it with the power of math... or just make a lookup table.\n // Faster AND simpler\n const powersOf10: number[] = [];\n\n for (let i = NUMBER_EXP_MIN + 1; i <= NUMBER_EXP_MAX; i++) {\n powersOf10.push(Number(\"1e\" + i));\n }\n\n const indexOf0InPowersOf10 = 323;\n return function(power: number) {\n return powersOf10[power + indexOf0InPowersOf10];\n };\n})();\n\n//tetration/slog to real height stuff\n//background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22\nconst critical_headers = [2, Math.E, 3, 4, 5, 6, 7, 8, 9, 10];\nconst critical_tetr_values = [\n [\n // Base 2\n 1,\n 1.0891168053867777,\n 1.1789745164521264,\n 1.2701428397304229,\n 1.3632066654400328,\n 1.4587804913784246,\n 1.557523817412741,\n 1.660158301473385,\n 1.767487542936873,\n 1.8804205225512542,\n 2\n ],\n [\n // Base E\n 1, //0.0\n 1.1121114330934, //0.1\n 1.23103892493161, //0.2\n 1.35838369631113, //0.3\n 1.49605193039935, //0.4\n 1.64635423375119, //0.5\n 1.81213853570186, //0.6\n 1.99697132461829, //0.7\n 2.20538955455724, //0.8\n 2.44325744833852, //0.9\n Math.E //1.0\n ],\n [\n // Base 3\n 1,\n 1.1187738849693603,\n 1.2464963939368214,\n 1.38527004705667,\n 1.5376664685821402,\n 1.7068895236551784,\n 1.897001227148399,\n 2.1132403089001035,\n 2.362480153784171,\n 2.6539010333870774,\n 3\n ],\n [\n // Base 4\n 1,\n 1.1367350847096405,\n 1.2889510672956703,\n 1.4606478703324786,\n 1.6570295196661111,\n 1.8850062585672889,\n 2.1539465047453485,\n 2.476829779693097,\n 2.872061932789197,\n 3.3664204535587183,\n 4\n ],\n [\n // Base 5\n 1,\n 1.1494592900767588,\n 1.319708228183931,\n 1.5166291280087583,\n 1.748171114438024,\n 2.0253263297298045,\n 2.3636668498288547,\n 2.7858359149579424,\n 3.3257226212448145,\n 4.035730287722532,\n 5\n ],\n [\n // Base 6\n 1,\n 1.159225940787673,\n 1.343712473580932,\n 1.5611293155111927,\n 1.8221199554561318,\n 2.14183924486326,\n 2.542468319282638,\n 3.0574682501653316,\n 3.7390572020926873,\n 4.6719550537360774,\n 6\n ],\n [\n // Base 7\n 1,\n 1.1670905356972596,\n 1.3632807444991446,\n 1.5979222279405536,\n 1.8842640123816674,\n 2.2416069644878687,\n 2.69893426559423,\n 3.3012632110403577,\n 4.121250340630164,\n 5.281493033448316,\n 7\n ],\n [\n // Base 8\n 1,\n 1.1736630594087796,\n 1.379783782386201,\n 1.6292821855668218,\n 1.9378971836180754,\n 2.3289975651071977,\n 2.8384347394720835,\n 3.5232708454565906,\n 4.478242031114584,\n 5.868592169644505,\n 8\n ],\n [\n // Base 9\n 1,\n 1.1793017514670474,\n 1.394054150657457,\n 1.65664127441059,\n 1.985170999970283,\n 2.4069682290577457,\n 2.9647310119960752,\n 3.7278665320924946,\n 4.814462547283592,\n 6.436522247411611,\n 9\n ],\n [\n // Base 10\n 1,\n 1.18422737399915,\n 1.4066113788546144,\n 1.680911177655277,\n 2.027492094355525,\n 2.4775152854601967,\n 3.080455730250329,\n 3.918234505962507,\n 5.1332705696484595,\n 6.9878696918072905,\n 10\n ]\n];\nconst critical_slog_values = [\n [\n // Base 2\n -1,\n -0.9194161097107025,\n -0.8335625019330468,\n -0.7425599821143978,\n -0.6466611521029437,\n -0.5462617907227869,\n -0.4419033816638769,\n -0.3342645487554494,\n -0.224140440909962,\n -0.11241087890006762,\n 0\n ],\n [\n // Base E\n -1, //0.0\n -0.90603157029014, //0.1\n -0.80786507256596, //0.2\n -0.7064666939634, //0.3\n -0.60294836853664, //0.4\n -0.49849837513117, //0.5\n -0.39430303318768, //0.6\n -0.29147201034755, //0.7\n -0.19097820800866, //0.8\n -0.09361896280296, //0.9\n 0 //1.0\n ],\n [\n // Base 3\n -1,\n -0.9021579584316141,\n -0.8005762598234203,\n -0.6964780623319391,\n -0.5911906810998454,\n -0.486050182576545,\n -0.3823089430815083,\n -0.28106046722897615,\n -0.1831906535795894,\n -0.08935809204418144,\n 0\n ],\n [\n // Base 4\n -1,\n -0.8917227442365535,\n -0.781258746326964,\n -0.6705130326902455,\n -0.5612813129406509,\n -0.4551067709033134,\n -0.35319256652135966,\n -0.2563741554088552,\n -0.1651412821106526,\n -0.0796919581982668,\n 0\n ],\n [\n // Base 5\n -1,\n -0.8843387974366064,\n -0.7678744063886243,\n -0.6529563724510552,\n -0.5415870994657841,\n -0.4352842206588936,\n -0.33504449124791424,\n -0.24138853420685147,\n -0.15445285440944467,\n -0.07409659641336663,\n 0\n ],\n [\n // Base 6\n -1,\n -0.8786709358426346,\n -0.7577735191184886,\n -0.6399546189952064,\n -0.527284921869926,\n -0.4211627631006314,\n -0.3223479611761232,\n -0.23107655627789858,\n -0.1472057700818259,\n -0.07035171210706326,\n 0\n ],\n [\n // Base 7\n -1,\n -0.8740862815291583,\n -0.7497032990976209,\n -0.6297119746181752,\n -0.5161838335958787,\n -0.41036238255751956,\n -0.31277212146489963,\n -0.2233976621705518,\n -0.1418697367979619,\n -0.06762117662323441,\n 0\n ],\n [\n // Base 8\n -1,\n -0.8702632331800649,\n -0.7430366914122081,\n -0.6213373075161548,\n -0.5072025698095242,\n -0.40171437727184167,\n -0.30517930701410456,\n -0.21736343968190863,\n -0.137710238299109,\n -0.06550774483471955,\n 0\n ],\n [\n // Base 9\n -1,\n -0.8670016295947213,\n -0.7373984232432306,\n -0.6143173985094293,\n -0.49973884395492807,\n -0.394584953527678,\n -0.2989649949848695,\n -0.21245647317021688,\n -0.13434688362382652,\n -0.0638072667348083,\n 0\n ],\n [\n // Base 10\n -1,\n -0.8641642839543857,\n -0.732534623168535,\n -0.6083127477059322,\n -0.4934049257184696,\n -0.3885773075899922,\n -0.29376029055315767,\n -0.2083678561173622,\n -0.13155653399373268,\n -0.062401588652553186,\n 0\n ]\n];\n\nconst D = function D(value: DecimalSource): Decimal {\n return Decimal.fromValue_noAlloc(value);\n};\n\nconst FC = function(sign: number, layer: number, mag: number) {\n return Decimal.fromComponents(sign, layer, mag);\n};\n\nconst FC_NN = function FC_NN(sign: number, layer: number, mag: number) {\n return Decimal.fromComponents_noNormalize(sign, layer, mag);\n};\n\nconst ME = function ME(mantissa: number, exponent: number) {\n return Decimal.fromMantissaExponent(mantissa, exponent);\n};\n\nconst ME_NN = function ME_NN(mantissa: number, exponent: number) {\n return Decimal.fromMantissaExponent_noNormalize(mantissa, exponent);\n};\n\nconst decimalPlaces = function decimalPlaces(value: number, places: number): number {\n const len = places + 1;\n const numDigits = Math.ceil(Math.log10(Math.abs(value)));\n const rounded =\n Math.round(value * Math.pow(10, len - numDigits)) * Math.pow(10, numDigits - len);\n return parseFloat(rounded.toFixed(Math.max(len - numDigits, 0)));\n};\n\nconst f_maglog10 = function(n: number) {\n return Math.sign(n) * Math.log10(Math.abs(n));\n};\n\n//from HyperCalc source code\nconst f_gamma = function(n: number) {\n if (!isFinite(n)) {\n return n;\n }\n if (n < -50) {\n if (n === Math.trunc(n)) {\n return Number.NEGATIVE_INFINITY;\n }\n return 0;\n }\n\n let scal1 = 1;\n while (n < 10) {\n scal1 = scal1 * n;\n ++n;\n }\n\n n -= 1;\n let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI)\n l = l + (n + 0.5) * Math.log(n);\n l = l - n;\n const n2 = n * n;\n let np = n;\n l = l + 1 / (12 * np);\n np = np * n2;\n l = l + 1 / (360 * np);\n np = np * n2;\n l = l + 1 / (1260 * np);\n np = np * n2;\n l = l + 1 / (1680 * np);\n np = np * n2;\n l = l + 1 / (1188 * np);\n np = np * n2;\n l = l + 691 / (360360 * np);\n np = np * n2;\n l = l + 7 / (1092 * np);\n np = np * n2;\n l = l + 3617 / (122400 * np);\n\n return Math.exp(l) / scal1;\n};\n\nconst _twopi = 6.2831853071795864769252842; // 2*pi\nconst _EXPN1 = 0.36787944117144232159553; // exp(-1)\nconst OMEGA = 0.56714329040978387299997; // W(1, 0)\n//from https://math.stackexchange.com/a/465183\n// The evaluation can become inaccurate very close to the branch point\nconst f_lambertw = function(z: number, tol = 1e-10): number {\n let w;\n let wn;\n\n if (!Number.isFinite(z)) {\n return z;\n }\n if (z === 0) {\n return z;\n }\n if (z === 1) {\n return OMEGA;\n }\n\n if (z < 10) {\n w = 0;\n } else {\n w = Math.log(z) - Math.log(Math.log(z));\n }\n\n for (let i = 0; i < 100; ++i) {\n wn = (z * Math.exp(-w) + w * w) / (w + 1);\n if (Math.abs(wn - w) < tol * Math.abs(wn)) {\n return wn;\n } else {\n w = wn;\n }\n }\n\n throw Error(`Iteration failed to converge: ${z.toString()}`);\n //return Number.NaN;\n};\n\n//from https://github.com/scipy/scipy/blob/8dba340293fe20e62e173bdf2c10ae208286692f/scipy/special/lambertw.pxd\n// The evaluation can become inaccurate very close to the branch point\n// at ``-1/e``. In some corner cases, `lambertw` might currently\n// fail to converge, or can end up on the wrong branch.\nfunction d_lambertw(z: Decimal, tol = 1e-10): Decimal {\n let w;\n let ew, wew, wewz, wn;\n\n if (!Number.isFinite(z.mag)) {\n return z;\n }\n if (z === Decimal.dZero) {\n return z;\n }\n if (z === Decimal.dOne) {\n //Split out this case because the asymptotic series blows up\n return D(OMEGA);\n }\n\n const absz = Decimal.abs(z);\n //Get an initial guess for Halley's method\n w = Decimal.ln(z);\n\n //Halley's method; see 5.9 in [1]\n\n for (let i = 0; i < 100; ++i) {\n ew = Decimal.exp(-w);\n wewz = w.sub(z.mul(ew));\n wn = w.sub(\n wewz.div(\n w.add(1).sub(\n w\n .add(2)\n .mul(wewz)\n .div(Decimal.mul(2, w).add(2))\n )\n )\n );\n if (Decimal.abs(wn.sub(w)).lt(Decimal.abs(wn).mul(tol))) {\n return wn;\n } else {\n w = wn;\n }\n }\n\n throw Error(`Iteration failed to converge: ${z.toString()}`);\n //return Decimal.dNaN;\n}\n\nexport type DecimalSource = Decimal | number | string;\n\n/**\n * The Decimal's value is simply mantissa * 10^exponent.\n */\nexport default class Decimal {\n public static readonly dZero = FC_NN(0, 0, 0);\n public static readonly dOne = FC_NN(1, 0, 1);\n public static readonly dNegOne = FC_NN(-1, 0, 1);\n public static readonly dTwo = FC_NN(1, 0, 2);\n public static readonly dTen = FC_NN(1, 0, 10);\n public static readonly dNaN = FC_NN(Number.NaN, Number.NaN, Number.NaN);\n public static readonly dInf = FC_NN(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY);\n public static readonly dNegInf = FC_NN(-1, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY);\n public static readonly dNumberMax = FC(1, 0, Number.MAX_VALUE);\n public static readonly dNumberMin = FC(1, 0, Number.MIN_VALUE);\n\n public sign: number = Number.NaN;\n public mag: number = Number.NaN;\n public layer: number = Number.NaN;\n\n constructor(value?: DecimalSource) {\n if (value instanceof Decimal || (value != null && typeof value === \"object\" && \"sign\" in value && \"mag\" in value && \"layer\" in value)) {\n this.fromDecimal(value);\n } else if (typeof value === \"number\") {\n this.fromNumber(value);\n } else if (typeof value === \"string\") {\n this.fromString(value);\n } else {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n }\n }\n\n get m(): number {\n if (this.sign === 0) {\n return 0;\n } else if (this.layer === 0) {\n const exp = Math.floor(Math.log10(this.mag));\n //handle special case 5e-324\n let man;\n if (this.mag === 5e-324) {\n man = 5;\n } else {\n man = this.mag / powerOf10(exp);\n }\n return this.sign * man;\n } else if (this.layer === 1) {\n const residue = this.mag - Math.floor(this.mag);\n return this.sign * Math.pow(10, residue);\n } else {\n //mantissa stops being relevant past 1e9e15 / ee15.954\n return this.sign;\n }\n }\n\n set m(value: number) {\n if (this.layer <= 2) {\n this.fromMantissaExponent(value, this.e);\n } else {\n //don't even pretend mantissa is meaningful\n this.sign = Math.sign(value);\n if (this.sign === 0) {\n this.layer === 0;\n this.exponent === 0;\n }\n }\n }\n\n get e(): number {\n if (this.sign === 0) {\n return 0;\n } else if (this.layer === 0) {\n return Math.floor(Math.log10(this.mag));\n } else if (this.layer === 1) {\n return Math.floor(this.mag);\n } else if (this.layer === 2) {\n return Math.floor(Math.sign(this.mag) * Math.pow(10, Math.abs(this.mag)));\n } else {\n return this.mag * Number.POSITIVE_INFINITY;\n }\n }\n set e(value: number) {\n this.fromMantissaExponent(this.m, value);\n }\n\n get s(): number {\n return this.sign;\n }\n set s(value: number) {\n if (value === 0) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n } else {\n this.sign = value;\n }\n }\n\n // Object.defineProperty(Decimal.prototype, \"mantissa\", {\n get mantissa(): number {\n return this.m;\n }\n\n set mantissa(value: number) {\n this.m = value;\n }\n\n get exponent(): number {\n return this.e;\n }\n set exponent(value: number) {\n this.e = value;\n }\n\n public static fromComponents(sign: number, layer: number, mag: number): Decimal {\n return new Decimal().fromComponents(sign, layer, mag);\n }\n\n public static fromComponents_noNormalize(sign: number, layer: number, mag: number): Decimal {\n return new Decimal().fromComponents_noNormalize(sign, layer, mag);\n }\n\n public static fromMantissaExponent(mantissa: number, exponent: number): Decimal {\n return new Decimal().fromMantissaExponent(mantissa, exponent);\n }\n\n public static fromMantissaExponent_noNormalize(mantissa: number, exponent: number): Decimal {\n return new Decimal().fromMantissaExponent_noNormalize(mantissa, exponent);\n }\n\n public static fromDecimal(value: Decimal): Decimal {\n return new Decimal().fromDecimal(value);\n }\n\n public static fromNumber(value: number): Decimal {\n return new Decimal().fromNumber(value);\n }\n\n public static fromString(value: string): Decimal {\n return new Decimal().fromString(value);\n }\n\n public static fromValue(value: DecimalSource): Decimal {\n return new Decimal().fromValue(value);\n }\n\n public static fromValue_noAlloc(value: DecimalSource): Decimal {\n return value instanceof Decimal ? value : new Decimal(value);\n }\n\n public static abs(value: DecimalSource): Decimal {\n return D(value).abs();\n }\n\n public static neg(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static negate(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static negated(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static sign(value: DecimalSource): number {\n return D(value).sign;\n }\n\n public static sgn(value: DecimalSource): number {\n return D(value).sign;\n }\n\n public static round(value: DecimalSource): Decimal {\n return D(value).round();\n }\n\n public static floor(value: DecimalSource): Decimal {\n return D(value).floor();\n }\n\n public static ceil(value: DecimalSource): Decimal {\n return D(value).ceil();\n }\n\n public static trunc(value: DecimalSource): Decimal {\n return D(value).trunc();\n }\n\n public static add(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).add(other);\n }\n\n public static plus(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).add(other);\n }\n\n public static sub(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static subtract(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static minus(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static mul(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static multiply(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static times(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static div(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).div(other);\n }\n\n public static divide(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).div(other);\n }\n\n public static recip(value: DecimalSource): Decimal {\n return D(value).recip();\n }\n\n public static reciprocal(value: DecimalSource): Decimal {\n return D(value).recip();\n }\n\n public static reciprocate(value: DecimalSource): Decimal {\n return D(value).reciprocate();\n }\n\n public static cmp(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmp(other);\n }\n\n public static cmpabs(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmpabs(other);\n }\n\n public static compare(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmp(other);\n }\n\n public static isNaN(value: DecimalSource): boolean {\n value = D(value);\n return isNaN(value.sign) || isNaN(value.layer) || isNaN(value.mag);\n }\n\n public static isFinite(value: DecimalSource): boolean {\n value = D(value);\n return isFinite(value.sign) && isFinite(value.layer) && isFinite(value.mag);\n }\n\n public static eq(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).eq(other);\n }\n\n public static equals(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).eq(other);\n }\n\n public static neq(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).neq(other);\n }\n\n public static notEquals(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).notEquals(other);\n }\n\n public static lt(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).lt(other);\n }\n\n public static lte(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).lte(other);\n }\n\n public static gt(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).gt(other);\n }\n\n public static gte(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).gte(other);\n }\n\n public static max(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).max(other);\n }\n\n public static min(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).min(other);\n }\n\n public static minabs(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).minabs(other);\n }\n\n public static maxabs(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).maxabs(other);\n }\n\n public static clamp(value: DecimalSource, min: DecimalSource, max: DecimalSource): Decimal {\n return D(value).clamp(min, max);\n }\n\n public static clampMin(value: DecimalSource, min: DecimalSource): Decimal {\n return D(value).clampMin(min);\n }\n\n public static clampMax(value: DecimalSource, max: DecimalSource): Decimal {\n return D(value).clampMax(max);\n }\n\n public static cmp_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): CompareResult {\n return D(value).cmp_tolerance(other, tolerance);\n }\n\n public static compare_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): CompareResult {\n return D(value).cmp_tolerance(other, tolerance);\n }\n\n public static eq_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).eq_tolerance(other, tolerance);\n }\n\n public static equals_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).eq_tolerance(other, tolerance);\n }\n\n public static neq_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).neq_tolerance(other, tolerance);\n }\n\n public static notEquals_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).notEquals_tolerance(other, tolerance);\n }\n\n public static lt_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).lt_tolerance(other, tolerance);\n }\n\n public static lte_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).lte_tolerance(other, tolerance);\n }\n\n public static gt_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).gt_tolerance(other, tolerance);\n }\n\n public static gte_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).gte_tolerance(other, tolerance);\n }\n\n public static pLog10(value: DecimalSource): Decimal {\n return D(value).pLog10();\n }\n\n public static absLog10(value: DecimalSource): Decimal {\n return D(value).absLog10();\n }\n\n public static log10(value: DecimalSource): Decimal {\n return D(value).log10();\n }\n\n public static log(value: DecimalSource, base: DecimalSource): Decimal {\n return D(value).log(base);\n }\n\n public static log2(value: DecimalSource): Decimal {\n return D(value).log2();\n }\n\n public static ln(value: DecimalSource): Decimal {\n return D(value).ln();\n }\n\n public static logarithm(value: DecimalSource, base: DecimalSource): Decimal {\n return D(value).logarithm(base);\n }\n\n public static pow(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).pow(other);\n }\n\n public static pow10(value: DecimalSource): Decimal {\n return D(value).pow10();\n }\n\n public static root(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).root(other);\n }\n\n public static factorial(value: DecimalSource, _other?: never): Decimal {\n return D(value).factorial();\n }\n\n public static gamma(value: DecimalSource, _other?: never): Decimal {\n return D(value).gamma();\n }\n\n public static lngamma(value: DecimalSource, _other?: never): Decimal {\n return D(value).lngamma();\n }\n\n public static exp(value: DecimalSource): Decimal {\n return D(value).exp();\n }\n\n public static sqr(value: DecimalSource): Decimal {\n return D(value).sqr();\n }\n\n public static sqrt(value: DecimalSource): Decimal {\n return D(value).sqrt();\n }\n\n public static cube(value: DecimalSource): Decimal {\n return D(value).cube();\n }\n\n public static cbrt(value: DecimalSource): Decimal {\n return D(value).cbrt();\n }\n\n public static tetrate(\n value: DecimalSource,\n height = 2,\n payload: DecimalSource = FC_NN(1, 0, 1)\n ): Decimal {\n return D(value).tetrate(height, payload);\n }\n\n public static iteratedexp(value: DecimalSource, height = 2, payload = FC_NN(1, 0, 1)): Decimal {\n return D(value).iteratedexp(height, payload);\n }\n\n public static iteratedlog(value: DecimalSource, base: DecimalSource = 10, times = 1): Decimal {\n return D(value).iteratedlog(base, times);\n }\n\n public static layeradd10(value: DecimalSource, diff: DecimalSource): Decimal {\n return D(value).layeradd10(diff);\n }\n\n public static layeradd(value: DecimalSource, diff: number, base = 10): Decimal {\n return D(value).layeradd(diff, base);\n }\n\n public static slog(value: DecimalSource, base = 10): Decimal {\n return D(value).slog(base);\n }\n\n public static lambertw(value: DecimalSource): Decimal {\n return D(value).lambertw();\n }\n\n public static ssqrt(value: DecimalSource): Decimal {\n return D(value).ssqrt();\n }\n\n public static pentate(\n value: DecimalSource,\n height = 2,\n payload: DecimalSource = FC_NN(1, 0, 1)\n ): Decimal {\n return D(value).pentate(height, payload);\n }\n\n /**\n * If you're willing to spend 'resourcesAvailable' and want to buy something\n * with exponentially increasing cost each purchase (start at priceStart,\n * multiply by priceRatio, already own currentOwned), how much of it can you buy?\n * Adapted from Trimps source code.\n */\n\n public static affordGeometricSeries(\n resourcesAvailable: DecimalSource,\n priceStart: DecimalSource,\n priceRatio: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.affordGeometricSeries_core(\n D(resourcesAvailable),\n D(priceStart),\n D(priceRatio),\n currentOwned\n );\n }\n /**\n * How much resource would it cost to buy (numItems) items if you already have currentOwned,\n * the initial price is priceStart and it multiplies by priceRatio each purchase?\n */\n\n public static sumGeometricSeries(\n numItems: DecimalSource,\n priceStart: DecimalSource,\n priceRatio: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.sumGeometricSeries_core(numItems, D(priceStart), D(priceRatio), currentOwned);\n }\n /**\n * If you're willing to spend 'resourcesAvailable' and want to buy something with additively\n * increasing cost each purchase (start at priceStart, add by priceAdd, already own currentOwned),\n * how much of it can you buy?\n */\n\n public static affordArithmeticSeries(\n resourcesAvailable: DecimalSource,\n priceStart: DecimalSource,\n priceAdd: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.affordArithmeticSeries_core(\n D(resourcesAvailable),\n D(priceStart),\n D(priceAdd),\n D(currentOwned)\n );\n }\n /**\n * How much resource would it cost to buy (numItems) items if you already have currentOwned,\n * the initial price is priceStart and it adds priceAdd each purchase?\n * Adapted from http://www.mathwords.com/a/arithmetic_series.htm\n */\n\n public static sumArithmeticSeries(\n numItems: DecimalSource,\n priceStart: DecimalSource,\n priceAdd: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.sumArithmeticSeries_core(\n D(numItems),\n D(priceStart),\n D(priceAdd),\n D(currentOwned)\n );\n }\n /**\n * When comparing two purchases that cost (resource) and increase your resource/sec by (deltaRpS),\n * the lowest efficiency score is the better one to purchase.\n * From Frozen Cookies:\n * http://cookieclicker.wikia.com/wiki/Frozen_Cookies_(JavaScript_Add-on)#Efficiency.3F_What.27s_that.3F\n */\n\n public static efficiencyOfPurchase(\n cost: DecimalSource,\n currentRpS: DecimalSource,\n deltaRpS: DecimalSource\n ): Decimal {\n return this.efficiencyOfPurchase_core(D(cost), D(currentRpS), D(deltaRpS));\n }\n\n public static randomDecimalForTesting(maxLayers: number): Decimal {\n // NOTE: This doesn't follow any kind of sane random distribution, so use this for testing purposes only.\n //5% of the time, return 0\n if (Math.random() * 20 < 1) {\n return FC_NN(0, 0, 0);\n }\n\n const randomsign = Math.random() > 0.5 ? 1 : -1;\n\n //5% of the time, return 1 or -1\n if (Math.random() * 20 < 1) {\n return FC_NN(randomsign, 0, 1);\n }\n\n //pick a random layer\n const layer = Math.floor(Math.random() * (maxLayers + 1));\n\n let randomexp = layer === 0 ? Math.random() * 616 - 308 : Math.random() * 16;\n //10% of the time, make it a simple power of 10\n if (Math.random() > 0.9) {\n randomexp = Math.trunc(randomexp);\n }\n let randommag = Math.pow(10, randomexp);\n //10% of the time, trunc mag\n if (Math.random() > 0.9) {\n randommag = Math.trunc(randommag);\n }\n return FC(randomsign, layer, randommag);\n }\n\n public static affordGeometricSeries_core(\n resourcesAvailable: Decimal,\n priceStart: Decimal,\n priceRatio: Decimal,\n currentOwned: DecimalSource\n ): Decimal {\n const actualStart = priceStart.mul(priceRatio.pow(currentOwned));\n return Decimal.floor(\n resourcesAvailable\n .div(actualStart)\n .mul(priceRatio.sub(1))\n .add(1)\n .log10()\n .div(priceRatio.log10())\n );\n }\n\n public static sumGeometricSeries_core(\n numItems: DecimalSource,\n priceStart: Decimal,\n priceRatio: Decimal,\n currentOwned: DecimalSource\n ): Decimal {\n return priceStart\n .mul(priceRatio.pow(currentOwned))\n .mul(Decimal.sub(1, priceRatio.pow(numItems)))\n .div(Decimal.sub(1, priceRatio));\n }\n\n public static affordArithmeticSeries_core(\n resourcesAvailable: Decimal,\n priceStart: Decimal,\n priceAdd: Decimal,\n currentOwned: Decimal\n ): Decimal {\n // n = (-(a-d/2) + sqrt((a-d/2)^2+2dS))/d\n // where a is actualStart, d is priceAdd and S is resourcesAvailable\n // then floor it and you're done!\n const actualStart = priceStart.add(currentOwned.mul(priceAdd));\n const b = actualStart.sub(priceAdd.div(2));\n const b2 = b.pow(2);\n return b\n .neg()\n .add(b2.add(priceAdd.mul(resourcesAvailable).mul(2)).sqrt())\n .div(priceAdd)\n .floor();\n }\n\n public static sumArithmeticSeries_core(\n numItems: Decimal,\n priceStart: Decimal,\n priceAdd: Decimal,\n currentOwned: Decimal\n ): Decimal {\n const actualStart = priceStart.add(currentOwned.mul(priceAdd)); // (n/2)*(2*a+(n-1)*d)\n\n return numItems.div(2).mul(actualStart.mul(2).plus(numItems.sub(1).mul(priceAdd)));\n }\n\n public static efficiencyOfPurchase_core(\n cost: Decimal,\n currentRpS: Decimal,\n deltaRpS: Decimal\n ): Decimal {\n return cost.div(currentRpS).add(cost.div(deltaRpS));\n }\n\n public [Symbol.for(\"+\")](other: DecimalSource): DecimalSource {\n return this.add(other);\n }\n\n public [Symbol.for(\"-\")](other: DecimalSource): DecimalSource {\n return this.sub(other);\n }\n\n public [Symbol.for(\"*\")](other: DecimalSource): DecimalSource {\n return this.times(other);\n }\n\n public [Symbol.for(\"/\")](other: DecimalSource): DecimalSource {\n return this.div(other);\n }\n\n public [Symbol.for(\"minus\")](): DecimalSource {\n return this.neg();\n }\n\n public [Symbol.for(\"==\")](other: DecimalSource): boolean {\n return this.eq(other);\n }\n\n public [Symbol.for(\">\")](other: DecimalSource): boolean {\n return this.gt(other);\n }\n\n public [Symbol.for(\"<\")](other: DecimalSource): boolean {\n return this.lt(other);\n }\n\n public [Symbol.for(\">=\")](other: DecimalSource): boolean {\n return this.gte(other);\n }\n\n public [Symbol.for(\"<=\")](other: DecimalSource): boolean {\n return this.lte(other);\n }\n\n public [Symbol.for(\"!=\")](other: DecimalSource): boolean {\n return this.neq(other);\n }\n\n public normalize(): this {\n /*\n PSEUDOCODE:\n Whenever we are partially 0 (sign is 0 or mag and layer is 0), make it fully 0.\n Whenever we are at or hit layer 0, extract sign from negative mag.\n If layer === 0 and mag < FIRST_NEG_LAYER (1/9e15), shift to 'first negative layer' (add layer, log10 mag).\n While abs(mag) > EXP_LIMIT (9e15), layer += 1, mag = maglog10(mag).\n While abs(mag) < LAYER_DOWN (15.954) and layer > 0, layer -= 1, mag = pow(10, mag).\n\n When we're done, all of the following should be true OR one of the numbers is not IsFinite OR layer is not IsInteger (error state):\n Any 0 is totally zero (0, 0, 0).\n Anything layer 0 has mag 0 OR mag > 1/9e15 and < 9e15.\n Anything layer 1 or higher has abs(mag) >= 15.954 and < 9e15.\n We will assume in calculations that all Decimals are either erroneous or satisfy these criteria. (Otherwise: Garbage in, garbage out.)\n */\n if (this.sign === 0 || (this.mag === 0 && this.layer === 0)) {\n this.sign = 0;\n this.mag = 0;\n this.layer = 0;\n return this;\n }\n\n if (this.layer === 0 && this.mag < 0) {\n //extract sign from negative mag at layer 0\n this.mag = -this.mag;\n this.sign = -this.sign;\n }\n\n //Handle shifting from layer 0 to negative layers.\n if (this.layer === 0 && this.mag < FIRST_NEG_LAYER) {\n this.layer += 1;\n this.mag = Math.log10(this.mag);\n return this;\n }\n\n let absmag = Math.abs(this.mag);\n let signmag = Math.sign(this.mag);\n\n if (absmag >= EXP_LIMIT) {\n this.layer += 1;\n this.mag = signmag * Math.log10(absmag);\n return this;\n } else {\n while (absmag < LAYER_DOWN && this.layer > 0) {\n this.layer -= 1;\n if (this.layer === 0) {\n this.mag = Math.pow(10, this.mag);\n } else {\n this.mag = signmag * Math.pow(10, absmag);\n absmag = Math.abs(this.mag);\n signmag = Math.sign(this.mag);\n }\n }\n if (this.layer === 0) {\n if (this.mag < 0) {\n //extract sign from negative mag at layer 0\n this.mag = -this.mag;\n this.sign = -this.sign;\n } else if (this.mag === 0) {\n //excessive rounding can give us all zeroes\n this.sign = 0;\n }\n }\n }\n\n return this;\n }\n\n public fromComponents(sign: number, layer: number, mag: number): this {\n this.sign = sign;\n this.layer = layer;\n this.mag = mag;\n\n this.normalize();\n return this;\n }\n\n public fromComponents_noNormalize(sign: number, layer: number, mag: number): this {\n this.sign = sign;\n this.layer = layer;\n this.mag = mag;\n return this;\n }\n\n public fromMantissaExponent(mantissa: number, exponent: number): this {\n this.layer = 1;\n this.sign = Math.sign(mantissa);\n mantissa = Math.abs(mantissa);\n this.mag = exponent + Math.log10(mantissa);\n\n this.normalize();\n return this;\n }\n\n public fromMantissaExponent_noNormalize(mantissa: number, exponent: number): this {\n //The idea of 'normalizing' a break_infinity.js style Decimal doesn't really apply. So just do the same thing.\n this.fromMantissaExponent(mantissa, exponent);\n return this;\n }\n\n public fromDecimal(value: Decimal): this {\n this.sign = value.sign;\n this.layer = value.layer;\n this.mag = value.mag;\n return this;\n }\n\n public fromNumber(value: number): this {\n this.mag = Math.abs(value);\n this.sign = Math.sign(value);\n this.layer = 0;\n this.normalize();\n return this;\n }\n\n public fromString(value: string): Decimal {\n if (IGNORE_COMMAS) {\n value = value.replace(\",\", \"\");\n } else if (COMMAS_ARE_DECIMAL_POINTS) {\n value = value.replace(\",\", \".\");\n }\n\n //Handle x^^^y format.\n const pentationparts = value.split(\"^^^\");\n if (pentationparts.length === 2) {\n const base = parseFloat(pentationparts[0]);\n const height = parseFloat(pentationparts[1]);\n const heightparts = pentationparts[1].split(\";\");\n let payload = 1;\n if (heightparts.length === 2) {\n payload = parseFloat(heightparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.pentate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle x^^y format.\n const tetrationparts = value.split(\"^^\");\n if (tetrationparts.length === 2) {\n const base = parseFloat(tetrationparts[0]);\n const height = parseFloat(tetrationparts[1]);\n const heightparts = tetrationparts[1].split(\";\");\n let payload = 1;\n if (heightparts.length === 2) {\n payload = parseFloat(heightparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle x^y format.\n const powparts = value.split(\"^\");\n if (powparts.length === 2) {\n const base = parseFloat(powparts[0]);\n const exponent = parseFloat(powparts[1]);\n if (isFinite(base) && isFinite(exponent)) {\n const result = Decimal.pow(base, exponent);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle various cases involving it being a Big Number.\n value = value.trim().toLowerCase();\n\n //handle X PT Y format.\n let base;\n let height;\n let ptparts = value.split(\"pt\");\n if (ptparts.length === 2) {\n base = 10;\n height = parseFloat(ptparts[0]);\n ptparts[1] = ptparts[1].replace(\"(\", \"\");\n ptparts[1] = ptparts[1].replace(\")\", \"\");\n let payload = parseFloat(ptparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //handle XpY format (it's the same thing just with p).\n ptparts = value.split(\"p\");\n if (ptparts.length === 2) {\n base = 10;\n height = parseFloat(ptparts[0]);\n ptparts[1] = ptparts[1].replace(\"(\", \"\");\n ptparts[1] = ptparts[1].replace(\")\", \"\");\n let payload = parseFloat(ptparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n const parts = value.split(\"e\");\n const ecount = parts.length - 1;\n\n //Handle numbers that are exactly floats (0 or 1 es).\n if (ecount === 0) {\n const numberAttempt = parseFloat(value);\n if (isFinite(numberAttempt)) {\n return this.fromNumber(numberAttempt);\n }\n } else if (ecount === 1) {\n //Very small numbers (\"2e-3000\" and so on) may look like valid floats but round to 0.\n const numberAttempt = parseFloat(value);\n if (isFinite(numberAttempt) && numberAttempt !== 0) {\n return this.fromNumber(numberAttempt);\n }\n }\n\n //Handle new (e^N)X format.\n const newparts = value.split(\"e^\");\n if (newparts.length === 2) {\n this.sign = 1;\n if (newparts[0].charAt(0) == \"-\") {\n this.sign = -1;\n }\n let layerstring = \"\";\n for (let i = 0; i < newparts[1].length; ++i) {\n const chrcode = newparts[1].charCodeAt(i);\n if ((chrcode >= 43 && chrcode <= 57) || chrcode === 101) {\n //is \"0\" to \"9\" or \"+\" or \"-\" or \".\" or \"e\" (or \",\" or \"/\")\n layerstring += newparts[1].charAt(i);\n } //we found the end of the layer count\n else {\n this.layer = parseFloat(layerstring);\n this.mag = parseFloat(newparts[1].substr(i + 1));\n this.normalize();\n return this;\n }\n }\n }\n\n if (ecount < 1) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n const mantissa = parseFloat(parts[0]);\n if (mantissa === 0) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n let exponent = parseFloat(parts[parts.length - 1]);\n //handle numbers like AeBeC and AeeeeBeC\n if (ecount >= 2) {\n const me = parseFloat(parts[parts.length - 2]);\n if (isFinite(me)) {\n exponent *= Math.sign(me);\n exponent += f_maglog10(me);\n }\n }\n\n //Handle numbers written like eee... (N es) X\n if (!isFinite(mantissa)) {\n this.sign = parts[0] === \"-\" ? -1 : 1;\n this.layer = ecount;\n this.mag = exponent;\n }\n //Handle numbers written like XeY\n else if (ecount === 1) {\n this.sign = Math.sign(mantissa);\n this.layer = 1;\n //Example: 2e10 is equal to 10^log10(2e10) which is equal to 10^(10+log10(2))\n this.mag = exponent + Math.log10(Math.abs(mantissa));\n }\n //Handle numbers written like Xeee... (N es) Y\n else {\n this.sign = Math.sign(mantissa);\n this.layer = ecount;\n if (ecount === 2) {\n const result = Decimal.mul(FC(1, 2, exponent), D(mantissa));\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n } else {\n //at eee and above, mantissa is too small to be recognizable!\n this.mag = exponent;\n }\n }\n\n this.normalize();\n return this;\n }\n\n public fromValue(value: DecimalSource): Decimal {\n if (value instanceof Decimal || (value != null && typeof value === \"object\" && \"sign\" in value && \"mag\" in value && \"layer\" in value)) {\n return this.fromDecimal(value);\n }\n\n if (typeof value === \"number\") {\n return this.fromNumber(value);\n }\n\n if (typeof value === \"string\") {\n return this.fromString(value);\n }\n\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n\n public toNumber(): number {\n if (!Number.isFinite(this.layer)) {\n return Number.NaN;\n }\n if (this.layer === 0) {\n return this.sign * this.mag;\n } else if (this.layer === 1) {\n return this.sign * Math.pow(10, this.mag);\n } //overflow for any normalized Decimal\n else {\n return this.mag > 0\n ? this.sign > 0\n ? Number.POSITIVE_INFINITY\n : Number.NEGATIVE_INFINITY\n : 0;\n }\n }\n\n public mantissaWithDecimalPlaces(places: number): number {\n // https://stackoverflow.com/a/37425022\n if (isNaN(this.m)) {\n return Number.NaN;\n }\n\n if (this.m === 0) {\n return 0;\n }\n\n return decimalPlaces(this.m, places);\n }\n\n public magnitudeWithDecimalPlaces(places: number): number {\n // https://stackoverflow.com/a/37425022\n if (isNaN(this.mag)) {\n return Number.NaN;\n }\n\n if (this.mag === 0) {\n return 0;\n }\n\n return decimalPlaces(this.mag, places);\n }\n\n public toString(): string {\n if (isNaN(this.layer) || isNaN(this.sign) || isNaN(this.mag)) {\n return \"NaN\";\n }\n if (this.mag === Number.POSITIVE_INFINITY || this.layer === Number.POSITIVE_INFINITY) {\n return this.sign === 1 ? \"Infinity\" : \"-Infinity\";\n }\n\n if (this.layer === 0) {\n if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) {\n return (this.sign * this.mag).toString();\n }\n return this.m + \"e\" + this.e;\n } else if (this.layer === 1) {\n return this.m + \"e\" + this.e;\n } else {\n //layer 2+\n if (this.layer <= MAX_ES_IN_A_ROW) {\n return (this.sign === -1 ? \"-\" : \"\") + \"e\".repeat(this.layer) + this.mag;\n } else {\n return (this.sign === -1 ? \"-\" : \"\") + \"(e^\" + this.layer + \")\" + this.mag;\n }\n }\n }\n\n public toExponential(places: number): string {\n if (this.layer === 0) {\n return (this.sign * this.mag).toExponential(places);\n }\n return this.toStringWithDecimalPlaces(places);\n }\n\n public toFixed(places: number): string {\n if (this.layer === 0) {\n return (this.sign * this.mag).toFixed(places);\n }\n return this.toStringWithDecimalPlaces(places);\n }\n\n public toPrecision(places: number): string {\n if (this.e <= -7) {\n return this.toExponential(places - 1);\n }\n\n if (places > this.e) {\n return this.toFixed(places - this.exponent - 1);\n }\n\n return this.toExponential(places - 1);\n }\n\n public valueOf(): string {\n return this.toString();\n }\n\n public toJSON(): string {\n return this.toString();\n }\n\n public toStringWithDecimalPlaces(places: number): string {\n if (this.layer === 0) {\n if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) {\n return (this.sign * this.mag).toFixed(places);\n }\n return decimalPlaces(this.m, places) + \"e\" + decimalPlaces(this.e, places);\n } else if (this.layer === 1) {\n return decimalPlaces(this.m, places) + \"e\" + decimalPlaces(this.e, places);\n } else {\n //layer 2+\n if (this.layer <= MAX_ES_IN_A_ROW) {\n return (\n (this.sign === -1 ? \"-\" : \"\") +\n \"e\".repeat(this.layer) +\n decimalPlaces(this.mag, places)\n );\n } else {\n return (\n (this.sign === -1 ? \"-\" : \"\") +\n \"(e^\" +\n this.layer +\n \")\" +\n decimalPlaces(this.mag, places)\n );\n }\n }\n }\n\n public abs(): Decimal {\n return FC_NN(this.sign === 0 ? 0 : 1, this.layer, this.mag);\n }\n\n public neg(): Decimal {\n return FC_NN(-this.sign, this.layer, this.mag);\n }\n\n public negate(): Decimal {\n return this.neg();\n }\n\n public negated(): Decimal {\n return this.neg();\n }\n\n // public sign () {\n // return this.sign;\n // }\n\n public sgn(): number {\n return this.sign;\n }\n\n public round(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.round(this.mag));\n }\n return this;\n }\n\n public floor(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.floor(this.mag));\n }\n return this;\n }\n\n public ceil(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.ceil(this.mag));\n }\n return this;\n }\n\n public trunc(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.trunc(this.mag));\n }\n return this;\n }\n\n public add(value: DecimalSource): this | Decimal {\n const decimal = D(value);\n\n //inf/nan check\n if (!Number.isFinite(this.layer)) {\n return this;\n }\n if (!Number.isFinite(decimal.layer)) {\n return decimal;\n }\n\n //Special case - if one of the numbers is 0, return the other number.\n if (this.sign === 0) {\n return decimal;\n }\n if (decimal.sign === 0) {\n return this;\n }\n\n //Special case - Adding a number to its negation produces 0, no matter how large.\n if (\n this.sign === -decimal.sign &&\n this.layer === decimal.layer &&\n this.mag === decimal.mag\n ) {\n return FC_NN(0, 0, 0);\n }\n\n let a;\n let b;\n\n //Special case: If one of the numbers is layer 2 or higher, just take the bigger number.\n if (this.layer >= 2 || decimal.layer >= 2) {\n return this.maxabs(decimal);\n }\n\n if (Decimal.cmpabs(this, decimal) > 0) {\n a = this;\n b = decimal;\n } else {\n a = decimal;\n b = this;\n }\n\n if (a.layer === 0 && b.layer === 0) {\n return D(a.sign * a.mag + b.sign * b.mag);\n }\n\n const layera = a.layer * Math.sign(a.mag);\n const layerb = b.layer * Math.sign(b.mag);\n\n //If one of the numbers is 2+ layers higher than the other, just take the bigger number.\n if (layera - layerb >= 2) {\n return a;\n }\n\n if (layera === 0 && layerb === -1) {\n if (Math.abs(b.mag - Math.log10(a.mag)) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, Math.log10(a.mag) - b.mag);\n const mantissa = b.sign + a.sign * magdiff;\n return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa)));\n }\n }\n\n if (layera === 1 && layerb === 0) {\n if (Math.abs(a.mag - Math.log10(b.mag)) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, a.mag - Math.log10(b.mag));\n const mantissa = b.sign + a.sign * magdiff;\n return FC(\n Math.sign(mantissa),\n 1,\n Math.log10(b.mag) + Math.log10(Math.abs(mantissa))\n );\n }\n }\n\n if (Math.abs(a.mag - b.mag) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, a.mag - b.mag);\n const mantissa = b.sign + a.sign * magdiff;\n return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa)));\n }\n\n throw Error(\"Bad arguments to add: \" + this + \", \" + value);\n }\n\n public plus(value: DecimalSource): Decimal {\n return this.add(value);\n }\n\n public sub(value: DecimalSource): Decimal {\n return this.add(D(value).neg());\n }\n\n public subtract(value: DecimalSource): Decimal {\n return this.sub(value);\n }\n\n public minus(value: DecimalSource): Decimal {\n return this.sub(value);\n }\n\n public mul(value: DecimalSource): Decimal {\n const decimal = D(value);\n\n //inf/nan check\n if (!Number.isFinite(this.layer)) {\n return this;\n }\n if (!Number.isFinite(decimal.layer)) {\n return decimal;\n }\n\n //Special case - if one of the numbers is 0, return 0.\n if (this.sign === 0 || decimal.sign === 0) {\n return FC_NN(0, 0, 0);\n }\n\n //Special case - Multiplying a number by its own reciprocal yields +/- 1, no matter how large.\n if (this.layer === decimal.layer && this.mag === -decimal.mag) {\n return FC_NN(this.sign * decimal.sign, 0, 1);\n }\n\n let a;\n let b;\n\n //Which number is bigger in terms of its multiplicative distance from 1?\n if (\n this.layer > decimal.layer ||\n (this.layer == decimal.layer && Math.abs(this.mag) > Math.abs(decimal.mag))\n ) {\n a = this;\n b = decimal;\n } else {\n a = decimal;\n b = this;\n }\n\n if (a.layer === 0 && b.layer === 0) {\n return D(a.sign * b.sign * a.mag * b.mag);\n }\n\n //Special case: If one of the numbers is layer 3 or higher or one of the numbers is 2+ layers bigger than the other, just take the bigger number.\n if (a.layer >= 3 || a.layer - b.layer >= 2) {\n return FC(a.sign * b.sign, a.layer, a.mag);\n }\n\n if (a.layer === 1 && b.layer === 0) {\n return FC(a.sign * b.sign, 1, a.mag + Math.log10(b.mag));\n }\n\n if (a.layer === 1 && b.layer === 1) {\n return FC(a.sign * b.sign, 1, a.mag + b.mag);\n }\n\n if (a.layer === 2 && b.layer === 1) {\n const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add(\n FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag))\n );\n return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag);\n }\n\n if (a.layer === 2 && b.layer === 2) {\n const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add(\n FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag))\n );\n return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag);\n }\n\n throw Error(\"Bad arguments to mul: \" + this + \", \" + value);\n }\n\n public multiply(value: DecimalSource): Decimal {\n return this.mul(value);\n }\n\n public times(value: DecimalSource): Decimal {\n return this.mul(value);\n }\n\n public div(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.mul(decimal.recip());\n }\n\n public divide(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public divideBy(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public dividedBy(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public recip(): Decimal {\n if (this.mag === 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, 1 / this.mag);\n } else {\n return FC(this.sign, this.layer, -this.mag);\n }\n }\n\n public reciprocal(): Decimal {\n return this.recip();\n }\n\n public reciprocate(): Decimal {\n return this.recip();\n }\n\n /**\n * -1 for less than value, 0 for equals value, 1 for greater than value\n */\n public cmp(value: DecimalSource): CompareResult {\n const decimal = D(value);\n if (this.sign > decimal.sign) {\n return 1;\n }\n if (this.sign < decimal.sign) {\n return -1;\n }\n return (this.sign * this.cmpabs(value)) as CompareResult;\n }\n\n public cmpabs(value: DecimalSource): CompareResult {\n const decimal = D(value);\n const layera = this.mag > 0 ? this.layer : -this.layer;\n const layerb = decimal.mag > 0 ? decimal.layer : -decimal.layer;\n if (layera > layerb) {\n return 1;\n }\n if (layera < layerb) {\n return -1;\n }\n if (this.mag > decimal.mag) {\n return 1;\n }\n if (this.mag < decimal.mag) {\n return -1;\n }\n return 0;\n }\n\n public compare(value: DecimalSource): CompareResult {\n return this.cmp(value);\n }\n\n public isNan(): boolean {\n return isNaN(this.sign) || isNaN(this.layer) || isNaN(this.mag);\n }\n\n public isFinite(): boolean {\n return isFinite(this.sign) && isFinite(this.layer) && isFinite(this.mag);\n }\n\n public eq(value: DecimalSource): boolean {\n const decimal = D(value);\n return (\n this.sign === decimal.sign && this.layer === decimal.layer && this.mag === decimal.mag\n );\n }\n\n public equals(value: DecimalSource): boolean {\n return this.eq(value);\n }\n\n public neq(value: DecimalSource): boolean {\n return !this.eq(value);\n }\n\n public notEquals(value: DecimalSource): boolean {\n return this.neq(value);\n }\n\n public lt(value: DecimalSource): boolean {\n return this.cmp(value) === -1;\n }\n\n public lte(value: DecimalSource): boolean {\n return !this.gt(value);\n }\n\n public gt(value: DecimalSource): boolean {\n return this.cmp(value) === 1;\n }\n\n public gte(value: DecimalSource): boolean {\n return !this.lt(value);\n }\n\n public max(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.lt(decimal) ? decimal : this;\n }\n\n public min(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.gt(decimal) ? decimal : this;\n }\n\n public maxabs(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.cmpabs(decimal) < 0 ? decimal : this;\n }\n\n public minabs(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.cmpabs(decimal) > 0 ? decimal : this;\n }\n\n public clamp(min: DecimalSource, max: DecimalSource): Decimal {\n return this.max(min).min(max);\n }\n\n public clampMin(min: DecimalSource): Decimal {\n return this.max(min);\n }\n\n public clampMax(max: DecimalSource): Decimal {\n return this.min(max);\n }\n\n public cmp_tolerance(value: DecimalSource, tolerance: number): CompareResult {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) ? 0 : this.cmp(decimal);\n }\n\n public compare_tolerance(value: DecimalSource, tolerance: number): CompareResult {\n return this.cmp_tolerance(value, tolerance);\n }\n\n /**\n * Tolerance is a relative tolerance, multiplied by the greater of the magnitudes of the two arguments.\n * For example, if you put in 1e-9, then any number closer to the\n * larger number than (larger number)*1e-9 will be considered equal.\n */\n public eq_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value); // https://stackoverflow.com/a/33024979\n if (tolerance == null) {\n tolerance = 1e-7;\n }\n //Numbers that are too far away are never close.\n if (this.sign !== decimal.sign) {\n return false;\n }\n if (Math.abs(this.layer - decimal.layer) > 1) {\n return false;\n }\n // return abs(a-b) <= tolerance * max(abs(a), abs(b))\n let magA = this.mag;\n let magB = decimal.mag;\n if (this.layer > decimal.layer) {\n magB = f_maglog10(magB);\n }\n if (this.layer < decimal.layer) {\n magA = f_maglog10(magA);\n }\n return Math.abs(magA - magB) <= tolerance * Math.max(Math.abs(magA), Math.abs(magB));\n }\n\n public equals_tolerance(value: DecimalSource, tolerance: number): boolean {\n return this.eq_tolerance(value, tolerance);\n }\n\n public neq_tolerance(value: DecimalSource, tolerance: number): boolean {\n return !this.eq_tolerance(value, tolerance);\n }\n\n public notEquals_tolerance(value: DecimalSource, tolerance: number): boolean {\n return this.neq_tolerance(value, tolerance);\n }\n\n public lt_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return !this.eq_tolerance(decimal, tolerance) && this.lt(decimal);\n }\n\n public lte_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) || this.lt(decimal);\n }\n\n public gt_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return !this.eq_tolerance(decimal, tolerance) && this.gt(decimal);\n }\n\n public gte_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) || this.gt(decimal);\n }\n\n public pLog10(): Decimal {\n if (this.lt(Decimal.dZero)) {\n return Decimal.dZero;\n }\n return this.log10();\n }\n\n public absLog10(): Decimal {\n if (this.sign === 0) {\n return Decimal.dNaN;\n } else if (this.layer > 0) {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n } else {\n return FC(1, 0, Math.log10(this.mag));\n }\n }\n\n public log10(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer > 0) {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n } else {\n return FC(this.sign, 0, Math.log10(this.mag));\n }\n }\n\n public log(base: DecimalSource): Decimal {\n base = D(base);\n if (this.sign <= 0) {\n return Decimal.dNaN;\n }\n if (base.sign <= 0) {\n return Decimal.dNaN;\n }\n if (base.sign === 1 && base.layer === 0 && base.mag === 1) {\n return Decimal.dNaN;\n } else if (this.layer === 0 && base.layer === 0) {\n return FC(this.sign, 0, Math.log(this.mag) / Math.log(base.mag));\n }\n\n return Decimal.div(this.log10(), base.log10());\n }\n\n public log2(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, Math.log2(this.mag));\n } else if (this.layer === 1) {\n return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 3.321928094887362); //log2(10)\n } else if (this.layer === 2) {\n return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.5213902276543247); //-log10(log10(2))\n } else {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n }\n }\n\n public ln(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, Math.log(this.mag));\n } else if (this.layer === 1) {\n return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 2.302585092994046); //ln(10)\n } else if (this.layer === 2) {\n return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.36221568869946325); //log10(log10(e))\n } else {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n }\n }\n\n public logarithm(base: DecimalSource): Decimal {\n return this.log(base);\n }\n\n public pow(value: DecimalSource): Decimal {\n const decimal = D(value);\n const a = this;\n const b = decimal;\n\n //special case: if a is 0, then return 0 (UNLESS b is 0, then return 1)\n if (a.sign === 0) {\n return b.eq(0) ? FC_NN(1, 0, 1) : a;\n }\n //special case: if a is 1, then return 1\n if (a.sign === 1 && a.layer === 0 && a.mag === 1) {\n return a;\n }\n //special case: if b is 0, then return 1\n if (b.sign === 0) {\n return FC_NN(1, 0, 1);\n }\n //special case: if b is 1, then return a\n if (b.sign === 1 && b.layer === 0 && b.mag === 1) {\n return a;\n }\n\n const result = a\n .absLog10()\n .mul(b)\n .pow10();\n\n if (this.sign === -1) {\n if (Math.abs(b.toNumber() % 2) % 2 === 1) {\n return result.neg();\n } else if (Math.abs(b.toNumber() % 2) % 2 === 0) {\n return result;\n }\n return Decimal.dNaN;\n }\n\n return result;\n }\n\n public pow10(): Decimal {\n /*\n There are four cases we need to consider:\n 1) positive sign, positive mag (e15, ee15): +1 layer (e.g. 10^15 becomes e15, 10^e15 becomes ee15)\n 2) negative sign, positive mag (-e15, -ee15): +1 layer but sign and mag sign are flipped (e.g. 10^-15 becomes e-15, 10^-e15 becomes ee-15)\n 3) positive sign, negative mag (e-15, ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1\n 4) negative sign, negative mag (-e-15, -ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1\n */\n\n if (!Number.isFinite(this.layer) || !Number.isFinite(this.mag)) {\n return Decimal.dNaN;\n }\n\n let a = this;\n\n //handle layer 0 case - if no precision is lost just use Math.pow, else promote one layer\n if (a.layer === 0) {\n const newmag = Math.pow(10, a.sign * a.mag);\n if (Number.isFinite(newmag) && Math.abs(newmag) >= 0.1) {\n return FC(1, 0, newmag);\n } else {\n if (a.sign === 0) {\n return Decimal.dOne;\n } else {\n a = FC_NN(a.sign, a.layer + 1, Math.log10(a.mag)) as this;\n }\n }\n }\n\n //handle all 4 layer 1+ cases individually\n if (a.sign > 0 && a.mag >= 0) {\n return FC(a.sign, a.layer + 1, a.mag);\n }\n if (a.sign < 0 && a.mag >= 0) {\n return FC(-a.sign, a.layer + 1, -a.mag);\n }\n //both the negative mag cases are identical: one +/- rounding error\n return Decimal.dOne;\n }\n\n public pow_base(value: DecimalSource): Decimal {\n return D(value).pow(this);\n }\n\n public root(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.pow(decimal.recip());\n }\n\n public factorial(): Decimal {\n if (this.mag < 0) {\n return this.add(1).gamma();\n } else if (this.layer === 0) {\n return this.add(1).gamma();\n } else if (this.layer === 1) {\n return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1)));\n } else {\n return Decimal.exp(this);\n }\n }\n\n //from HyperCalc source code\n public gamma(): Decimal {\n if (this.mag < 0) {\n return this.recip();\n } else if (this.layer === 0) {\n if (this.lt(FC_NN(1, 0, 24))) {\n return D(f_gamma(this.sign * this.mag));\n }\n\n const t = this.mag - 1;\n let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI)\n l = l + (t + 0.5) * Math.log(t);\n l = l - t;\n const n2 = t * t;\n let np = t;\n let lm = 12 * np;\n let adj = 1 / lm;\n let l2 = l + adj;\n if (l2 === l) {\n return Decimal.exp(l);\n }\n\n l = l2;\n np = np * n2;\n lm = 360 * np;\n adj = 1 / lm;\n l2 = l - adj;\n if (l2 === l) {\n return Decimal.exp(l);\n }\n\n l = l2;\n np = np * n2;\n lm = 1260 * np;\n let lt = 1 / lm;\n l = l + lt;\n np = np * n2;\n lm = 1680 * np;\n lt = 1 / lm;\n l = l - lt;\n return Decimal.exp(l);\n } else if (this.layer === 1) {\n return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1)));\n } else {\n return Decimal.exp(this);\n }\n }\n\n public lngamma(): Decimal {\n return this.gamma().ln();\n }\n\n public exp(): Decimal {\n if (this.mag < 0) {\n return Decimal.dOne;\n }\n if (this.layer === 0 && this.mag <= 709.7) {\n return D(Math.exp(this.sign * this.mag));\n } else if (this.layer === 0) {\n return FC(1, 1, this.sign * Math.log10(Math.E) * this.mag);\n } else if (this.layer === 1) {\n return FC(1, 2, this.sign * (Math.log10(0.4342944819032518) + this.mag));\n } else {\n return FC(1, this.layer + 1, this.sign * this.mag);\n }\n }\n\n public sqr(): Decimal {\n return this.pow(2);\n }\n\n public sqrt(): Decimal {\n if (this.layer === 0) {\n return D(Math.sqrt(this.sign * this.mag));\n } else if (this.layer === 1) {\n return FC(1, 2, Math.log10(this.mag) - 0.3010299956639812);\n } else {\n const result = Decimal.div(FC_NN(this.sign, this.layer - 1, this.mag), FC_NN(1, 0, 2));\n result.layer += 1;\n result.normalize();\n return result;\n }\n }\n\n public cube(): Decimal {\n return this.pow(3);\n }\n\n public cbrt(): Decimal {\n return this.pow(1 / 3);\n }\n\n //Tetration/tetrate: The result of exponentiating 'this' to 'this' 'height' times in a row. https://en.wikipedia.org/wiki/Tetration\n //If payload != 1, then this is 'iterated exponentiation', the result of exping (payload) to base (this) (height) times. https://andydude.github.io/tetration/archives/tetration2/ident.html\n //Works with negative and positive real heights.\n public tetrate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal {\n //x^^1 == x\n if (height === 1) {\n return Decimal.pow(this, payload);\n }\n //x^^0 == 1\n if (height === 0) {\n return new Decimal(payload);\n }\n //1^^x == 1\n if (this.eq(Decimal.dOne)) {\n return Decimal.dOne;\n }\n //-1^^x == -1\n if (this.eq(-1)) {\n return Decimal.pow(this, payload);\n }\n\n if (height === Number.POSITIVE_INFINITY) {\n const this_num = this.toNumber();\n //within the convergence range?\n if (this_num <= 1.44466786100976613366 && this_num >= 0.06598803584531253708) {\n //hotfix for the very edge of the number range not being handled properly\n if (this_num > 1.444667861009099) {\n return new Decimal(Math.E);\n }\n //Formula for infinite height power tower.\n const negln = Decimal.ln(this).neg();\n return negln.lambertw().div(negln);\n } else if (this_num > 1.44466786100976613366) {\n //explodes to infinity\n return new Decimal(Number.POSITIVE_INFINITY);\n } else {\n //0.06598803584531253708 > this_num >= 0: never converges\n //this_num < 0: quickly becomes a complex number\n return Decimal.dNaN;\n }\n }\n\n //0^^x oscillates if we define 0^0 == 1 (which in javascript land we do), since then 0^^1 is 0, 0^^2 is 1, 0^^3 is 0, etc. payload is ignored\n //using the linear approximation for height (TODO: don't know a better way to calculate it ATM, but it wouldn't surprise me if it's just NaN)\n if (this.eq(Decimal.dZero)) {\n let result = Math.abs((height + 1) % 2);\n if (result > 1) {\n result = 2 - result;\n }\n return new Decimal(result);\n }\n\n if (height < 0) {\n return Decimal.iteratedlog(payload, this, -height);\n }\n\n payload = D(payload);\n const oldheight = height;\n height = Math.trunc(height);\n const fracheight = oldheight - height;\n\n if (this.gt(Decimal.dZero) && this.lte(1.44466786100976613366)) {\n //similar to 0^^n, flip-flops between two values, converging slowly (or if it's below 0.06598803584531253708, never. so once again, the fractional part at the end will be a linear approximation (TODO: again pending knowledge of how to approximate better, although tbh I think it should in reality just be NaN)\n height = Math.min(10000, height);\n for (let i = 0; i < height; ++i) {\n const old_payload: Decimal = payload;\n payload = this.pow(payload);\n //stop early if we converge\n if (old_payload.eq(payload)) {\n return payload;\n }\n }\n if (fracheight != 0) {\n const next_payload = this.pow(payload);\n return payload.mul(1 - fracheight).add(next_payload.mul(fracheight));\n }\n return payload;\n }\n //TODO: base < 0, but it's hard for me to reason about (probably all non-integer heights are NaN automatically?)\n\n if (fracheight !== 0) {\n if (payload.eq(Decimal.dOne)) {\n //TODO: for bases above 10, revert to old linear approximation until I can think of something better\n if (this.gt(10)) {\n payload = this.pow(fracheight);\n } else {\n payload = D(Decimal.tetrate_critical(this.toNumber(), fracheight));\n //TODO: until the critical section grid can handle numbers below 2, scale them to the base\n //TODO: maybe once the critical section grid has very large bases, this math can be appropriate for them too? I'll think about it\n if (this.lt(2)) {\n payload = payload\n .sub(1)\n .mul(this.minus(1))\n .plus(1);\n }\n }\n } else {\n if (this.eq(10)) {\n payload = payload.layeradd10(fracheight);\n } else {\n payload = payload.layeradd(fracheight, this);\n }\n }\n }\n\n for (let i = 0; i < height; ++i) {\n payload = this.pow(payload);\n //bail if we're NaN\n if (!isFinite(payload.layer) || !isFinite(payload.mag)) {\n return payload.normalize();\n }\n //shortcut\n if (payload.layer - this.layer > 3) {\n return FC_NN(payload.sign, payload.layer + (height - i - 1), payload.mag);\n }\n //give up after 10000 iterations if nothing is happening\n if (i > 10000) {\n return payload;\n }\n }\n return payload;\n }\n\n //iteratedexp/iterated exponentiation: - all cases handled in tetrate, so just call it\n public iteratedexp(height = 2, payload = FC_NN(1, 0, 1)): Decimal {\n return this.tetrate(height, payload);\n }\n\n //iterated log/repeated log: The result of applying log(base) 'times' times in a row. Approximately equal to subtracting (times) from the number's slog representation. Equivalent to tetrating to a negative height.\n //Works with negative and positive real heights.\n public iteratedlog(base: DecimalSource = 10, times = 1): Decimal {\n if (times < 0) {\n return Decimal.tetrate(base, -times, this);\n }\n\n base = D(base);\n let result = D(this);\n const fulltimes = times;\n times = Math.trunc(times);\n const fraction = fulltimes - times;\n if (result.layer - base.layer > 3) {\n const layerloss = Math.min(times, result.layer - base.layer - 3);\n times -= layerloss;\n result.layer -= layerloss;\n }\n\n for (let i = 0; i < times; ++i) {\n result = result.log(base);\n //bail if we're NaN\n if (!isFinite(result.layer) || !isFinite(result.mag)) {\n return result.normalize();\n }\n //give up after 10000 iterations if nothing is happening\n if (i > 10000) {\n return result;\n }\n }\n\n //handle fractional part\n if (fraction > 0 && fraction < 1) {\n if (base.eq(10)) {\n result = result.layeradd10(-fraction);\n } else {\n result = result.layeradd(-fraction, base);\n }\n }\n\n return result;\n }\n\n //Super-logarithm, one of tetration's inverses, tells you what size power tower you'd have to tetrate base to to get number. By definition, will never be higher than 1.8e308 in break_eternity.js, since a power tower 1.8e308 numbers tall is the largest representable number.\n // https://en.wikipedia.org/wiki/Super-logarithm\n public slog(base: DecimalSource = 10): Decimal {\n base = D(base);\n\n //special cases:\n //slog base 0 or lower is NaN\n if (base.lte(Decimal.dZero)) {\n return Decimal.dNaN;\n }\n //slog base 1 is NaN\n if (base.eq(Decimal.dOne)) {\n return Decimal.dNaN;\n }\n //need to handle these small, wobbling bases specially\n if (base.lt(Decimal.dOne)) {\n if (this.eq(Decimal.dOne)) {\n return Decimal.dZero;\n }\n if (this.eq(Decimal.dZero)) {\n return Decimal.dNegOne;\n }\n //0 < this < 1: ambiguous (happens multiple times)\n //this < 0: impossible (as far as I can tell)\n //this > 1: partially complex (http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html base 0.25 for proof)\n return Decimal.dNaN;\n }\n //slog_n(0) is -1\n if (this.mag < 0 || this.eq(Decimal.dZero)) {\n return Decimal.dNegOne;\n }\n\n let result = 0;\n let copy = D(this);\n if (copy.layer - base.layer > 3) {\n const layerloss = copy.layer - base.layer - 3;\n result += layerloss;\n copy.layer -= layerloss;\n }\n\n for (let i = 0; i < 100; ++i) {\n if (copy.lt(Decimal.dZero)) {\n copy = Decimal.pow(base, copy);\n result -= 1;\n } else if (copy.lte(Decimal.dOne)) {\n return D(result + Decimal.slog_critical(base.toNumber(), copy.toNumber()));\n } else {\n result += 1;\n copy = Decimal.log(copy, base);\n }\n }\n return D(result);\n }\n\n //background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22\n public static slog_critical(base: number, height: number): number {\n //TODO: for bases above 10, revert to old linear approximation until I can think of something better\n if (base > 10) {\n return height - 1;\n }\n return Decimal.critical_section(base, height, critical_slog_values);\n }\n\n public static tetrate_critical(base: number, height: number): number {\n return Decimal.critical_section(base, height, critical_tetr_values);\n }\n\n public static critical_section(base: number, height: number, grid: number[][]): number {\n //this part is simple at least, since it's just 0.1 to 0.9\n height *= 10;\n if (height < 0) {\n height = 0;\n }\n if (height > 10) {\n height = 10;\n }\n //have to do this complicated song and dance since one of the critical_headers is Math.E, and in the future I'd like 1.5 as well\n if (base < 2) {\n base = 2;\n }\n if (base > 10) {\n base = 10;\n }\n let lower = 0;\n let upper = 0;\n //basically, if we're between bases, we interpolate each bases' relevant values together\n //then we interpolate based on what the fractional height is.\n //accuracy could be improved by doing a non-linear interpolation (maybe), by adding more bases and heights (definitely) but this is AFAIK the best you can get without running some pari.gp or mathematica program to calculate exact values\n for (let i = 0; i < critical_headers.length; ++i) {\n if (critical_headers[i] == base) {\n // exact match\n lower = grid[i][Math.floor(height)];\n upper = grid[i][Math.ceil(height)];\n break;\n } else if (critical_headers[i] < base && critical_headers[i + 1] > base) {\n // interpolate between this and the next\n const basefrac =\n (base - critical_headers[i]) / (critical_headers[i + 1] - critical_headers[i]);\n lower =\n grid[i][Math.floor(height)] * (1 - basefrac) +\n grid[i + 1][Math.floor(height)] * basefrac;\n upper =\n grid[i][Math.ceil(height)] * (1 - basefrac) +\n grid[i + 1][Math.ceil(height)] * basefrac;\n break;\n }\n }\n const frac = height - Math.floor(height);\n const result = lower * (1 - frac) + upper * frac;\n return result;\n }\n\n //Function for adding/removing layers from a Decimal, even fractional layers (e.g. its slog10 representation).\n //Moved this over to use the same critical section as tetrate/slog.\n public layeradd10(diff: DecimalSource): Decimal {\n diff = Decimal.fromValue_noAlloc(diff).toNumber();\n const result = D(this);\n if (diff >= 1) {\n //bug fix: if result is very smol (mag < 0, layer > 0) turn it into 0 first\n if (result.mag < 0 && result.layer > 0) {\n result.sign = 0;\n result.mag = 0;\n result.layer = 0;\n } else if (result.sign === -1 && result.layer == 0) {\n //bug fix - for stuff like -3.layeradd10(1) we need to move the sign to the mag\n result.sign = 1;\n result.mag = -result.mag;\n }\n const layeradd = Math.trunc(diff);\n diff -= layeradd;\n result.layer += layeradd;\n }\n if (diff <= -1) {\n const layeradd = Math.trunc(diff);\n diff -= layeradd;\n result.layer += layeradd;\n if (result.layer < 0) {\n for (let i = 0; i < 100; ++i) {\n result.layer++;\n result.mag = Math.log10(result.mag);\n if (!isFinite(result.mag)) {\n //another bugfix: if we hit -Infinity mag, then we should return negative infinity, not 0. 0.layeradd10(-1) h its this\n if (result.sign === 0) {\n result.sign = 1;\n }\n //also this, for 0.layeradd10(-2)\n if (result.layer < 0) {\n result.layer = 0;\n }\n return result.normalize();\n }\n if (result.layer >= 0) {\n break;\n }\n }\n }\n }\n\n while (result.layer < 0) {\n result.layer++;\n result.mag = Math.log10(result.mag);\n }\n //bugfix: before we normalize: if we started with 0, we now need to manually fix a layer ourselves!\n if (result.sign === 0) {\n result.sign = 1;\n if (result.mag === 0 && result.layer >= 1) {\n result.layer -= 1;\n result.mag = 1;\n }\n }\n result.normalize();\n\n //layeradd10: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 10 and iterated log base 10. Also equivalent to adding a fractional amount to the number's layer in its break_eternity.js representation.\n if (diff !== 0) {\n return result.layeradd(diff, 10); //safe, only calls positive height 1 payload tetration, slog and log\n }\n\n return result;\n }\n\n //layeradd: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 'base' and iterated log base 'base'.\n public layeradd(diff: number, base: DecimalSource): Decimal {\n const slogthis = this.slog(base).toNumber();\n const slogdest = slogthis + diff;\n if (slogdest >= 0) {\n return Decimal.tetrate(base, slogdest);\n } else if (!Number.isFinite(slogdest)) {\n return Decimal.dNaN;\n } else if (slogdest >= -1) {\n return Decimal.log(Decimal.tetrate(base, slogdest + 1), base);\n } else {\n return Decimal.log(Decimal.log(Decimal.tetrate(base, slogdest + 2), base), base);\n }\n }\n\n //The Lambert W function, also called the omega function or product logarithm, is the solution W(x) === x*e^x.\n // https://en.wikipedia.org/wiki/Lambert_W_function\n //Some special values, for testing: https://en.wikipedia.org/wiki/Lambert_W_function#Special_values\n public lambertw(): Decimal {\n if (this.lt(-0.3678794411710499)) {\n throw Error(\"lambertw is unimplemented for results less than -1, sorry!\");\n } else if (this.mag < 0) {\n return D(f_lambertw(this.toNumber()));\n } else if (this.layer === 0) {\n return D(f_lambertw(this.sign * this.mag));\n } else if (this.layer === 1) {\n return d_lambertw(this);\n } else if (this.layer === 2) {\n return d_lambertw(this);\n }\n if (this.layer >= 3) {\n return FC_NN(this.sign, this.layer - 1, this.mag);\n }\n\n throw \"Unhandled behavior in lambertw()\";\n }\n\n //The super square-root function - what number, tetrated to height 2, equals this?\n //Other sroots are possible to calculate probably through guess and check methods, this one is easy though.\n // https://en.wikipedia.org/wiki/Tetration#Super-root\n public ssqrt(): Decimal {\n if (this.sign == 1 && this.layer >= 3) {\n return FC_NN(this.sign, this.layer - 1, this.mag);\n }\n const lnx = this.ln();\n return lnx.div(lnx.lambertw());\n }\n /*\n\nUnit tests for tetrate/iteratedexp/iteratedlog/layeradd10/layeradd/slog:\n(note: these won't be exactly precise with the new slog implementation, but that's okay)\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var expected = first+both+1;\n var result = new Decimal(10).layeradd10(first).layeradd10(both).slog();\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n first += both;\n var expected = first-both+1;\n var result = new Decimal(10).layeradd10(first).layeradd10(-both).slog();\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var base = Math.random()*8+2;\n var expected = first+both+1;\n var result = new Decimal(base).layeradd(first, base).layeradd(both, base).slog(base);\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var base = Math.random()*8+2;\n first += both;\n var expected = first-both+1;\n var result = new Decimal(base).layeradd(first, base).layeradd(-both, base).slog(base);\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar tetrateonly = Decimal.tetrate(10, first);\nvar tetrateandlog = Decimal.tetrate(10, first+both).iteratedlog(10, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar base = Math.random()*8+2;\nvar tetrateonly = Decimal.tetrate(base, first);\nvar tetrateandlog = Decimal.tetrate(base, first+both).iteratedlog(base, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar base = Math.random()*8+2;\nvar tetrateonly = Decimal.tetrate(base, first, base);\nvar tetrateandlog = Decimal.tetrate(base, first+both, base).iteratedlog(base, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var xex = new Decimal(-0.3678794411710499+Math.random()*100);\n var x = Decimal.lambertw(xex);\n if (!Decimal.eq_tolerance(xex, x.mul(Decimal.exp(x))))\n {\n console.log(xex);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var xex = new Decimal(-0.3678794411710499+Math.exp(Math.random()*100));\n var x = Decimal.lambertw(xex);\n if (!Decimal.eq_tolerance(xex, x.mul(Decimal.exp(x))))\n {\n console.log(xex);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.random() > 0.5 ? 0 : 1);\n var b = Decimal.randomDecimalForTesting(Math.random() > 0.5 ? 0 : 1);\n if (Math.random() > 0.5) { a = a.recip(); }\n if (Math.random() > 0.5) { b = b.recip(); }\n var c = a.add(b).toNumber();\n if (Number.isFinite(c) && !Decimal.eq_tolerance(c, a.toNumber()+b.toNumber()))\n {\n console.log(a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 100; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n var b = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n if (Math.random() > 0.5) { a = a.recip(); }\n if (Math.random() > 0.5) { b = b.recip(); }\n var c = a.mul(b).toNumber();\n if (Number.isFinite(c) && Number.isFinite(a.toNumber()) && Number.isFinite(b.toNumber()) && a.toNumber() != 0 && b.toNumber() != 0 && c != 0 && !Decimal.eq_tolerance(c, a.toNumber()*b.toNumber()))\n {\n console.log(\"Test 1: \" + a + \", \" + b);\n }\n else if (!Decimal.mul(a.recip(), b.recip()).eq_tolerance(Decimal.mul(a, b).recip()))\n {\n console.log(\"Test 3: \" + a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 10; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n var b = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n if (Math.random() > 0.5 && a.sign !== 0) { a = a.recip(); }\n if (Math.random() > 0.5 && b.sign !== 0) { b = b.recip(); }\n var c = a.pow(b);\n var d = a.root(b.recip());\n var e = a.pow(b.recip());\n var f = a.root(b);\n\n if (!c.eq_tolerance(d) && a.sign !== 0 && b.sign !== 0)\n {\n console.log(\"Test 1: \" + a + \", \" + b);\n }\n if (!e.eq_tolerance(f) && a.sign !== 0 && b.sign !== 0)\n {\n console.log(\"Test 2: \" + a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 10; ++i)\n{\n var a = Math.round(Math.random()*18-9);\n var b = Math.round(Math.random()*100-50);\n var c = Math.round(Math.random()*18-9);\n var d = Math.round(Math.random()*100-50);\n console.log(\"Decimal.pow(Decimal.fromMantissaExponent(\" + a + \", \" + b + \"), Decimal.fromMantissaExponent(\" + c + \", \" + d + \")).toString()\");\n}\n\n*/\n\n //Pentation/pentate: The result of tetrating 'height' times in a row. An absurdly strong operator - Decimal.pentate(2, 4.28) and Decimal.pentate(10, 2.37) are already too huge for break_eternity.js!\n // https://en.wikipedia.org/wiki/Pentation\n public pentate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal {\n payload = D(payload);\n const oldheight = height;\n height = Math.trunc(height);\n const fracheight = oldheight - height;\n\n //I have no idea if this is a meaningful approximation for pentation to continuous heights, but it is monotonic and continuous.\n if (fracheight !== 0) {\n if (payload.eq(Decimal.dOne)) {\n ++height;\n payload = new Decimal(fracheight);\n } else {\n if (this.eq(10)) {\n payload = payload.layeradd10(fracheight);\n } else {\n payload = payload.layeradd(fracheight, this);\n }\n }\n }\n\n for (let i = 0; i < height; ++i) {\n payload = this.tetrate(payload.toNumber());\n //bail if we're NaN\n if (!isFinite(payload.layer) || !isFinite(payload.mag)) {\n return payload.normalize();\n }\n //give up after 10 iterations if nothing is happening\n if (i > 10) {\n return payload;\n }\n }\n\n return payload;\n }\n\n // trig functions!\n public sin(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.sin(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public cos(): Decimal {\n if (this.mag < 0) {\n return Decimal.dOne;\n }\n if (this.layer === 0) {\n return D(Math.cos(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public tan(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.tan(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public asin(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.asin(this.sign * this.mag));\n }\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n public acos(): Decimal {\n if (this.mag < 0) {\n return D(Math.acos(this.toNumber()));\n }\n if (this.layer === 0) {\n return D(Math.acos(this.sign * this.mag));\n }\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n public atan(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.atan(this.sign * this.mag));\n }\n return D(Math.atan(this.sign * 1.8e308));\n }\n\n public sinh(): Decimal {\n return this.exp()\n .sub(this.negate().exp())\n .div(2);\n }\n\n public cosh(): Decimal {\n return this.exp()\n .add(this.negate().exp())\n .div(2);\n }\n\n public tanh(): Decimal {\n return this.sinh().div(this.cosh());\n }\n\n public asinh(): Decimal {\n return Decimal.ln(\n this.add(\n this.sqr()\n .add(1)\n .sqrt()\n )\n );\n }\n\n public acosh(): Decimal {\n return Decimal.ln(\n this.add(\n this.sqr()\n .sub(1)\n .sqrt()\n )\n );\n }\n\n public atanh(): Decimal {\n if (this.abs().gte(1)) {\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n return Decimal.ln(this.add(1).div(D(1).sub(this))).div(2);\n }\n\n /**\n * Joke function from Realm Grinder\n */\n public ascensionPenalty(ascensions: DecimalSource): Decimal {\n if (ascensions === 0) {\n return this;\n }\n\n return this.root(Decimal.pow(10, ascensions));\n }\n\n /**\n * Joke function from Cookie Clicker. It's 'egg'\n */\n public egg(): Decimal {\n return this.add(9);\n }\n\n public lessThanOrEqualTo(other: DecimalSource): boolean {\n return this.cmp(other) < 1;\n }\n\n public lessThan(other: DecimalSource): boolean {\n return this.cmp(other) < 0;\n }\n\n public greaterThanOrEqualTo(other: DecimalSource): boolean {\n return this.cmp(other) > -1;\n }\n\n public greaterThan(other: DecimalSource): boolean {\n return this.cmp(other) > 0;\n }\n\n // return Decimal;\n}\n\n// return Decimal;\n","import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Links = _resolveComponent(\"Links\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"layer-container\",\n style: _normalizeStyle({ '--layer-color': _ctx.unref(_ctx.color) })\n }, [\n (_ctx.showGoBack)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"goBack\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.goBack && _ctx.goBack(...args)))\n }, \"←\"))\n : _createCommentVNode(\"\", true),\n (_ctx.minimized.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n class: \"layer-tab minimized\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.minimized.value = false))\n }, [\n _createElementVNode(\"div\", null, _toDisplayString(_ctx.unref(_ctx.name)), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"layer-tab\", [{ showGoBack: _ctx.showGoBack }, _ctx.unref(_ctx.classes)]]),\n style: _normalizeStyle(_ctx.unref(_ctx.style))\n }, [\n _createVNode(_component_Links, {\n links: _ctx.unref(_ctx.links)\n }, {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.component)))\n ]),\n _: 1\n }, 8, [\"links\"])\n ], 6)),\n (_ctx.unref(_ctx.minimizable))\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 3,\n class: \"minimize\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.minimized.value = true))\n }, \" ▼ \"))\n : _createCommentVNode(\"\", true)\n ], 4))\n}","\nimport Links from \"@/components/links/Links.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport { CoercableComponent, PersistentRef, StyleValue } from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport player from \"@/game/player\";\nimport { computeComponent, processedPropType, wrapRef } from \"@/util/vue\";\nimport { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from \"vue\";\n\nexport default defineComponent({\n components: { Links },\n props: {\n index: {\n type: Number,\n required: true\n },\n tab: {\n type: Function as PropType<() => HTMLElement | undefined>,\n required: true\n },\n display: {\n type: processedPropType(Object, String, Function),\n required: true\n },\n minimized: {\n type: Object as PropType>,\n required: true\n },\n minWidth: {\n type: processedPropType(Number),\n required: true\n },\n name: {\n type: processedPropType(String),\n required: true\n },\n color: processedPropType(String),\n style: processedPropType(String, Object, Array),\n classes: processedPropType>(Object),\n links: processedPropType(Array),\n minimizable: processedPropType(Boolean)\n },\n setup(props) {\n const { display, index, minimized, minWidth, tab } = toRefs(props);\n\n const component = computeComponent(display);\n const showGoBack = computed(\n () => modInfo.allowGoBack && index.value > 0 && !minimized.value\n );\n\n function goBack() {\n player.tabs.splice(unref(props.index), Infinity);\n }\n\n nextTick(() => updateTab(minimized.value, unref(minWidth.value)));\n watch([minimized, wrapRef(minWidth)], ([minimized, minWidth]) =>\n updateTab(minimized, minWidth)\n );\n\n function updateTab(minimized: boolean, minWidth: number) {\n const tabValue = tab.value();\n if (tabValue != undefined) {\n if (minimized) {\n tabValue.style.flexGrow = \"0\";\n tabValue.style.flexShrink = \"0\";\n tabValue.style.width = \"60px\";\n tabValue.style.minWidth = tabValue.style.flexBasis = \"\";\n tabValue.style.margin = \"0\";\n } else {\n tabValue.style.flexGrow = \"\";\n tabValue.style.flexShrink = \"\";\n tabValue.style.width = \"\";\n tabValue.style.minWidth = tabValue.style.flexBasis = `${minWidth}px`;\n tabValue.style.margin = \"\";\n }\n }\n }\n\n return {\n component,\n showGoBack,\n unref,\n goBack\n };\n }\n});\n","import { render } from \"./Layer.vue?vue&type=template&id=666ada59&scoped=true&ts=true\"\nimport script from \"./Layer.vue?vue&type=script&lang=ts\"\nexport * from \"./Layer.vue?vue&type=script&lang=ts\"\n\nimport \"./Layer.vue?vue&type=style&index=0&id=666ada59&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-666ada59\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3303e3d5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Changelog\", -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"details\", { open: \"\" }, [\n /*#__PURE__*/_createElementVNode(\"summary\", null, [\n /*#__PURE__*/_createTextVNode(\"v0.0 Initial Commit - \"),\n /*#__PURE__*/_createElementVNode(\"time\", null, \"2021-09-04\")\n ]),\n /*#__PURE__*/_createTextVNode(\" This is the first release :D \"),\n /*#__PURE__*/_createElementVNode(\"ul\", null, [\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"feature\" }, \"Did everything\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"fix\" }, \"Had some fun\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"breaking\" }, \"Removed everything\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"balancing\" }, \"Created some bugs to fix later\")\n ])\n], -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport { ref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Changelog.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Changelog.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Changelog.vue?vue&type=style&index=0&id=3303e3d5&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3303e3d5\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0b3812f2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"info-modal-header\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"info-modal-title\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \" Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb \", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\", -1))\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n class: \"info-modal-discord-link\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\"),\n /*#__PURE__*/_createTextVNode(\" The Paper Pilot Community \")\n ])\n], -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n class: \"info-modal-discord-link\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\"),\n /*#__PURE__*/_createTextVNode(\" The Modding Tree \")\n ])\n], -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport type Changelog from \"@/data/Changelog.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport { formatTime } from \"@/util/bignum\";\nimport { computed, ref, toRefs, unref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n changelog: null\n },\n setup(__props: any, { expose }) {\n\nconst _props = __props as { changelog: typeof Changelog | null }\n\nconst { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = modInfo;\n\n\nconst props = toRefs(_props);\n\nconst isOpen = ref(false);\n\nconst timePlayed = computed(() => formatTime(player.timePlayed));\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nfunction openChangelog() {\n unref(props.changelog)?.open();\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n (_unref(logo))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n class: \"info-modal-logo\",\n src: _unref(logo),\n alt: _unref(title)\n }, null, 8, _hoisted_2))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h2\", null, _toDisplayString(_unref(title)), 1),\n _createElementVNode(\"h4\", null, \"v\" + _toDisplayString(_unref(versionNumber)) + \": \" + _toDisplayString(_unref(versionTitle)), 1)\n ])\n ])\n ]),\n body: _withCtx(({ shown }) => [\n shown\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n (_unref(author))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, \"By \" + _toDisplayString(_unref(author)), 1))\n : _createCommentVNode(\"\", true),\n _hoisted_6,\n _hoisted_7,\n _createElementVNode(\"div\", {\n class: \"link\",\n onClick: openChangelog\n }, \"Changelog\"),\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n href: _unref(discordLink),\n class: \"info-modal-discord-link\"\n }, [\n _hoisted_10,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_9))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_11,\n _hoisted_12,\n _hoisted_13,\n _createElementVNode(\"div\", null, \"Time Played: \" + _toDisplayString(_unref(timePlayed)), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Info.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Info.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Info.vue?vue&type=style&index=0&id=0b3812f2&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0b3812f2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, isRef as _isRef, vModelCheckbox as _vModelCheckbox, createElementVNode as _createElementVNode, withDirectives as _withDirectives, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7db643c6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"field\" }\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { coerceComponent } from \"@/util/vue\";\nimport { computed, unref } from \"vue\";\nimport \"@/components/common/fields.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\n title?: CoercableComponent;\n modelValue?: boolean;\n}\n\n\n\n\nconst component = computed(() => coerceComponent(unref(props.title) || \"\", \"span\"));\n\nconst value = computed({\n get() {\n return !!props.modelValue;\n },\n set(value: boolean) {\n emit(\"update:modelValue\", value);\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"label\", _hoisted_1, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"checkbox\",\n class: \"toggle\",\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(value) ? (value).value = $event : null))\n }, null, 512), [\n [_vModelCheckbox, _unref(value)]\n ]),\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(component))))\n ]))\n}\n}\n\n})","import script from \"./Toggle.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Toggle.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Toggle.vue?vue&type=style&index=0&id=7db643c6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7db643c6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"field\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"field-title\"\n}\n\nimport \"@/components/common/fields.css\";\nimport { CoercableComponent } from \"@/features/feature\";\nimport { computeOptionalComponent } from \"@/util/vue\";\nimport { ref, toRef, watch } from \"vue\";\nimport VueNextSelect from \"vue-next-select\";\nimport \"vue-next-select/dist/index.css\";\n\nexport type SelectOption = { label: string; value: unknown };\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: null,\n options: null,\n placeholder: null,\n closeOnSelect: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: unknown): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\n title?: CoercableComponent;\n modelValue?: unknown;\n options: SelectOption[];\n placeholder?: string;\n closeOnSelect?: boolean;\n}\n\n\n\n\nconst titleComponent = computeOptionalComponent(toRef(props, \"title\"), \"span\");\n\nconst value = ref(\n props.options.find(option => option.value === props.modelValue)\n);\nwatch(toRef(props, \"modelValue\"), modelValue => {\n if (value.value?.value !== modelValue) {\n value.value = props.options.find(option => option.value === modelValue);\n }\n});\n\nfunction onUpdate(value: SelectOption) {\n emit(\"update:modelValue\", value.value);\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(titleComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(titleComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(VueNextSelect), {\n options: __props.options,\n modelValue: value.value,\n \"onUpdate:modelValue\": [\n _cache[0] || (_cache[0] = ($event: any) => ((value).value = $event)),\n onUpdate\n ],\n min: 1,\n \"label-by\": \"label\",\n placeholder: __props.placeholder,\n \"close-on-select\": __props.closeOnSelect\n }, null, 8, [\"options\", \"modelValue\", \"placeholder\", \"close-on-select\"])\n ]))\n}\n}\n\n})","import script from \"./Select.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Select.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Select.vue?vue&type=style&index=0&id=fd319188&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, isRef as _isRef, createVNode as _createVNode, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-54e795a4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"header\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", null, \"Options\")\n], -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", null, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport rawThemes from \"@/data/themes\";\nimport player from \"@/game/player\";\nimport settings, { settingFields } from \"@/game/settings\";\nimport { camelToTitle } from \"@/util/common\";\nimport { computed, ref, toRefs } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\nimport Select from \"./fields/Select.vue\";\nimport Tooltip from \"./Tooltip.vue\";\nimport { jsx } from \"@/features/feature\";\nimport { coerceComponent, render } from \"@/util/vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nconst themes = Object.keys(rawThemes).map(theme => ({\n label: camelToTitle(theme),\n value: theme\n}));\n\nconst settingFieldsComponent = computed(() => {\n return coerceComponent(jsx(() => <>{settingFields.map(render)}));\n});\n\nconst { showTPS, theme, unthrottled } = toRefs(settings);\nconst { autosave, offlineProd } = toRefs(player);\nconst isPaused = computed({\n get() {\n return player.devSpeed === 0;\n },\n set(value: boolean) {\n player.devSpeed = value ? 0 : null;\n }\n});\n\nconst offlineProdTitle = jsx(() => (\n \n Offline Production*\n \n));\nconst autosaveTitle = jsx(() => (\n \n Autosave*\n \n));\nconst isPausedTitle = jsx(() => (\n \n Pause game*\n \n));\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _createVNode(Select, {\n title: \"Theme\",\n options: _unref(themes),\n modelValue: _unref(theme),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(theme) ? (theme).value = $event : null))\n }, null, 8, [\"options\", \"modelValue\"]),\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(settingFieldsComponent)))),\n _createVNode(Toggle, {\n title: \"Show TPS\",\n modelValue: _unref(showTPS),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(showTPS) ? (showTPS).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _hoisted_2,\n _createVNode(Toggle, {\n title: \"Unthrottled\",\n modelValue: _unref(unthrottled),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(unthrottled) ? (unthrottled).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(offlineProdTitle),\n modelValue: _unref(offlineProd),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(offlineProd) ? (offlineProd).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(autosaveTitle),\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(isPausedTitle),\n modelValue: _unref(isPaused),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(isPaused) ? (isPaused).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Options.vue?vue&type=script&setup=true&lang=tsx\"\nexport * from \"./Options.vue?vue&type=script&setup=true&lang=tsx\"\n\nimport \"./Options.vue?vue&type=style&index=0&id=54e795a4&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-54e795a4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, isRef as _isRef, vModelText as _vModelText, normalizeClass as _normalizeClass, withDirectives as _withDirectives, createElementVNode as _createElementVNode, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-540fa62c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"onSubmit\"]\nconst _hoisted_2 = { class: \"field\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"field-title\"\n}\nconst _hoisted_4 = [\"placeholder\"]\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { coerceComponent } from \"@/util/vue\";\nimport { computed, onMounted, ref, toRefs, unref } from \"vue\";\nimport VueTextareaAutosize from \"vue-textarea-autosize\";\nimport \"@/components/common/fields.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: null,\n textArea: { type: Boolean },\n placeholder: null,\n maxHeight: null\n },\n emits: [\"update:modelValue\", \"submit\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: string): void;\n (e: \"submit\"): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n title?: CoercableComponent;\n modelValue?: string;\n textArea?: boolean;\n placeholder?: string;\n maxHeight?: number;\n}\n\n\nconst props = toRefs(_props);\n\n\nconst titleComponent = computed(\n () => props.title?.value && coerceComponent(unref(props.title.value), \"span\")\n);\n\nconst field = ref(null);\nonMounted(() => {\n field.value?.focus();\n});\n\nconst value = computed({\n get() {\n return unref(props.modelValue) || \"\";\n },\n set(value: string) {\n emit(\"update:modelValue\", value);\n }\n});\n\nfunction submit() {\n emit(\"submit\");\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"form\", {\n onSubmit: _withModifiers(submit, [\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(titleComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(titleComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n (__props.textArea)\n ? (_openBlock(), _createBlock(_unref(VueTextareaAutosize), {\n key: 1,\n modelValue: _unref(value),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(value) ? (value).value = $event : null)),\n placeholder: __props.placeholder,\n maxHeight: __props.maxHeight,\n onBlur: submit,\n ref_key: \"field\",\n ref: field\n }, null, 8, [\"modelValue\", \"placeholder\", \"maxHeight\"]))\n : _withDirectives((_openBlock(), _createElementBlock(\"input\", {\n key: 2,\n type: \"text\",\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(value) ? (value).value = $event : null)),\n placeholder: __props.placeholder,\n class: _normalizeClass({ fullWidth: !__props.title }),\n onBlur: submit,\n ref_key: \"field\",\n ref: field\n }, null, 42, _hoisted_4)), [\n [_vModelText, _unref(value)]\n ])\n ])\n ], 40, _hoisted_1))\n}\n}\n\n})","import script from \"./Text.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Text.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Text.vue?vue&type=style&index=0&id=540fa62c&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-540fa62c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, withModifiers as _withModifiers, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-bf59fca4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = [\"onClick\", \"disabled\"]\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = [\"onClick\"]\n\nimport { ref, toRefs, unref, watch } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n disabled: { type: Boolean },\n skipConfirm: { type: Boolean }\n },\n emits: [\"click\", \"confirmingChanged\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"click\"): void;\n (e: \"confirmingChanged\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n disabled?: boolean;\n skipConfirm?: boolean;\n}\n\n\nconst props = toRefs(_props);\n\n\nconst isConfirming = ref(false);\n\nwatch(isConfirming, isConfirming => {\n emit(\"confirmingChanged\", isConfirming);\n});\n\nfunction click() {\n if (unref(props.skipConfirm)) {\n emit(\"click\");\n return;\n }\n if (isConfirming.value) {\n emit(\"click\");\n }\n isConfirming.value = !isConfirming.value;\n}\n\nfunction cancel() {\n isConfirming.value = false;\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass([\"container\", { confirming: isConfirming.value }])\n }, [\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, \"Are you sure?\"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"button\", {\n onClick: _withModifiers(click, [\"stop\"]),\n class: \"button danger\",\n disabled: __props.disabled\n }, [\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \"Yes\"))\n : _renderSlot(_ctx.$slots, \"default\", { key: 1 })\n ], 8, _hoisted_2),\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n class: \"button\",\n onClick: _withModifiers(cancel, [\"stop\"])\n }, \"No\", 8, _hoisted_4))\n : _createCommentVNode(\"\", true)\n ], 2))\n}\n}\n\n})","import script from \"./DangerButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DangerButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DangerButton.vue?vue&type=style&index=0&id=bf59fca4&scoped=true&lang=css\"\nimport \"./DangerButton.vue?vue&type=style&index=1&id=bf59fca4&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-bf59fca4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, withModifiers as _withModifiers, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5bbcedd3\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"onClick\"]\n\nimport { nextTick, ref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n left: { type: Boolean }\n },\n emits: [\"click\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"click\"): void;\n}), expose: any, slots: any, attrs: any }) {\n\n\n\n\nconst activated = ref(false);\nconst activatedTimeout = ref(null);\n\nfunction click() {\n emit(\"click\");\n\n // Give feedback to user\n if (activatedTimeout.value) {\n clearTimeout(activatedTimeout.value);\n }\n activated.value = false;\n nextTick(() => {\n activated.value = true;\n activatedTimeout.value = setTimeout(() => (activated.value = false), 500);\n });\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n onClick: _withModifiers(click, [\"stop\"]),\n class: _normalizeClass([\"feedback\", { activated: activated.value, left: __props.left }])\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 10, _hoisted_1))\n}\n}\n\n})","import script from \"./FeedbackButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./FeedbackButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./FeedbackButton.vue?vue&type=style&index=0&id=5bbcedd3&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5bbcedd3\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4c4580ca\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"handle material-icons\" }, \"drag_handle\", -1))\nconst _hoisted_2 = {\n key: 0,\n class: \"actions\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"content_paste\", -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"content_copy\", -1))\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"edit\", -1))\nconst _hoisted_7 = [\n _hoisted_6\n]\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"material-icons\",\n style: {\"margin\":\"-2px\"}\n}, \"delete\", -1))\nconst _hoisted_9 = {\n key: 1,\n class: \"actions\"\n}\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"check\", -1))\nconst _hoisted_11 = [\n _hoisted_10\n]\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"close\", -1))\nconst _hoisted_13 = [\n _hoisted_12\n]\nconst _hoisted_14 = {\n key: 2,\n class: \"details\"\n}\nconst _hoisted_15 = { class: \"save-version\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_17 = { key: 0 }\nconst _hoisted_18 = {\n key: 3,\n class: \"details\"\n}\nconst _hoisted_19 = {\n key: 4,\n class: \"details error\"\n}\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nimport player from \"@/game/player\";\nimport { computed, ref, toRefs, watch } from \"vue\";\nimport DangerButton from \"./fields/DangerButton.vue\";\nimport FeedbackButton from \"./fields/FeedbackButton.vue\";\nimport Text from \"./fields/Text.vue\";\nimport { LoadablePlayerData } from \"./SavesManager.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n save: null\n },\n emits: [\"export\", \"open\", \"duplicate\", \"delete\", \"editName\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"export\"): void;\n (e: \"open\"): void;\n (e: \"duplicate\"): void;\n (e: \"delete\"): void;\n (e: \"editName\", name: string): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n save: LoadablePlayerData;\n}\n\n\nconst { save } = toRefs(_props);\n\n\nconst dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n});\n\nconst isEditing = ref(false);\nconst isConfirming = ref(false);\nconst newName = ref(\"\");\n\nwatch(isEditing, () => (newName.value = save.value.name || \"\"));\n\nconst isActive = computed(() => save.value && save.value.id === player.id);\nconst currentTime = computed(() =>\n isActive.value ? player.time : (save.value && save.value.time) || 0\n);\n\nfunction changeName() {\n emit(\"editName\", newName.value);\n isEditing.value = false;\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"save\", { active: _unref(isActive) }])\n }, [\n _hoisted_1,\n (!isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createBlock(FeedbackButton, {\n key: 0,\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('export'))),\n class: \"button\",\n left: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (emit('duplicate'))),\n class: \"button\"\n }, _hoisted_5))\n : _createCommentVNode(\"\", true),\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 2,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (isEditing.value = !isEditing.value)),\n class: \"button\"\n }, _hoisted_7))\n : _createCommentVNode(\"\", true),\n _createVNode(DangerButton, {\n disabled: _unref(isActive),\n onClick: _cache[3] || (_cache[3] = ($event: any) => (emit('delete'))),\n onConfirmingChanged: _cache[4] || (_cache[4] = value => (isConfirming.value = value))\n }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createElementVNode(\"button\", {\n onClick: changeName,\n class: \"button\"\n }, _hoisted_11),\n _createElementVNode(\"button\", {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (isEditing.value = !isEditing.value)),\n class: \"button\"\n }, _hoisted_13)\n ])),\n (_unref(save).error == undefined && !isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"button\", {\n class: \"button open\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (emit('open')))\n }, [\n _createElementVNode(\"h3\", null, _toDisplayString(_unref(save).name), 1)\n ]),\n _createElementVNode(\"span\", _hoisted_15, \"v\" + _toDisplayString(_unref(save).modVersion), 1),\n _hoisted_16,\n (_unref(currentTime))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, \"Last played \" + _toDisplayString(_unref(dateFormat).format(_unref(currentTime))), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : (_unref(save).error == undefined && isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createVNode(Text, {\n modelValue: newName.value,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((newName).value = $event)),\n class: \"editname\",\n onSubmit: changeName\n }, null, 8, [\"modelValue\"])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _createTextVNode(\" Error: Failed to load save with id \" + _toDisplayString(_unref(save).id), 1),\n _hoisted_20,\n _createTextVNode(_toDisplayString(_unref(save).error), 1)\n ]))\n ], 2))\n}\n}\n\n})","import script from \"./Save.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Save.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Save.vue?vue&type=style&index=0&id=4c4580ca&scoped=true&lang=css\"\nimport \"./Save.vue?vue&type=style&index=1&id=4c4580ca&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4c4580ca\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-199ffea0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Saves Manager\", -1))\nconst _hoisted_2 = { class: \"modal-footer\" }\nconst _hoisted_3 = { class: \"field\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"field-title\" }, \"Create Save\", -1))\nconst _hoisted_5 = { class: \"field-buttons\" }\nconst _hoisted_6 = { class: \"footer\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex-grow\":\"1\"} }, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport player, { PlayerData } from \"@/game/player\";\nimport settings from \"@/game/settings\";\nimport { getUniqueID, loadSave, save, newSave } from \"@/util/save\";\nimport {\n ComponentPublicInstance,\n computed,\n nextTick,\n ref,\n shallowReactive,\n unref,\n watch\n} from \"vue\";\nimport Select from \"./fields/Select.vue\";\nimport Text from \"./fields/Text.vue\";\nimport Save from \"./Save.vue\";\nimport Draggable from \"vuedraggable\";\n\nexport type LoadablePlayerData = Omit, \"id\"> & { id: string; error?: unknown };\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\nconst modal = ref | null>(null);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nconst importingFailed = ref(false);\nconst saveToImport = ref(\"\");\n\nwatch(saveToImport, save => {\n if (save) {\n nextTick(() => {\n try {\n const playerData = JSON.parse(decodeURIComponent(escape(atob(save))));\n if (typeof playerData !== \"object\") {\n importingFailed.value = true;\n return;\n }\n const id = getUniqueID();\n playerData.id = id;\n localStorage.setItem(\n id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n saveToImport.value = \"\";\n importingFailed.value = false;\n\n settings.saves.push(id);\n } catch (e) {\n importingFailed.value = true;\n }\n });\n } else {\n importingFailed.value = false;\n }\n});\n\nlet bankContext = require.context(\"raw-loader!../../saves\", true, /\\.txt$/);\nlet bank = ref(\n bankContext.keys().reduce((acc: Array<{ label: string; value: string }>, curr) => {\n // .slice(2, -4) strips the leading ./ and the trailing .txt\n acc.push({\n label: curr.slice(2, -4),\n value: bankContext(curr).default\n });\n return acc;\n }, [])\n);\n\nconst cachedSaves = shallowReactive>({});\nfunction getCachedSave(id: string) {\n if (cachedSaves[id] == null) {\n const save = localStorage.getItem(id);\n if (save == null) {\n cachedSaves[id] = { error: `Save doesn't exist in localStorage`, id };\n } else if (save === \"dW5kZWZpbmVk\") {\n cachedSaves[id] = { error: `Save is undefined`, id };\n } else {\n try {\n cachedSaves[id] = { ...JSON.parse(decodeURIComponent(escape(atob(save)))), id };\n } catch (error) {\n cachedSaves[id] = { error, id };\n console.warn(\n `SavesManager: Failed to load info about save with id ${id}:\\n${error}\\n${save}`\n );\n }\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return cachedSaves[id]!;\n}\n// Wipe cache whenever the modal is opened\nwatch(isOpen, isOpen => {\n if (isOpen) {\n Object.keys(cachedSaves).forEach(key => delete cachedSaves[key]);\n }\n});\n\nconst saves = computed(() =>\n settings.saves.reduce((acc: Record, curr: string) => {\n acc[curr] = getCachedSave(curr);\n return acc;\n }, {})\n);\n\nfunction exportSave(id: string) {\n let saveToExport;\n if (player.id === id) {\n saveToExport = save();\n } else {\n saveToExport = btoa(unescape(encodeURIComponent(JSON.stringify(saves.value[id]))));\n }\n\n // Put on clipboard. Using the clipboard API asks for permissions and stuff\n const el = document.createElement(\"textarea\");\n el.value = saveToExport;\n document.body.appendChild(el);\n el.select();\n el.setSelectionRange(0, 99999);\n document.execCommand(\"copy\");\n document.body.removeChild(el);\n}\n\nfunction duplicateSave(id: string) {\n if (player.id === id) {\n save();\n }\n\n const playerData = { ...saves.value[id], id: getUniqueID() };\n localStorage.setItem(\n playerData.id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n\n settings.saves.push(playerData.id);\n}\n\nfunction deleteSave(id: string) {\n settings.saves = settings.saves.filter((save: string) => save !== id);\n localStorage.removeItem(id);\n cachedSaves[id] = undefined;\n}\n\nfunction openSave(id: string) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n saves.value[player.id]!.time = player.time;\n save();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n loadSave(saves.value[id]!);\n // Delete cached version in case of opening it again\n cachedSaves[id] = undefined;\n}\n\nfunction newFromPreset(preset: string) {\n const playerData = JSON.parse(decodeURIComponent(escape(atob(preset))));\n playerData.id = getUniqueID();\n localStorage.setItem(\n playerData.id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n\n settings.saves.push(playerData.id);\n}\n\nfunction editSave(id: string, newName: string) {\n const currSave = saves.value[id];\n if (currSave) {\n currSave.name = newName;\n if (player.id === id) {\n player.name = newName;\n save();\n } else {\n localStorage.setItem(id, btoa(unescape(encodeURIComponent(JSON.stringify(currSave)))));\n cachedSaves[id] = undefined;\n }\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((isOpen).value = $event)),\n ref_key: \"modal\",\n ref: modal\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n (unref(modal.value?.isOpen))\n ? (_openBlock(), _createBlock(_unref(Draggable), {\n key: 0,\n list: _unref(settings).saves,\n handle: \".handle\",\n itemKey: (save) => save\n }, {\n item: _withCtx(({ element }) => [\n _createVNode(Save, {\n save: _unref(saves)[element],\n onOpen: ($event: any) => (openSave(element)),\n onExport: ($event: any) => (exportSave(element)),\n onEditName: name => editSave(element, name),\n onDuplicate: ($event: any) => (duplicateSave(element)),\n onDelete: ($event: any) => (deleteSave(element))\n }, null, 8, [\"save\", \"onOpen\", \"onExport\", \"onEditName\", \"onDuplicate\", \"onDelete\"])\n ]),\n _: 1\n }, 8, [\"list\", \"itemKey\"]))\n : _createCommentVNode(\"\", true)\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(Text, {\n modelValue: saveToImport.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((saveToImport).value = $event)),\n title: \"Import Save\",\n placeholder: \"Paste your save here!\",\n class: _normalizeClass({ importingFailed: importingFailed.value })\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"button\", {\n class: \"button\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_unref(newSave) && _unref(newSave)(...args)))\n }, \"New Game\"),\n (Object.keys(_unref(bank)).length > 0)\n ? (_openBlock(), _createBlock(Select, {\n key: 0,\n options: _unref(bank),\n modelValue: undefined,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = preset => newFromPreset(preset as string)),\n closeOnSelect: \"\",\n placeholder: \"Select preset\",\n class: \"presets\"\n }, null, 8, [\"options\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"button\", {\n class: \"button modal-default-button\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (isOpen.value = false))\n }, \" Close \")\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./SavesManager.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./SavesManager.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./SavesManager.vue?vue&type=style&index=0&id=199ffea0&scoped=true&lang=css\"\nimport \"./SavesManager.vue?vue&type=style&index=1&id=199ffea0&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-199ffea0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-72eb8c78\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\", \"alt\"]\nconst _hoisted_2 = {\n key: 1,\n class: \"title\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex-grow\":\"1\",\"cursor\":\"unset\"} }, null, -1))\nconst _hoisted_4 = { class: \"discord\" }\nconst _hoisted_5 = { class: \"discord-links\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = [\"href\"]\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n target: \"_blank\"\n }, \"The Paper Pilot Community\")\n], -1))\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n target: \"_blank\"\n }, \"The Modding Tree\")\n], -1))\nconst _hoisted_10 = {\n href: \"https://forums.moddingtree.com/\",\n target: \"_blank\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"forum\", -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"info\", -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"library_books\", -1))\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"settings\", -1))\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"library_books\", -1))\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"settings\", -1))\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"info\", -1))\nconst _hoisted_18 = {\n href: \"https://forums.moddingtree.com/\",\n target: \"_blank\"\n}\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"forum\", -1))\nconst _hoisted_20 = { class: \"discord\" }\nconst _hoisted_21 = { class: \"discord-links\" }\nconst _hoisted_22 = { key: 0 }\nconst _hoisted_23 = [\"href\"]\nconst _hoisted_24 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n target: \"_blank\"\n }, \"The Paper Pilot Community\")\n], -1))\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n target: \"_blank\"\n }, \"The Modding Tree\")\n], -1))\n\nimport Changelog from \"@/data/Changelog.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport { ComponentPublicInstance, ref } from \"vue\";\nimport Info from \"./Info.vue\";\nimport Options from \"./Options.vue\";\nimport SavesManager from \"./SavesManager.vue\";\nimport Tooltip from \"./Tooltip.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst info = ref | null>(null);\nconst savesManager = ref | null>(null);\nconst options = ref | null>(null);\n// For some reason Info won't accept the changelog unless I do this:\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst changelog = ref | null>(null);\n\nconst { useHeader, banner, title, discordName, discordLink, versionNumber } = modInfo;\n\nfunction openDiscord() {\n window.open(discordLink, \"mywindow\");\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_unref(useHeader))\n ? (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n key: 0,\n class: \"nav\"\n }, _ctx.$attrs), [\n (_unref(banner))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n src: _unref(banner),\n height: \"100%\",\n alt: _unref(title)\n }, null, 8, _hoisted_1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_unref(title)), 1)),\n _createElementVNode(\"div\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (changelog.value?.open())),\n class: \"version-container\"\n }, [\n _createVNode(Tooltip, {\n display: \"Changelog\",\n bottom: \"\",\n class: \"version\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, \"v\" + _toDisplayString(_unref(versionNumber)), 1)\n ]),\n _: 1\n })\n ]),\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", {\n onClick: openDiscord,\n class: \"material-icons\"\n }, \"discord\"),\n _createElementVNode(\"ul\", _hoisted_5, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_6, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n target: \"_blank\"\n }, _toDisplayString(_unref(discordName)), 9, _hoisted_7)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_8,\n _hoisted_9\n ])\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", _hoisted_10, [\n _createVNode(Tooltip, {\n display: \"Forums\",\n bottom: \"\",\n yoffset: \"5px\"\n }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (info.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Info\",\n bottom: \"\",\n class: \"info\"\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (savesManager.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Saves\",\n bottom: \"\",\n xoffset: \"-20px\"\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[3] || (_cache[3] = ($event: any) => (options.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Options\",\n bottom: \"\",\n xoffset: \"-66px\"\n }, {\n default: _withCtx(() => [\n _hoisted_14\n ]),\n _: 1\n })\n ])\n ], 16))\n : (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n key: 1,\n class: \"overlay-nav\"\n }, _ctx.$attrs), [\n _createElementVNode(\"div\", {\n onClick: _cache[4] || (_cache[4] = ($event: any) => (changelog.value?.open())),\n class: \"version-container\"\n }, [\n _createVNode(Tooltip, {\n display: \"Changelog\",\n right: \"\",\n xoffset: \"25%\",\n class: \"version\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, \"v\" + _toDisplayString(_unref(versionNumber)), 1)\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (savesManager.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Saves\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[6] || (_cache[6] = ($event: any) => (options.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Options\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[7] || (_cache[7] = ($event: any) => (info.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Info\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_17\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", _hoisted_18, [\n _createVNode(Tooltip, {\n display: \"Forums\",\n right: \"\",\n xoffset: \"7px\"\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"span\", {\n onClick: openDiscord,\n class: \"material-icons\"\n }, \"discord\"),\n _createElementVNode(\"ul\", _hoisted_21, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_22, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n target: \"_blank\"\n }, _toDisplayString(_unref(discordName)), 9, _hoisted_23)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_24,\n _hoisted_25\n ])\n ])\n ], 16)),\n _createVNode(Info, {\n ref_key: \"info\",\n ref: info,\n changelog: changelog.value\n }, null, 8, [\"changelog\"]),\n _createVNode(SavesManager, {\n ref_key: \"savesManager\",\n ref: savesManager\n }, null, 512),\n _createVNode(Options, {\n ref_key: \"options\",\n ref: options\n }, null, 512),\n _createVNode(Changelog, {\n ref_key: \"changelog\",\n ref: changelog\n }, null, 512)\n ], 64))\n}\n}\n\n})","import script from \"./Nav.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Nav.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Nav.vue?vue&type=style&index=0&id=72eb8c78&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-72eb8c78\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6bcb9872\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"tabs-container\" }\nconst _hoisted_2 = { class: \"inner-tab\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"separator\"\n}\n\nimport modInfo from \"@/data/modInfo.json\";\nimport { GenericLayer, layers } from \"@/game/layers\";\nimport player from \"@/game/player\";\nimport { computed, toRef } from \"vue\";\nimport Layer from \"./Layer.vue\";\nimport Nav from \"./Nav.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tabs = toRef(player, \"tabs\");\nconst layerKeys = computed(() => Object.keys(layers));\nconst useHeader = modInfo.useHeader;\n\nfunction gatherLayerProps(layer: GenericLayer) {\n const { display, minimized, minWidth, name, color, style, classes, links, minimizable } = layer;\n return { display, minimized, minWidth, name, color, style, classes, links, minimizable };\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(tabs), (tab, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"tab\",\n ref_for: true,\n ref: `tab-${index}`\n }, [\n (index === 0 && !_unref(useHeader))\n ? (_openBlock(), _createBlock(Nav, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(layerKeys).includes(tab))\n ? (_openBlock(), _createBlock(Layer, _mergeProps({ key: 0 }, gatherLayerProps(_unref(layers)[tab]!), {\n index: index,\n tab: () => ((_ctx.$refs[`tab-${index}`] as HTMLElement[] | undefined)?.[0])\n }), null, 16, [\"index\", \"tab\"]))\n : (_openBlock(), _createBlock(_resolveDynamicComponent(tab), {\n key: 1,\n index: index\n }, null, 8, [\"index\"]))\n ]),\n (index !== _unref(tabs).length - 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n}\n}\n\n})","import script from \"./Game.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Game.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Game.vue?vue&type=style&index=0&id=6bcb9872&scoped=true&lang=css\"\nimport \"./Game.vue?vue&type=style&index=1&id=6bcb9872&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6bcb9872\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, isRef as _isRef, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-364b55bc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"game-over-modal-header\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"game-over-modal-title\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Congratulations!\", -1))\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \" Please check the Discord to discuss the game or to check for new content updates! \", -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons game-over-modal-discord\" }, \"discord\", -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport { hasWon } from \"@/data/mod\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport { formatTime } from \"@/util/bignum\";\nimport { loadSave, newSave } from \"@/util/save\";\nimport { computed, toRef } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst { title, logo, discordName, discordLink, versionNumber, versionTitle } = modInfo;\n\nconst timePlayed = computed(() => formatTime(player.timePlayed));\nconst isOpen = computed(() => hasWon.value && !player.keepGoing);\nconst autosave = toRef(player, \"autosave\");\n\nfunction keepGoing() {\n player.keepGoing = true;\n}\n\nfunction playAgain() {\n loadSave(newSave());\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, { \"model-value\": _unref(isOpen) }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n (_unref(logo))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n class: \"game-over-modal-logo\",\n src: _unref(logo),\n alt: _unref(title)\n }, null, 8, _hoisted_2))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"h4\", null, \"You've beaten \" + _toDisplayString(_unref(title)) + \" v\" + _toDisplayString(_unref(versionNumber)) + \": \" + _toDisplayString(_unref(versionTitle)), 1)\n ])\n ])\n ]),\n body: _withCtx(({ shown }) => [\n shown\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", null, \"It took you \" + _toDisplayString(_unref(timePlayed)) + \" to beat the game.\", 1),\n _hoisted_6,\n _hoisted_7,\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n class: \"game-over-modal-discord-link\"\n }, [\n _hoisted_10,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_9)\n ]),\n _createVNode(Toggle, {\n title: \"Autosave\",\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", { class: \"game-over-footer\" }, [\n _createElementVNode(\"button\", {\n onClick: keepGoing,\n class: \"button\"\n }, \"Keep Going\"),\n _createElementVNode(\"button\", {\n onClick: playAgain,\n class: \"button danger\"\n }, \"Play Again\")\n ])\n ]),\n _: 1\n }, 8, [\"model-value\"]))\n}\n}\n\n})","import script from \"./GameOverScreen.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./GameOverScreen.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./GameOverScreen.vue?vue&type=style&index=0&id=364b55bc&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-364b55bc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, isRef as _isRef, createVNode as _createVNode, mergeProps as _mergeProps, withCtx as _withCtx, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0f93e378\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"nan-modal-header\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", null, \"NaN value detected!\")\n], -1))\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_4 = [\"href\"]\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons nan-modal-discord\" }, \"discord\", -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_7 = { class: \"nan-footer\" }\n\nimport Modal from \"@/components/Modal.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport state from \"@/game/state\";\nimport Decimal, { DecimalSource, format } from \"@/util/bignum\";\nimport { ComponentPublicInstance, computed, ref, toRef } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\nimport SavesManager from \"./SavesManager.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst { discordName, discordLink } = modInfo;\nconst autosave = toRef(player, \"autosave\");\nconst hasNaN = toRef(state, \"hasNaN\");\nconst savesManager = ref | null>(null);\n\nconst path = computed(() => state.NaNPath?.join(\".\"));\nconst property = computed(() => state.NaNPath?.slice(-1)[0]);\nconst previous = computed(() => {\n if (state.NaNReceiver && property.value) {\n return state.NaNReceiver[property.value] as DecimalSource;\n }\n return null;\n});\nconst isPaused = computed({\n get() {\n return player.devSpeed === 0;\n },\n set(value: boolean) {\n player.devSpeed = value ? null : 0;\n }\n});\n\nfunction setZero() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(0);\n state.hasNaN = false;\n }\n}\n\nfunction setOne() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(1);\n state.hasNaN = false;\n }\n}\n\nfunction ignore() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(NaN);\n state.hasNaN = false;\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(Modal, _mergeProps({\n modelValue: _unref(hasNaN),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(hasNaN) ? (hasNaN).value = $event : null))\n }, _ctx.$attrs), {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createTextVNode(\" Attempted to assign \\\"\" + _toDisplayString(_unref(path)) + \"\\\" to NaN\", 1),\n (_unref(previous))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(\" \") + \"(previously \" + _toDisplayString(_unref(format)(_unref(previous))) + \")\", 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\". Auto-saving has been \" + _toDisplayString(_unref(autosave) ? \"enabled\" : \"disabled\") + \". Check the console for more details, and consider sharing it with the developers on discord. \", 1)\n ]),\n _hoisted_3,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n class: \"nan-modal-discord-link\"\n }, [\n _hoisted_5,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_4)\n ]),\n _hoisted_6,\n _createVNode(Toggle, {\n title: \"Autosave\",\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createVNode(Toggle, {\n title: \"Pause game\",\n modelValue: _unref(isPaused),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(isPaused) ? (isPaused).value = $event : null))\n }, null, 8, [\"modelValue\"])\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"button\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (savesManager.value?.open())),\n class: \"button\"\n }, \"Open Saves Manager\"),\n _createElementVNode(\"button\", {\n onClick: setZero,\n class: \"button\"\n }, \"Set to 0\"),\n _createElementVNode(\"button\", {\n onClick: setOne,\n class: \"button\"\n }, \"Set to 1\"),\n (_unref(previous) && _unref(Decimal).neq(_unref(previous), 0) && _unref(Decimal).neq(_unref(previous), 1))\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (hasNaN.value = false)),\n class: \"button\"\n }, \" Set to previous \"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"button\", {\n onClick: ignore,\n class: \"button danger\"\n }, \"Ignore\")\n ])\n ]),\n _: 1\n }, 16, [\"modelValue\"]),\n _createVNode(SavesManager, {\n ref_key: \"savesManager\",\n ref: savesManager\n }, null, 512)\n ], 64))\n}\n}\n\n})","import script from \"./NaNScreen.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./NaNScreen.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./NaNScreen.vue?vue&type=style&index=0&id=0f93e378&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0f93e378\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-323f9b12\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"tpsDisplay\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"low\"\n}\n\nimport state from \"@/game/state\";\nimport Decimal, { DecimalSource, formatWhole } from \"@/util/bignum\";\nimport { computed, ref, watchEffect } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tps = computed(() =>\n Decimal.div(\n state.lastTenTicks.length,\n state.lastTenTicks.reduce((acc, curr) => acc + curr, 0)\n )\n);\n\nconst lastTenFPS = ref([]);\nwatchEffect(() => {\n lastTenFPS.value.push(Math.round(tps.value.toNumber()));\n if (lastTenFPS.value.length > 10) {\n lastTenFPS.value = lastTenFPS.value.slice(1);\n }\n});\n\nconst low = computed(() =>\n lastTenFPS.value.reduce((acc, curr) => Decimal.max(acc, curr), 0)\n);\n\nconst showLow = computed(() => Decimal.sub(tps.value, low.value).gt(1));\n\nreturn (_ctx: any,_cache: any) => {\n return (!_unref(tps).isNan())\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createTextVNode(\" TPS: \" + _toDisplayString(_unref(formatWhole)(_unref(tps))) + \" \", 1),\n _createVNode(_Transition, { name: \"fade\" }, {\n default: _withCtx(() => [\n (_unref(showLow))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(_unref(formatWhole)(_unref(low))), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./TPS.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TPS.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TPS.vue?vue&type=style&index=0&id=323f9b12&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-323f9b12\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, normalizeClass as _normalizeClass, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed, toRef, unref } from \"vue\";\nimport Game from \"./components/Game.vue\";\nimport GameOverScreen from \"./components/GameOverScreen.vue\";\nimport NaNScreen from \"./components/NaNScreen.vue\";\nimport Nav from \"./components/Nav.vue\";\nimport TPS from \"./components/TPS.vue\";\nimport modInfo from \"./data/modInfo.json\";\nimport themes from \"./data/themes\";\nimport settings from \"./game/settings\";\nimport \"./main.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nfunction updateMouse(/* event */) {\n // TODO use event to update mouse position for particles\n}\n\nconst useHeader = modInfo.useHeader;\nconst theme = computed(() => themes[settings.theme].variables);\nconst showTPS = toRef(settings, \"showTPS\");\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n id: \"modal-root\",\n style: _normalizeStyle(_unref(theme))\n }, null, 4),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"app\", { useHeader: _unref(useHeader) }]),\n onMousemove: updateMouse,\n style: _normalizeStyle(_unref(theme))\n }, [\n (_unref(useHeader))\n ? (_openBlock(), _createBlock(Nav, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createVNode(Game),\n (unref(_unref(showTPS)))\n ? (_openBlock(), _createBlock(TPS, { key: 1 }))\n : _createCommentVNode(\"\", true),\n _createVNode(GameOverScreen),\n _createVNode(NaNScreen)\n ], 38)\n ], 64))\n}\n}\n\n})","import script from \"./App.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./App.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=e0e491f6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-e0e491f6\"]])\n\nexport default __exports__","import { App as VueApp, createApp } from \"vue\";\nimport App from \"./App.vue\";\nimport modInfo from \"./data/modInfo.json\";\nimport { GenericLayer } from \"./game/layers\";\nimport { PlayerData } from \"./game/player\";\nimport { Settings } from \"./game/settings\";\nimport { Transient } from \"./game/state\";\nimport Decimal, { DecimalSource } from \"./lib/break_eternity\";\nimport { load } from \"./util/save\";\n\ndeclare global {\n interface Window {\n vue: VueApp;\n save: VoidFunction;\n hardReset: VoidFunction;\n hardResetSettings: VoidFunction;\n layers: Record | undefined>;\n player: PlayerData;\n state: Transient;\n settings: Settings;\n Decimal: typeof Decimal;\n exponentialFormat: (num: DecimalSource, precision: number, mantissa: boolean) => string;\n commaFormat: (num: DecimalSource, precision: number) => string;\n regularFormat: (num: DecimalSource, precision: number) => string;\n format: (num: DecimalSource, precision?: number, small?: boolean) => string;\n formatWhole: (num: DecimalSource) => string;\n formatTime: (s: number) => string;\n toPlaces: (x: DecimalSource, precision: number, maxAccepted: DecimalSource) => string;\n formatSmall: (x: DecimalSource, precision?: number) => string;\n invertOOM: (x: DecimalSource) => Decimal;\n modInfo: typeof modInfo;\n }\n}\n\nrequestAnimationFrame(async () => {\n console.log(\n \"%cMade in Profectus%c\\nLearn more at www.moddingtree.com\",\n \"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;\",\n \"padding: 4px;\"\n );\n await load();\n const { globalBus, startGameLoop } = await require(\"./game/events\");\n\n // Create Vue\n const vue = (window.vue = createApp({\n ...App\n }));\n globalBus.emit(\"setupVue\", vue);\n vue.mount(\"#app\");\n document.title = modInfo.title;\n\n startGameLoop();\n});\n\nwindow.modInfo = modInfo;\n","// Import Decimal and numberUtils from a different file to globally change which big num library gets used\n// This way switching out big number libraries just needs to happen here, not every file that needs big numbers\nimport { DecimalSource as RawDecimalSource } from \"@/lib/break_eternity\";\nimport Decimal, * as numberUtils from \"@/util/break_eternity\";\n\nexport const {\n exponentialFormat,\n commaFormat,\n regularFormat,\n format,\n formatWhole,\n formatTime,\n toPlaces,\n formatSmall,\n invertOOM\n} = numberUtils;\n\nexport type DecimalSource = RawDecimalSource;\n\nwindow.Decimal = Decimal;\nwindow.exponentialFormat = exponentialFormat;\nwindow.commaFormat = commaFormat;\nwindow.regularFormat = regularFormat;\nwindow.format = format;\nwindow.formatWhole = formatWhole;\nwindow.formatTime = formatTime;\nwindow.toPlaces = toPlaces;\nwindow.formatSmall = formatSmall;\nwindow.invertOOM = invertOOM;\n\nexport default Decimal;\n","import Decimal, { DecimalSource } from \"@/lib/break_eternity\";\nimport modInfo from \"@/data/modInfo.json\";\n\nexport default Decimal;\n\nconst decimalOne = new Decimal(1);\n\nexport function exponentialFormat(num: DecimalSource, precision: number, mantissa = true): string {\n let e = Decimal.log10(num).floor();\n let m = Decimal.div(num, Decimal.pow(10, e));\n if (m.toStringWithDecimalPlaces(precision) === \"10\") {\n m = decimalOne;\n e = e.add(1);\n }\n const eString = e.gte(1e9)\n ? format(e, Math.max(Math.max(precision, 3), modInfo.defaultDecimalsShown))\n : e.gte(10000)\n ? commaFormat(e, 0)\n : e.toStringWithDecimalPlaces(0);\n if (mantissa) {\n return m.toStringWithDecimalPlaces(precision) + \"e\" + eString;\n } else {\n return \"e\" + eString;\n }\n}\n\nexport function commaFormat(num: DecimalSource, precision: number): string {\n if (num === null || num === undefined) {\n return \"NaN\";\n }\n num = new Decimal(num);\n if (num.mag < 0.001) {\n return (0).toFixed(precision);\n }\n const init = num.toStringWithDecimalPlaces(precision);\n const portions = init.split(\".\");\n portions[0] = portions[0].replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, \"$1,\");\n if (portions.length == 1) return portions[0];\n return portions[0] + \".\" + portions[1];\n}\n\nexport function regularFormat(num: DecimalSource, precision: number): string {\n if (num === null || num === undefined) {\n return \"NaN\";\n }\n num = new Decimal(num);\n if (num.mag < 0.0001) {\n return (0).toFixed(precision);\n }\n if (num.mag < 0.1 && precision !== 0) {\n precision = Math.max(Math.max(precision, 4), modInfo.defaultDecimalsShown);\n }\n return num.toStringWithDecimalPlaces(precision);\n}\n\nexport function format(num: DecimalSource, precision?: number, small?: boolean): string {\n if (precision == null) precision = modInfo.defaultDecimalsShown;\n small = small || modInfo.allowSmall;\n num = new Decimal(num);\n if (isNaN(num.sign) || isNaN(num.layer) || isNaN(num.mag)) {\n return \"NaN\";\n }\n if (num.sign < 0) {\n return \"-\" + format(num.neg(), precision);\n }\n if (num.mag === Number.POSITIVE_INFINITY) {\n return \"Infinity\";\n }\n if (num.gte(\"eeee1000\")) {\n const slog = num.slog();\n if (slog.gte(1e6)) {\n return \"F\" + format(slog.floor());\n } else {\n return (\n Decimal.pow(10, slog.sub(slog.floor())).toStringWithDecimalPlaces(3) +\n \"F\" +\n commaFormat(slog.floor(), 0)\n );\n }\n } else if (num.gte(\"1e100000\")) {\n return exponentialFormat(num, 0, false);\n } else if (num.gte(\"1e1000\")) {\n return exponentialFormat(num, 0);\n } else if (num.gte(1e9)) {\n return exponentialFormat(num, precision);\n } else if (num.gte(1e3)) {\n return commaFormat(num, 0);\n } else if (num.gte(0.001) || !small) {\n return regularFormat(num, precision);\n } else if (num.eq(0)) {\n return (0).toFixed(precision);\n }\n\n num = invertOOM(num);\n if (num.lt(\"1e1000\")) {\n const val = exponentialFormat(num, precision);\n return val.replace(/([^(?:e|F)]*)$/, \"-$1\");\n } else {\n return format(num, precision) + \"⁻¹\";\n }\n}\n\nexport function formatWhole(num: DecimalSource): string {\n num = new Decimal(num);\n if (num.sign < 0) {\n return \"-\" + formatWhole(num.neg());\n }\n if (num.gte(1e9)) {\n return format(num);\n }\n if (num.lte(0.98) && !num.eq(0)) {\n return format(num);\n }\n return format(num, 0);\n}\n\nexport function formatTime(seconds: DecimalSource): string {\n if (Decimal.lt(seconds, 0)) {\n return \"-\" + formatTime(Decimal.neg(seconds));\n }\n if (Decimal.gt(seconds, 2 ** 51)) {\n // integer precision limit\n return format(Decimal.div(seconds, 31536000)) + \"y\";\n }\n seconds = new Decimal(seconds).toNumber();\n if (seconds < 60) {\n return format(seconds) + \"s\";\n } else if (seconds < 3600) {\n return formatWhole(Math.floor(seconds / 60)) + \"m \" + format(seconds % 60) + \"s\";\n } else if (seconds < 86400) {\n return (\n formatWhole(Math.floor(seconds / 3600)) +\n \"h \" +\n formatWhole(Math.floor(seconds / 60) % 60) +\n \"m \" +\n formatWhole(seconds % 60) +\n \"s\"\n );\n } else if (seconds < 31536000) {\n return (\n formatWhole(Math.floor(seconds / 84600) % 365) +\n \"d \" +\n formatWhole(Math.floor(seconds / 3600) % 24) +\n \"h \" +\n formatWhole(Math.floor(seconds / 60) % 60) +\n \"m\"\n );\n } else {\n return (\n formatWhole(Math.floor(seconds / 31536000)) +\n \"y \" +\n formatWhole(Math.floor(seconds / 84600) % 365) +\n \"d \" +\n formatWhole(Math.floor(seconds / 3600) % 24) +\n \"h\"\n );\n }\n}\n\nexport function toPlaces(x: DecimalSource, precision: number, maxAccepted: DecimalSource): string {\n x = new Decimal(x);\n let result = x.toStringWithDecimalPlaces(precision);\n if (new Decimal(result).gte(maxAccepted)) {\n result = Decimal.sub(maxAccepted, Math.pow(0.1, precision)).toStringWithDecimalPlaces(\n precision\n );\n }\n return result;\n}\n\n// Will also display very small numbers\nexport function formatSmall(x: DecimalSource, precision?: number): string {\n return format(x, precision, true);\n}\n\nexport function invertOOM(x: DecimalSource): Decimal {\n let e = Decimal.log10(x).ceil();\n const m = Decimal.div(x, Decimal.pow(10, e));\n e = e.neg();\n x = new Decimal(10).pow(e).times(m);\n\n return x;\n}\n","// Reference:\n// https://stackoverflow.com/questions/7225407/convert-camelcasetext-to-sentence-case-text\nexport function camelToTitle(camel: string): string {\n let title = camel.replace(/([A-Z])/g, \" $1\");\n title = title.charAt(0).toUpperCase() + title.slice(1);\n return title;\n}\n\nexport function isPlainObject(object: unknown): boolean {\n return Object.prototype.toString.call(object) === \"[object Object]\";\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isFunction(func: unknown): func is Function {\n return typeof func === \"function\";\n}\n","import { computed, Ref } from \"vue\";\nimport { isFunction } from \"./common\";\n\nexport const DoNotCache = Symbol(\"DoNotCache\");\n\nexport type Computable = T | Ref | (() => T);\nexport type ProcessedComputable = T | Ref;\nexport type GetComputableType = T extends { [DoNotCache]: true }\n ? T\n : T extends () => infer S\n ? Ref\n : undefined extends T\n ? undefined\n : T;\nexport type GetComputableTypeWithDefault = undefined extends T\n ? S\n : GetComputableType>;\ntype UnwrapComputableType = T extends Ref ? S : T extends () => infer S ? S : T;\n\ntype ComputableKeysOf = Pick<\n T,\n {\n [K in keyof T]: T[K] extends Computable ? K : never;\n }[keyof T]\n>;\n\n// TODO fix the typing of this function, such that casting isn't necessary and can be used to\n// detect if a createX function is validly written\nexport function processComputable>(\n obj: T,\n key: S\n): asserts obj is T & { [K in S]: ProcessedComputable> } {\n const computable = obj[key];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isFunction(computable) && computable.length === 0 && !(computable as any)[DoNotCache]) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n obj[key] = computed(computable.bind(obj));\n }\n}\n\nexport function convertComputable(obj: Computable): ProcessedComputable {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isFunction(obj) && !(obj as any)[DoNotCache]) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n obj = computed(obj);\n }\n return obj as ProcessedComputable;\n}\n","import Decimal from \"./bignum\";\n\nexport const ProxyState = Symbol(\"ProxyState\");\nexport const ProxyPath = Symbol(\"ProxyPath\");\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ProxiedWithState = NonNullable extends Record\n ? NonNullable extends Decimal\n ? T\n : {\n [K in keyof T]: ProxiedWithState;\n } & {\n [ProxyState]: T;\n [ProxyPath]: string[];\n }\n : T;\n\n// Takes a function that returns an object and pretends to be that object\n// Note that the object is lazily calculated\nexport function createLazyProxy(objectFunc: () => T): T {\n const obj: T | Record = {};\n let calculated = false;\n function calculateObj(): T {\n if (!calculated) {\n Object.assign(obj, objectFunc());\n calculated = true;\n }\n return obj as T;\n }\n\n return new Proxy(obj, {\n get(target, key) {\n if (key === ProxyState) {\n return calculateObj();\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (calculateObj() as any)[key];\n },\n set() {\n console.error(\"Layers and features are shallow readonly\");\n return false;\n },\n has(target, key) {\n if (key === ProxyState) {\n return true;\n }\n return Reflect.has(calculateObj(), key);\n },\n ownKeys() {\n return Reflect.ownKeys(calculateObj());\n },\n getOwnPropertyDescriptor(target, key) {\n if (!calculated) {\n Object.assign(obj, objectFunc());\n calculated = true;\n }\n return Object.getOwnPropertyDescriptor(target, key);\n }\n }) as T;\n}\n","import modInfo from \"@/data/modInfo.json\";\nimport player, { Player, PlayerData, stringifySave } from \"@/game/player\";\nimport settings, { loadSettings } from \"@/game/settings\";\nimport Decimal from \"./bignum\";\nimport { ProxyState } from \"./proxies\";\n\nexport function setupInitialStore(player: Partial = {}): Player {\n return Object.assign(\n {\n id: `${modInfo.id}-0`,\n name: \"Default Save\",\n tabs: modInfo.initialTabs.slice(),\n time: Date.now(),\n autosave: true,\n offlineProd: true,\n offlineTime: new Decimal(0),\n timePlayed: new Decimal(0),\n keepGoing: false,\n modID: modInfo.id,\n modVersion: modInfo.versionNumber,\n layers: {}\n },\n player\n ) as Player;\n}\n\nexport function save(): string {\n const stringifiedSave = btoa(unescape(encodeURIComponent(stringifySave(player[ProxyState]))));\n localStorage.setItem(player.id, stringifiedSave);\n return stringifiedSave;\n}\n\nexport async function load(): Promise {\n // Load global settings\n loadSettings();\n\n try {\n const save = localStorage.getItem(settings.active);\n if (save == null) {\n await loadSave(newSave());\n return;\n }\n const player = JSON.parse(decodeURIComponent(escape(atob(save))));\n if (player.modID !== modInfo.id) {\n await loadSave(newSave());\n return;\n }\n player.id = settings.active;\n await loadSave(player);\n } catch (e) {\n console.error(\"Failed to load save. Falling back to new save.\\n\", e);\n await loadSave(newSave());\n }\n}\n\nexport function newSave(): PlayerData {\n const id = getUniqueID();\n const player = setupInitialStore({ id });\n localStorage.setItem(id, btoa(unescape(encodeURIComponent(stringifySave(player)))));\n\n settings.saves.push(id);\n\n return player;\n}\n\nexport function getUniqueID(): string {\n let id,\n i = 0;\n do {\n id = `${modInfo.id}-${i++}`;\n } while (localStorage.getItem(id));\n return id;\n}\n\nexport async function loadSave(playerObj: Partial): Promise {\n console.info(\"Loading save\", playerObj);\n const { layers, removeLayer, addLayer } = await import(\"@/game/layers\");\n const { fixOldSave, getInitialLayers } = await import(\"@/data/mod\");\n\n for (const layer in layers) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n removeLayer(layers[layer]!);\n }\n getInitialLayers(playerObj).forEach(layer => addLayer(layer, playerObj));\n\n playerObj = setupInitialStore(playerObj);\n if (playerObj.offlineProd && playerObj.time) {\n if (playerObj.offlineTime == undefined) playerObj.offlineTime = new Decimal(0);\n playerObj.offlineTime = Decimal.add(\n playerObj.offlineTime,\n (Date.now() - playerObj.time) / 1000\n );\n }\n playerObj.time = Date.now();\n if (playerObj.modVersion !== modInfo.versionNumber) {\n fixOldSave(playerObj.modVersion, playerObj);\n }\n\n Object.assign(player, playerObj);\n settings.active = player.id;\n}\n\nsetInterval(() => {\n if (player.autosave) {\n save();\n }\n}, 1000);\nwindow.onbeforeunload = () => {\n if (player.autosave) {\n save();\n }\n};\nwindow.save = save;\nexport const hardReset = (window.hardReset = async () => {\n await loadSave(newSave());\n});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n width: { default: \"8px\" },\n height: { default: \"17px\" }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: _normalizeStyle({ width: __props.width, height: __props.height })\n }, null, 4))\n}\n}\n\n})","import script from \"./Spacer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Spacer.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Decimal, { DecimalSource, format, formatWhole } from \"@/util/bignum\";\nimport { computed, ComputedRef, ref, Ref, watch } from \"vue\";\nimport { globalBus } from \"@/game/events\";\nimport { State, persistent } from \"@/game/persistence\";\n\nexport interface Resource extends Ref {\n displayName: string;\n precision: number;\n small: boolean;\n}\n\nexport function createResource(\n defaultValue: T | Ref,\n displayName = \"points\",\n precision = 0,\n small = false\n): Resource {\n const resource: Partial> = persistent(defaultValue);\n resource.displayName = displayName;\n resource.precision = precision;\n resource.small = small;\n return resource as Resource;\n}\n\nexport function trackBest(resource: Resource): Ref {\n const best = persistent(resource.value);\n watch(resource, amount => {\n if (Decimal.gt(amount, best.value)) {\n best.value = amount;\n }\n });\n return best;\n}\n\nexport function trackTotal(resource: Resource): Ref {\n const total = persistent(resource.value);\n watch(resource, (amount, prevAmount) => {\n if (Decimal.gt(amount, prevAmount)) {\n total.value = Decimal.add(total.value, Decimal.sub(amount, prevAmount));\n }\n });\n return total;\n}\n\nexport function trackOOMPS(\n resource: Resource,\n pointGain?: ComputedRef\n): Ref {\n const oomps = ref(0);\n const oompsMag = ref(0);\n const lastPoints = ref(0);\n\n globalBus.on(\"update\", diff => {\n oompsMag.value = 0;\n if (Decimal.lte(resource.value, 1e100)) {\n lastPoints.value = resource.value;\n return;\n }\n\n let curr = resource.value;\n let prev = lastPoints.value;\n lastPoints.value = curr;\n if (Decimal.gt(curr, prev)) {\n if (Decimal.gte(curr, \"10^^8\")) {\n curr = Decimal.slog(curr, 1e10);\n prev = Decimal.slog(prev, 1e10);\n oomps.value = curr.sub(prev).div(diff);\n oompsMag.value = -1;\n } else {\n while (\n Decimal.div(curr, prev).log(10).div(diff).gte(\"100\") &&\n oompsMag.value <= 5 &&\n Decimal.gt(prev, 0)\n ) {\n curr = Decimal.log10(curr);\n prev = Decimal.log10(prev);\n oomps.value = curr.sub(prev).div(diff);\n oompsMag.value++;\n }\n }\n }\n });\n\n const oompsString = computed(() => {\n if (oompsMag.value === 0) {\n return pointGain\n ? format(pointGain.value, resource.precision, resource.small) +\n \" \" +\n resource.displayName +\n \"/s\"\n : \"\";\n }\n return (\n format(oomps.value) +\n \" OOM\" +\n (oompsMag.value < 0 ? \"^OOM\" : \"^\" + oompsMag.value) +\n \"s/sec\"\n );\n });\n return oompsString;\n}\n\nexport function displayResource(resource: Resource, overrideAmount?: DecimalSource): string {\n const amount = overrideAmount ?? resource.value;\n if (Decimal.eq(resource.precision, 0)) {\n return formatWhole(amount);\n }\n return format(amount, resource.precision, resource.small);\n}\n","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, mergeProps as _mergeProps, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-e6ef63ea\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"left-side-nodes\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"side-nodes\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_TreeNode = _resolveComponent(\"TreeNode\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.nodes), (row, index) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({\n class: \"row\",\n key: index\n }, _ctx.$attrs), [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(row, (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ], 16))\n }), 128)),\n (_ctx.unref(_ctx.leftSideNodes))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.leftSideNodes), (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip,\n small: \"\"\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.unref(_ctx.rightSideNodes))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.rightSideNodes), (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip,\n small: \"\"\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, mergeProps as _mergeProps, withCtx as _withCtx, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-176052a6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MarkNode = _resolveComponent(\"MarkNode\")!\n const _component_LinkNode = _resolveComponent(\"LinkNode\")!\n const _component_Tooltip = _resolveComponent(\"Tooltip\")!\n\n return (_ctx.unref(_ctx.visibility) !== _ctx.Visibility.None)\n ? (_openBlock(), _createBlock(_component_Tooltip, _mergeProps({ key: 0 }, _ctx.tooltipToBind && _ctx.gatherTooltipProps(_ctx.tooltipToBind), {\n display: _ctx.tooltipDisplay,\n force: _ctx.forceTooltip,\n style: { visibility: _ctx.unref(_ctx.visibility) === _ctx.Visibility.Hidden ? 'hidden' : undefined },\n class: {\n treeNode: true,\n can: _ctx.unref(_ctx.canClick),\n small: _ctx.unref(_ctx.small),\n ..._ctx.unref(_ctx.classes)\n }\n }), {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.click && _ctx.click(...args))),\n onMousedown: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onMouseleave: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onMouseup: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchstart: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onTouchend: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchcancel: _cache[6] || (_cache[6] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n style: _normalizeStyle([\n {\n backgroundColor: _ctx.unref(_ctx.color),\n boxShadow: `-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${_ctx.unref(\n _ctx.glowColor\n )}`\n },\n _ctx.unref(_ctx.style) ?? []\n ]),\n disabled: !_ctx.unref(_ctx.canClick)\n }, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.unref(_ctx.comp))))\n ], 44, _hoisted_1),\n _createVNode(_component_MarkNode, {\n mark: _ctx.unref(_ctx.mark)\n }, null, 8, [\"mark\"]),\n _createVNode(_component_LinkNode, { id: _ctx.id }, null, 8, [\"id\"])\n ]),\n _: 1\n }, 16, [\"display\", \"force\", \"style\", \"class\"]))\n : _createCommentVNode(\"\", true)\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { RegisterLinkNodeInjectionKey, UnregisterLinkNodeInjectionKey } from \"@/features/links\";\nimport { computed, inject, onUnmounted, ref, toRefs, unref, watch } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n id: null\n },\n setup(__props: any) {\n\nconst _props = __props as { id: string }\n\n\nconst props = toRefs(_props);\n\nconst register = inject(RegisterLinkNodeInjectionKey);\nconst unregister = inject(UnregisterLinkNodeInjectionKey);\n\nconst node = ref(null);\nconst parentNode = computed(() => node.value && node.value.parentElement);\n\nif (register && unregister) {\n watch([parentNode, props.id], ([newNode, newID], [prevNode, prevID]) => {\n if (prevNode) {\n unregister(unref(prevID));\n }\n if (newNode) {\n register(newID, newNode);\n }\n });\n\n onUnmounted(() => unregister(unref(props.id)));\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"branch\",\n ref_key: \"node\",\n ref: node\n }, null, 512))\n}\n}\n\n})","import script from \"./LinkNode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./LinkNode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./LinkNode.vue?vue&type=style&index=0&id=1318daf7&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1318daf7\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-c476c56a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = {\n key: 0,\n class: \"mark star\"\n}\nconst _hoisted_3 = [\"src\"]\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n mark: { type: [Boolean, String] }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (__props.mark)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (__props.mark === true)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2))\n : (_openBlock(), _createElementBlock(\"img\", {\n key: 1,\n class: \"mark\",\n src: __props.mark\n }, null, 8, _hoisted_3))\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./MarkNode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MarkNode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./MarkNode.vue?vue&type=style&index=0&id=c476c56a&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-c476c56a\"]])\n\nexport default __exports__","import { CoercableComponent } from \"@/features/feature\";\nimport { ProcessedComputable } from \"@/util/computed\";\n\ndeclare module \"@vue/runtime-dom\" {\n interface CSSProperties {\n \"--xoffset\"?: string;\n \"--yoffset\"?: string;\n }\n}\n\nexport interface Tooltip {\n display: ProcessedComputable;\n top?: ProcessedComputable;\n left?: ProcessedComputable;\n right?: ProcessedComputable;\n bottom?: ProcessedComputable;\n xoffset?: ProcessedComputable;\n yoffset?: ProcessedComputable;\n force?: ProcessedComputable;\n}\n\nexport function gatherTooltipProps(tooltip: Tooltip) {\n const { display, top, left, right, bottom, xoffset, yoffset, force } = tooltip;\n return { display, top, left, right, bottom, xoffset, yoffset, force };\n}\n","\nimport LinkNode from \"@/components/links/LinkNode.vue\";\nimport MarkNode from \"@/components/MarkNode.vue\";\nimport TooltipVue from \"@/components/Tooltip.vue\";\nimport { CoercableComponent, StyleValue, Visibility } from \"@/features/feature\";\nimport { gatherTooltipProps, Tooltip } from \"@/features/tooltip\";\nimport { ProcessedComputable } from \"@/util/computed\";\nimport {\n computeOptionalComponent,\n isCoercableComponent,\n processedPropType,\n setupHoldToClick,\n unwrapRef\n} from \"@/util/vue\";\nimport {\n computed,\n defineComponent,\n PropType,\n Ref,\n shallowRef,\n toRefs,\n unref,\n watchEffect\n} from \"vue\";\n\nexport default defineComponent({\n props: {\n display: processedPropType(Object, String, Function),\n visibility: {\n type: processedPropType(Number),\n required: true\n },\n style: processedPropType(String, Object, Array),\n classes: processedPropType>(Object),\n tooltip: processedPropType(Object, String, Function),\n onClick: Function as PropType,\n onHold: Function as PropType,\n color: processedPropType(String),\n glowColor: processedPropType(String),\n forceTooltip: {\n type: Object as PropType>,\n required: true\n },\n canClick: {\n type: processedPropType(Boolean),\n required: true\n },\n mark: processedPropType(Boolean, String),\n id: {\n type: String,\n required: true\n },\n small: processedPropType(Boolean)\n },\n components: {\n Tooltip: TooltipVue,\n MarkNode,\n LinkNode\n },\n setup(props) {\n const { tooltip, forceTooltip, onClick, onHold, display } = toRefs(props);\n\n function click(e: MouseEvent) {\n if (e.shiftKey && tooltip) {\n forceTooltip.value = !forceTooltip.value;\n } else {\n unref(onClick)?.();\n }\n }\n\n const comp = computeOptionalComponent(display);\n const tooltipDisplay = shallowRef | undefined>(\n undefined\n );\n watchEffect(() => {\n const currTooltip = unwrapRef(tooltip);\n\n if (typeof currTooltip === \"object\" && !isCoercableComponent(currTooltip)) {\n tooltipDisplay.value = currTooltip.display;\n return;\n }\n tooltipDisplay.value = currTooltip;\n });\n const tooltipToBind = computed(() => {\n const currTooltip = unwrapRef(tooltip);\n\n if (typeof currTooltip === \"object\" && !isCoercableComponent(currTooltip)) {\n return currTooltip;\n }\n return null;\n });\n\n const { start, stop } = setupHoldToClick(onClick, onHold);\n\n return {\n click,\n start,\n stop,\n comp,\n tooltipDisplay,\n tooltipToBind,\n unref,\n Visibility,\n gatherTooltipProps,\n isCoercableComponent\n };\n }\n});\n","import { render } from \"./TreeNode.vue?vue&type=template&id=176052a6&scoped=true&ts=true\"\nimport script from \"./TreeNode.vue?vue&type=script&lang=ts\"\nexport * from \"./TreeNode.vue?vue&type=script&lang=ts\"\n\nimport \"./TreeNode.vue?vue&type=style&index=0&id=176052a6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-176052a6\"]])\n\nexport default __exports__","\nimport \"@/components/common/table.css\";\nimport { GenericTreeNode } from \"@/features/trees/tree\";\nimport { processedPropType } from \"@/util/vue\";\nimport { defineComponent, unref } from \"vue\";\nimport TreeNode from \"./TreeNode.vue\";\n\nexport default defineComponent({\n props: {\n nodes: {\n type: processedPropType(Array),\n required: true\n },\n leftSideNodes: processedPropType(Array),\n rightSideNodes: processedPropType(Array)\n },\n components: { TreeNode },\n setup() {\n function gatherNodeProps(node: GenericTreeNode) {\n const {\n display,\n visibility,\n style,\n classes,\n tooltip,\n onClick,\n onHold,\n color,\n glowColor,\n forceTooltip,\n canClick,\n mark,\n id\n } = node;\n return {\n display,\n visibility,\n style,\n classes,\n tooltip,\n onClick,\n onHold,\n color,\n glowColor,\n forceTooltip,\n canClick,\n mark,\n id\n };\n }\n\n return {\n gatherNodeProps,\n unref\n };\n }\n});\n","import { render } from \"./Tree.vue?vue&type=template&id=e6ef63ea&scoped=true&ts=true\"\nimport script from \"./Tree.vue?vue&type=script&lang=ts\"\nexport * from \"./Tree.vue?vue&type=script&lang=ts\"\n\nimport \"./Tree.vue?vue&type=style&index=0&id=e6ef63ea&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e6ef63ea\"]])\n\nexport default __exports__","import {\n CoercableComponent,\n Component,\n GatherProps,\n getUniqueID,\n Replace,\n setDefault,\n StyleValue,\n Visibility\n} from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport { GenericReset } from \"@/features/reset\";\nimport { displayResource, Resource } from \"@/features/resources/resource\";\nimport { Tooltip } from \"@/features/tooltip\";\nimport TreeComponent from \"@/features/trees/Tree.vue\";\nimport { persistent } from \"@/game/persistence\";\nimport { DecimalSource, format } from \"@/util/bignum\";\nimport Decimal, { formatWhole } from \"@/util/break_eternity\";\nimport {\n Computable,\n convertComputable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { computed, ref, Ref, unref } from \"vue\";\n\nexport const TreeNodeType = Symbol(\"TreeNode\");\nexport const TreeType = Symbol(\"Tree\");\n\nexport interface TreeNodeOptions {\n visibility?: Computable;\n canClick?: Computable;\n color?: Computable;\n display?: Computable;\n tooltip?: Computable;\n glowColor?: Computable;\n classes?: Computable>;\n style?: Computable;\n mark?: Computable;\n reset?: GenericReset;\n onClick?: VoidFunction;\n onHold?: VoidFunction;\n}\n\nexport interface BaseTreeNode {\n id: string;\n forceTooltip: Ref;\n type: typeof TreeNodeType;\n}\n\nexport type TreeNode = Replace<\n T & BaseTreeNode,\n {\n visibility: GetComputableTypeWithDefault;\n canClick: GetComputableTypeWithDefault;\n color: GetComputableType;\n display: GetComputableType;\n glowColor: GetComputableType;\n classes: GetComputableType;\n style: GetComputableType;\n mark: GetComputableType;\n tooltip: GetComputableType;\n }\n>;\n\nexport type GenericTreeNode = Replace<\n TreeNode,\n {\n visibility: ProcessedComputable;\n canClick: ProcessedComputable;\n }\n>;\n\nexport function createTreeNode(\n optionsFunc: () => T & ThisType>\n): TreeNode {\n return createLazyProxy(() => {\n const treeNode: T & Partial = optionsFunc();\n treeNode.id = getUniqueID(\"treeNode-\");\n treeNode.type = TreeNodeType;\n\n if (treeNode.tooltip) {\n treeNode.forceTooltip = persistent(false);\n } else {\n // If we don't have a tooltip, no point in making this persistent\n treeNode.forceTooltip = ref(false);\n }\n\n processComputable(treeNode as T, \"visibility\");\n setDefault(treeNode, \"visibility\", Visibility.Visible);\n processComputable(treeNode as T, \"canClick\");\n setDefault(treeNode, \"canClick\", true);\n processComputable(treeNode as T, \"color\");\n processComputable(treeNode as T, \"display\");\n processComputable(treeNode as T, \"tooltip\");\n processComputable(treeNode as T, \"glowColor\");\n processComputable(treeNode as T, \"classes\");\n processComputable(treeNode as T, \"style\");\n processComputable(treeNode as T, \"mark\");\n\n return treeNode as unknown as TreeNode;\n });\n}\n\nexport interface TreeBranch extends Omit {\n startNode: GenericTreeNode;\n endNode: GenericTreeNode;\n}\n\nexport interface TreeOptions {\n visibility?: Computable;\n nodes: Computable;\n leftSideNodes?: Computable;\n rightSideNodes?: Computable;\n branches?: Computable;\n resetPropagation?: ResetPropagation;\n onReset?: (node: GenericTreeNode) => void;\n}\n\ninterface BaseTree {\n id: string;\n links: Ref;\n reset: (node: GenericTreeNode) => void;\n isResetting: Ref;\n resettingNode: Ref;\n type: typeof TreeType;\n [Component]: typeof TreeComponent;\n [GatherProps]: () => Record;\n}\n\nexport type Tree = Replace<\n T & BaseTree,\n {\n visibility: GetComputableTypeWithDefault;\n nodes: GetComputableType;\n leftSideNodes: GetComputableType;\n rightSideNodes: GetComputableType;\n branches: GetComputableType;\n }\n>;\n\nexport type GenericTree = Replace<\n Tree,\n {\n visibility: ProcessedComputable;\n }\n>;\n\nexport function createTree(\n optionsFunc: () => T & ThisType>\n): Tree {\n return createLazyProxy(() => {\n const tree: T & Partial = optionsFunc();\n tree.id = getUniqueID(\"tree-\");\n tree.type = TreeType;\n tree[Component] = TreeComponent;\n\n tree.isResetting = ref(false);\n tree.resettingNode = ref(null);\n\n tree.reset = function (node) {\n const genericTree = tree as GenericTree;\n genericTree.isResetting.value = true;\n genericTree.resettingNode.value = node;\n genericTree.resetPropagation?.(genericTree, node);\n genericTree.onReset?.(node);\n genericTree.isResetting.value = false;\n genericTree.resettingNode.value = null;\n };\n tree.links = computed(() => {\n const genericTree = tree as GenericTree;\n return unref(genericTree.branches) ?? [];\n });\n\n processComputable(tree as T, \"visibility\");\n setDefault(tree, \"visibility\", Visibility.Visible);\n processComputable(tree as T, \"nodes\");\n processComputable(tree as T, \"leftSideNodes\");\n processComputable(tree as T, \"rightSideNodes\");\n processComputable(tree as T, \"branches\");\n\n tree[GatherProps] = function (this: GenericTree) {\n const { nodes, leftSideNodes, rightSideNodes } = this;\n return { nodes, leftSideNodes, rightSideNodes };\n };\n\n return tree as unknown as Tree;\n });\n}\n\nexport type ResetPropagation = {\n (tree: GenericTree, resettingNode: GenericTreeNode): void;\n};\n\nexport const defaultResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const nodes = unref(tree.nodes);\n const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) - 1;\n for (let x = row; x >= 0; x--) {\n nodes[x].forEach(node => node.reset?.reset());\n }\n};\n\nexport const invertedResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const nodes = unref(tree.nodes);\n const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) + 1;\n for (let x = row; x < nodes.length; x++) {\n nodes[x].forEach(node => node.reset?.reset());\n }\n};\n\nexport const branchedResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const visitedNodes = [resettingNode];\n let currentNodes = [resettingNode];\n if (tree.branches != null) {\n const branches = unref(tree.branches);\n while (currentNodes.length > 0) {\n const nextNodes: GenericTreeNode[] = [];\n currentNodes.forEach(node => {\n branches\n .filter(branch => branch.startNode === node || branch.endNode === node)\n .map(branch => {\n if (branch.startNode === node) {\n return branch.endNode;\n }\n return branch.startNode;\n })\n .filter(node => !visitedNodes.includes(node))\n .forEach(node => {\n // Check here instead of in the filter because this check's results may\n // change as we go through each node\n if (!nextNodes.includes(node)) {\n nextNodes.push(node);\n node.reset?.reset();\n }\n });\n });\n currentNodes = nextNodes;\n visitedNodes.push(...currentNodes);\n }\n }\n};\n\nexport function createResourceTooltip(\n resource: Resource,\n requiredResource: Resource | null = null,\n requirement: Computable = 0\n): Ref {\n const req = convertComputable(requirement);\n return computed(() => {\n if (requiredResource == null || Decimal.gte(resource.value, unref(req))) {\n return displayResource(resource);\n }\n return `Reach ${\n Decimal.eq(requiredResource.precision, 0)\n ? formatWhole(unref(req))\n : format(unref(req), requiredResource.precision)\n } ${requiredResource.displayName} to unlock (You have ${\n Decimal.eq(requiredResource.precision, 0)\n ? formatWhole(requiredResource.value)\n : format(requiredResource.value, requiredResource.precision)\n })`;\n });\n}\n","import { GenericLayer } from \"@/game/layers\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { computed, isRef, Ref, unref } from \"vue\";\nimport { Replace, setDefault } from \"./feature\";\nimport { Resource } from \"./resources/resource\";\n\nexport interface ConversionOptions {\n scaling: ScalingFunction;\n currentGain?: Computable;\n nextAt?: Computable;\n baseResource: Resource;\n gainResource: Resource;\n buyMax?: Computable;\n roundUpCost?: Computable;\n convert?: VoidFunction;\n modifyGainAmount?: (gain: DecimalSource) => DecimalSource;\n}\n\ninterface BaseConversion {\n convert: VoidFunction;\n}\n\nexport type Conversion = Replace<\n T & BaseConversion,\n {\n currentGain: GetComputableTypeWithDefault>;\n nextAt: GetComputableTypeWithDefault>;\n buyMax: GetComputableTypeWithDefault;\n roundUpCost: GetComputableTypeWithDefault;\n }\n>;\n\nexport type GenericConversion = Replace<\n Conversion,\n {\n currentGain: ProcessedComputable;\n nextAt: ProcessedComputable;\n buyMax: ProcessedComputable;\n roundUpCost: ProcessedComputable;\n }\n>;\n\nexport function createConversion(\n optionsFunc: () => T & ThisType>\n): Conversion {\n return createLazyProxy(() => {\n const conversion: T = optionsFunc();\n\n if (conversion.currentGain == null) {\n conversion.currentGain = computed(() =>\n conversion.scaling.currentGain(conversion as GenericConversion)\n );\n }\n if (conversion.nextAt == null) {\n conversion.nextAt = computed(() =>\n conversion.scaling.nextAt(conversion as GenericConversion)\n );\n }\n\n if (conversion.convert == null) {\n conversion.convert = function () {\n conversion.gainResource.value = Decimal.add(\n conversion.gainResource.value,\n conversion.modifyGainAmount\n ? conversion.modifyGainAmount(\n unref((conversion as GenericConversion).currentGain)\n )\n : unref((conversion as GenericConversion).currentGain)\n );\n // TODO just subtract cost?\n conversion.baseResource.value = 0;\n };\n }\n\n processComputable(conversion as T, \"currentGain\");\n processComputable(conversion as T, \"nextAt\");\n processComputable(conversion as T, \"buyMax\");\n setDefault(conversion, \"buyMax\", true);\n processComputable(conversion as T, \"roundUpCost\");\n setDefault(conversion, \"roundUpCost\", true);\n\n return conversion as unknown as Conversion;\n });\n}\n\nexport type ScalingFunction = {\n currentGain: (conversion: GenericConversion) => DecimalSource;\n nextAt: (conversion: GenericConversion) => DecimalSource;\n};\n\n// Gain formula is (baseResource - base) * coefficient\n// e.g. if base is 10 and coefficient is 0.5, 10 points makes 1 gain, 12 points is 2\nexport function createLinearScaling(\n base: DecimalSource | Ref,\n coefficient: DecimalSource | Ref\n): ScalingFunction {\n return {\n currentGain(conversion) {\n if (Decimal.lt(conversion.baseResource.value, unref(base))) {\n return 0;\n }\n\n let gain = Decimal.sub(conversion.baseResource.value, unref(base))\n .sub(1)\n .times(unref(coefficient))\n .add(1)\n .floor()\n .max(0);\n\n if (!conversion.buyMax) {\n gain = gain.min(1);\n }\n return gain;\n },\n nextAt(conversion) {\n let next = Decimal.add(unref(conversion.currentGain), 1)\n .times(unref(coefficient))\n .add(unref(base))\n .max(unref(base));\n if (conversion.roundUpCost) next = next.ceil();\n return next;\n }\n };\n}\n\n// Gain formula is (baseResource / base) ^ exponent\n// e.g. if exponent is 0.5 and base is 10, then having 10 points makes gain 1, and 40 points is 2\nexport function createExponentialScaling(\n base: DecimalSource | Ref,\n coefficient: DecimalSource | Ref,\n exponent: DecimalSource | Ref\n): ScalingFunction {\n return {\n currentGain(conversion) {\n let gain = Decimal.div(conversion.baseResource.value, unref(base))\n .pow(unref(exponent))\n .floor()\n .max(0);\n\n if (gain.isNan()) {\n return new Decimal(0);\n }\n\n if (!conversion.buyMax) {\n gain = gain.min(1);\n }\n return gain;\n },\n nextAt(conversion) {\n let next = Decimal.add(unref(conversion.currentGain), 1)\n .root(unref(exponent))\n .times(unref(base))\n .max(unref(base));\n if (conversion.roundUpCost) next = next.ceil();\n return next;\n }\n };\n}\n\nexport function createCumulativeConversion(\n optionsFunc: () => S & ThisType>\n): Conversion {\n return createConversion(optionsFunc);\n}\n\nexport function createIndependentConversion(\n optionsFunc: () => S & ThisType>\n): Conversion {\n return createConversion(() => {\n const conversion: S = optionsFunc();\n\n setDefault(conversion, \"buyMax\", false);\n\n if (conversion.currentGain == null) {\n conversion.currentGain = computed(() =>\n Decimal.sub(\n conversion.scaling.currentGain(conversion as GenericConversion),\n conversion.gainResource.value\n )\n .add(1)\n .max(1)\n );\n }\n setDefault(conversion, \"convert\", function () {\n conversion.gainResource.value = conversion.modifyGainAmount\n ? conversion.modifyGainAmount(unref((conversion as GenericConversion).currentGain))\n : unref((conversion as GenericConversion).currentGain);\n // TODO just subtract cost?\n // Maybe by adding a cost function to scaling and nextAt just calls the cost function\n // with 1 + currentGain\n conversion.baseResource.value = 0;\n });\n\n return conversion;\n });\n}\n\nexport function setupPassiveGeneration(\n layer: GenericLayer,\n conversion: GenericConversion,\n rate: ProcessedComputable = 1\n): void {\n layer.on(\"preUpdate\", (diff: Decimal) => {\n const currRate = isRef(rate) ? rate.value : rate;\n if (Decimal.neq(currRate, 0)) {\n conversion.gainResource.value = Decimal.add(\n conversion.gainResource.value,\n Decimal.times(currRate, diff).times(unref(conversion.currentGain))\n );\n }\n });\n}\n\nfunction softcap(\n value: DecimalSource,\n cap: DecimalSource,\n power: DecimalSource = 0.5\n): DecimalSource {\n if (Decimal.lte(value, cap)) {\n return value;\n } else {\n return Decimal.pow(value, power).times(Decimal.pow(cap, Decimal.sub(1, power)));\n }\n}\n\nexport function addSoftcap(\n scaling: ScalingFunction,\n cap: ProcessedComputable,\n power: ProcessedComputable = 0.5\n): ScalingFunction {\n return {\n ...scaling,\n currentGain: conversion =>\n softcap(scaling.currentGain(conversion), unref(cap), unref(power))\n };\n}\n\nexport function addHardcap(\n scaling: ScalingFunction,\n cap: ProcessedComputable\n): ScalingFunction {\n return {\n ...scaling,\n currentGain: conversion => Decimal.min(scaling.currentGain(conversion), unref(cap))\n };\n}\n","import {\n DefaultValue,\n getUniqueID,\n Persistent,\n persistent,\n PersistentRef,\n PersistentState,\n Replace\n} from \"@/features/feature\";\nimport { globalBus } from \"@/game/events\";\nimport { GenericLayer } from \"@/game/layers\";\nimport Decimal from \"@/lib/break_eternity\";\nimport { Computable, GetComputableType, processComputable } from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { Unsubscribe } from \"nanoevents\";\nimport { computed, isRef, unref } from \"vue\";\n\nexport const ResetType = Symbol(\"Reset\");\n\nexport interface ResetOptions {\n thingsToReset: Computable[]>;\n onReset?: VoidFunction;\n}\n\ninterface BaseReset {\n id: string;\n reset: VoidFunction;\n type: typeof ResetType;\n}\n\nexport type Reset = Replace<\n T & BaseReset,\n {\n thingsToReset: GetComputableType;\n }\n>;\n\nexport type GenericReset = Reset;\n\nexport function createReset(\n optionsFunc: () => T & ThisType>\n): Reset {\n return createLazyProxy(() => {\n const reset: T & Partial = optionsFunc();\n reset.id = getUniqueID(\"reset-\");\n reset.type = ResetType;\n\n reset.reset = function () {\n const handleObject = (obj: unknown) => {\n if (obj && typeof obj === \"object\") {\n if (PersistentState in obj) {\n (obj as Persistent)[PersistentState].value = (obj as Persistent)[\n DefaultValue\n ];\n } else if (!(obj instanceof Decimal) && !isRef(obj)) {\n Object.values(obj).forEach(obj =>\n handleObject(obj as Record)\n );\n }\n }\n };\n unref((reset as GenericReset).thingsToReset).forEach(handleObject);\n globalBus.emit(\"reset\", reset as GenericReset);\n reset.onReset?.();\n };\n\n processComputable(reset as T, \"thingsToReset\");\n\n return reset as unknown as Reset;\n });\n}\n\nexport function setupAutoReset(\n layer: GenericLayer,\n reset: GenericReset,\n autoActive: Computable = true\n): Unsubscribe {\n const isActive = typeof autoActive === \"function\" ? computed(autoActive) : autoActive;\n return layer.on(\"update\", () => {\n if (unref(isActive)) {\n reset.reset();\n }\n });\n}\n\nconst listeners: Record = {};\nexport function trackResetTime(layer: GenericLayer, reset: GenericReset): PersistentRef {\n const resetTime = persistent(new Decimal(0));\n listeners[layer.id] = layer.on(\"preUpdate\", (diff: Decimal) => {\n resetTime.value = Decimal.add(resetTime.value, diff);\n });\n globalBus.on(\"reset\", currentReset => {\n if (currentReset === reset) {\n resetTime.value = new Decimal(0);\n }\n });\n return resetTime;\n}\nglobalBus.on(\"removeLayer\", layer => {\n // unsubscribe from preUpdate\n listeners[layer.id]?.();\n listeners[layer.id] = undefined;\n});\n\ndeclare module \"@/game/events\" {\n interface GlobalEvents {\n reset: (reset: GenericReset) => void;\n }\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { displayResource, Resource } from \"@/features/resources/resource\";\nimport { computed } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n resource: null,\n color: null\n },\n setup(__props: any) {\n\nconst props = __props as {\n resource: Resource;\n color: string;\n}\n\n\n\nconst amount = computed(() => displayResource(props.resource));\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"h2\", {\n style: _normalizeStyle({ color: __props.color, 'text-shadow': '0px 0px 10px ' + __props.color })\n }, _toDisplayString(_unref(amount)), 5))\n}\n}\n\n})","import script from \"./Resource.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Resource.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { key: 1 }\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\", \")\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { Resource } from \"@/features/resources/resource\";\nimport Decimal from \"@/util/bignum\";\nimport { computeOptionalComponent } from \"@/util/vue\";\nimport { computed, Ref, StyleValue, toRefs } from \"vue\";\nimport ResourceVue from \"@/features/resources/Resource.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n resource: null,\n color: null,\n classes: null,\n style: null,\n effectDisplay: null\n },\n setup(__props: any) {\n\nconst _props = __props as {\n resource: Resource;\n color?: string;\n classes?: Record;\n style?: StyleValue;\n effectDisplay?: CoercableComponent;\n}\n\n\nconst props = toRefs(_props);\n\nconst effectComponent = computeOptionalComponent(\n props.effectDisplay as Ref\n);\n\nconst showPrefix = computed(() => {\n return Decimal.lt(props.resource.value, \"1e1000\");\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_unref(showPrefix))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, \"You have \"))\n : _createCommentVNode(\"\", true),\n _createVNode(ResourceVue, {\n resource: __props.resource,\n color: __props.color || 'white'\n }, null, 8, [\"resource\", \"color\"]),\n _createTextVNode(\" \" + _toDisplayString(__props.resource.displayName), 1),\n (_unref(effectComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n _hoisted_3,\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(effectComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_4,\n _hoisted_5\n ]))\n}\n}\n\n})","import script from \"./MainDisplay.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MainDisplay.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2d81e1cc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MarkNode = _resolveComponent(\"MarkNode\")!\n const _component_LinkNode = _resolveComponent(\"LinkNode\")!\n\n return (_ctx.unref(_ctx.visibility) !== _ctx.Visibility.None)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n style: _normalizeStyle({ visibility: _ctx.unref(_ctx.visibility) === _ctx.Visibility.Hidden ? 'hidden' : undefined })\n }, [\n _createElementVNode(\"button\", {\n style: _normalizeStyle(_ctx.unref(_ctx.style)),\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.onClick && _ctx.onClick(...args))),\n onMousedown: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onMouseleave: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onMouseup: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchstart: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onTouchend: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchcancel: _cache[6] || (_cache[6] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n disabled: !_ctx.unref(_ctx.canClick),\n class: _normalizeClass({\n feature: true,\n clickable: true,\n can: _ctx.unref(_ctx.canClick),\n locked: !_ctx.unref(_ctx.canClick),\n small: _ctx.small,\n ..._ctx.unref(_ctx.classes)\n })\n }, [\n (_ctx.unref(_ctx.comp))\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.unref(_ctx.comp)), { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_MarkNode, {\n mark: _ctx.unref(_ctx.mark)\n }, null, 8, [\"mark\"]),\n _createVNode(_component_LinkNode, { id: _ctx.id }, null, 8, [\"id\"])\n ], 46, _hoisted_1)\n ], 4))\n : _createCommentVNode(\"\", true)\n}","\nimport \"@/components/common/features.css\";\nimport LinkNode from \"@/components/links/LinkNode.vue\";\nimport MarkNode from \"@/components/MarkNode.vue\";\nimport { GenericClickable } from \"@/features/clickables/clickable\";\nimport { jsx, StyleValue, Visibility } from \"@/features/feature\";\nimport {\n coerceComponent,\n isCoercableComponent,\n processedPropType,\n setupHoldToClick,\n unwrapRef\n} from \"@/util/vue\";\nimport {\n Component,\n defineComponent,\n PropType,\n shallowRef,\n toRefs,\n unref,\n UnwrapRef,\n watchEffect\n} from \"vue\";\n\nexport default defineComponent({\n props: {\n display: {\n type: processedPropType>(\n Object,\n String,\n Function\n ),\n required: true\n },\n visibility: {\n type: processedPropType(Number),\n required: true\n },\n style: processedPropType(Object, String, Array),\n classes: processedPropType>(Object),\n onClick: Function as PropType,\n onHold: Function as PropType,\n canClick: {\n type: processedPropType(Boolean),\n required: true\n },\n small: Boolean,\n mark: processedPropType(Boolean, String),\n id: {\n type: String,\n required: true\n }\n },\n components: {\n LinkNode,\n MarkNode\n },\n setup(props) {\n const { display, onClick, onHold } = toRefs(props);\n\n const comp = shallowRef(\"\");\n\n watchEffect(() => {\n const currDisplay = unwrapRef(display);\n if (currDisplay == null) {\n comp.value = \"\";\n return;\n }\n if (isCoercableComponent(currDisplay)) {\n comp.value = coerceComponent(currDisplay);\n return;\n }\n const Title = coerceComponent(currDisplay.title || \"\", \"h3\");\n const Description = coerceComponent(currDisplay.description, \"div\");\n comp.value = coerceComponent(\n jsx(() => (\n \n {currDisplay.title ? (\n
\n \n </div>\n ) : null}\n <Description />\n </span>\n ))\n );\n });\n\n const { start, stop } = setupHoldToClick(onClick, onHold);\n\n return {\n start,\n stop,\n comp,\n Visibility,\n unref\n };\n }\n});\n","import { render } from \"./Clickable.vue?vue&type=template&id=2d81e1cc&scoped=true&ts=true\"\nimport script from \"./Clickable.vue?vue&type=script&lang=tsx\"\nexport * from \"./Clickable.vue?vue&type=script&lang=tsx\"\n\nimport \"./Clickable.vue?vue&type=style&index=0&id=2d81e1cc&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d81e1cc\"]])\n\nexport default __exports__","import ClickableComponent from \"@/features/clickables/Clickable.vue\";\nimport {\n CoercableComponent,\n Component,\n GatherProps,\n getUniqueID,\n Replace,\n setDefault,\n StyleValue,\n Visibility\n} from \"@/features/feature\";\nimport {\n Computable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\n\nexport const ClickableType = Symbol(\"Clickable\");\n\nexport interface ClickableOptions {\n visibility?: Computable<Visibility>;\n canClick?: Computable<boolean>;\n classes?: Computable<Record<string, boolean>>;\n style?: Computable<StyleValue>;\n mark?: Computable<boolean | string>;\n display?: Computable<\n | CoercableComponent\n | {\n title?: CoercableComponent;\n description: CoercableComponent;\n }\n >;\n small?: boolean;\n onClick?: VoidFunction;\n onHold?: VoidFunction;\n}\n\ninterface BaseClickable {\n id: string;\n type: typeof ClickableType;\n [Component]: typeof ClickableComponent;\n [GatherProps]: () => Record<string, unknown>;\n}\n\nexport type Clickable<T extends ClickableOptions> = Replace<\n T & BaseClickable,\n {\n visibility: GetComputableTypeWithDefault<T[\"visibility\"], Visibility.Visible>;\n canClick: GetComputableTypeWithDefault<T[\"canClick\"], true>;\n classes: GetComputableType<T[\"classes\"]>;\n style: GetComputableType<T[\"style\"]>;\n mark: GetComputableType<T[\"mark\"]>;\n display: GetComputableType<T[\"display\"]>;\n }\n>;\n\nexport type GenericClickable = Replace<\n Clickable<ClickableOptions>,\n {\n visibility: ProcessedComputable<Visibility>;\n canClick: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createClickable<T extends ClickableOptions>(\n optionsFunc: () => T & ThisType<Clickable<T>>\n): Clickable<T> {\n return createLazyProxy(() => {\n const clickable: T & Partial<BaseClickable> = optionsFunc();\n clickable.id = getUniqueID(\"clickable-\");\n clickable.type = ClickableType;\n clickable[Component] = ClickableComponent;\n\n processComputable(clickable as T, \"visibility\");\n setDefault(clickable, \"visibility\", Visibility.Visible);\n processComputable(clickable as T, \"canClick\");\n setDefault(clickable, \"canClick\", true);\n processComputable(clickable as T, \"classes\");\n processComputable(clickable as T, \"style\");\n processComputable(clickable as T, \"mark\");\n processComputable(clickable as T, \"display\");\n\n clickable[GatherProps] = function (this: GenericClickable) {\n const {\n display,\n visibility,\n style,\n classes,\n onClick,\n onHold,\n canClick,\n small,\n mark,\n id\n } = this;\n return {\n display,\n visibility,\n style,\n classes,\n onClick,\n onHold,\n canClick,\n small,\n mark,\n id\n };\n };\n\n return clickable as unknown as Clickable<T>;\n });\n}\n","import {\n Clickable,\n ClickableOptions,\n createClickable,\n GenericClickable\n} from \"@/features/clickables/clickable\";\nimport { GenericConversion } from \"@/features/conversion\";\nimport { CoercableComponent, jsx, Replace, setDefault } from \"@/features/feature\";\nimport { displayResource } from \"@/features/resources/resource\";\nimport {\n createTreeNode,\n GenericTree,\n GenericTreeNode,\n TreeNode,\n TreeNodeOptions\n} from \"@/features/trees/tree\";\nimport player from \"@/game/player\";\nimport Decimal from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { computed, Ref, unref } from \"vue\";\n\nexport interface ResetButtonOptions extends ClickableOptions {\n conversion: GenericConversion;\n tree: GenericTree;\n treeNode: GenericTreeNode;\n resetDescription?: Computable<string>;\n showNextAt?: Computable<boolean>;\n display?: Computable<CoercableComponent>;\n canClick?: Computable<boolean>;\n}\n\ntype ResetButton<T extends ResetButtonOptions> = Replace<\n Clickable<T>,\n {\n resetDescription: GetComputableTypeWithDefault<T[\"resetDescription\"], Ref<string>>;\n showNextAt: GetComputableTypeWithDefault<T[\"showNextAt\"], true>;\n display: GetComputableTypeWithDefault<T[\"display\"], Ref<JSX.Element>>;\n canClick: GetComputableTypeWithDefault<T[\"canClick\"], Ref<boolean>>;\n onClick: VoidFunction;\n }\n>;\n\nexport type GenericResetButton = Replace<\n GenericClickable & ResetButton<ResetButtonOptions>,\n {\n resetDescription: ProcessedComputable<string>;\n showNextAt: ProcessedComputable<boolean>;\n display: ProcessedComputable<CoercableComponent>;\n canClick: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createResetButton<T extends ClickableOptions & ResetButtonOptions>(\n optionsFunc: () => T\n): ResetButton<T> {\n return createClickable(() => {\n const resetButton = optionsFunc();\n\n processComputable(resetButton as T, \"showNextAt\");\n setDefault(resetButton, \"showNextAt\", true);\n\n if (resetButton.resetDescription == null) {\n resetButton.resetDescription = computed(() =>\n Decimal.lt(resetButton.conversion.gainResource.value, 1e3) ? \"Reset for \" : \"\"\n );\n } else {\n processComputable(resetButton as T, \"resetDescription\");\n }\n\n if (resetButton.display == null) {\n resetButton.display = jsx(() => (\n <span>\n {unref(resetButton.resetDescription as ProcessedComputable<string>)}\n <b>\n {displayResource(\n resetButton.conversion.gainResource,\n unref(resetButton.conversion.currentGain)\n )}\n </b>{\" \"}\n {resetButton.conversion.gainResource.displayName}\n <div v-show={unref(resetButton.showNextAt)}>\n <br />\n Next:{\" \"}\n {displayResource(\n resetButton.conversion.baseResource,\n unref(resetButton.conversion.nextAt)\n )}{\" \"}\n {resetButton.conversion.baseResource.displayName}\n </div>\n </span>\n ));\n }\n\n if (resetButton.canClick == null) {\n resetButton.canClick = computed(() =>\n Decimal.gt(unref(resetButton.conversion.currentGain), 0)\n );\n }\n\n const onClick = resetButton.onClick;\n resetButton.onClick = function () {\n resetButton.conversion.convert();\n resetButton.tree.reset(resetButton.treeNode);\n onClick?.();\n };\n\n return resetButton;\n }) as unknown as ResetButton<T>;\n}\n\nexport interface LayerTreeNodeOptions extends TreeNodeOptions {\n layerID: string;\n color: string;\n append?: boolean;\n}\nexport type LayerTreeNode<T extends LayerTreeNodeOptions> = Replace<\n TreeNode<T>,\n {\n append: ProcessedComputable<boolean>;\n }\n>;\nexport type GenericLayerTreeNode = LayerTreeNode<LayerTreeNodeOptions>;\n\nexport function createLayerTreeNode<T extends LayerTreeNodeOptions>(\n optionsFunc: () => T\n): LayerTreeNode<T> {\n return createTreeNode(() => {\n const options = optionsFunc();\n processComputable(options as T, \"append\");\n return {\n ...options,\n display: options.layerID,\n onClick:\n options.append != null && options.append\n ? function () {\n if (player.tabs.includes(options.layerID)) {\n const index = player.tabs.lastIndexOf(options.layerID);\n player.tabs.splice(index, 1);\n } else {\n player.tabs.push(options.layerID);\n }\n }\n : function () {\n player.tabs.splice(1, 1, options.layerID);\n }\n };\n }) as unknown as LayerTreeNode<T>;\n}\n","import { main } from \"@/data/mod\";\nimport { createCumulativeConversion, createExponentialScaling } from \"@/features/conversion\";\nimport { jsx } from \"@/features/feature\";\nimport { createReset } from \"@/features/reset\";\nimport MainDisplay from \"@/features/resources/MainDisplay.vue\";\nimport { createResource } from \"@/features/resources/resource\";\nimport { createLayer } from \"@/game/layers\";\nimport { DecimalSource } from \"@/lib/break_eternity\";\nimport { render } from \"@/util/vue\";\nimport { createLayerTreeNode, createResetButton } from \"../common\";\n\nconst layer = createLayer(() => {\n const id = \"p\";\n const name = \"Prestige\";\n const color = \"#4BDC13\";\n const points = createResource<DecimalSource>(0, \"prestige points\");\n\n const conversion = createCumulativeConversion(() => ({\n scaling: createExponentialScaling(10, 5, 0.5),\n baseResource: main.points,\n gainResource: points,\n roundUpCost: true\n }));\n\n const reset = createReset(() => ({\n thingsToReset: (): Record<string, unknown>[] => [layer]\n }));\n\n const treeNode = createLayerTreeNode(() => ({\n layerID: id,\n color,\n reset\n }));\n\n const resetButton = createResetButton(() => ({\n conversion,\n tree: main.tree,\n treeNode\n }));\n\n return {\n id,\n name,\n color,\n points,\n display: jsx(() => (\n <>\n <MainDisplay resource={points} color={color} />\n {render(resetButton)}\n </>\n )),\n treeNode\n };\n});\n\nexport default layer;\n","import Spacer from \"@/components/layout/Spacer.vue\";\nimport { jsx } from \"@/features/feature\";\nimport { createResource, trackBest, trackOOMPS, trackTotal } from \"@/features/resources/resource\";\nimport { branchedResetPropagation, createTree, GenericTree } from \"@/features/trees/tree\";\nimport { globalBus } from \"@/game/events\";\nimport { createLayer, GenericLayer } from \"@/game/layers\";\nimport player, { PlayerData } from \"@/game/player\";\nimport { DecimalSource } from \"@/lib/break_eternity\";\nimport Decimal, { format, formatTime } from \"@/util/bignum\";\nimport { render } from \"@/util/vue\";\nimport { computed, toRaw } from \"vue\";\nimport prestige from \"./layers/prestige\";\n\nexport const main = createLayer(() => {\n const points = createResource<DecimalSource>(10);\n const best = trackBest(points);\n const total = trackTotal(points);\n\n const pointGain = computed(() => {\n // eslint-disable-next-line prefer-const\n let gain = new Decimal(1);\n return gain;\n });\n globalBus.on(\"update\", diff => {\n points.value = Decimal.add(points.value, Decimal.times(pointGain.value, diff));\n });\n const oomps = trackOOMPS(points, pointGain);\n\n const tree = createTree(() => ({\n nodes: [[prestige.treeNode]],\n branches: [],\n onReset() {\n points.value = toRaw(this.resettingNode.value) === toRaw(prestige.treeNode) ? 0 : 10;\n best.value = points.value;\n total.value = points.value;\n },\n resetPropagation: branchedResetPropagation\n })) as GenericTree;\n\n return {\n id: \"main\",\n name: \"Tree\",\n links: tree.links,\n display: jsx(() => (\n <>\n <div v-show={player.devSpeed === 0}>Game Paused</div>\n <div v-show={player.devSpeed && player.devSpeed !== 1}>\n Dev Speed: {format(player.devSpeed || 0)}x\n </div>\n <div v-show={player.offlineTime != undefined}>\n Offline Time: {formatTime(player.offlineTime || 0)}\n </div>\n <div>\n <span v-show={Decimal.lt(points.value, \"1e1000\")}>You have </span>\n <h2>{format(points.value)}</h2>\n <span v-show={Decimal.lt(points.value, \"1e1e6\")}> points</span>\n </div>\n <div v-show={Decimal.gt(pointGain.value, 0)}>({oomps.value})</div>\n <Spacer />\n {render(tree)}\n </>\n )),\n points,\n best,\n total,\n oomps,\n tree\n };\n});\n\nexport const getInitialLayers = (\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\n player: Partial<PlayerData>\n): Array<GenericLayer> => [main, prestige];\n\nexport const hasWon = computed(() => {\n return false;\n});\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport function fixOldSave(\n oldVersion: string | undefined,\n player: Partial<PlayerData>\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n): void {}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n","import Modal from \"@/components/Modal.vue\";\nimport {\n CoercableComponent,\n jsx,\n JSXFunction,\n Replace,\n setDefault,\n StyleValue\n} from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport Decimal from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { createNanoEvents, Emitter } from \"nanoevents\";\nimport { ref, unref } from \"vue\";\nimport { globalBus } from \"./events\";\nimport { persistent, PersistentRef } from \"./persistence\";\nimport player from \"./player\";\n\nexport interface LayerEvents {\n // Generation\n preUpdate: (diff: Decimal) => void;\n // Actions (e.g. automation)\n update: (diff: Decimal) => void;\n // Effects (e.g. milestones)\n postUpdate: (diff: Decimal) => void;\n}\n\nexport const layers: Record<string, Readonly<GenericLayer> | undefined> = {};\nwindow.layers = layers;\n\ndeclare module \"@vue/runtime-dom\" {\n interface CSSProperties {\n \"--layer-color\"?: string;\n }\n}\n\nexport interface Position {\n x: number;\n y: number;\n}\n\nexport interface LayerOptions {\n id: string;\n color?: Computable<string>;\n display: Computable<CoercableComponent>;\n classes?: Computable<Record<string, boolean>>;\n style?: Computable<StyleValue>;\n name?: Computable<string>;\n minimizable?: Computable<boolean>;\n forceHideGoBack?: Computable<boolean>;\n minWidth?: Computable<number>;\n links?: Computable<Link[]>;\n}\n\nexport interface BaseLayer {\n minimized: PersistentRef<boolean>;\n emitter: Emitter<LayerEvents>;\n on: OmitThisParameter<Emitter<LayerEvents>[\"on\"]>;\n emit: <K extends keyof LayerEvents>(event: K, ...args: Parameters<LayerEvents[K]>) => void;\n}\n\nexport type Layer<T extends LayerOptions> = Replace<\n T & BaseLayer,\n {\n color: GetComputableType<T[\"color\"]>;\n display: GetComputableType<T[\"display\"]>;\n classes: GetComputableType<T[\"classes\"]>;\n style: GetComputableType<T[\"style\"]>;\n name: GetComputableTypeWithDefault<T[\"name\"], T[\"id\"]>;\n minWidth: GetComputableTypeWithDefault<T[\"minWidth\"], 600>;\n minimizable: GetComputableTypeWithDefault<T[\"minimizable\"], true>;\n forceHideGoBack: GetComputableType<T[\"forceHideGoBack\"]>;\n links: GetComputableType<T[\"links\"]>;\n }\n>;\n\nexport type GenericLayer = Replace<\n Layer<LayerOptions>,\n {\n name: ProcessedComputable<string>;\n minWidth: ProcessedComputable<number>;\n minimizable: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createLayer<T extends LayerOptions>(optionsFunc: () => T): Layer<T> {\n return createLazyProxy(() => {\n const layer = optionsFunc() as T & Partial<BaseLayer>;\n const emitter = (layer.emitter = createNanoEvents<LayerEvents>());\n layer.on = emitter.on.bind(emitter);\n layer.emit = emitter.emit.bind(emitter);\n\n layer.minimized = persistent(false);\n\n processComputable(layer as T, \"color\");\n processComputable(layer as T, \"display\");\n processComputable(layer as T, \"name\");\n setDefault(layer, \"name\", layer.id);\n processComputable(layer as T, \"minWidth\");\n setDefault(layer, \"minWidth\", 600);\n processComputable(layer as T, \"minimizable\");\n setDefault(layer, \"minimizable\", true);\n processComputable(layer as T, \"links\");\n\n return layer as unknown as Layer<T>;\n });\n}\n\nexport function addLayer(\n layer: GenericLayer,\n player: { layers?: Record<string, Record<string, unknown>> }\n): void {\n console.info(\"Adding layer\", layer.id);\n if (layers[layer.id]) {\n console.error(\n \"Attempted to add layer with same ID as existing layer\",\n layer.id,\n layers[layer.id]\n );\n return;\n }\n\n setDefault(player, \"layers\", {});\n if (player.layers[layer.id] == null) {\n player.layers[layer.id] = {};\n }\n layers[layer.id] = layer;\n\n globalBus.emit(\"addLayer\", layer, player.layers[layer.id]);\n}\n\nexport function getLayer<T extends GenericLayer>(layerID: string): T {\n return layers[layerID] as T;\n}\n\nexport function removeLayer(layer: GenericLayer): void {\n console.info(\"Removing layer\", layer.id);\n globalBus.emit(\"removeLayer\", layer);\n\n layers[layer.id] = undefined;\n}\n\nexport function reloadLayer(layer: GenericLayer): void {\n removeLayer(layer);\n\n // Re-create layer\n addLayer(layer, player);\n}\n\nexport function setupLayerModal(layer: GenericLayer): {\n openModal: VoidFunction;\n modal: JSXFunction;\n} {\n const showModal = ref(false);\n return {\n openModal: () => (showModal.value = true),\n modal: jsx(() => (\n <Modal\n modelValue={showModal.value}\n onUpdate:modelValue={value => (showModal.value = value)}\n v-slots={{\n header: () => <h2>{unref(layer.name)}</h2>,\n body: unref(layer.display)\n }}\n />\n ))\n };\n}\n\nglobalBus.on(\"update\", function updateLayers(diff) {\n Object.values(layers).forEach(layer => {\n layer?.emit(\"preUpdate\", diff);\n });\n Object.values(layers).forEach(layer => {\n layer?.emit(\"update\", diff);\n });\n Object.values(layers).forEach(layer => {\n layer?.emit(\"postUpdate\", diff);\n });\n});\n","import script from \"./Row.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Row.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Col from \"@/components/layout/Column.vue\";\nimport Row from \"@/components/layout/Row.vue\";\nimport {\n CoercableComponent,\n Component as ComponentKey,\n GatherProps,\n GenericComponent,\n JSXFunction\n} from \"@/features/feature\";\nimport {\n Component,\n computed,\n ComputedRef,\n DefineComponent,\n defineComponent,\n isRef,\n PropType,\n ref,\n Ref,\n ShallowRef,\n shallowRef,\n unref,\n watchEffect\n} from \"vue\";\nimport { DoNotCache, ProcessedComputable } from \"./computed\";\n\nexport function coerceComponent(\n component: CoercableComponent,\n defaultWrapper = \"span\"\n): DefineComponent {\n if (typeof component === \"function\") {\n return defineComponent({ render: component });\n }\n if (typeof component === \"string\") {\n if (component.length > 0) {\n component = component.trim();\n if (component.charAt(0) !== \"<\") {\n component = `<${defaultWrapper}>${component}</${defaultWrapper}>`;\n }\n\n return defineComponent({ template: component });\n }\n return defineComponent({ render: () => ({}) });\n }\n return component;\n}\n\nexport type VueFeature = {\n [ComponentKey]: GenericComponent;\n [GatherProps]: () => Record<string, unknown>;\n};\n\nexport function render(object: VueFeature | CoercableComponent): JSX.Element | DefineComponent {\n if (isCoercableComponent(object)) {\n if (typeof object === \"function\") {\n return (object as JSXFunction)();\n }\n return coerceComponent(object);\n }\n const Component = object[ComponentKey];\n return <Component {...object[GatherProps]()} />;\n}\n\nexport function renderRow(...objects: (VueFeature | CoercableComponent)[]): JSX.Element {\n return <Row>{objects.map(render)}</Row>;\n}\n\nexport function renderCol(...objects: (VueFeature | CoercableComponent)[]): JSX.Element {\n return <Col>{objects.map(render)}</Col>;\n}\n\nexport function isCoercableComponent(component: unknown): component is CoercableComponent {\n if (typeof component === \"string\") {\n return true;\n } else if (typeof component === \"object\") {\n if (component == null) {\n return false;\n }\n return \"render\" in component || \"component\" in component;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } else if (typeof component === \"function\" && (component as any)[DoNotCache] === true) {\n return true;\n }\n return false;\n}\n\nexport function setupHoldToClick(\n onClick?: Ref<VoidFunction | undefined>,\n onHold?: Ref<VoidFunction | undefined>\n): {\n start: VoidFunction;\n stop: VoidFunction;\n handleHolding: VoidFunction;\n} {\n const interval = ref<null | number>(null);\n\n function start() {\n if (!interval.value) {\n interval.value = setInterval(handleHolding, 250);\n }\n }\n function stop() {\n if (interval.value) {\n clearInterval(interval.value);\n interval.value = null;\n }\n }\n function handleHolding() {\n if (onHold && onHold.value) {\n onHold.value();\n } else if (onClick && onClick.value) {\n onClick.value();\n }\n }\n\n return { start, stop, handleHolding };\n}\n\nexport function computeComponent(\n component: Ref<ProcessedComputable<CoercableComponent>>,\n defaultWrapper = \"div\"\n): ShallowRef<Component | JSXFunction | \"\"> {\n const comp = shallowRef<Component | JSXFunction | \"\">();\n watchEffect(() => {\n comp.value = coerceComponent(unwrapRef(component), defaultWrapper);\n });\n return comp as ShallowRef<Component | JSXFunction | \"\">;\n}\nexport function computeOptionalComponent(\n component: Ref<ProcessedComputable<CoercableComponent | undefined> | undefined>,\n defaultWrapper = \"div\"\n): ShallowRef<Component | JSXFunction | \"\" | null> {\n const comp = shallowRef<Component | JSXFunction | \"\" | null>(null);\n watchEffect(() => {\n const currComponent = unwrapRef(component);\n comp.value = currComponent == null ? null : coerceComponent(currComponent, defaultWrapper);\n });\n return comp;\n}\n\nexport function wrapRef<T>(ref: Ref<ProcessedComputable<T>>): ComputedRef<T> {\n return computed(() => unwrapRef(ref));\n}\n\nexport function unwrapRef<T>(ref: Ref<ProcessedComputable<T>>): T {\n return unref<T>(unref(ref));\n}\n\nexport function setRefValue<T>(ref: Ref<T | Ref<T>>, value: T) {\n if (isRef(ref.value)) {\n ref.value.value = value;\n } else {\n ref.value = value;\n }\n}\n\ntype PropTypes =\n | typeof Boolean\n | typeof String\n | typeof Number\n | typeof Function\n | typeof Object\n | typeof Array;\n// TODO Unfortunately, the typescript engine gives up on typing completely when you use this method,\n// Even though it has the same typing as when doing it manually\nexport function processedPropType<T>(...types: PropTypes[]): PropType<ProcessedComputable<T>> {\n if (!types.includes(Object)) {\n types.push(Object);\n }\n return types as PropType<ProcessedComputable<T>>;\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderSlot as _renderSlot, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withModifiers as _withModifiers, mergeProps as _mergeProps, withDirectives as _withDirectives, Transition as _Transition, createVNode as _createVNode, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = [\"onPointerdown\"]\nconst _hoisted_2 = { class: \"modal-wrapper\" }\nconst _hoisted_3 = { class: \"modal-container\" }\nconst _hoisted_4 = { class: \"modal-header\" }\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\" default header \")\nconst _hoisted_6 = { class: \"modal-body\" }\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\" default body \")\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\" default body \")\nconst _hoisted_9 = { class: \"modal-footer\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal-default-flex-grow\" }, null, -1)\n\nimport { Link } from \"@/features/links\";\nimport { computed, ref, toRefs } from \"vue\";\nimport Links from \"./links/Links.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n modelValue: { type: Boolean },\n links: null\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { expose, emit }: { emit: ({\n (e: \"update:modelValue\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n modelValue: boolean;\n links?: Link[];\n}\n\n\nconst props = toRefs(_props);\n\n\nconst isOpen = computed(() => props.modelValue || isAnimating.value);\nfunction close() {\n emit(\"update:modelValue\", false);\n}\n\nconst isAnimating = ref(false);\n\nexpose({ isOpen });\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"#modal-root\" }, [\n _createVNode(_Transition, {\n name: \"modal\",\n onBeforeEnter: _cache[0] || (_cache[0] = ($event: any) => (isAnimating.value = true)),\n onAfterLeave: _cache[1] || (_cache[1] = ($event: any) => (isAnimating.value = false))\n }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", _mergeProps({\n class: \"modal-mask\",\n onPointerdown: _withModifiers(close, [\"self\"])\n }, _ctx.$attrs), [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"header\", { shown: _unref(isOpen) }, () => [\n _hoisted_5\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (__props.links)\n ? (_openBlock(), _createBlock(Links, {\n key: 0,\n links: __props.links\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"body\", { shown: _unref(isOpen) }, () => [\n _hoisted_7\n ])\n ]),\n _: 3\n }, 8, [\"links\"]))\n : _renderSlot(_ctx.$slots, \"body\", {\n key: 1,\n shown: _unref(isOpen)\n }, () => [\n _hoisted_8\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _renderSlot(_ctx.$slots, \"footer\", { shown: _unref(isOpen) }, () => [\n _createElementVNode(\"div\", { class: \"modal-default-footer\" }, [\n _hoisted_10,\n _createElementVNode(\"button\", {\n class: \"button modal-default-button\",\n onClick: close\n }, \" Close \")\n ])\n ])\n ])\n ])\n ])\n ], 16, _hoisted_1), [\n [_vShow, __props.modelValue]\n ])\n ]),\n _: 3\n })\n ]))\n}\n}\n\n})","import script from \"./Modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Modal.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=a59fd290&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"tooltip-container\", { shown: _ctx.isShown }]),\n onMouseenter: _cache[0] || (_cache[0] = ($event: any) => (_ctx.isHovered = true)),\n onMouseleave: _cache[1] || (_cache[1] = ($event: any) => (_ctx.isHovered = false))\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true),\n _createVNode(_Transition, { name: \"fade\" }, {\n default: _withCtx(() => [\n (_ctx.isShown)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"tooltip\", {\n top: _ctx.unref(_ctx.top),\n left: _ctx.unref(_ctx.left),\n right: _ctx.unref(_ctx.right),\n bottom: _ctx.unref(_ctx.bottom)\n }]),\n style: _normalizeStyle({\n '--xoffset': _ctx.unref(_ctx.xoffset) || '0px',\n '--yoffset': _ctx.unref(_ctx.yoffset) || '0px'\n })\n }, [\n (_ctx.comp)\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.comp), { key: 0 }))\n : _createCommentVNode(\"\", true)\n ], 6))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ], 34))\n}","\nimport { CoercableComponent } from \"@/features/feature\";\nimport { computeOptionalComponent, processedPropType, unwrapRef } from \"@/util/vue\";\nimport { computed, defineComponent, ref, toRefs, unref } from \"vue\";\n\nexport default defineComponent({\n props: {\n display: processedPropType<CoercableComponent>(Object, String, Function),\n top: processedPropType<boolean>(Boolean),\n left: processedPropType<boolean>(Boolean),\n right: processedPropType<boolean>(Boolean),\n bottom: processedPropType<boolean>(Boolean),\n xoffset: processedPropType<string>(String),\n yoffset: processedPropType<string>(String),\n force: processedPropType<boolean>(Boolean)\n },\n setup(props) {\n const { display, force } = toRefs(props);\n\n const isHovered = ref(false);\n const isShown = computed(() => (unwrapRef(force) || isHovered.value) && comp.value);\n const comp = computeOptionalComponent(display);\n\n return {\n isHovered,\n isShown,\n comp,\n unref\n };\n }\n});\n","import { render } from \"./Tooltip.vue?vue&type=template&id=2ee899a0&scoped=true&ts=true\"\nimport script from \"./Tooltip.vue?vue&type=script&lang=ts\"\nexport * from \"./Tooltip.vue?vue&type=script&lang=ts\"\n\nimport \"./Tooltip.vue?vue&type=style&index=0&id=2ee899a0&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2ee899a0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"x1\", \"y1\", \"x2\", \"y2\"]\n\nimport { Link, LinkNode } from \"@/features/links\";\nimport { computed, toRefs, unref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n link: null,\n startNode: null,\n endNode: null\n },\n setup(__props: any) {\n\nconst _props = __props as {\n link: Link;\n startNode: LinkNode;\n endNode: LinkNode;\n}\n\n\nconst props = toRefs(_props);\n\nconst startPosition = computed(() => {\n const position = { x: props.startNode.value.x || 0, y: props.startNode.value.y || 0 };\n if (props.link.value.offsetStart) {\n position.x += unref(props.link.value.offsetStart).x;\n position.y += unref(props.link.value.offsetStart).y;\n }\n return position;\n});\n\nconst endPosition = computed(() => {\n const position = { x: props.endNode.value.x || 0, y: props.endNode.value.y || 0 };\n if (props.link.value.offsetEnd) {\n position.x += unref(props.link.value.offsetEnd).x;\n position.y += unref(props.link.value.offsetEnd).y;\n }\n return position;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"line\", _mergeProps({\n \"stroke-width\": \"15px\",\n stroke: \"white\"\n }, __props.link, {\n x1: _unref(startPosition).x,\n y1: _unref(startPosition).y,\n x2: _unref(endPosition).x,\n y2: _unref(endPosition).y\n }), null, 16, _hoisted_1))\n}\n}\n\n})","import script from \"./Link.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Link.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from \"vue\"\n\nimport {\n Link,\n LinkNode,\n RegisterLinkNodeInjectionKey,\n UnregisterLinkNodeInjectionKey\n} from \"@/features/links\";\nimport { computed, nextTick, onMounted, provide, ref, toRef } from \"vue\";\nimport LinkVue from \"./Link.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n links: null\n },\n setup(__props: any) {\n\nconst _props = __props as { links?: Link[] }\n\n\nconst links = toRef(_props, \"links\");\n\nconst observer = new MutationObserver(updateNodes);\nconst resizeObserver = new ResizeObserver(updateBounds);\n\nconst nodes = ref<Record<string, LinkNode | undefined>>({});\nconst boundingRect = ref(new DOMRect());\n\nconst resizeListener = ref<Element | null>(null);\n\nonMounted(() => {\n // ResizeListener exists because ResizeObserver's don't work when told to observe an SVG element\n const resListener = resizeListener.value;\n if (resListener != null) {\n resizeObserver.observe(resListener);\n }\n updateNodes();\n});\n\nconst validLinks = computed(\n () =>\n links.value?.filter(link => {\n const n = nodes.value;\n return (\n n[link.startNode.id]?.x != undefined &&\n n[link.startNode.id]?.y != undefined &&\n n[link.endNode.id]?.x != undefined &&\n n[link.endNode.id]?.y != undefined\n );\n }) ?? []\n);\n\nconst observerOptions = {\n attributes: true,\n childList: true,\n subtree: true\n};\n\nprovide(RegisterLinkNodeInjectionKey, (id, element) => {\n nodes.value[id] = { element };\n observer.observe(element, observerOptions);\n nextTick(() => {\n if (resizeListener.value != null) {\n updateNode(id);\n }\n });\n});\nprovide(UnregisterLinkNodeInjectionKey, id => {\n nodes.value[id] = undefined;\n});\n\nfunction updateNodes() {\n if (resizeListener.value != null) {\n Object.keys(nodes.value).forEach(id => updateNode(id));\n }\n}\n\nfunction updateNode(id: string) {\n const node = nodes.value[id];\n if (!node) {\n return;\n }\n const linkStartRect = node.element.getBoundingClientRect();\n node.x = linkStartRect.x + linkStartRect.width / 2 - boundingRect.value.x;\n node.y = linkStartRect.y + linkStartRect.height / 2 - boundingRect.value.y;\n}\n\nfunction updateBounds() {\n if (resizeListener.value != null) {\n boundingRect.value = resizeListener.value.getBoundingClientRect();\n updateNodes();\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _renderSlot(_ctx.$slots, \"default\"),\n _createElementVNode(\"div\", {\n ref_key: \"resizeListener\",\n ref: resizeListener,\n class: \"resize-listener\"\n }, null, 512),\n (_unref(validLinks))\n ? (_openBlock(), _createElementBlock(\"svg\", _normalizeProps(_mergeProps({ key: 0 }, _ctx.$attrs)), [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(validLinks), (link, index) => {\n return (_openBlock(), _createBlock(LinkVue, {\n key: index,\n link: link,\n startNode: nodes.value[link.startNode.id]!,\n endNode: nodes.value[link.endNode.id]!\n }, null, 8, [\"link\", \"startNode\", \"endNode\"]))\n }), 128))\n ], 16))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})","import script from \"./Links.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Links.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Links.vue?vue&type=style&index=0&id=5bf46048&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5bf46048\"]])\n\nexport default __exports__","export default \"eyJpZCI6InRtdC14LTEwNSIsIm5hbWUiOiJEZWZhdWx0IFNhZmZmZiAtIHNvbWV0aGluZyBlbHNlIiwidGFicyI6WyJtYWluIiwiYyJdLCJ0aW1lIjoxNjI0MjQ1MjYxMDg3LCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsInRpbWVQbGF5ZWQiOiIzNDQ4LjYxNTc4MT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ZSwicG9pbnRzIjoiMCJ9LCJnIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJoIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJzcG9vayI6eyJ1cGdyYWRlcyI6W10sImFjaGlldmVtZW50cyI6W10sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9fSwib29tcHNNYWciOjAsImxhc3RQb2ludHMiOiIzMzAwLjM3Nzc3Mzg1OTA1NSJ9\";","var map = {\n\t\"./safff.txt\": 2736\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7634;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkprofectus\"] = self[\"webpackChunkprofectus\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(5634); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["Themes","defaultTheme","variables","stackedInfoboxes","floatingTabs","showSingleTab","mergeAdjacent","classic","paper","nordic","aqua","Visibility","Component","Symbol","GatherProps","id","getUniqueID","prefix","jsx","func","setDefault","object","key","value","undefined","RegisterLinkNodeInjectionKey","UnregisterLinkNodeInjectionKey","globalBus","intervalID","hasWon","update","now","Date","diff","trueDiff","max","offlineDiff","add","times","eq","emit","requestAnimationFrame","clearInterval","setInterval","startGameLoop","PersistentState","DefaultValue","persistent","defaultValue","isRef","ref","layer","saveData","features","handleObject","obj","path","foundPersistent","Object","keys","forEach","persistentState","reduce","acc","curr","savedValue","includes","type","push","foundPersistentInChild","console","warn","state","reactive","devSpeed","name","tabs","time","autosave","offlineProd","offlineTime","timePlayed","keepGoing","modID","modVersion","layers","stringifySave","player","JSON","stringify","unref","playerHandler","get","target","Proxy","set","property","receiver","isNaN","sign","mag","currentValue","error","ownKeys","Reflect","has","getOwnPropertyDescriptor","window","active","saves","showTPS","theme","unthrottled","loadSettings","item","localStorage","getItem","settings","parse","decodeURIComponent","escape","atob","assign","watch","setItem","btoa","unescape","encodeURIComponent","deep","hardResetSettings","settingFields","shallowReactive","lastTenTicks","hasNaN","NaNPath","MAX_SIGNIFICANT_DIGITS","EXP_LIMIT","LAYER_DOWN","Math","log10","FIRST_NEG_LAYER","NUMBER_EXP_MAX","NUMBER_EXP_MIN","MAX_ES_IN_A_ROW","IGNORE_COMMAS","COMMAS_ARE_DECIMAL_POINTS","powerOf10","powersOf10","i","for","Number","indexOf0InPowersOf10","power","critical_headers","E","critical_tetr_values","critical_slog_values","D","Decimal","fromValue_noAlloc","FC","fromComponents","FC_NN","fromComponents_noNormalize","decimalPlaces","places","len","numDigits","ceil","abs","rounded","round","pow","parseFloat","toFixed","f_maglog10","n","f_gamma","isFinite","trunc","NEGATIVE_INFINITY","scal1","l","log","n2","np","exp","OMEGA","f_lambertw","z","w","wn","tol","Error","toString","d_lambertw","ew","wewz","dZero","dOne","ln","sub","mul","div","lt","NaN","this","fromDecimal","fromNumber","fromString","man","floor","residue","exponent","fromMantissaExponent","e","POSITIVE_INFINITY","m","other","neg","gt","gte","lte","neq","absmag","signmag","normalize","mantissa","replace","pentationparts","split","length","heightparts","payload","result","pentate","tetrationparts","tetrate","base","height","powparts","trim","toLowerCase","ptparts","parts","ecount","numberAttempt","newparts","charAt","layerstring","chrcode","charCodeAt","substr","me","repeat","toExponential","toStringWithDecimalPlaces","a","b","decimal","maxabs","cmpabs","layera","layerb","magdiff","newmag","recip","dNaN","cmp","min","tolerance","eq_tolerance","cmp_tolerance","magA","magB","neq_tolerance","log2","absLog10","pow10","toNumber","gamma","t","lm","adj","l2","sqrt","this_num","negln","lambertw","iteratedlog","oldheight","fracheight","old_payload","next_payload","tetrate_critical","minus","plus","layeradd10","layeradd","fulltimes","fraction","layerloss","dNegOne","copy","slog_critical","slogthis","slog","slogdest","lnx","sin","cos","tan","asin","acos","atan","negate","sinh","cosh","sqr","ascensions","root","fromMantissaExponent_noNormalize","fromValue","reciprocate","notEquals","minabs","clamp","clampMin","clampMax","notEquals_tolerance","lt_tolerance","lte_tolerance","gt_tolerance","gte_tolerance","pLog10","logarithm","_other","factorial","lngamma","cube","cbrt","iteratedexp","ssqrt","resourcesAvailable","priceStart","priceRatio","currentOwned","affordGeometricSeries_core","numItems","sumGeometricSeries_core","priceAdd","affordArithmeticSeries_core","sumArithmeticSeries_core","cost","currentRpS","deltaRpS","efficiencyOfPurchase_core","maxLayers","random","randomsign","randomexp","randommag","actualStart","b2","critical_section","grid","lower","upper","basefrac","frac","MAX_VALUE","MIN_VALUE","render","_ctx","_cache","$props","$setup","$data","$options","_component_Links","class","style","color","showGoBack","onClick","goBack","minimized","$event","classes","links","default","component","_","minimizable","defineComponent","components","Links","props","index","required","tab","Function","display","String","minWidth","Array","Boolean","setup","toRefs","computed","modInfo","allowGoBack","Infinity","updateTab","tabValue","flexGrow","flexShrink","width","flexBasis","margin","nextTick","__exports__","_withScopeId","_hoisted_1","_hoisted_2","open","__props","expose","isOpen","Modal","modelValue","header","body","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","href","_hoisted_12","_hoisted_13","changelog","_props","title","logo","author","discordName","discordLink","versionNumber","versionTitle","openChangelog","src","alt","shown","emits","options","placeholder","closeOnSelect","titleComponent","toRef","find","option","onUpdate","themes","map","label","settingFieldsComponent","isPaused","offlineProdTitle","autosaveTitle","isPausedTitle","Select","Toggle","textArea","maxHeight","field","onMounted","focus","submit","onSubmit","onBlur","ref_key","fullWidth","disabled","skipConfirm","isConfirming","click","cancel","confirming","$slots","left","activated","activatedTimeout","clearTimeout","setTimeout","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","save","dateFormat","Intl","DateTimeFormat","year","month","day","hour","minute","second","isEditing","newName","isActive","currentTime","changeName","FeedbackButton","DangerButton","onConfirmingChanged","format","Text","modal","importingFailed","saveToImport","playerData","bankContext","bank","slice","cachedSaves","getCachedSave","exportSave","saveToExport","el","document","createElement","appendChild","select","setSelectionRange","execCommand","removeChild","duplicateSave","deleteSave","removeItem","openSave","newFromPreset","preset","editSave","currSave","list","handle","itemKey","element","Save","onOpen","onExport","onEditName","onDuplicate","onDelete","footer","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","info","savesManager","useHeader","banner","openDiscord","$attrs","Tooltip","bottom","yoffset","xoffset","right","Info","SavesManager","Options","Changelog","layerKeys","gatherLayerProps","ref_for","Nav","Layer","$refs","playAgain","join","previous","setZero","setOne","ignore","tps","lastTenFPS","watchEffect","low","showLow","isNan","updateMouse","onMousemove","Game","TPS","GameOverScreen","NaNScreen","vue","createApp","App","mount","exponentialFormat","commaFormat","regularFormat","formatWhole","formatTime","toPlaces","formatSmall","invertOOM","decimalOne","num","precision","eString","init","portions","small","val","seconds","x","maxAccepted","camelToTitle","camel","toUpperCase","isPlainObject","prototype","call","isFunction","DoNotCache","processComputable","computable","bind","ProxyState","ProxyPath","createLazyProxy","objectFunc","calculated","calculateObj","setupInitialStore","stringifiedSave","load","loadSave","newSave","playerObj","removeLayer","addLayer","fixOldSave","getInitialLayers","onbeforeunload","hardReset","createResource","displayName","resource","trackBest","best","amount","trackTotal","total","prevAmount","trackOOMPS","pointGain","oomps","oompsMag","lastPoints","prev","oompsString","overrideAmount","_component_TreeNode","nodes","row","node","nodeIndex","gatherNodeProps","forceTooltip","leftSideNodes","rightSideNodes","_component_MarkNode","_component_LinkNode","_component_Tooltip","visibility","None","tooltipToBind","gatherTooltipProps","tooltipDisplay","force","Hidden","treeNode","can","canClick","onMousedown","start","onMouseleave","stop","onMouseup","onTouchstart","onTouchend","onTouchcancel","backgroundColor","boxShadow","glowColor","comp","mark","register","inject","unregister","parentNode","parentElement","newNode","newID","prevNode","prevID","onUnmounted","tooltip","top","onHold","MarkNode","LinkNode","shiftKey","shallowRef","currTooltip","isCoercableComponent","TreeNode","TreeNodeType","TreeType","createTreeNode","optionsFunc","createTree","tree","Tree","isResetting","resettingNode","reset","genericTree","resetPropagation","onReset","branches","branchedResetPropagation","visitedNodes","currentNodes","nextNodes","filter","branch","startNode","endNode","createConversion","conversion","currentGain","scaling","nextAt","convert","gainResource","modifyGainAmount","baseResource","createExponentialScaling","coefficient","gain","buyMax","next","roundUpCost","createCumulativeConversion","ResetType","createReset","values","thingsToReset","listeners","effectDisplay","effectComponent","showPrefix","Resource","feature","clickable","locked","currDisplay","Title","Description","description","ClickableType","createClickable","Clickable","createResetButton","resetButton","resetDescription","showNextAt","createLayerTreeNode","layerID","append","createLayer","points","main","prestige","toRaw","oldVersion","emitter","on","getLayer","reloadLayer","setupLayerModal","showModal","openModal","coerceComponent","defaultWrapper","template","setupHoldToClick","interval","handleHolding","computeComponent","unwrapRef","computeOptionalComponent","currComponent","wrapRef","processedPropType","types","isAnimating","close","to","onBeforeEnter","onAfterLeave","onPointerdown","isShown","onMouseenter","isHovered","link","startPosition","position","y","offsetStart","endPosition","offsetEnd","stroke","x1","y1","x2","y2","observer","MutationObserver","updateNodes","resizeObserver","ResizeObserver","updateBounds","boundingRect","DOMRect","resizeListener","resListener","observe","validLinks","observerOptions","attributes","childList","subtree","updateNode","linkStartRect","getBoundingClientRect","provide","Link","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","resolve","module","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","deferred","O","chunkIds","fn","priority","notFulfilled","fulfilled","j","every","splice","r","getter","__esModule","d","definition","defineProperty","enumerable","g","globalThis","prop","hasOwnProperty","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.0ae1f71d.js b/js/app.0ae1f71d.js new file mode 100644 index 0000000..a576ef0 --- /dev/null +++ b/js/app.0ae1f71d.js @@ -0,0 +1,2 @@ +(function(){var e={1037:function(e,o,t){"use strict";t.d(o,{b:function(){return r}});const l={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#eee","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},stackedInfoboxes:!1,floatingTabs:!0,showSingleTab:!1,mergeAdjacent:!0};var r;(function(e){e["Classic"]="classic",e["Paper"]="paper",e["Nordic"]="nordic",e["Aqua"]="aqua"})(r||(r={})),o["Z"]={classic:l,paper:{...l,variables:{...l.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},stackedInfoboxes:!0,floatingTabs:!1},nordic:{...l,variables:{...l.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},stackedInfoboxes:!0,floatingTabs:!1},aqua:{...l,variables:{...l.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}}},6113:function(e,o,t){"use strict";t.d(o,{wA:function(){return r},tj:function(){return i},QI:function(){return a},EE:function(){return s},tZ:function(){return m},Rh:function(){return u}});t(9706);var l=t(9583);t(4865);const r=Symbol("Component"),i=Symbol("GatherProps");let n=0;function a(e="feature-"){return(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](n++):e+n++)()}var s;function m(e){return e[l.mM]=!0,e}function u(e,o,t){void 0===e[o]&&(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](void 0):void 0!=t)()&&(e[o]=t)}(function(e){e[e["Visible"]=0]="Visible",e[e["Hidden"]=1]="Hidden",e[e["None"]=2]="None"})(s||(s={}))},630:function(e,o,t){"use strict";t.d(o,{Z:function(){return l},w:function(){return r}});const l=Symbol("RegisterLinkNode"),r=Symbol("UnregisterLinkNode")},7302:function(e,o,t){"use strict";t.r(o),t.d(o,{globalBus:function(){return m},startGameLoop:function(){return c}});var l=t(2345),r=t(9706),i=t(8111),n=t(5967),a=t(9266),s=t(3032);const m=(0,i.i)();let u=null,f=null;function y(){const e=Date.now();let o=(()=>e-n.Z.time!==void 0&&e-n.Z.time!==null&&(e-n.Z.time)[Symbol.for("/")]?(e-n.Z.time)[Symbol.for("/")](1e3):(e-n.Z.time)/1e3)();n.Z.time=e;const t=o;if(s.Z.lastTenTicks.push(t),(()=>void 0!==s.Z.lastTenTicks.length&&null!==s.Z.lastTenTicks.length&&s.Z.lastTenTicks.length[Symbol.for(">")]?s.Z.lastTenTicks.length[Symbol.for(">")](10):s.Z.lastTenTicks.length>10)()&&(s.Z.lastTenTicks=s.Z.lastTenTicks.slice(1)),(!f?.value||!(()=>void 0!==n.Z.keepGoing&&null!==n.Z.keepGoing&&n.Z.keepGoing[Symbol.for("!")]?n.Z.keepGoing[Symbol.for("!")]():!n.Z.keepGoing)())&&!s.Z.hasNaN&&(o=new r.ZP(o).max(0),0!==n.Z.devSpeed)){if((()=>void 0!==n.Z.offlineTime&&null!==n.Z.offlineTime&&n.Z.offlineTime[Symbol.for("!=")]?n.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=n.Z.offlineTime)()){if(r.ZP.gt(n.Z.offlineTime,(()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)())&&(n.Z.offlineTime=new r.ZP((()=>void 0!==l.offlineLimit&&null!==l.offlineLimit&&l.offlineLimit[Symbol.for("*")]?l.offlineLimit[Symbol.for("*")](3600):3600*l.offlineLimit)())),r.ZP.gt(n.Z.offlineTime,0)&&(()=>void 0!==n.Z.devSpeed&&null!==n.Z.devSpeed&&n.Z.devSpeed[Symbol.for("!==")]?n.Z.devSpeed[Symbol.for("!==")](0):0!==n.Z.devSpeed)()){const e=r.ZP.div(n.Z.offlineTime,10).max(o);n.Z.offlineTime=r.ZP.sub(n.Z.offlineTime,e),o=o.add(e)}else 0===n.Z.devSpeed&&(n.Z.offlineTime=r.ZP.add(n.Z.offlineTime,o));((()=>void 0!==n.Z.offlineProd&&null!==n.Z.offlineProd&&n.Z.offlineProd[Symbol.for("!")]?n.Z.offlineProd[Symbol.for("!")]():!n.Z.offlineProd)()||r.ZP.lt(n.Z.offlineTime,0))&&(n.Z.offlineTime=null)}o=r.ZP.min(o,l.maxTickLength),(()=>void 0!==n.Z.devSpeed&&null!==n.Z.devSpeed&&n.Z.devSpeed[Symbol.for("!=")]?n.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=n.Z.devSpeed)()&&(o=o.times(n.Z.devSpeed)),o.eq(0)||(n.Z.timePlayed=r.ZP.add(n.Z.timePlayed,o),m.emit("update",o,t),a.ZP.unthrottled?(requestAnimationFrame(y),(()=>void 0!==u&&null!==u&&u[Symbol.for("!=")]?u[Symbol.for("!=")](null):null!=u)()&&(clearInterval(u),u=null)):(()=>void 0!==u&&null!==u&&u[Symbol.for("==")]?u[Symbol.for("==")](null):null==u)()&&(u=setInterval(y,50)))}}async function c(){f=(await Promise.resolve().then(t.bind(t,8097))).hasWon,a.ZP.unthrottled?requestAnimationFrame(y):u=setInterval(y,50)}},4061:function(e,o,t){"use strict";t.d(o,{ax:function(){return u}});var l=t(7302),r=t(9706),i=t(3273),n=t(3577),a=t(4865);const s=Symbol("PersistentState"),m=Symbol("DefaultValue");function u(e){const o=(0,a.isRef)(e)?e:(0,a.ref)(e);return o[s]=o,o[m]=(0,a.isRef)(e)?e.value:e,o}l.globalBus.on("addLayer",((e,o)=>{const t=[],l=(e,u=[])=>{let f=!1;return Object.keys(e).forEach((y=>{const c=e[y];if(c&&"object"===typeof c)if((()=>void 0!==s&&null!==s&&s[Symbol.for("in")]?s[Symbol.for("in")](c):s in c)()){f=!0;const e=u.reduce(((e,o)=>((()=>o in e!==void 0&&o in e!==null&&(o in e)[Symbol.for("!")]?(o in e)[Symbol.for("!")]():!(o in e))()&&(e[o]={}),e[o])),o),t=e[y];e[y]=c[s],(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](null):null!=t)()?e[y].value=t:e[y].value=c[m]}else if((()=>c instanceof r.ZP!==void 0&&c instanceof r.ZP!==null&&(c instanceof r.ZP)[Symbol.for("!")]?(c instanceof r.ZP)[Symbol.for("!")]():!(c instanceof r.ZP))()&&(()=>void 0!==(0,a.isRef)(c)&&null!==(0,a.isRef)(c)&&(0,a.isRef)(c)[Symbol.for("!")]?(0,a.isRef)(c)[Symbol.for("!")]():!(0,a.isRef)(c))()&&(()=>void 0!==t.includes(c)&&null!==t.includes(c)&&t.includes(c)[Symbol.for("!")]?t.includes(c)[Symbol.for("!")]():!t.includes(c))()){"symbol"===typeof c.type&&t.push(c);const o=l(c,[...u,y]);o&&((0,n.kJ)(c)&&(()=>void 0!==(0,n.kJ)(e)&&null!==(0,n.kJ)(e)&&(0,n.kJ)(e)[Symbol.for("!")]?(0,n.kJ)(e)[Symbol.for("!")]():!(0,n.kJ)(e))()?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",(()=>void 0!==i.Le&&null!==i.Le&&i.Le[Symbol.for("in")]?i.Le[Symbol.for("in")](e):i.Le in e)()?e[i.Le]:e,y):f=!0)}})),f};l(e)}))},5967:function(e,o,t){"use strict";t.d(o,{U:function(){return m}});var l=t(9706),r=t(1349),i=t(3273),n=t(4865),a=t(3032);const s=(0,n.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:new l.ZP(0),keepGoing:!1,modID:"",modVersion:"",layers:{}});function m(e){return JSON.stringify(e,((e,o)=>(0,n.unref)(o)))}const u={get(e,o){if(o===i.Le||o===i.c4)return e[o];const t=e[i.Le][o];if((()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")]("value"):"value"!==o)()&&(0,r.PO)(t)&&(()=>t instanceof l.ZP!==void 0&&t instanceof l.ZP!==null&&(t instanceof l.ZP)[Symbol.for("!")]?(t instanceof l.ZP)[Symbol.for("!")]():!(t instanceof l.ZP))()){if((()=>void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](e[o]?.[i.Le]):t!==e[o]?.[i.Le])()){const l=[...e[i.c4],o];e[o]=new Proxy({[i.Le]:t,[i.c4]:l},u)}return e[o]}return t},set(e,o,t,r){if((()=>void 0!==a.Z.hasNaN&&null!==a.Z.hasNaN&&a.Z.hasNaN[Symbol.for("!")]?a.Z.hasNaN[Symbol.for("!")]():!a.Z.hasNaN)()&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))){const t=e[i.Le][o];if((()=>void 0!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof l.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag))))())throw s.autosave=!1,a.Z.hasNaN=!0,a.Z.NaNPath=[...e[i.c4],o],a.Z.NaNReceiver=r,console.error("Attempted to set NaN value",[...e[i.c4],o],e[i.Le]),"Attempted to set NaN value. See above for details"}return e[i.Le][o]=t,!0},ownKeys(e){return Reflect.ownKeys(e[i.Le])},has(e,o){return Reflect.has(e[i.Le],o)},getOwnPropertyDescriptor(e,o){return Object.getOwnPropertyDescriptor(e[i.Le],o)}};o["Z"]=window.player=new Proxy({[i.Le]:s,[i.c4]:["player"]},u)},9266:function(e,o,t){"use strict";t.d(o,{ri:function(){return m},V$:function(){return u}});var l=t(2345),r=t(1037),i=t(7302),n=t(463),a=t(4865);const s=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:r.b.Nordic,unthrottled:!1});function m(){try{const e=localStorage.getItem(l.id);if((()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](""):""!==e)()){const o=JSON.parse(decodeURIComponent(escape(atob(e))));"object"===typeof o&&Object.assign(s,o)}i.globalBus.emit("loadSettings",s)}catch{}}(0,a.watch)(s,(e=>localStorage.setItem(l.id,btoa(unescape(encodeURIComponent(JSON.stringify(e)))))),{deep:!0}),o["ZP"]=window.settings=s;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:r.b.Nordic};i.globalBus.emit("loadSettings",e),Object.assign(s,e),(0,n.y6)()};const u=(0,a.reactive)([])},3032:function(e,o,t){"use strict";var l=t(4865);o["Z"]=window.state=(0,l.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},1008:function(e,o,t){"use strict";t.d(o,{Z:function(){return O}});var l=t(2482);t(1703);let r,i,n,a,s,m,u,f,y,c,d;const b=17,h=9e15,S=Math.log10(9e15),g=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15)(),v=308,p=(()=>324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324)(),N=5,k=!0,M=!1,V=function(){const e=[];for(let t=(()=>void 0!==p&&null!==p&&p[Symbol.for("+")]?p[Symbol.for("+")](1):p+1)();(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](v):t<=v)();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("postfix-increment")]?t[Symbol.for("postfix-increment")]():t++)())e.push(Number((()=>"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](t):"1e"+t)()));const o=323;return function(t){return e[(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](o):t+o)()]}}(),w=[2,Math.E,3,4,5,6,7,8,9,10],Z=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],x=[[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025)(),(()=>.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468)(),(()=>.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978)(),(()=>.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437)(),(()=>.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869)(),(()=>.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769)(),(()=>.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494)(),(()=>.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962)(),(()=>.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014)(),(()=>.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596)(),(()=>.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634)(),(()=>.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664)(),(()=>.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117)(),(()=>.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768)(),(()=>.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755)(),(()=>.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866)(),(()=>.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141)(),(()=>.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203)(),(()=>.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391)(),(()=>.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454)(),(()=>.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545)(),(()=>.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083)(),(()=>.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615)(),(()=>.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894)(),(()=>.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535)(),(()=>.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964)(),(()=>.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455)(),(()=>.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509)(),(()=>.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134)(),(()=>.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966)(),(()=>.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552)(),(()=>.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526)(),(()=>.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064)(),(()=>.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243)(),(()=>.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552)(),(()=>.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841)(),(()=>.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936)(),(()=>.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424)(),(()=>.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147)(),(()=>.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467)(),(()=>.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346)(),(()=>.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886)(),(()=>.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064)(),(()=>.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926)(),(()=>.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314)(),(()=>.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232)(),(()=>.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858)(),(()=>.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259)(),(()=>.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583)(),(()=>.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209)(),(()=>.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752)(),(()=>.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787)(),(()=>.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956)(),(()=>.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963)(),(()=>.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518)(),(()=>.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619)(),(()=>.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649)(),(()=>.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081)(),(()=>.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548)(),(()=>.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242)(),(()=>.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167)(),(()=>.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456)(),(()=>.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863)(),(()=>.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109)(),(()=>.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213)(),(()=>.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306)(),(()=>.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293)(),(()=>.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807)(),(()=>.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678)(),(()=>.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695)(),(()=>.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688)(),(()=>.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652)(),(()=>.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083)(),0],[(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),(()=>.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857)(),(()=>.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535)(),(()=>.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322)(),(()=>.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696)(),(()=>.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922)(),(()=>.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767)(),(()=>.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622)(),(()=>.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268)(),(()=>.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186)(),0]],C=function(e){return O.fromValue_noAlloc(e)},E=function(e,o,t){return O.fromComponents(e,o,t)},B=function(e,o,t){return O.fromComponents_noNormalize(e,o,t)},I=function(e,o){const t=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),l=Math.ceil(Math.log10(Math.abs(e))),r=(()=>void 0!==Math.round(e*Math.pow(10,t-l))&&null!==Math.round(e*Math.pow(10,t-l))&&Math.round(e*Math.pow(10,t-l))[Symbol.for("*")]?Math.round(e*Math.pow(10,t-l))[Symbol.for("*")](Math.pow(10,l-t)):Math.round(e*Math.pow(10,t-l))*Math.pow(10,l-t))();return parseFloat(r.toFixed(Math.max((()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](l):t-l)(),0)))},P=function(e){return(()=>void 0!==Math.sign(e)&&null!==Math.sign(e)&&Math.sign(e)[Symbol.for("*")]?Math.sign(e)[Symbol.for("*")](Math.log10(Math.abs(e))):Math.sign(e)*Math.log10(Math.abs(e)))()},F=function(e){if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))())return e;if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](-50):e<-50)())return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let o=1;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)())o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](e):o*e)(),(()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})();e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)();let t=.9189385332046727;t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")]((e+.5)*Math.log(e)):t+(e+.5)*Math.log(e))(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();const l=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let r=e;return t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(12*r)):t+1/(12*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(360*r)):t+1/(360*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1260*r)):t+1/(1260*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1680*r)):t+1/(1680*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](1/(1188*r)):t+1/(1188*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](691/(360360*r)):t+691/(360360*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](7/(1092*r)):t+7/(1092*r))(),r=(()=>void 0!==r&&null!==r&&r[Symbol.for("*")]?r[Symbol.for("*")](l):r*l)(),t=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](3617/(122400*r)):t+3617/(122400*r))(),(()=>void 0!==Math.exp(t)&&null!==Math.exp(t)&&Math.exp(t)[Symbol.for("/")]?Math.exp(t)[Symbol.for("/")](o):Math.exp(t)/o)()},T=.5671432904097838,D=function(e,o=1e-10){let t,l;if((()=>void 0!==Number.isFinite(e)&&null!==Number.isFinite(e)&&Number.isFinite(e)[Symbol.for("!")]?Number.isFinite(e)[Symbol.for("!")]():!Number.isFinite(e))())return e;if(0===e)return e;if(1===e)return T;t=(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](10):e<10)()?0:(()=>void 0!==Math.log(e)&&null!==Math.log(e)&&Math.log(e)[Symbol.for("-")]?Math.log(e)[Symbol.for("-")](Math.log(Math.log(e))):Math.log(e)-Math.log(Math.log(e)))();for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](100):r<100)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(l=(()=>e*Math.exp(-t)+t*t!==void 0&&e*Math.exp(-t)+t*t!==null&&(e*Math.exp(-t)+t*t)[Symbol.for("/")]?(e*Math.exp(-t)+t*t)[Symbol.for("/")](t+1):(e*Math.exp(-t)+t*t)/(t+1))(),(()=>void 0!==Math.abs(l-t)&&null!==Math.abs(l-t)&&Math.abs(l-t)[Symbol.for("<")]?Math.abs(l-t)[Symbol.for("<")](o*Math.abs(l)):Math.abs(l-t)<o*Math.abs(l))())return l;t=l}throw Error(`Iteration failed to converge: ${e.toString()}`)};function _(e,o=1e-10){let t,l,r,i;if((()=>void 0!==Number.isFinite(e.mag)&&null!==Number.isFinite(e.mag)&&Number.isFinite(e.mag)[Symbol.for("!")]?Number.isFinite(e.mag)[Symbol.for("!")]():!Number.isFinite(e.mag))())return e;if(e===O.dZero)return e;if(e===O.dOne)return C(T);O.abs(e);t=O.ln(e);for(let n=0;(()=>void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](100):n<100)();(()=>void 0!==n&&null!==n&&"object"===typeof n&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n)()){if(l=O.exp((()=>void 0!==t&&null!==t&&t[Symbol.for("minus")]?t[Symbol.for("minus")]():-t)()),r=t.sub(e.mul(l)),i=t.sub(r.div(t.add(1).sub(t.add(2).mul(r).div(O.mul(2,t).add(2))))),O.abs(i.sub(t)).lt(O.abs(i).mul(o)))return i;t=i}throw Error(`Iteration failed to converge: ${e.toString()}`)}r=Symbol.for("+"),i=Symbol.for("-"),n=Symbol.for("*"),a=Symbol.for("/"),s=Symbol.for("minus"),m=Symbol.for("=="),u=Symbol.for(">"),f=Symbol.for("<"),y=Symbol.for(">="),c=Symbol.for("<="),d=Symbol.for("!=");class O{constructor(e){(0,l.Z)(this,"sign",Number.NaN),(0,l.Z)(this,"mag",Number.NaN),(0,l.Z)(this,"layer",Number.NaN),e instanceof O||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0)}get m(){if(0===this.sign)return 0;if(0===this.layer){const e=Math.floor(Math.log10(this.mag));let o;return o=5e-324===this.mag?5:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("/")]?this.mag[Symbol.for("/")](V(e)):this.mag/V(e))(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o):this.sign*o)()}if(1===this.layer){const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](Math.floor(this.mag)):this.mag-Math.floor(this.mag))();return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,e)):this.sign*Math.pow(10,e))()}return this.sign}set m(e){(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](2):this.layer<=2)()?this.fromMantissaExponent(e,this.e):(this.sign=Math.sign(e),0===this.sign&&(this.layer,this.exponent))}get e(){return 0===this.sign?0:0===this.layer?Math.floor(Math.log10(this.mag)):1===this.layer?Math.floor(this.mag):2===this.layer?Math.floor((()=>void 0!==Math.sign(this.mag)&&null!==Math.sign(this.mag)&&Math.sign(this.mag)[Symbol.for("*")]?Math.sign(this.mag)[Symbol.for("*")](Math.pow(10,Math.abs(this.mag))):Math.sign(this.mag)*Math.pow(10,Math.abs(this.mag)))()):(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("*")]?this.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):this.mag*Number.POSITIVE_INFINITY)()}set e(e){this.fromMantissaExponent(this.m,e)}get s(){return this.sign}set s(e){0===e?(this.sign=0,this.layer=0,this.mag=0):this.sign=e}get mantissa(){return this.m}set mantissa(e){this.m=e}get exponent(){return this.e}set exponent(e){this.e=e}static fromComponents(e,o,t){return(new O).fromComponents(e,o,t)}static fromComponents_noNormalize(e,o,t){return(new O).fromComponents_noNormalize(e,o,t)}static fromMantissaExponent(e,o){return(new O).fromMantissaExponent(e,o)}static fromMantissaExponent_noNormalize(e,o){return(new O).fromMantissaExponent_noNormalize(e,o)}static fromDecimal(e){return(new O).fromDecimal(e)}static fromNumber(e){return(new O).fromNumber(e)}static fromString(e){return(new O).fromString(e)}static fromValue(e){return(new O).fromValue(e)}static fromValue_noAlloc(e){return e instanceof O?e:new O(e)}static abs(e){return C(e).abs()}static neg(e){return C(e).neg()}static negate(e){return C(e).neg()}static negated(e){return C(e).neg()}static sign(e){return C(e).sign}static sgn(e){return C(e).sign}static round(e){return C(e).round()}static floor(e){return C(e).floor()}static ceil(e){return C(e).ceil()}static trunc(e){return C(e).trunc()}static add(e,o){return C(e).add(o)}static plus(e,o){return C(e).add(o)}static sub(e,o){return C(e).sub(o)}static subtract(e,o){return C(e).sub(o)}static minus(e,o){return C(e).sub(o)}static mul(e,o){return C(e).mul(o)}static multiply(e,o){return C(e).mul(o)}static times(e,o){return C(e).mul(o)}static div(e,o){return C(e).div(o)}static divide(e,o){return C(e).div(o)}static recip(e){return C(e).recip()}static reciprocal(e){return C(e).recip()}static reciprocate(e){return C(e).reciprocate()}static cmp(e,o){return C(e).cmp(o)}static cmpabs(e,o){return C(e).cmpabs(o)}static compare(e,o){return C(e).cmp(o)}static isNaN(e){return e=C(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag)}static isFinite(e){return e=C(e),isFinite(e.sign)&&isFinite(e.layer)&&isFinite(e.mag)}static eq(e,o){return C(e).eq(o)}static equals(e,o){return C(e).eq(o)}static neq(e,o){return C(e).neq(o)}static notEquals(e,o){return C(e).notEquals(o)}static lt(e,o){return C(e).lt(o)}static lte(e,o){return C(e).lte(o)}static gt(e,o){return C(e).gt(o)}static gte(e,o){return C(e).gte(o)}static max(e,o){return C(e).max(o)}static min(e,o){return C(e).min(o)}static minabs(e,o){return C(e).minabs(o)}static maxabs(e,o){return C(e).maxabs(o)}static clamp(e,o,t){return C(e).clamp(o,t)}static clampMin(e,o){return C(e).clampMin(o)}static clampMax(e,o){return C(e).clampMax(o)}static cmp_tolerance(e,o,t){return C(e).cmp_tolerance(o,t)}static compare_tolerance(e,o,t){return C(e).cmp_tolerance(o,t)}static eq_tolerance(e,o,t){return C(e).eq_tolerance(o,t)}static equals_tolerance(e,o,t){return C(e).eq_tolerance(o,t)}static neq_tolerance(e,o,t){return C(e).neq_tolerance(o,t)}static notEquals_tolerance(e,o,t){return C(e).notEquals_tolerance(o,t)}static lt_tolerance(e,o,t){return C(e).lt_tolerance(o,t)}static lte_tolerance(e,o,t){return C(e).lte_tolerance(o,t)}static gt_tolerance(e,o,t){return C(e).gt_tolerance(o,t)}static gte_tolerance(e,o,t){return C(e).gte_tolerance(o,t)}static pLog10(e){return C(e).pLog10()}static absLog10(e){return C(e).absLog10()}static log10(e){return C(e).log10()}static log(e,o){return C(e).log(o)}static log2(e){return C(e).log2()}static ln(e){return C(e).ln()}static logarithm(e,o){return C(e).logarithm(o)}static pow(e,o){return C(e).pow(o)}static pow10(e){return C(e).pow10()}static root(e,o){return C(e).root(o)}static factorial(e,o){return C(e).factorial()}static gamma(e,o){return C(e).gamma()}static lngamma(e,o){return C(e).lngamma()}static exp(e){return C(e).exp()}static sqr(e){return C(e).sqr()}static sqrt(e){return C(e).sqrt()}static cube(e){return C(e).cube()}static cbrt(e){return C(e).cbrt()}static tetrate(e,o=2,t=B(1,0,1)){return C(e).tetrate(o,t)}static iteratedexp(e,o=2,t=B(1,0,1)){return C(e).iteratedexp(o,t)}static iteratedlog(e,o=10,t=1){return C(e).iteratedlog(o,t)}static layeradd10(e,o){return C(e).layeradd10(o)}static layeradd(e,o,t=10){return C(e).layeradd(o,t)}static slog(e,o=10){return C(e).slog(o)}static lambertw(e){return C(e).lambertw()}static ssqrt(e){return C(e).ssqrt()}static pentate(e,o=2,t=B(1,0,1)){return C(e).pentate(o,t)}static affordGeometricSeries(e,o,t,l){return this.affordGeometricSeries_core(C(e),C(o),C(t),l)}static sumGeometricSeries(e,o,t,l){return this.sumGeometricSeries_core(e,C(o),C(t),l)}static affordArithmeticSeries(e,o,t,l){return this.affordArithmeticSeries_core(C(e),C(o),C(t),C(l))}static sumArithmeticSeries(e,o,t,l){return this.sumArithmeticSeries_core(C(e),C(o),C(t),C(l))}static efficiencyOfPurchase(e,o,t){return this.efficiencyOfPurchase_core(C(e),C(o),C(t))}static randomDecimalForTesting(e){if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return B(0,0,0);const o=(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5)()?1:(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();if((()=>20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1)())return B(o,0,1);const t=Math.floor((()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](e+1):Math.random()*(e+1))());let l=0===t?(()=>616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308)():(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random())();(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(l=Math.trunc(l));let r=Math.pow(10,l);return(()=>void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9)()&&(r=Math.trunc(r)),E(o,t,r)}static affordGeometricSeries_core(e,o,t,l){const r=o.mul(t.pow(l));return O.floor(e.div(r).mul(t.sub(1)).add(1).log10().div(t.log10()))}static sumGeometricSeries_core(e,o,t,l){return o.mul(t.pow(l)).mul(O.sub(1,t.pow(e))).div(O.sub(1,t))}static affordArithmeticSeries_core(e,o,t,l){const r=o.add(l.mul(t)),i=r.sub(t.div(2)),n=i.pow(2);return i.neg().add(n.add(t.mul(e).mul(2)).sqrt()).div(t).floor()}static sumArithmeticSeries_core(e,o,t,l){const r=o.add(l.mul(t));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(t)))}static efficiencyOfPurchase_core(e,o,t){return e.div(o).add(e.div(t))}[r](e){return this.add(e)}[i](e){return this.sub(e)}[n](e){return this.times(e)}[a](e){return this.div(e)}[s](){return this.neg()}[m](e){return this.eq(e)}[u](e){return this.gt(e)}[f](e){return this.lt(e)}[y](e){return this.gte(e)}[c](e){return this.lte(e)}[d](e){return this.neq(e)}normalize(){if(0===this.sign||0===this.mag&&0===this.layer)return this.sign=0,this.mag=0,this.layer=0,this;if(0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()&&(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()),0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](g):this.mag<g)())return this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),o=Math.sign(this.mag);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](h):e>=h)())return this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(e)):o*Math.log10(e))(),this;while((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](S):e<S)()&&(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)())this.layer=(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,e)):o*Math.pow(10,e))(),e=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?(this.mag=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)(),this.sign=(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)()):0===this.mag&&(this.sign=0)),this}fromComponents(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this.normalize(),this}fromComponents_noNormalize(e,o,t){return this.sign=e,this.layer=o,this.mag=t,this}fromMantissaExponent(e,o){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](Math.log10(e)):o+Math.log10(e))(),this.normalize(),this}fromMantissaExponent_noNormalize(e,o){return this.fromMantissaExponent(e,o),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){k?e=e.replace(",",""):M&&(e=e.replace(",","."));const o=e.split("^^^");if(2===o.length){const e=parseFloat(o[0]),t=parseFloat(o[1]),l=o[1].split(";");let r=1;if(2===l.length&&(r=parseFloat(l[1]),(()=>void 0!==isFinite(r)&&null!==isFinite(r)&&isFinite(r)[Symbol.for("!")]?isFinite(r)[Symbol.for("!")]():!isFinite(r))()&&(r=1)),isFinite(e)&&isFinite(t)){const o=O.pentate(e,t,r);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const t=e.split("^^");if(2===t.length){const e=parseFloat(t[0]),o=parseFloat(t[1]),l=t[1].split(";");let r=1;if(2===l.length&&(r=parseFloat(l[1]),(()=>void 0!==isFinite(r)&&null!==isFinite(r)&&isFinite(r)[Symbol.for("!")]?isFinite(r)[Symbol.for("!")]():!isFinite(r))()&&(r=1)),isFinite(e)&&isFinite(o)){const t=O.tetrate(e,o,r);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}const l=e.split("^");if(2===l.length){const e=parseFloat(l[0]),o=parseFloat(l[1]);if(isFinite(e)&&isFinite(o)){const t=O.pow(e,o);return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this}}let r,i;e=e.trim().toLowerCase();let n=e.split("pt");if(2===n.length){r=10,i=parseFloat(n[0]),n[1]=n[1].replace("(",""),n[1]=n[1].replace(")","");let e=parseFloat(n[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(r)&&isFinite(i)){const o=O.tetrate(r,i,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}if(n=e.split("p"),2===n.length){r=10,i=parseFloat(n[0]),n[1]=n[1].replace("(",""),n[1]=n[1].replace(")","");let e=parseFloat(n[1]);if((()=>void 0!==isFinite(e)&&null!==isFinite(e)&&isFinite(e)[Symbol.for("!")]?isFinite(e)[Symbol.for("!")]():!isFinite(e))()&&(e=1),isFinite(r)&&isFinite(i)){const o=O.tetrate(r,i,e);return this.sign=o.sign,this.layer=o.layer,this.mag=o.mag,this}}const a=e.split("e"),s=(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)();if(0===s){const o=parseFloat(e);if(isFinite(o))return this.fromNumber(o)}else if(1===s){const o=parseFloat(e);if(isFinite(o)&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)())return this.fromNumber(o)}const m=e.split("e^");if(2===m.length){this.sign=1,(()=>void 0!==m[0].charAt(0)&&null!==m[0].charAt(0)&&m[0].charAt(0)[Symbol.for("==")]?m[0].charAt(0)[Symbol.for("==")]("-"):"-"==m[0].charAt(0))()&&(this.sign=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());let e="";for(let o=0;(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](m[1].length):o<m[1].length)();(()=>void 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("prefix-increment")]?o[Symbol.for("prefix-increment")]():++o)()){const t=m[1].charCodeAt(o);if(!((()=>void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](43):t>=43)()&&(()=>void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](57):t<=57)()||101===t))return this.layer=parseFloat(e),this.mag=parseFloat(m[1].substr((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)())),this.normalize(),this;e=(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](m[1].charAt(o)):e+m[1].charAt(o))()}}if((()=>void 0!==s&&null!==s&&s[Symbol.for("<")]?s[Symbol.for("<")](1):s<1)())return this.sign=0,this.layer=0,this.mag=0,this;const u=parseFloat(a[0]);if(0===u)return this.sign=0,this.layer=0,this.mag=0,this;let f=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](1):a.length-1)()]);if((()=>void 0!==s&&null!==s&&s[Symbol.for(">=")]?s[Symbol.for(">=")](2):s>=2)()){const e=parseFloat(a[(()=>void 0!==a.length&&null!==a.length&&a.length[Symbol.for("-")]?a.length[Symbol.for("-")](2):a.length-2)()]);isFinite(e)&&(f=(()=>void 0!==f&&null!==f&&f[Symbol.for("*")]?f[Symbol.for("*")](Math.sign(e)):f*Math.sign(e))(),f=(()=>void 0!==f&&null!==f&&f[Symbol.for("+")]?f[Symbol.for("+")](P(e)):f+P(e))())}if((()=>void 0!==isFinite(u)&&null!==isFinite(u)&&isFinite(u)[Symbol.for("!")]?isFinite(u)[Symbol.for("!")]():!isFinite(u))())this.sign="-"===a[0]?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():1,this.layer=s,this.mag=f;else if(1===s)this.sign=Math.sign(u),this.layer=1,this.mag=(()=>void 0!==f&&null!==f&&f[Symbol.for("+")]?f[Symbol.for("+")](Math.log10(Math.abs(u))):f+Math.log10(Math.abs(u)))();else{if(this.sign=Math.sign(u),this.layer=s,2===s){const e=O.mul(E(1,2,f),C(u));return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}this.mag=f}return this.normalize(),this}fromValue(e){return e instanceof O||(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&"object"===typeof e&&(()=>"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](e):"sign"in e)()&&(()=>"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](e):"mag"in e)()&&(()=>"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](e):"layer"in e)()?this.fromDecimal(e):"number"===typeof e?this.fromNumber(e):"string"===typeof e?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return(()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()?Number.NaN:0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)():1===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.pow(10,this.mag)):this.sign*Math.pow(10,this.mag))():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](0):this.sign>0)()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:0===this.m?0:I(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:0===this.mag?0:I(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?1===this.sign?"Infinity":"-Infinity":0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toString():(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():1===this.layer?(()=>this.m+"e"!==void 0&&this.m+"e"!==null&&(this.m+"e")[Symbol.for("+")]?(this.m+"e")[Symbol.for("+")](this.e):this.m+"e"+this.e)():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](N):this.layer<=N)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"e".repeat(this.layer)+this.mag)():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](this.mag):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+this.mag)()}toExponential(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return 0===this.layer?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return(()=>void 0!==this.e&&null!==this.e&&this.e[Symbol.for("<=")]?this.e[Symbol.for("<=")](-7):this.e<=-7)()?this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)()):(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](this.e):e>this.e)()?this.toFixed((()=>e-this.exponent!==void 0&&e-this.exponent!==null&&(e-this.exponent)[Symbol.for("-")]?(e-this.exponent)[Symbol.for("-")](1):e-this.exponent-1)()):this.toExponential((()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1)())}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return 0===this.layer?(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](1e21):this.mag<1e21)()&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](1e-7):this.mag>1e-7)()||0===this.mag?(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)().toFixed(e):(()=>I(this.m,e)+"e"!==void 0&&I(this.m,e)+"e"!==null&&(I(this.m,e)+"e")[Symbol.for("+")]?(I(this.m,e)+"e")[Symbol.for("+")](I(this.e,e)):I(this.m,e)+"e"+I(this.e,e))():1===this.layer?(()=>I(this.m,e)+"e"!==void 0&&I(this.m,e)+"e"!==null&&(I(this.m,e)+"e")[Symbol.for("+")]?(I(this.m,e)+"e")[Symbol.for("+")](I(this.e,e)):I(this.m,e)+"e"+I(this.e,e))():(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<=")]?this.layer[Symbol.for("<=")](N):this.layer<=N)()?(()=>(-1===this.sign?"-":"")+"e".repeat(this.layer)!==void 0&&(-1===this.sign?"-":"")+"e".repeat(this.layer)!==null&&((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")]?((-1===this.sign?"-":"")+"e".repeat(this.layer))[Symbol.for("+")](I(this.mag,e)):(-1===this.sign?"-":"")+"e".repeat(this.layer)+I(this.mag,e))():(()=>(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==void 0&&(-1===this.sign?"-":"")+"(e^"+this.layer+")"!==null&&((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")]?((-1===this.sign?"-":"")+"(e^"+this.layer+")")[Symbol.for("+")](I(this.mag,e)):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+I(this.mag,e))()}abs(){return B(0===this.sign?0:1,this.layer,this.mag)}neg(){return B((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("minus")]?this.sign[Symbol.for("minus")]():-this.sign)(),this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dZero:0===this.layer?E(this.sign,0,Math.round(this.mag)):this}floor(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dZero:0===this.layer?E(this.sign,0,Math.floor(this.mag)):this}ceil(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dZero:0===this.layer?E(this.sign,0,Math.ceil(this.mag)):this}trunc(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dZero:0===this.layer?E(this.sign,0,Math.trunc(this.mag)):this}add(e){const o=C(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign)return o;if(0===o.sign)return this;if(this.sign===(()=>void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("minus")]?o.sign[Symbol.for("minus")]():-o.sign)()&&this.layer===o.layer&&this.mag===o.mag)return B(0,0,0);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](2):this.layer>=2)()||(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](2):o.layer>=2)())return this.maxabs(o);if((()=>void 0!==O.cmpabs(this,o)&&null!==O.cmpabs(this,o)&&O.cmpabs(this,o)[Symbol.for(">")]?O.cmpabs(this,o)[Symbol.for(">")](0):O.cmpabs(this,o)>0)()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return C((()=>t.sign*t.mag!==void 0&&t.sign*t.mag!==null&&(t.sign*t.mag)[Symbol.for("+")]?(t.sign*t.mag)[Symbol.for("+")](l.sign*l.mag):t.sign*t.mag+l.sign*l.mag)());const r=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("*")]?t.layer[Symbol.for("*")](Math.sign(t.mag)):t.layer*Math.sign(t.mag))(),i=(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("*")]?l.layer[Symbol.for("*")](Math.sign(l.mag)):l.layer*Math.sign(l.mag))();if((()=>r-i!==void 0&&r-i!==null&&(r-i)[Symbol.for(">=")]?(r-i)[Symbol.for(">=")](2):r-i>=2)())return t;if(0===r&&i===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()){if((()=>void 0!==Math.abs(l.mag-Math.log10(t.mag))&&null!==Math.abs(l.mag-Math.log10(t.mag))&&Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")]?Math.abs(l.mag-Math.log10(t.mag))[Symbol.for(">")](b):Math.abs(l.mag-Math.log10(t.mag))>b)())return t;{const e=Math.pow(10,(()=>void 0!==Math.log10(t.mag)&&null!==Math.log10(t.mag)&&Math.log10(t.mag)[Symbol.for("-")]?Math.log10(t.mag)[Symbol.for("-")](l.mag):Math.log10(t.mag)-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return E(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}if(1===r&&0===i){if((()=>void 0!==Math.abs(t.mag-Math.log10(l.mag))&&null!==Math.abs(t.mag-Math.log10(l.mag))&&Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")]?Math.abs(t.mag-Math.log10(l.mag))[Symbol.for(">")](b):Math.abs(t.mag-Math.log10(l.mag))>b)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](Math.log10(l.mag)):t.mag-Math.log10(l.mag))()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return E(Math.sign(o),1,(()=>void 0!==Math.log10(l.mag)&&null!==Math.log10(l.mag)&&Math.log10(l.mag)[Symbol.for("+")]?Math.log10(l.mag)[Symbol.for("+")](Math.log10(Math.abs(o))):Math.log10(l.mag)+Math.log10(Math.abs(o)))())}}if((()=>void 0!==Math.abs(t.mag-l.mag)&&null!==Math.abs(t.mag-l.mag)&&Math.abs(t.mag-l.mag)[Symbol.for(">")]?Math.abs(t.mag-l.mag)[Symbol.for(">")](b):Math.abs(t.mag-l.mag)>b)())return t;{const e=Math.pow(10,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("-")]?t.mag[Symbol.for("-")](l.mag):t.mag-l.mag)()),o=(()=>void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("+")]?l.sign[Symbol.for("+")](t.sign*e):l.sign+t.sign*e)();return E(Math.sign(o),1,(()=>void 0!==l.mag&&null!==l.mag&&l.mag[Symbol.for("+")]?l.mag[Symbol.for("+")](Math.log10(Math.abs(o))):l.mag+Math.log10(Math.abs(o)))())}}plus(e){return this.add(e)}sub(e){return this.add(C(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const o=C(e);if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))())return this;if((()=>void 0!==Number.isFinite(o.layer)&&null!==Number.isFinite(o.layer)&&Number.isFinite(o.layer)[Symbol.for("!")]?Number.isFinite(o.layer)[Symbol.for("!")]():!Number.isFinite(o.layer))())return o;if(0===this.sign||0===o.sign)return B(0,0,0);if(this.layer===o.layer&&this.mag===(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)())return B((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](o.sign):this.sign*o.sign)(),0,1);let t,l;if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](o.layer):this.layer>o.layer)()||(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("==")]?this.layer[Symbol.for("==")](o.layer):this.layer==o.layer)()&&(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for(">")]?Math.abs(this.mag)[Symbol.for(">")](Math.abs(o.mag)):Math.abs(this.mag)>Math.abs(o.mag))()?(t=this,l=o):(t=o,l=this),0===t.layer&&0===l.layer)return C((()=>t.sign*l.sign*t.mag!==void 0&&t.sign*l.sign*t.mag!==null&&(t.sign*l.sign*t.mag)[Symbol.for("*")]?(t.sign*l.sign*t.mag)[Symbol.for("*")](l.mag):t.sign*l.sign*t.mag*l.mag)());if((()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](3):t.layer>=3)()||(()=>t.layer-l.layer!==void 0&&t.layer-l.layer!==null&&(t.layer-l.layer)[Symbol.for(">=")]?(t.layer-l.layer)[Symbol.for(">=")](2):t.layer-l.layer>=2)())return E((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),t.layer,t.mag);if(1===t.layer&&0===l.layer)return E((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](Math.log10(l.mag)):t.mag+Math.log10(l.mag))());if(1===t.layer&&1===l.layer)return E((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),1,(()=>void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("+")]?t.mag[Symbol.for("+")](l.mag):t.mag+l.mag)());if(2===t.layer&&1===l.layer){const e=E(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(E(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return E((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}if(2===t.layer&&2===l.layer){const e=E(Math.sign(t.mag),(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](1):t.layer-1)(),Math.abs(t.mag)).add(E(Math.sign(l.mag),(()=>void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("-")]?l.layer[Symbol.for("-")](1):l.layer-1)(),Math.abs(l.mag)));return E((()=>void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("*")]?t.sign[Symbol.for("*")](l.sign):t.sign*l.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)())}throw Error((()=>"Bad arguments to mul: "+this+", "!==void 0&&"Bad arguments to mul: "+this+", "!==null&&("Bad arguments to mul: "+this+", ")[Symbol.for("+")]?("Bad arguments to mul: "+this+", ")[Symbol.for("+")](e):"Bad arguments to mul: "+this+", "+e)())}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const o=C(e);return this.mul(o.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return 0===this.mag?O.dNaN:0===this.layer?E(this.sign,0,(()=>1[Symbol.for("/")]?1[Symbol.for("/")](this.mag):1/this.mag)()):E(this.sign,this.layer,(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("minus")]?this.mag[Symbol.for("minus")]():-this.mag)())}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const o=C(e);return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for(">")]?this.sign[Symbol.for(">")](o.sign):this.sign>o.sign)()?1:(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<")]?this.sign[Symbol.for("<")](o.sign):this.sign<o.sign)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.cmpabs(e)):this.sign*this.cmpabs(e))()}cmpabs(e){const o=C(e),t=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](0):this.mag>0)()?this.layer:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("minus")]?this.layer[Symbol.for("minus")]():-this.layer)(),l=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0)()?o.layer:(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer)();return(()=>void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](l):t>l)()?1:(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](l):t<l)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for(">")]?this.mag[Symbol.for(">")](o.mag):this.mag>o.mag)()?1:(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](o.mag):this.mag<o.mag)()?(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)():0}compare(e){return this.cmp(e)}isNan(){return isNaN(this.sign)||isNaN(this.layer)||isNaN(this.mag)}isFinite(){return isFinite(this.sign)&&isFinite(this.layer)&&isFinite(this.mag)}eq(e){const o=C(e);return this.sign===o.sign&&this.layer===o.layer&&this.mag===o.mag}equals(e){return this.eq(e)}neq(e){return(()=>void 0!==this.eq(e)&&null!==this.eq(e)&&this.eq(e)[Symbol.for("!")]?this.eq(e)[Symbol.for("!")]():!this.eq(e))()}notEquals(e){return this.neq(e)}lt(e){return this.cmp(e)===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()}lte(e){return(()=>void 0!==this.gt(e)&&null!==this.gt(e)&&this.gt(e)[Symbol.for("!")]?this.gt(e)[Symbol.for("!")]():!this.gt(e))()}gt(e){return 1===this.cmp(e)}gte(e){return(()=>void 0!==this.lt(e)&&null!==this.lt(e)&&this.lt(e)[Symbol.for("!")]?this.lt(e)[Symbol.for("!")]():!this.lt(e))()}max(e){const o=C(e);return this.lt(o)?o:this}min(e){const o=C(e);return this.gt(o)?o:this}maxabs(e){const o=C(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for("<")]?this.cmpabs(o)[Symbol.for("<")](0):this.cmpabs(o)<0)()?o:this}minabs(e){const o=C(e);return(()=>void 0!==this.cmpabs(o)&&null!==this.cmpabs(o)&&this.cmpabs(o)[Symbol.for(">")]?this.cmpabs(o)[Symbol.for(">")](0):this.cmpabs(o)>0)()?o:this}clamp(e,o){return this.max(e).min(o)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,o){const t=C(e);return this.eq_tolerance(t,o)?0:this.cmp(t)}compare_tolerance(e,o){return this.cmp_tolerance(e,o)}eq_tolerance(e,o){const t=C(e);if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=1e-7),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("!==")]?this.sign[Symbol.for("!==")](t.sign):this.sign!==t.sign)())return!1;if((()=>void 0!==Math.abs(this.layer-t.layer)&&null!==Math.abs(this.layer-t.layer)&&Math.abs(this.layer-t.layer)[Symbol.for(">")]?Math.abs(this.layer-t.layer)[Symbol.for(">")](1):Math.abs(this.layer-t.layer)>1)())return!1;let l=this.mag,r=t.mag;return(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](t.layer):this.layer>t.layer)()&&(r=P(r)),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("<")]?this.layer[Symbol.for("<")](t.layer):this.layer<t.layer)()&&(l=P(l)),(()=>void 0!==Math.abs(l-r)&&null!==Math.abs(l-r)&&Math.abs(l-r)[Symbol.for("<=")]?Math.abs(l-r)[Symbol.for("<=")](o*Math.max(Math.abs(l),Math.abs(r))):Math.abs(l-r)<=o*Math.max(Math.abs(l),Math.abs(r)))()}equals_tolerance(e,o){return this.eq_tolerance(e,o)}neq_tolerance(e,o){return(()=>void 0!==this.eq_tolerance(e,o)&&null!==this.eq_tolerance(e,o)&&this.eq_tolerance(e,o)[Symbol.for("!")]?this.eq_tolerance(e,o)[Symbol.for("!")]():!this.eq_tolerance(e,o))()}notEquals_tolerance(e,o){return this.neq_tolerance(e,o)}lt_tolerance(e,o){const t=C(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.lt(t)}lte_tolerance(e,o){const t=C(e);return this.eq_tolerance(t,o)||this.lt(t)}gt_tolerance(e,o){const t=C(e);return(()=>void 0!==this.eq_tolerance(t,o)&&null!==this.eq_tolerance(t,o)&&this.eq_tolerance(t,o)[Symbol.for("!")]?this.eq_tolerance(t,o)[Symbol.for("!")]():!this.eq_tolerance(t,o))()&&this.gt(t)}gte_tolerance(e,o){const t=C(e);return this.eq_tolerance(t,o)||this.gt(t)}pLog10(){return this.lt(O.dZero)?O.dZero:this.log10()}absLog10(){return 0===this.sign?O.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?E(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):E(1,0,Math.log10(this.mag))}log10(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?O.dNaN:(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">")]?this.layer[Symbol.for(">")](0):this.layer>0)()?E(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag)):E(this.sign,0,Math.log10(this.mag))}log(e){return e=C(e),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()||(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0)()||1===e.sign&&0===e.layer&&1===e.mag?O.dNaN:0===this.layer&&0===e.layer?E(this.sign,0,(()=>void 0!==Math.log(this.mag)&&null!==Math.log(this.mag)&&Math.log(this.mag)[Symbol.for("/")]?Math.log(this.mag)[Symbol.for("/")](Math.log(e.mag)):Math.log(this.mag)/Math.log(e.mag))()):O.div(this.log10(),e.log10())}log2(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?O.dNaN:0===this.layer?E(this.sign,0,Math.log2(this.mag)):1===this.layer?E(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(this.mag))()):2===this.layer?E(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.5213902276543247):Math.abs(this.mag)+.5213902276543247)()):E(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}ln(){return(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("<=")]?this.sign[Symbol.for("<=")](0):this.sign<=0)()?O.dNaN:0===this.layer?E(this.sign,0,Math.log(this.mag)):1===this.layer?E(Math.sign(this.mag),0,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("*")]?Math.abs(this.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(this.mag))()):2===this.layer?E(Math.sign(this.mag),1,(()=>void 0!==Math.abs(this.mag)&&null!==Math.abs(this.mag)&&Math.abs(this.mag)[Symbol.for("+")]?Math.abs(this.mag)[Symbol.for("+")](.36221568869946325):Math.abs(this.mag)+.36221568869946325)()):E(Math.sign(this.mag),(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const o=C(e),t=this,l=o;if(0===t.sign)return l.eq(0)?B(1,0,1):t;if(1===t.sign&&0===t.layer&&1===t.mag)return t;if(0===l.sign)return B(1,0,1);if(1===l.sign&&0===l.layer&&1===l.mag)return t;const r=t.absLog10().mul(l).pow10();return this.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()?1===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?r.neg():0===(()=>void 0!==Math.abs(l.toNumber()%2)&&null!==Math.abs(l.toNumber()%2)&&Math.abs(l.toNumber()%2)[Symbol.for("%")]?Math.abs(l.toNumber()%2)[Symbol.for("%")](2):Math.abs(l.toNumber()%2)%2)()?r:O.dNaN:r}pow10(){if((()=>void 0!==Number.isFinite(this.layer)&&null!==Number.isFinite(this.layer)&&Number.isFinite(this.layer)[Symbol.for("!")]?Number.isFinite(this.layer)[Symbol.for("!")]():!Number.isFinite(this.layer))()||(()=>void 0!==Number.isFinite(this.mag)&&null!==Number.isFinite(this.mag)&&Number.isFinite(this.mag)[Symbol.for("!")]?Number.isFinite(this.mag)[Symbol.for("!")]():!Number.isFinite(this.mag))())return O.dNaN;let e=this;if(0===e.layer){const o=Math.pow(10,(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag)());if(Number.isFinite(o)&&(()=>void 0!==Math.abs(o)&&null!==Math.abs(o)&&Math.abs(o)[Symbol.for(">=")]?Math.abs(o)[Symbol.for(">=")](.1):Math.abs(o)>=.1)())return E(1,0,o);if(0===e.sign)return O.dOne;e=B(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),Math.log10(e.mag))}return(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?E(e.sign,(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.mag):(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()&&(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0)()?E((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign)(),(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag)()):O.dOne}pow_base(e){return C(e).pow(this)}root(e){const o=C(e);return this.pow(o.recip())}factorial(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||0===this.layer?this.add(1).gamma():1===this.layer?O.exp(O.mul(this,O.ln(this).sub(1))):O.exp(this)}gamma(){if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return this.recip();if(0===this.layer){if(this.lt(B(1,0,24)))return C(F((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));const e=(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("-")]?this.mag[Symbol.for("-")](1):this.mag-1)();let o=.9189385332046727;o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e))(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e)();const t=(()=>void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e)();let l=e,r=(()=>12[Symbol.for("*")]?12[Symbol.for("*")](l):12*l)(),i=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),n=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](i):o+i)();if(n===o)return O.exp(o);if(o=n,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>360[Symbol.for("*")]?360[Symbol.for("*")](l):360*l)(),i=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),n=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i)(),n===o)return O.exp(o);o=n,l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>1260[Symbol.for("*")]?1260[Symbol.for("*")](l):1260*l)();let a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)();return o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a)(),l=(()=>void 0!==l&&null!==l&&l[Symbol.for("*")]?l[Symbol.for("*")](t):l*t)(),r=(()=>1680[Symbol.for("*")]?1680[Symbol.for("*")](l):1680*l)(),a=(()=>1[Symbol.for("/")]?1[Symbol.for("/")](r):1/r)(),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a)(),O.exp(o)}return 1===this.layer?O.exp(O.mul(this,O.ln(this).sub(1))):O.exp(this)}lngamma(){return this.gamma().ln()}exp(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dOne:0===this.layer&&(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<=")]?this.mag[Symbol.for("<=")](709.7):this.mag<=709.7)()?C(Math.exp((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):0===this.layer?E(1,1,(()=>this.sign*Math.log10(Math.E)!==void 0&&this.sign*Math.log10(Math.E)!==null&&(this.sign*Math.log10(Math.E))[Symbol.for("*")]?(this.sign*Math.log10(Math.E))[Symbol.for("*")](this.mag):this.sign*Math.log10(Math.E)*this.mag)()):1===this.layer?E(1,2,(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Math.log10(.4342944819032518)+this.mag):this.sign*(Math.log10(.4342944819032518)+this.mag))()):E(1,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("+")]?this.layer[Symbol.for("+")](1):this.layer+1)(),(()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())}sqr(){return this.pow(2)}sqrt(){if(0===this.layer)return C(Math.sqrt((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return E(1,2,(()=>void 0!==Math.log10(this.mag)&&null!==Math.log10(this.mag)&&Math.log10(this.mag)[Symbol.for("-")]?Math.log10(this.mag)[Symbol.for("-")](.3010299956639812):Math.log10(this.mag)-.3010299956639812)());{const e=O.div(B(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag),B(1,0,2));return e.layer=(()=>void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1)(),e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow((()=>1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3)())}tetrate(e=2,o=B(1,0,1)){if(1===e)return O.pow(this,o);if(0===e)return new O(o);if(this.eq(O.dOne))return O.dOne;if(this.eq((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))return O.pow(this,o);if(e===Number.POSITIVE_INFINITY){const e=this.toNumber();if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](1.444667861009766):e<=1.444667861009766)()&&(()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](.06598803584531254):e>=.06598803584531254)()){if((()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009099):e>1.444667861009099)())return new O(Math.E);const o=O.ln(this).neg();return o.lambertw().div(o)}return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](1.444667861009766):e>1.444667861009766)()?new O(Number.POSITIVE_INFINITY):O.dNaN}if(this.eq(O.dZero)){let o=Math.abs((()=>e+1!==void 0&&e+1!==null&&(e+1)[Symbol.for("%")]?(e+1)[Symbol.for("%")](2):(e+1)%2)());return(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](1):o>1)()&&(o=(()=>2[Symbol.for("-")]?2[Symbol.for("-")](o):2-o)()),new O(o)}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](0):e<0)())return O.iteratedlog(o,this,(()=>void 0!==e&&null!==e&&e[Symbol.for("minus")]?e[Symbol.for("minus")]():-e)());o=C(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();if(this.gt(O.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let t=0;(()=>void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](e):t<e)();(()=>void 0!==t&&null!==t&&"object"===typeof t&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t)()){const e=o;if(o=this.pow(o),e.eq(o))return o}if((()=>void 0!==l&&null!==l&&l[Symbol.for("!=")]?l[Symbol.for("!=")](0):0!=l)()){const e=this.pow(o);return o.mul((()=>1[Symbol.for("-")]?1[Symbol.for("-")](l):1-l)()).add(e.mul(l))}return o}(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(O.dOne)?this.gt(10)?o=this.pow(l):(o=C(O.tetrate_critical(this.toNumber(),l)),this.lt(2)&&(o=o.sub(1).mul(this.minus(1)).plus(1))):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](e):r<e)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(o=this.pow(o),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>o.layer-this.layer!==void 0&&o.layer-this.layer!==null&&(o.layer-this.layer)[Symbol.for(">")]?(o.layer-this.layer)[Symbol.for(">")](3):o.layer-this.layer>3)())return B(o.sign,(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](e-r-1):o.layer+(e-r-1))(),o.mag);if((()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](1e4):r>1e4)())return o}return o}iteratedexp(e=2,o=B(1,0,1)){return this.tetrate(e,o)}iteratedlog(e=10,o=1){if((()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)())return O.tetrate(e,(()=>void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o)(),this);e=C(e);let t=C(this);const l=o;o=Math.trunc(o);const r=(()=>void 0!==l&&null!==l&&l[Symbol.for("-")]?l[Symbol.for("-")](o):l-o)();if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=Math.min(o,(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](l):o-l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let i=0;(()=>void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](o):i<o)();(()=>void 0!==i&&null!==i&&"object"===typeof i&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i)()){if(t=t.log(e),(()=>void 0!==isFinite(t.layer)&&null!==isFinite(t.layer)&&isFinite(t.layer)[Symbol.for("!")]?isFinite(t.layer)[Symbol.for("!")]():!isFinite(t.layer))()||(()=>void 0!==isFinite(t.mag)&&null!==isFinite(t.mag)&&isFinite(t.mag)[Symbol.for("!")]?isFinite(t.mag)[Symbol.for("!")]():!isFinite(t.mag))())return t.normalize();if((()=>void 0!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](1e4):i>1e4)())return t}return(()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](0):r>0)()&&(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](1):r<1)()&&(t=e.eq(10)?t.layeradd10((()=>void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r)()):t.layeradd((()=>void 0!==r&&null!==r&&r[Symbol.for("minus")]?r[Symbol.for("minus")]():-r)(),e)),t}slog(e=10){if(e=C(e),e.lte(O.dZero))return O.dNaN;if(e.eq(O.dOne))return O.dNaN;if(e.lt(O.dOne))return this.eq(O.dOne)?O.dZero:this.eq(O.dZero)?O.dNegOne:O.dNaN;if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()||this.eq(O.dZero))return O.dNegOne;let o=0,t=C(this);if((()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for(">")]?(t.layer-e.layer)[Symbol.for(">")](3):t.layer-e.layer>3)()){const l=(()=>t.layer-e.layer!==void 0&&t.layer-e.layer!==null&&(t.layer-e.layer)[Symbol.for("-")]?(t.layer-e.layer)[Symbol.for("-")](3):t.layer-e.layer-3)();o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](l):o+l)(),t.layer=(()=>void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l)()}for(let l=0;(()=>void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100)();(()=>void 0!==l&&null!==l&&"object"===typeof l&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l)())if(t.lt(O.dZero))t=O.pow(e,t),o=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)();else{if(t.lte(O.dOne))return C((()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](O.slog_critical(e.toNumber(),t.toNumber())):o+O.slog_critical(e.toNumber(),t.toNumber()))());o=(()=>void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1):o+1)(),t=O.log(t,e)}return C(o)}static slog_critical(e,o){return(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()?(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](1):o-1)():O.critical_section(e,o,x)}static tetrate_critical(e,o){return O.critical_section(e,o,Z)}static critical_section(e,o,t){o=(()=>void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](10):10*o)(),(()=>void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0)()&&(o=0),(()=>void 0!==o&&null!==o&&o[Symbol.for(">")]?o[Symbol.for(">")](10):o>10)()&&(o=10),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](2):e<2)()&&(e=2),(()=>void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10)()&&(e=10);let l=0,r=0;for(let a=0;(()=>void 0!==a&&null!==a&&a[Symbol.for("<")]?a[Symbol.for("<")](w.length):a<w.length)();(()=>void 0!==a&&null!==a&&"object"===typeof a&&a[Symbol.for("prefix-increment")]?a[Symbol.for("prefix-increment")]():++a)()){if((()=>void 0!==w[a]&&null!==w[a]&&w[a][Symbol.for("==")]?w[a][Symbol.for("==")](e):w[a]==e)()){l=t[a][Math.floor(o)],r=t[a][Math.ceil(o)];break}if((()=>void 0!==w[a]&&null!==w[a]&&w[a][Symbol.for("<")]?w[a][Symbol.for("<")](e):w[a]<e)()&&(()=>void 0!==w[a+1]&&null!==w[a+1]&&w[a+1][Symbol.for(">")]?w[a+1][Symbol.for(">")](e):w[a+1]>e)()){const i=(()=>e-w[a]!==void 0&&e-w[a]!==null&&(e-w[a])[Symbol.for("/")]?(e-w[a])[Symbol.for("/")](w[a+1]-w[a]):(e-w[a])/(w[a+1]-w[a]))();l=(()=>t[a][Math.floor(o)]*(1-i)!==void 0&&t[a][Math.floor(o)]*(1-i)!==null&&(t[a][Math.floor(o)]*(1-i))[Symbol.for("+")]?(t[a][Math.floor(o)]*(1-i))[Symbol.for("+")](t[a+1][Math.floor(o)]*i):t[a][Math.floor(o)]*(1-i)+t[a+1][Math.floor(o)]*i)(),r=(()=>t[a][Math.ceil(o)]*(1-i)!==void 0&&t[a][Math.ceil(o)]*(1-i)!==null&&(t[a][Math.ceil(o)]*(1-i))[Symbol.for("+")]?(t[a][Math.ceil(o)]*(1-i))[Symbol.for("+")](t[a+1][Math.ceil(o)]*i):t[a][Math.ceil(o)]*(1-i)+t[a+1][Math.ceil(o)]*i)();break}}const i=(()=>void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](Math.floor(o)):o-Math.floor(o))(),n=(()=>l*(1-i)!==void 0&&l*(1-i)!==null&&(l*(1-i))[Symbol.for("+")]?(l*(1-i))[Symbol.for("+")](r*i):l*(1-i)+r*i)();return n}layeradd10(e){e=O.fromValue_noAlloc(e).toNumber();const o=C(this);if((()=>void 0!==e&&null!==e&&e[Symbol.for(">=")]?e[Symbol.for(">=")](1):e>=1)()){(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("<")]?o.mag[Symbol.for("<")](0):o.mag<0)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](0):o.layer>0)()?(o.sign=0,o.mag=0,o.layer=0):o.sign===(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("==")]?o.layer[Symbol.for("==")](0):0==o.layer)()&&(o.sign=1,o.mag=(()=>void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("minus")]?o.mag[Symbol.for("minus")]():-o.mag)());const t=Math.trunc(e);e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)()}if((()=>void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](-1):e<=-1)()){const t=Math.trunc(e);if(e=(()=>void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](t):e-t)(),o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("+")]?o.layer[Symbol.for("+")](t):o.layer+t)(),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())for(let e=0;(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](100):e<100)();(()=>void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e)()){if((()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag),(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return 0===o.sign&&(o.sign=1),(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)()&&(o.layer=0),o.normalize();if((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](0):o.layer>=0)())break}}while((()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](0):o.layer<0)())(()=>{void 0!==o.layer&&null!==o.layer&&"object"===typeof o.layer&&o.layer[Symbol.for("postfix-increment")]?o.layer[Symbol.for("postfix-increment")]():o.layer++})(),o.mag=Math.log10(o.mag);return 0===o.sign&&(o.sign=1,0===o.mag&&(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">=")]?o.layer[Symbol.for(">=")](1):o.layer>=1)()&&(o.layer=(()=>void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1)(),o.mag=1)),o.normalize(),(()=>void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e)()?o.layeradd(e,10):o}layeradd(e,o){const t=this.slog(o).toNumber(),l=(()=>void 0!==t&&null!==t&&t[Symbol.for("+")]?t[Symbol.for("+")](e):t+e)();return(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](0):l>=0)()?O.tetrate(o,l):(()=>void 0!==Number.isFinite(l)&&null!==Number.isFinite(l)&&Number.isFinite(l)[Symbol.for("!")]?Number.isFinite(l)[Symbol.for("!")]():!Number.isFinite(l))()?O.dNaN:(()=>void 0!==l&&null!==l&&l[Symbol.for(">=")]?l[Symbol.for(">=")](-1):l>=-1)()?O.log(O.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](1):l+1)()),o):O.log(O.log(O.tetrate(o,(()=>void 0!==l&&null!==l&&l[Symbol.for("+")]?l[Symbol.for("+")](2):l+2)()),o),o)}lambertw(){if(this.lt((()=>.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499)()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if((()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)())return C(D(this.toNumber()));if(0===this.layer)return C(D((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)()));if(1===this.layer)return _(this);if(2===this.layer)return _(this);if((()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return B(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("==")]?this.sign[Symbol.for("==")](1):1==this.sign)()&&(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for(">=")]?this.layer[Symbol.for(">=")](3):this.layer>=3)())return B(this.sign,(()=>void 0!==this.layer&&null!==this.layer&&this.layer[Symbol.for("-")]?this.layer[Symbol.for("-")](1):this.layer-1)(),this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,o=B(1,0,1)){o=C(o);const t=e;e=Math.trunc(e);const l=(()=>void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](e):t-e)();(()=>void 0!==l&&null!==l&&l[Symbol.for("!==")]?l[Symbol.for("!==")](0):0!==l)()&&(o.eq(O.dOne)?((()=>{void 0!==e&&null!==e&&"object"===typeof e&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e})(),o=new O(l)):o=this.eq(10)?o.layeradd10(l):o.layeradd(l,this));for(let r=0;(()=>void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](e):r<e)();(()=>void 0!==r&&null!==r&&"object"===typeof r&&r[Symbol.for("prefix-increment")]?r[Symbol.for("prefix-increment")]():++r)()){if(o=this.tetrate(o.toNumber()),(()=>void 0!==isFinite(o.layer)&&null!==isFinite(o.layer)&&isFinite(o.layer)[Symbol.for("!")]?isFinite(o.layer)[Symbol.for("!")]():!isFinite(o.layer))()||(()=>void 0!==isFinite(o.mag)&&null!==isFinite(o.mag)&&isFinite(o.mag)[Symbol.for("!")]?isFinite(o.mag)[Symbol.for("!")]():!isFinite(o.mag))())return o.normalize();if((()=>void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](10):r>10)())return o}return o}sin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?C(Math.sin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(0,0,0)}cos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?O.dOne:0===this.layer?C(Math.cos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(0,0,0)}tan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?C(Math.tan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(0,0,0)}asin(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?C(Math.asin((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(Number.NaN,Number.NaN,Number.NaN)}acos(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?C(Math.acos(this.toNumber())):0===this.layer?C(Math.acos((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):B(Number.NaN,Number.NaN,Number.NaN)}atan(){return(()=>void 0!==this.mag&&null!==this.mag&&this.mag[Symbol.for("<")]?this.mag[Symbol.for("<")](0):this.mag<0)()?this:0===this.layer?C(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](this.mag):this.sign*this.mag)())):C(Math.atan((()=>void 0!==this.sign&&null!==this.sign&&this.sign[Symbol.for("*")]?this.sign[Symbol.for("*")](Infinity):Infinity*this.sign)()))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return O.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return O.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?B(Number.NaN,Number.NaN,Number.NaN):O.ln(this.add(1).div(C(1).sub(this))).div(2)}ascensionPenalty(e){return 0===e?this:this.root(O.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](1):this.cmp(e)<1)()}lessThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for("<")]?this.cmp(e)[Symbol.for("<")](0):this.cmp(e)<0)()}greaterThanOrEqualTo(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](-1):this.cmp(e)>-1)()}greaterThan(e){return(()=>void 0!==this.cmp(e)&&null!==this.cmp(e)&&this.cmp(e)[Symbol.for(">")]?this.cmp(e)[Symbol.for(">")](0):this.cmp(e)>0)()}}(0,l.Z)(O,"dZero",B(0,0,0)),(0,l.Z)(O,"dOne",B(1,0,1)),(0,l.Z)(O,"dNegOne",B((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),0,1)),(0,l.Z)(O,"dTwo",B(1,0,2)),(0,l.Z)(O,"dTen",B(1,0,10)),(0,l.Z)(O,"dNaN",B(Number.NaN,Number.NaN,Number.NaN)),(0,l.Z)(O,"dInf",B(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,l.Z)(O,"dNegInf",B((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,l.Z)(O,"dNumberMax",E(1,0,Number.MAX_VALUE)),(0,l.Z)(O,"dNumberMin",E(1,0,Number.MIN_VALUE))},5634:function(e,o,t){"use strict";var l=t(4865),r=t(2345),i=t(9365),n=t(5967);function a(e,o,t,r,i,n){const a=(0,l.resolveComponent)("Links");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"layer-container",style:(0,l.normalizeStyle)({"--layer-color":e.unref(e.color)})},[e.showGoBack?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:"goBack",onClick:o[0]||(o[0]=(...o)=>e.goBack&&e.goBack(...o))},"←")):(0,l.createCommentVNode)("",!0),e.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:o[1]||(o[1]=o=>e.minimized.value=!1)},[(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(e.unref(e.name)),1)])):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(["layer-tab",[{showGoBack:e.showGoBack},e.unref(e.classes)]]),style:(0,l.normalizeStyle)(e.unref(e.style))},[(0,l.createVNode)(a,{links:e.unref(e.links)},{default:(0,l.withCtx)((()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.component)))])),_:1},8,["links"])],6)),e.unref(e.minimizable)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:3,class:"minimize",onClick:o[2]||(o[2]=o=>e.minimized.value=!0)}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var s=t(5389),m=t(8755),u=(0,l.defineComponent)({components:{Links:s.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,m.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,m.P5)(Number),required:!0},name:{type:(0,m.P5)(String),required:!0},color:(0,m.P5)(String),style:(0,m.P5)(String,Object,Array),classes:(0,m.P5)(Object),links:(0,m.P5)(Array),minimizable:(0,m.P5)(Boolean)},setup(e){const{display:o,index:t,minimized:i,minWidth:a,tab:s}=(0,l.toRefs)(e),u=(0,m.vq)(o),f=(0,l.computed)((()=>r.allowGoBack&&(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for(">")]?t.value[Symbol.for(">")](0):t.value>0)()&&(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)()));function y(){n.Z.tabs.splice((0,l.unref)(e.index),1/0)}function c(e,o){const t=s.value();(()=>void 0!==t&&null!==t&&t[Symbol.for("!=")]?t[Symbol.for("!=")](void 0):void 0!=t)()&&(e?(t.style.flexGrow="0",t.style.flexShrink="0",t.style.width="60px",t.style.minWidth=t.style.flexBasis="",t.style.margin="0"):(t.style.flexGrow="",t.style.flexShrink="",t.style.width="",t.style.minWidth=t.style.flexBasis=`${o}px`,t.style.margin=""))}return(0,l.nextTick)((()=>c(i.value,(0,l.unref)(a.value)))),(0,l.watch)([i,(0,m.o9)(a)],(([e,o])=>c(e,o))),{component:u,showGoBack:f,unref:l.unref,goBack:y}}}),f=t(3744);const y=(0,f.Z)(u,[["render",a],["__scopeId","data-v-666ada59"]]);var c=y,d=t(7286);const b=e=>((0,l.pushScopeId)("data-v-3303e3d5"),e=e(),(0,l.popScopeId)(),e),h=b((()=>(0,l.createElementVNode)("h2",null,"Changelog",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),S=b((()=>(0,l.createElementVNode)("details",{open:""},[(0,l.createElementVNode)("summary",null,[(0,l.createTextVNode)("v0.0 Initial Commit - "),(0,l.createElementVNode)("time",null,"2021-09-04")]),(0,l.createTextVNode)(" This is the first release :D "),(0,l.createElementVNode)("ul",null,[(0,l.createElementVNode)("li",{class:"feature"},"Did everything"),(0,l.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,l.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,l.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var g=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);return o({open(){t.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(d.Z,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[h])),body:(0,l.withCtx)((()=>[S])),_:1},8,["modelValue"]))}});const v=(0,f.Z)(g,[["__scopeId","data-v-3303e3d5"]]);var p=v,N=t(9706);const k=e=>((0,l.pushScopeId)("data-v-0b3812f2"),e=e(),(0,l.popScopeId)(),e),M={class:"info-modal-header"},V=["src","alt"],w={class:"info-modal-title"},Z={key:0},x={key:0},C=k((()=>(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),E=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),B=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),I=["href"],P=k((()=>(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),F=k((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Paper Pilot Community ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),T=k((()=>(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Modding Tree ")])],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),D=k((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var _=(0,l.defineComponent)({props:{changelog:null},setup(e,{expose:o}){const t=e,{title:i,logo:a,author:s,discordName:m,discordLink:u,versionNumber:f,versionTitle:y}=r,c=(0,l.toRefs)(t),b=(0,l.ref)(!1),h=(0,l.computed)((()=>(0,N.mr)(n.Z.timePlayed)));function S(){(0,l.unref)(c.changelog)?.open()}return o({open(){b.value=!0}}),(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(d.Z,{modelValue:b.value,"onUpdate:modelValue":o[0]||(o[0]=e=>b.value=e)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",M,[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(a),alt:(0,l.unref)(i)},null,8,V)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(i)),1),(0,l.createElementVNode)("h4",null,(()=>"v"+(0,l.toDisplayString)((0,l.unref)(f))+": "!==void 0&&"v"+(0,l.toDisplayString)((0,l.unref)(f))+": "!==null&&("v"+(0,l.toDisplayString)((0,l.unref)(f))+": ")[Symbol.for("+")]?("v"+(0,l.toDisplayString)((0,l.unref)(f))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):"v"+(0,l.toDisplayString)((0,l.unref)(f))+": "+(0,l.toDisplayString)((0,l.unref)(y)))(),1)])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",Z,[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("div",x,(()=>"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(s))):"By "+(0,l.toDisplayString)((0,l.unref)(s)))(),1)):(0,l.createCommentVNode)("",!0),C,E,(0,l.createElementVNode)("div",{class:"link",onClick:S},"Changelog"),B,(0,l.createElementVNode)("div",null,[(()=>void 0!==(0,l.unref)(u)&&null!==(0,l.unref)(u)&&(0,l.unref)(u)[Symbol.for("!==")]?(0,l.unref)(u)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(u))()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(u),class:"info-modal-discord-link"},[P,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):" "+(0,l.toDisplayString)((0,l.unref)(m)))(),1)],8,I)):(0,l.createCommentVNode)("",!0)]),F,T,D,(0,l.createElementVNode)("div",null,(()=>"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(h))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(h)))(),1)])):(0,l.createCommentVNode)("",!0)])),_:1},8,["modelValue"]))}});const O=(0,f.Z)(_,[["__scopeId","data-v-0b3812f2"]]);var R=O,j=t(1037),W=t(9266),q=t(1349);const L={class:"field"};var A=(0,l.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,r=(0,l.computed)((()=>(0,m.MM)((0,l.unref)(t.title)||"<span></span>","span"))),i=(0,l.computed)({get(){return(()=>void 0!==!t.modelValue&&null!==!t.modelValue&&(!t.modelValue)[Symbol.for("!")]?(!t.modelValue)[Symbol.for("!")]():!!t.modelValue)()},set(e){o("update:modelValue",e)}});return(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("label",L,[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(i)?i.value=e:null)},null,512),[[l.vModelCheckbox,(0,l.unref)(i)]]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(r))))]))}});const z=(0,f.Z)(A,[["__scopeId","data-v-7db643c6"]]);var U=z,G=t(9179);const J={class:"field"},Y={key:0,class:"field-title"};var H=(0,l.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const t=e,r=(0,m.KO)((0,l.toRef)(t,"title"),"span"),i=(0,l.ref)(t.options.find((e=>e.value===t.modelValue)));function n(e){o("update:modelValue",e.value)}return(0,l.watch)((0,l.toRef)(t,"modelValue"),(e=>{(()=>void 0!==i.value?.value&&null!==i.value?.value&&i.value?.value[Symbol.for("!==")]?i.value?.value[Symbol.for("!==")](e):i.value?.value!==e)()&&(i.value=t.options.find((o=>o.value===e)))})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",J,[(0,l.unref)(r)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Y,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(r))))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(G.Z),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[t[0]||(t[0]=e=>i.value=e),n],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const $=H;var X=$,Q=t(5939),K=t(6113);const ee=e=>((0,l.pushScopeId)("data-v-54e795a4"),e=e(),(0,l.popScopeId)(),e),oe=ee((()=>(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),te=ee((()=>(0,l.createElementVNode)("hr",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var le=(0,l.defineComponent)({setup(e,{expose:o}){const t=(0,l.ref)(!1);o({open(){t.value=!0}});const r=Object.keys(j.Z).map((e=>({label:(0,q.IJ)(e),value:e}))),i=(0,l.computed)((()=>(0,m.MM)((0,K.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[W.V$.map(m.sY)])))))),{showTPS:a,theme:s,unthrottled:u}=(0,l.toRefs)(W.ZP),{autosave:f,offlineProd:y}=(0,l.toRefs)(n.Z),c=(0,l.computed)({get(){return 0===n.Z.devSpeed},set(e){n.Z.devSpeed=e?0:null}}),b=(0,K.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(Q.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),h=(0,K.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(Q.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})]))),S=(0,K.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(Q.Z,{display:"Save-specific"},{default:()=>[(0,l.createTextVNode)("*")]})])));return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(d.Z,{modelValue:t.value,"onUpdate:modelValue":o[6]||(o[6]=e=>t.value=e)},{header:(0,l.withCtx)((()=>[oe])),body:(0,l.withCtx)((()=>[(0,l.createVNode)(X,{title:"Theme",options:(0,l.unref)(r),modelValue:(0,l.unref)(s),"onUpdate:modelValue":o[0]||(o[0]=e=>(0,l.isRef)(s)?s.value=e:null)},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i)))),(0,l.createVNode)(U,{title:"Show TPS",modelValue:(0,l.unref)(a),"onUpdate:modelValue":o[1]||(o[1]=e=>(0,l.isRef)(a)?a.value=e:null)},null,8,["modelValue"]),te,(0,l.createVNode)(U,{title:"Unthrottled",modelValue:(0,l.unref)(u),"onUpdate:modelValue":o[2]||(o[2]=e=>(0,l.isRef)(u)?u.value=e:null)},null,8,["modelValue"]),(0,l.createVNode)(U,{title:(0,l.unref)(b),modelValue:(0,l.unref)(y),"onUpdate:modelValue":o[3]||(o[3]=e=>(0,l.isRef)(y)?y.value=e:null)},null,8,["title","modelValue"]),(0,l.createVNode)(U,{title:(0,l.unref)(h),modelValue:(0,l.unref)(f),"onUpdate:modelValue":o[4]||(o[4]=e=>(0,l.isRef)(f)?f.value=e:null)},null,8,["title","modelValue"]),(0,l.createVNode)(U,{title:(0,l.unref)(S),modelValue:(0,l.unref)(c),"onUpdate:modelValue":o[5]||(o[5]=e=>(0,l.isRef)(c)?c.value=e:null)},null,8,["title","modelValue"])])),_:1},8,["modelValue"]))}});const re=(0,f.Z)(le,[["__scopeId","data-v-54e795a4"]]);var ie=re,ne=t(463),ae=t(7197);const se=["onSubmit"],me={class:"field"},ue={key:0,class:"field-title"},fe=["placeholder"];var ye=(0,l.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:o}){const t=e,r=(0,l.toRefs)(t),i=(0,l.computed)((()=>r.title?.value&&(0,m.MM)((0,l.unref)(r.title.value),"span"))),n=(0,l.ref)(null);(0,l.onMounted)((()=>{n.value?.focus()}));const a=(0,l.computed)({get(){return(0,l.unref)(r.modelValue)||""},set(e){o("update:modelValue",e)}});function s(){o("submit")}return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("form",{onSubmit:(0,l.withModifiers)(s,["prevent"])},[(0,l.createElementVNode)("div",me,[(0,l.unref)(i)?((0,l.openBlock)(),(0,l.createElementBlock)("span",ue,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i))))])):(0,l.createCommentVNode)("",!0),e.textArea?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(ae.Z),{key:1,modelValue:(0,l.unref)(a),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.isRef)(a)?a.value=e:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:s,ref_key:"field",ref:n},null,8,["modelValue","placeholder","maxHeight"])):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":t[1]||(t[1]=e=>(0,l.isRef)(a)?a.value=e:null),placeholder:e.placeholder,class:(0,l.normalizeClass)({fullWidth:(()=>void 0!==e.title&&null!==e.title&&e.title[Symbol.for("!")]?e.title[Symbol.for("!")]():!e.title)()}),onBlur:s,ref_key:"field",ref:n},null,42,fe)),[[l.vModelText,(0,l.unref)(a)]])])],40,se))}});const ce=(0,f.Z)(ye,[["__scopeId","data-v-540fa62c"]]);var de=ce;const be={key:0},he=["onClick","disabled"],Se={key:0},ge=["onClick"];var ve=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:o}){const t=e,r=(0,l.toRefs)(t),i=(0,l.ref)(!1);function n(){(0,l.unref)(r.skipConfirm)?o("click"):(i.value&&o("click"),i.value=(()=>void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value)())}function a(){i.value=!1}return(0,l.watch)(i,(e=>{o("confirmingChanged",e)})),(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:i.value}])},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",be,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(n,["stop"]),class:"button danger",disabled:e.disabled},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",Se,"Yes")):(0,l.renderSlot)(o.$slots,"default",{key:1})],8,he),i.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,ge)):(0,l.createCommentVNode)("",!0)],2))}});const pe=(0,f.Z)(ve,[["__scopeId","data-v-bf59fca4"]]);var Ne=pe;const ke=["onClick"];var Me=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:o}){const t=(0,l.ref)(!1),r=(0,l.ref)(null);function i(){o("click"),r.value&&clearTimeout(r.value),t.value=!1,(0,l.nextTick)((()=>{t.value=!0,r.value=setTimeout((()=>t.value=!1),500)}))}return(o,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:t.value,left:e.left}])},[(0,l.renderSlot)(o.$slots,"default")],10,ke))}});const Ve=(0,f.Z)(Me,[["__scopeId","data-v-5bbcedd3"]]);var we=Ve;const Ze=e=>((0,l.pushScopeId)("data-v-4c4580ca"),e=e(),(0,l.popScopeId)(),e),xe=Ze((()=>(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ce={key:0,class:"actions"},Ee=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Be=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ie=[Be],Pe=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"edit",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Fe=[Pe],Te=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),De={key:1,class:"actions"},_e=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"check",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Oe=[_e],Re=Ze((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"close",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),je=[Re],We={key:2,class:"details"},qe={class:"save-version"},Le=Ze((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ae={key:0},ze={key:3,class:"details"},Ue={key:4,class:"details error"},Ge=Ze((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var Je=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:o}){const t=e,{save:r}=(0,l.toRefs)(t),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=(0,l.ref)(!1),s=(0,l.ref)(!1),m=(0,l.ref)("");(0,l.watch)(a,(()=>m.value=r.value.name||""));const u=(0,l.computed)((()=>r.value&&r.value.id===n.Z.id)),f=(0,l.computed)((()=>u.value?n.Z.time:r.value&&r.value.time||0));function y(){o("editName",m.value),a.value=!1}return(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(u)}])},[xe,(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ce,[(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createBlock)(we,{key:0,onClick:t[0]||(t[0]=e=>o("export")),class:"button",left:""},{default:(0,l.withCtx)((()=>[Ee])),_:1})):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:t[1]||(t[1]=e=>o("duplicate")),class:"button"},Ie)):(0,l.createCommentVNode)("",!0),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==s.value&&null!==s.value&&s.value[Symbol.for("!")]?s.value[Symbol.for("!")]():!s.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:t[2]||(t[2]=e=>a.value=(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()),class:"button"},Fe)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ne,{disabled:(0,l.unref)(u),onClick:t[3]||(t[3]=e=>o("delete")),onConfirmingChanged:t[4]||(t[4]=e=>s.value=e)},{default:(0,l.withCtx)((()=>[Te])),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",De,[(0,l.createElementVNode)("button",{onClick:y,class:"button"},Oe),(0,l.createElementVNode)("button",{onClick:t[5]||(t[5]=e=>a.value=(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()),class:"button"},je)])),(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&(()=>void 0!==a.value&&null!==a.value&&a.value[Symbol.for("!")]?a.value[Symbol.for("!")]():!a.value)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",We,[(0,l.createElementVNode)("button",{class:"button open",onClick:t[6]||(t[6]=e=>o("open"))},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(r).name),1)]),(0,l.createElementVNode)("span",qe,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(r).modVersion))(),1),Le,(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ae,(()=>"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).format((0,l.unref)(f)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(i).format((0,l.unref)(f))))(),1)):(0,l.createCommentVNode)("",!0)])):(()=>void 0!==(0,l.unref)(r).error&&null!==(0,l.unref)(r).error&&(0,l.unref)(r).error[Symbol.for("==")]?(0,l.unref)(r).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(r).error)()&&a.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",ze,[(0,l.createVNode)(de,{modelValue:m.value,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value=e),class:"editname",onSubmit:y},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Ue,[(0,l.createTextVNode)((()=>" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(r).id))(),1),Ge,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(r).error),1)]))],2))}});const Ye=(0,f.Z)(Je,[["__scopeId","data-v-4c4580ca"]]);var He=Ye,$e=t(9980),Xe=t.n($e);const Qe=e=>((0,l.pushScopeId)("data-v-199ffea0"),e=e(),(0,l.popScopeId)(),e),Ke=Qe((()=>(0,l.createElementVNode)("h2",null,"Saves Manager",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),eo={class:"modal-footer"},oo={class:"field"},to=Qe((()=>(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),lo={class:"field-buttons"},ro={class:"footer"},io=Qe((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var no=(0,l.defineComponent)({setup(e,{expose:o}){const r=(0,l.ref)(!1),i=(0,l.ref)(null);o({open(){r.value=!0}});const a=(0,l.ref)(!1),s=(0,l.ref)("");(0,l.watch)(s,(e=>{e?(0,l.nextTick)((()=>{try{const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==typeof o&&null!==typeof o&&(typeof o)[Symbol.for("!==")]?(typeof o)[Symbol.for("!==")]("object"):"object"!==typeof o)())return void(a.value=!0);const t=(0,ne.QI)();o.id=t,localStorage.setItem(t,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),s.value="",a.value=!1,W.ZP.saves.push(t)}catch(o){a.value=!0}})):a.value=!1}));let m=t(7634),u=(0,l.ref)(m.keys().reduce(((e,o)=>(e.push({label:o.slice(2,(()=>4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4)()),value:m(o).default}),e)),[]));const f=(0,l.shallowReactive)({});function y(e){if((()=>void 0!==f[e]&&null!==f[e]&&f[e][Symbol.for("==")]?f[e][Symbol.for("==")](null):null==f[e])()){const t=localStorage.getItem(e);if((()=>void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t)())f[e]={error:"Save doesn't exist in localStorage",id:e};else if("dW5kZWZpbmVk"===t)f[e]={error:"Save is undefined",id:e};else try{f[e]={...JSON.parse(decodeURIComponent(escape(atob(t)))),id:e}}catch(o){f[e]={error:o,id:e},console.warn(`SavesManager: Failed to load info about save with id ${e}:\n${o}\n${t}`)}}return f[e]}(0,l.watch)(r,(e=>{e&&Object.keys(f).forEach((e=>(()=>void 0!==f&&null!==f&&f[Symbol.for("delete")]?f[Symbol.for("delete")]("key"):delete f.key)()))}));const c=(0,l.computed)((()=>W.ZP.saves.reduce(((e,o)=>(e[o]=y(o),e)),{})));function b(e){let o;o=n.Z.id===e?(0,ne.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(c.value[e]))));const t=document.createElement("textarea");t.value=o,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(t)}function h(e){n.Z.id===e&&(0,ne.a1)();const o={...c.value[e],id:(0,ne.QI)()};localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),W.ZP.saves.push(o.id)}function S(e){W.ZP.saves=W.ZP.saves.filter((o=>(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](e):o!==e)())),localStorage.removeItem(e),f[e]=void 0}function g(e){c.value[n.Z.id].time=n.Z.time,(0,ne.a1)(),(0,ne.uW)(c.value[e]),f[e]=void 0}function v(e){const o=JSON.parse(decodeURIComponent(escape(atob(e))));o.id=(0,ne.QI)(),localStorage.setItem(o.id,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),W.ZP.saves.push(o.id)}function p(e,o){const t=c.value[e];t&&(t.name=o,n.Z.id===e?(n.Z.name=o,(0,ne.a1)()):(localStorage.setItem(e,btoa(unescape(encodeURIComponent(JSON.stringify(t))))),f[e]=void 0))}return(e,o)=>((0,l.openBlock)(),(0,l.createBlock)(d.Z,{modelValue:r.value,"onUpdate:modelValue":o[4]||(o[4]=e=>r.value=e),ref_key:"modal",ref:i},{header:(0,l.withCtx)((()=>[Ke])),body:(0,l.withCtx)((()=>[(0,l.unref)(i.value?.isOpen)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Xe()),{key:0,list:(0,l.unref)(W.ZP).saves,handle:".handle",itemKey:e=>e},{item:(0,l.withCtx)((({element:e})=>[(0,l.createVNode)(He,{save:(0,l.unref)(c)[e],onOpen:o=>g(e),onExport:o=>b(e),onEditName:o=>p(e,o),onDuplicate:o=>h(e),onDelete:o=>S(e)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])])),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",eo,[(0,l.createVNode)(de,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:a.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",oo,[to,(0,l.createElementVNode)("div",lo,[(0,l.createElementVNode)("button",{class:"button",onClick:o[1]||(o[1]=(...e)=>(0,l.unref)(ne.xM)&&(0,l.unref)(ne.xM)(...e))},"New Game"),(()=>void 0!==Object.keys((0,l.unref)(u)).length&&null!==Object.keys((0,l.unref)(u)).length&&Object.keys((0,l.unref)(u)).length[Symbol.for(">")]?Object.keys((0,l.unref)(u)).length[Symbol.for(">")](0):Object.keys((0,l.unref)(u)).length>0)()?((0,l.openBlock)(),(0,l.createBlock)(X,{key:0,options:(0,l.unref)(u),modelValue:void 0,"onUpdate:modelValue":o[2]||(o[2]=e=>v(e)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",ro,[io,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:o[3]||(o[3]=e=>r.value=!1)}," Close ")])])])),_:1},8,["modelValue"]))}});const ao=(0,f.Z)(no,[["__scopeId","data-v-199ffea0"]]);var so=ao;const mo=e=>((0,l.pushScopeId)("data-v-72eb8c78"),e=e(),(0,l.popScopeId)(),e),uo=["src","alt"],fo={key:1,class:"title"},yo=mo((()=>(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),co={class:"discord"},bo={class:"discord-links"},ho={key:0},So=["href"],go=mo((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),vo=mo((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),po={href:"https://forums.moddingtree.com/",target:"_blank"},No=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ko=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Mo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Vo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),wo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Zo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"settings",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),xo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"info",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Co={href:"https://forums.moddingtree.com/",target:"_blank"},Eo=mo((()=>(0,l.createElementVNode)("span",{class:"material-icons"},"forum",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Bo={class:"discord"},Io={class:"discord-links"},Po={key:0},Fo=["href"],To=mo((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Do=mo((()=>(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var _o=(0,l.defineComponent)({setup(e){const o=(0,l.ref)(null),t=(0,l.ref)(null),i=(0,l.ref)(null),n=(0,l.ref)(null),{useHeader:a,banner:s,title:m,discordName:u,discordLink:f,versionNumber:y}=r;function c(){window.open(f,"mywindow")}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},e.$attrs),[(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(s),height:"100%",alt:(0,l.unref)(m)},null,8,uo)):((0,l.openBlock)(),(0,l.createElementBlock)("div",fo,(0,l.toDisplayString)((0,l.unref)(m)),1)),(0,l.createElementVNode)("div",{onClick:r[0]||(r[0]=e=>n.value?.open()),class:"version-container"},[(0,l.createVNode)(Q.Z,{display:"Changelog",bottom:"",class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):"v"+(0,l.toDisplayString)((0,l.unref)(y)))(),1)])),_:1})]),yo,(0,l.createElementVNode)("div",co,[(0,l.createElementVNode)("span",{onClick:c,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",bo,[(()=>void 0!==(0,l.unref)(f)&&null!==(0,l.unref)(f)&&(0,l.unref)(f)[Symbol.for("!==")]?(0,l.unref)(f)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(f))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",ho,[(0,l.createElementVNode)("a",{href:(0,l.unref)(f),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(u)),9,So)])):(0,l.createCommentVNode)("",!0),go,vo])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",po,[(0,l.createVNode)(Q.Z,{display:"Forums",bottom:"",yoffset:"5px"},{default:(0,l.withCtx)((()=>[No])),_:1})])]),(0,l.createElementVNode)("div",{onClick:r[1]||(r[1]=e=>o.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Info",bottom:"",class:"info"},{default:(0,l.withCtx)((()=>[ko])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[2]||(r[2]=e=>t.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Saves",bottom:"",xoffset:"-20px"},{default:(0,l.withCtx)((()=>[Mo])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[3]||(r[3]=e=>i.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Options",bottom:"",xoffset:"-66px"},{default:(0,l.withCtx)((()=>[Vo])),_:1})])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},e.$attrs),[(0,l.createElementVNode)("div",{onClick:r[4]||(r[4]=e=>n.value?.open()),class:"version-container"},[(0,l.createVNode)(Q.Z,{display:"Changelog",right:"",xoffset:"25%",class:"version"},{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("span",null,(()=>"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):"v"+(0,l.toDisplayString)((0,l.unref)(y)))(),1)])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[5]||(r[5]=e=>t.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Saves",right:""},{default:(0,l.withCtx)((()=>[wo])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[6]||(r[6]=e=>i.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Options",right:""},{default:(0,l.withCtx)((()=>[Zo])),_:1})]),(0,l.createElementVNode)("div",{onClick:r[7]||(r[7]=e=>o.value?.open())},[(0,l.createVNode)(Q.Z,{display:"Info",right:""},{default:(0,l.withCtx)((()=>[xo])),_:1})]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Co,[(0,l.createVNode)(Q.Z,{display:"Forums",right:"",xoffset:"7px"},{default:(0,l.withCtx)((()=>[Eo])),_:1})])]),(0,l.createElementVNode)("div",Bo,[(0,l.createElementVNode)("span",{onClick:c,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",Io,[(()=>void 0!==(0,l.unref)(f)&&null!==(0,l.unref)(f)&&(0,l.unref)(f)[Symbol.for("!==")]?(0,l.unref)(f)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(f))()?((0,l.openBlock)(),(0,l.createElementBlock)("li",Po,[(0,l.createElementVNode)("a",{href:(0,l.unref)(f),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(u)),9,Fo)])):(0,l.createCommentVNode)("",!0),To,Do])])],16)),(0,l.createVNode)(R,{ref_key:"info",ref:o,changelog:n.value},null,8,["changelog"]),(0,l.createVNode)(so,{ref_key:"savesManager",ref:t},null,512),(0,l.createVNode)(ie,{ref_key:"options",ref:i},null,512),(0,l.createVNode)(p,{ref_key:"changelog",ref:n},null,512)],64))}});const Oo=(0,f.Z)(_o,[["__scopeId","data-v-72eb8c78"]]);var Ro=Oo;const jo={class:"tabs-container"},Wo={class:"inner-tab"},qo={key:1,class:"separator"};var Lo=(0,l.defineComponent)({setup(e){const o=(0,l.toRef)(n.Z,"tabs"),t=(0,l.computed)((()=>Object.keys(i.layers))),a=r.useHeader;function s(e){const{display:o,minimized:t,minWidth:l,name:r,color:i,style:n,classes:a,links:s,minimizable:m}=e;return{display:o,minimized:t,minWidth:l,name:r,color:i,style:n,classes:a,links:s,minimizable:m}}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",jo,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(o),((r,n)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:n,class:"tab",ref_for:!0,ref:`tab-${n}`},[0===n&&(()=>void 0!==(0,l.unref)(a)&&null!==(0,l.unref)(a)&&(0,l.unref)(a)[Symbol.for("!")]?(0,l.unref)(a)[Symbol.for("!")]():!(0,l.unref)(a))()?((0,l.openBlock)(),(0,l.createBlock)(Ro,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Wo,[(0,l.unref)(t).includes(r)?((0,l.openBlock)(),(0,l.createBlock)(c,(0,l.mergeProps)({key:0},s((0,l.unref)(i.layers)[r]),{index:n,tab:()=>e.$refs[`tab-${n}`]?.[0]}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(r),{key:1,index:n},null,8,["index"]))]),(()=>void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")]((0,l.unref)(o).length-1):n!==(0,l.unref)(o).length-1)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",qo)):(0,l.createCommentVNode)("",!0)])))),128))]))}});const Ao=(0,f.Z)(Lo,[["__scopeId","data-v-6bcb9872"]]);var zo=Ao,Uo=t(8097);const Go=e=>((0,l.pushScopeId)("data-v-364b55bc"),e=e(),(0,l.popScopeId)(),e),Jo={class:"game-over-modal-header"},Yo=["src","alt"],Ho={class:"game-over-modal-title"},$o=Go((()=>(0,l.createElementVNode)("h2",null,"Congratulations!",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Xo={key:0},Qo=Go((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),Ko=Go((()=>(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),et=Go((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ot=["href"],tt=Go((()=>(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())));var lt=(0,l.defineComponent)({setup(e){const{title:o,logo:t,discordName:i,discordLink:a,versionNumber:s,versionTitle:m}=r,u=(0,l.computed)((()=>(0,N.mr)(n.Z.timePlayed))),f=(0,l.computed)((()=>Uo.hasWon.value&&(()=>void 0!==n.Z.keepGoing&&null!==n.Z.keepGoing&&n.Z.keepGoing[Symbol.for("!")]?n.Z.keepGoing[Symbol.for("!")]():!n.Z.keepGoing)())),y=(0,l.toRef)(n.Z,"autosave");function c(){n.Z.keepGoing=!0}function b(){(0,ne.uW)((0,ne.xM)())}return(e,r)=>((0,l.openBlock)(),(0,l.createBlock)(d.Z,{"model-value":(0,l.unref)(f)},{header:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",Jo,[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(t),alt:(0,l.unref)(o)},null,8,Yo)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Ho,[$o,(0,l.createElementVNode)("h4",null,(()=>"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(o))+" v"+(0,l.toDisplayString)((0,l.unref)(s))+": "+(0,l.toDisplayString)((0,l.unref)(m)))(),1)])])])),body:(0,l.withCtx)((({shown:e})=>[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",Xo,[(0,l.createElementVNode)("div",null,(()=>"It took you "+(0,l.toDisplayString)((0,l.unref)(u))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(u))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(u)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(u))+" to beat the game.")(),1),Qo,Ko,et,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(a),class:"game-over-modal-discord-link"},[tt,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i))):" "+(0,l.toDisplayString)((0,l.unref)(i)))(),1)],8,ot)]),(0,l.createVNode)(U,{title:"Autosave",modelValue:(0,l.unref)(y),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,l.isRef)(y)?y.value=e:null)},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:c,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:b,class:"button danger"},"Play Again")])])),_:1},8,["model-value"]))}});const rt=(0,f.Z)(lt,[["__scopeId","data-v-364b55bc"]]);var it=rt,nt=t(3032);const at=e=>((0,l.pushScopeId)("data-v-0f93e378"),e=e(),(0,l.popScopeId)(),e),st=at((()=>(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),mt={key:0},ut=at((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ft=["href"],yt=at((()=>(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),ct=at((()=>(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()))),dt={class:"nan-footer"};var bt=(0,l.defineComponent)({setup(e){const{discordName:o,discordLink:t}=r,i=(0,l.toRef)(n.Z,"autosave"),a=(0,l.toRef)(nt.Z,"hasNaN"),s=(0,l.ref)(null),m=(0,l.computed)((()=>nt.Z.NaNPath.join("."))),u=(0,l.computed)((()=>nt.Z.NaNPath.slice((()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)())[0])),f=(0,l.computed)((()=>nt.Z.NaNReceiver&&u.value?nt.Z.NaNReceiver[u.value]:null)),y=(0,l.computed)({get(){return 0===n.Z.devSpeed},set(e){n.Z.devSpeed=e?null:0}});function c(){nt.Z.NaNReceiver&&u.value&&(nt.Z.NaNReceiver[u.value]=new N.ZP(0),nt.Z.hasNaN=!1)}function b(){nt.Z.NaNReceiver&&u.value&&(nt.Z.NaNReceiver[u.value]=new N.ZP(1),nt.Z.hasNaN=!1)}function h(){nt.Z.NaNReceiver&&u.value&&(nt.Z.NaNReceiver[u.value]=new N.ZP(NaN),nt.Z.hasNaN=!1)}return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(d.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(a),"onUpdate:modelValue":r[4]||(r[4]=e=>(0,l.isRef)(a)?a.value=e:null)},e.$attrs),{header:(0,l.withCtx)((()=>[st])),body:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)((()=>' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(m))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(m))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(m))+'" to NaN')(),1),(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("span",mt,(()=>(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(f)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(f)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(f))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(f))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(N.WU)((0,l.unref)(f)))+")")(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)((()=>". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(i)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(i)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(i)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(i)?"enabled":"disabled"))[Symbol.for("+")](". Check the console for more details, and consider sharing it with the developers on discord. "):". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(i)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ")(),1)]),ut,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"nan-modal-discord-link"},[yt,(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(o))):" "+(0,l.toDisplayString)((0,l.unref)(o)))(),1)],8,ft)]),ct,(0,l.createVNode)(U,{title:"Autosave",modelValue:(0,l.unref)(i),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,l.isRef)(i)?i.value=e:null)},null,8,["modelValue"]),(0,l.createVNode)(U,{title:"Pause game",modelValue:(0,l.unref)(y),"onUpdate:modelValue":r[1]||(r[1]=e=>(0,l.isRef)(y)?y.value=e:null)},null,8,["modelValue"])])),footer:(0,l.withCtx)((()=>[(0,l.createElementVNode)("div",dt,[(0,l.createElementVNode)("button",{onClick:r[2]||(r[2]=e=>s.value?.open()),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:c,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:b,class:"button"},"Set to 1"),(0,l.unref)(f)&&(0,l.unref)(N.ZP).neq((0,l.unref)(f),0)&&(0,l.unref)(N.ZP).neq((0,l.unref)(f),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:r[3]||(r[3]=e=>a.value=!1),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:h,class:"button danger"},"Ignore")])])),_:1},16,["modelValue"]),(0,l.createVNode)(so,{ref_key:"savesManager",ref:s},null,512)],64))}});const ht=(0,f.Z)(bt,[["__scopeId","data-v-0f93e378"]]);var St=ht;const gt={key:0,class:"tpsDisplay"},vt={key:0,class:"low"};var pt=(0,l.defineComponent)({setup(e){const o=(0,l.computed)((()=>N.ZP.div(nt.Z.lastTenTicks.length,nt.Z.lastTenTicks.reduce(((e,o)=>(()=>void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](o):e+o)()),0)))),t=(0,l.ref)([]);(0,l.watchEffect)((()=>{t.value.push(Math.round(o.value.toNumber())),(()=>void 0!==t.value.length&&null!==t.value.length&&t.value.length[Symbol.for(">")]?t.value.length[Symbol.for(">")](10):t.value.length>10)()&&(t.value=t.value.slice(1))}));const r=(0,l.computed)((()=>t.value.reduce(((e,o)=>N.ZP.max(e,o)),0))),i=(0,l.computed)((()=>N.ZP.sub(o.value,r.value).gt(1)));return(e,t)=>(()=>void 0!==(0,l.unref)(o).isNan()&&null!==(0,l.unref)(o).isNan()&&(0,l.unref)(o).isNan()[Symbol.for("!")]?(0,l.unref)(o).isNan()[Symbol.for("!")]():!(0,l.unref)(o).isNan())()?((0,l.openBlock)(),(0,l.createElementBlock)("div",gt,[(0,l.createTextVNode)((()=>" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(o)))+" ")(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[(0,l.unref)(i)?((0,l.openBlock)(),(0,l.createElementBlock)("span",vt,(0,l.toDisplayString)((0,l.unref)(N.Ht)((0,l.unref)(r))),1)):(0,l.createCommentVNode)("",!0)])),_:1})])):(0,l.createCommentVNode)("",!0)}});const Nt=(0,f.Z)(pt,[["__scopeId","data-v-323f9b12"]]);var kt=Nt,Mt=(0,l.defineComponent)({setup(e){function o(){}const t=r.useHeader,i=(0,l.computed)((()=>j.Z[W.ZP.theme].variables)),n=(0,l.toRef)(W.ZP,"showTPS");return(e,r)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(i))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(t)}]),onMousemove:o,style:(0,l.normalizeStyle)((0,l.unref)(i))},[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createBlock)(Ro,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(zo),(0,l.unref)((0,l.unref)(n))?((0,l.openBlock)(),(0,l.createBlock)(kt,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(it),(0,l.createVNode)(St)],38)],64))}});const Vt=(0,f.Z)(Mt,[["__scopeId","data-v-e0e491f6"]]);var wt=Vt;requestAnimationFrame((async()=>{console.log("%cMade in Profectus%c\nLearn more at www.moddingtree.com","font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await(0,ne.zD)();const{globalBus:e,startGameLoop:o}=await t(7302),i=window.vue=(0,l.createApp)({...wt});e.emit("setupVue",i),i.mount("#app"),document.title=r.title,o()})),window.modInfo=r},9706:function(e,o,t){"use strict";t.d(o,{WU:function(){return a},Ht:function(){return s},mr:function(){return m}});var l=t(3243);const{exponentialFormat:r,commaFormat:i,regularFormat:n,format:a,formatWhole:s,formatTime:m,toPlaces:u,formatSmall:f,invertOOM:y}=l;window.Decimal=l["default"],window.exponentialFormat=r,window.commaFormat=i,window.regularFormat=n,window.format=a,window.formatWhole=s,window.formatTime=m,window.toPlaces=u,window.formatSmall=f,window.invertOOM=y,o["ZP"]=l["default"]},3243:function(e,o,t){"use strict";t.r(o),t.d(o,{exponentialFormat:function(){return n},commaFormat:function(){return a},regularFormat:function(){return s},format:function(){return m},formatWhole:function(){return u},formatTime:function(){return f},toPlaces:function(){return y},formatSmall:function(){return c},invertOOM:function(){return d}});var l=t(1008),r=t(2345);o["default"]=l.Z;const i=new l.Z(1);function n(e,o,t=!0){let n=l.Z.log10(e).floor(),s=l.Z.div(e,l.Z.pow(10,n));"10"===s.toStringWithDecimalPlaces(o)&&(s=i,n=n.add(1));const u=n.gte(1e9)?m(n,Math.max(Math.max(o,3),r.defaultDecimalsShown)):n.gte(1e4)?a(n,0):n.toStringWithDecimalPlaces(0);return t?(()=>s.toStringWithDecimalPlaces(o)+"e"!==void 0&&s.toStringWithDecimalPlaces(o)+"e"!==null&&(s.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")]?(s.toStringWithDecimalPlaces(o)+"e")[Symbol.for("+")](u):s.toStringWithDecimalPlaces(o)+"e"+u)():(()=>"e"[Symbol.for("+")]?"e"[Symbol.for("+")](u):"e"+u)()}function a(e,o){if(null===e||void 0===e)return"NaN";if(e=new l.Z(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.001):e.mag<.001)())return(0).toFixed(o);const t=e.toStringWithDecimalPlaces(o),r=t.split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),(()=>void 0!==r.length&&null!==r.length&&r.length[Symbol.for("==")]?r.length[Symbol.for("==")](1):1==r.length)()?r[0]:(()=>r[0]+"."!==void 0&&r[0]+"."!==null&&(r[0]+".")[Symbol.for("+")]?(r[0]+".")[Symbol.for("+")](r[1]):r[0]+"."+r[1])()}function s(e,o){return null===e||void 0===e?"NaN":(e=new l.Z(e),(()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e-4):e.mag<1e-4)()?(0).toFixed(o):((()=>void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](.1):e.mag<.1)()&&(()=>void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](0):0!==o)()&&(o=Math.max(Math.max(o,4),r.defaultDecimalsShown)),e.toStringWithDecimalPlaces(o)))}function m(e,o,t){if((()=>void 0!==o&&null!==o&&o[Symbol.for("==")]?o[Symbol.for("==")](null):null==o)()&&(o=r.defaultDecimalsShown),t=t||r.allowSmall,e=new l.Z(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if((()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)())return(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](m(e.neg(),o)):"-"+m(e.neg(),o))();if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte("eeee1000")){const o=e.slog();return o.gte(1e6)?(()=>"F"[Symbol.for("+")]?"F"[Symbol.for("+")](m(o.floor())):"F"+m(o.floor()))():(()=>l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](a(o.floor(),0)):l.Z.pow(10,o.sub(o.floor())).toStringWithDecimalPlaces(3)+"F"+a(o.floor(),0))()}if(e.gte("1e100000"))return n(e,0,!1);if(e.gte("1e1000"))return n(e,0);if(e.gte(1e9))return n(e,o);if(e.gte(1e3))return a(e,0);if(e.gte(.001)||(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)())return s(e,o);if(e.eq(0))return(0).toFixed(o);if(e=d(e),e.lt("1e1000")){const t=n(e,o);return t.replace(/([^(?:e|F)]*)$/,"-$1")}return(()=>void 0!==m(e,o)&&null!==m(e,o)&&m(e,o)[Symbol.for("+")]?m(e,o)[Symbol.for("+")]("⁻¹"):m(e,o)+"⁻¹")()}function u(e){return e=new l.Z(e),(()=>void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0)()?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](u(e.neg())):"-"+u(e.neg()))():e.gte(1e9)||e.lte(.98)&&(()=>void 0!==e.eq(0)&&null!==e.eq(0)&&e.eq(0)[Symbol.for("!")]?e.eq(0)[Symbol.for("!")]():!e.eq(0))()?m(e):m(e,0)}function f(e){return l.Z.lt(e,0)?(()=>"-"[Symbol.for("+")]?"-"[Symbol.for("+")](f(l.Z.neg(e))):"-"+f(l.Z.neg(e)))():l.Z.gt(e,(()=>2[Symbol.for("**")]?2[Symbol.for("**")](51):2**51)())?(()=>void 0!==m(l.Z.div(e,31536e3))&&null!==m(l.Z.div(e,31536e3))&&m(l.Z.div(e,31536e3))[Symbol.for("+")]?m(l.Z.div(e,31536e3))[Symbol.for("+")]("y"):m(l.Z.div(e,31536e3))+"y")():(e=new l.Z(e).toNumber(),(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](60):e<60)()?(()=>void 0!==m(e)&&null!==m(e)&&m(e)[Symbol.for("+")]?m(e)[Symbol.for("+")]("s"):m(e)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](3600):e<3600)()?(()=>u(Math.floor(e/60))+"m "+m(e%60)!==void 0&&u(Math.floor(e/60))+"m "+m(e%60)!==null&&(u(Math.floor(e/60))+"m "+m(e%60))[Symbol.for("+")]?(u(Math.floor(e/60))+"m "+m(e%60))[Symbol.for("+")]("s"):u(Math.floor(e/60))+"m "+m(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](86400):e<86400)()?(()=>u(Math.floor(e/3600))+"h "+u(Math.floor(e/60)%60)+"m "+u(e%60)!==void 0&&u(Math.floor(e/3600))+"h "+u(Math.floor(e/60)%60)+"m "+u(e%60)!==null&&(u(Math.floor(e/3600))+"h "+u(Math.floor(e/60)%60)+"m "+u(e%60))[Symbol.for("+")]?(u(Math.floor(e/3600))+"h "+u(Math.floor(e/60)%60)+"m "+u(e%60))[Symbol.for("+")]("s"):u(Math.floor(e/3600))+"h "+u(Math.floor(e/60)%60)+"m "+u(e%60)+"s")():(()=>void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](31536e3):e<31536e3)()?(()=>u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h "+u(Math.floor(e/60)%60)!==void 0&&u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h "+u(Math.floor(e/60)%60)!==null&&(u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h "+u(Math.floor(e/60)%60))[Symbol.for("+")]?(u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h "+u(Math.floor(e/60)%60))[Symbol.for("+")]("m"):u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h "+u(Math.floor(e/60)%60)+"m")():(()=>u(Math.floor(e/31536e3))+"y "+u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)!==void 0&&u(Math.floor(e/31536e3))+"y "+u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)!==null&&(u(Math.floor(e/31536e3))+"y "+u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24))[Symbol.for("+")]?(u(Math.floor(e/31536e3))+"y "+u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24))[Symbol.for("+")]("h"):u(Math.floor(e/31536e3))+"y "+u(Math.floor(e/84600)%365)+"d "+u(Math.floor(e/3600)%24)+"h")())}function y(e,o,t){e=new l.Z(e);let r=e.toStringWithDecimalPlaces(o);return new l.Z(r).gte(t)&&(r=l.Z.sub(t,Math.pow(.1,o)).toStringWithDecimalPlaces(o)),r}function c(e,o){return m(e,o,!0)}function d(e){let o=l.Z.log10(e).ceil();const t=l.Z.div(e,l.Z.pow(10,o));return o=o.neg(),e=new l.Z(10).pow(o).times(t),e}},1349:function(e,o,t){"use strict";function l(e){let o=e.replace(/([A-Z])/g," $1");return o=(()=>void 0!==o.charAt(0).toUpperCase()&&null!==o.charAt(0).toUpperCase()&&o.charAt(0).toUpperCase()[Symbol.for("+")]?o.charAt(0).toUpperCase()[Symbol.for("+")](o.slice(1)):o.charAt(0).toUpperCase()+o.slice(1))(),o}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){return"function"===typeof e}t.d(o,{IJ:function(){return l},PO:function(){return r},mf:function(){return i}})},9583:function(e,o,t){"use strict";t.d(o,{mM:function(){return i},yB:function(){return n}});var l=t(4865),r=t(1349);const i=Symbol("DoNotCache");function n(e,o){const t=e[o];(0,r.mf)(t)&&0===t.length&&(()=>void 0!==t[i]&&null!==t[i]&&t[i][Symbol.for("!")]?t[i][Symbol.for("!")]():!t[i])()&&(e[o]=(0,l.computed)(t.bind(e)))}},3273:function(e,o,t){"use strict";t.d(o,{Le:function(){return l},c4:function(){return r},z2:function(){return i}});const l=Symbol("ProxyState"),r=Symbol("ProxyPath");function i(e){const o={};let t=!1;function r(){return(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)()&&(Object.assign(o,e()),t=!0),o}return new Proxy(o,{get(e,o){return o===l?r():r()[o]},set(){return console.error("Layers and features are shallow readonly"),!1},has(e,o){return o===l||Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(l,r){return(()=>void 0!==t&&null!==t&&t[Symbol.for("!")]?t[Symbol.for("!")]():!t)()&&(Object.assign(o,e()),t=!0),Object.getOwnPropertyDescriptor(l,r)}})}},463:function(e,o,t){"use strict";t.d(o,{a1:function(){return m},zD:function(){return u},xM:function(){return f},QI:function(){return y},uW:function(){return c},y6:function(){return d}});var l=t(2345),r=t(5967),i=t(9266),n=t(9706),a=t(3273);function s(e={}){return Object.assign({id:`${l.id}-0`,name:"Default Save",tabs:l.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:new n.ZP(0),timePlayed:new n.ZP(0),keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},e)}function m(){const e=btoa(unescape(encodeURIComponent((0,r.U)(r.Z[a.Le]))));return localStorage.setItem(r.Z.id,e),e}async function u(){(0,i.ri)();try{const e=localStorage.getItem(i.ZP.active);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void await c(f());const o=JSON.parse(decodeURIComponent(escape(atob(e))));if((()=>void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id)())return void await c(f());o.id=i.ZP.active,await c(o)}catch(e){console.error("Failed to load save. Falling back to new save.\n",e),await c(f())}}function f(){const e=y(),o=s({id:e});return localStorage.setItem(e,btoa(unescape(encodeURIComponent((0,r.U)(o))))),i.ZP.saves.push(e),o}function y(){let e,o=0;do{e=`${l.id}-${(()=>void 0!==o&&null!==o&&"object"===typeof o&&o[Symbol.for("postfix-increment")]?o[Symbol.for("postfix-increment")]():o++)()}`}while(localStorage.getItem(e));return e}async function c(e){console.info("Loading save",e);const{layers:o,removeLayer:a,addLayer:m}=await Promise.resolve().then(t.bind(t,9365)),{fixOldSave:u,getInitialLayers:f}=await Promise.resolve().then(t.bind(t,8097));for(const t in o)a(o[t]);f(e).forEach((o=>m(o,e))),e=s(e),e.offlineProd&&e.time&&((()=>void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("==")]?e.offlineTime[Symbol.for("==")](void 0):void 0==e.offlineTime)()&&(e.offlineTime=new n.ZP(0)),e.offlineTime=n.ZP.add(e.offlineTime,(()=>Date.now()-e.time!==void 0&&Date.now()-e.time!==null&&(Date.now()-e.time)[Symbol.for("/")]?(Date.now()-e.time)[Symbol.for("/")](1e3):(Date.now()-e.time)/1e3)())),e.time=Date.now(),(()=>void 0!==e.modVersion&&null!==e.modVersion&&e.modVersion[Symbol.for("!==")]?e.modVersion[Symbol.for("!==")](l.versionNumber):e.modVersion!==l.versionNumber)()&&u(e.modVersion,e),Object.assign(r.Z,e),i.ZP.active=r.Z.id}setInterval((()=>{r.Z.autosave&&m()}),1e3),window.onbeforeunload=()=>{r.Z.autosave&&m()},window.save=m;const d=window.hardReset=async()=>{await c(f())}},8097:function(e,o,t){"use strict";t.r(o),t.d(o,{fixOldSave:function(){return Ce},getInitialLayers:function(){return Ze},hasWon:function(){return xe},main:function(){return we}});var l=t(4865),r=(0,l.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{style:(0,l.normalizeStyle)({width:e.width,height:e.height})},null,4))}});const i=r;var n=i,a=t(6113),s=t(9706),m=t(7302),u=t(4061);function f(e,o="points",t=0,l=!1){const r=(0,u.ax)(e);return r.displayName=o,r.precision=t,r.small=l,r}function y(e){const o=(0,u.ax)(e.value);return(0,l.watch)(e,(e=>{s.ZP.gt(e,o.value)&&(o.value=e)})),o}function c(e){const o=(0,u.ax)(e.value);return(0,l.watch)(e,((e,t)=>{s.ZP.gt(e,t)&&(o.value=s.ZP.add(o.value,s.ZP.sub(e,t)))})),o}function d(e,o){const t=(0,l.ref)(0),r=(0,l.ref)(0),i=(0,l.ref)(0);m.globalBus.on("update",(o=>{if(r.value=0,s.ZP.lte(e.value,1e100))return void(i.value=e.value);let l=e.value,n=i.value;if(i.value=l,s.ZP.gt(l,n))if(s.ZP.gte(l,"10^^8"))l=s.ZP.slog(l,1e10),n=s.ZP.slog(n,1e10),t.value=l.sub(n).div(o),r.value=(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)();else while(s.ZP.div(l,n).log(10).div(o).gte("100")&&(()=>void 0!==r.value&&null!==r.value&&r.value[Symbol.for("<=")]?r.value[Symbol.for("<=")](5):r.value<=5)()&&s.ZP.gt(n,0))l=s.ZP.log10(l),n=s.ZP.log10(n),t.value=l.sub(n).div(o),(()=>{void 0!==r.value&&null!==r.value&&"object"===typeof r.value&&r.value[Symbol.for("postfix-increment")]?r.value[Symbol.for("postfix-increment")]():r.value++})()}));const n=(0,l.computed)((()=>0===r.value?o?(()=>(0,s.WU)(o.value,e.precision,e.small)+" "+e.displayName!==void 0&&(0,s.WU)(o.value,e.precision,e.small)+" "+e.displayName!==null&&((0,s.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]?((0,s.WU)(o.value,e.precision,e.small)+" "+e.displayName)[Symbol.for("+")]("/s"):(0,s.WU)(o.value,e.precision,e.small)+" "+e.displayName+"/s")():"":(()=>(0,s.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)!==void 0&&(0,s.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)!==null&&((0,s.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value))[Symbol.for("+")]?((0,s.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value))[Symbol.for("+")]("s/sec"):(0,s.WU)(t.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)+"s/sec")()));return n}function b(e,o){const t=o??e.value;return s.ZP.eq(e.precision,0)?(0,s.Ht)(t):(0,s.WU)(t,e.precision,e.small)}const h={key:0,class:"left-side-nodes"},S={key:1,class:"side-nodes"};function g(e,o,t,r,i,n){const a=(0,l.resolveComponent)("TreeNode");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.nodes),((o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",(0,l.mergeProps)({class:"row",key:t},e.$attrs),[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(o,((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip}),null,16,["force-tooltip"])))),128))],16)))),128)),e.unref(e.leftSideNodes)?((0,l.openBlock)(),(0,l.createElementBlock)("span",h,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.leftSideNodes),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip,small:""}),null,16,["force-tooltip"])))),128))])):(0,l.createCommentVNode)("",!0),e.unref(e.rightSideNodes)?((0,l.openBlock)(),(0,l.createElementBlock)("span",S,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unref(e.rightSideNodes),((o,t)=>((0,l.openBlock)(),(0,l.createBlock)(a,(0,l.mergeProps)({key:t},e.gatherNodeProps(o),{"force-tooltip":o.forceTooltip,small:""}),null,16,["force-tooltip"])))),128))])):(0,l.createCommentVNode)("",!0)],64)}var v=t(8755);const p=["disabled"];function N(e,o,t,r,i,n){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode"),m=(0,l.resolveComponent)("Tooltip");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createBlock)(m,(0,l.mergeProps)({key:0},e.tooltipToBind&&e.gatherTooltipProps(e.tooltipToBind),{display:e.tooltipDisplay,force:e.forceTooltip,style:{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},class:{treeNode:!0,can:e.unref(e.canClick),small:e.unref(e.small),...e.unref(e.classes)}}),{default:(0,l.withCtx)((()=>[(0,l.createElementVNode)("button",{onClick:o[0]||(o[0]=(...o)=>e.click&&e.click(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),style:(0,l.normalizeStyle)([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},e.unref(e.style)??[]]),disabled:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))()},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp))))],44,p),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])])),_:1},16,["display","force","style","class"])):(0,l.createCommentVNode)("",!0)}var k=t(630),M=(0,l.defineComponent)({props:{id:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,l.inject)(k.Z),i=(0,l.inject)(k.w),n=(0,l.ref)(null),a=(0,l.computed)((()=>n.value&&n.value.parentElement));return r&&i&&((0,l.watch)([a,t.id],(([e,o],[t,n])=>{t&&i((0,l.unref)(n)),e&&r(o,e)})),(0,l.onUnmounted)((()=>i((0,l.unref)(t.id))))),(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"branch",ref_key:"node",ref:n},null,512))}}),V=t(3744);const w=(0,V.Z)(M,[["__scopeId","data-v-1318daf7"]]);var Z=w;const x={key:0},C={key:0,class:"mark star"},E=["src"];var B=(0,l.defineComponent)({props:{mark:{type:[Boolean,String]}},setup(e){return(o,t)=>e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",x,[!0===e.mark?((0,l.openBlock)(),(0,l.createElementBlock)("div",C)):((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:1,class:"mark",src:e.mark},null,8,E))])):(0,l.createCommentVNode)("",!0)}});const I=(0,V.Z)(B,[["__scopeId","data-v-c476c56a"]]);var P=I,F=t(5939);function T(e){const{display:o,top:t,left:l,right:r,bottom:i,xoffset:n,yoffset:a,force:s}=e;return{display:o,top:t,left:l,right:r,bottom:i,xoffset:n,yoffset:a,force:s}}var D=(0,l.defineComponent)({props:{display:(0,v.P5)(Object,String,Function),visibility:{type:(0,v.P5)(Number),required:!0},style:(0,v.P5)(String,Object,Array),classes:(0,v.P5)(Object),tooltip:(0,v.P5)(Object,String,Function),onClick:Function,onHold:Function,color:(0,v.P5)(String),glowColor:(0,v.P5)(String),forceTooltip:{type:Object,required:!0},canClick:{type:(0,v.P5)(Boolean),required:!0},mark:(0,v.P5)(Boolean,String),id:{type:String,required:!0},small:(0,v.P5)(Boolean)},components:{Tooltip:F.Z,MarkNode:P,LinkNode:Z},setup(e){const{tooltip:o,forceTooltip:t,onClick:r,onHold:i,display:n}=(0,l.toRefs)(e);function s(e){e.shiftKey&&o?t.value=(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value)():(0,l.unref)(r)?.()}const m=(0,v.KO)(n),u=(0,l.shallowRef)(void 0);(0,l.watchEffect)((()=>{const e=(0,v.Uv)(o);"object"===typeof e&&(()=>void 0!==(0,v.RU)(e)&&null!==(0,v.RU)(e)&&(0,v.RU)(e)[Symbol.for("!")]?(0,v.RU)(e)[Symbol.for("!")]():!(0,v.RU)(e))()?u.value=e.display:u.value=e}));const f=(0,l.computed)((()=>{const e=(0,v.Uv)(o);return"object"===typeof e&&(()=>void 0!==(0,v.RU)(e)&&null!==(0,v.RU)(e)&&(0,v.RU)(e)[Symbol.for("!")]?(0,v.RU)(e)[Symbol.for("!")]():!(0,v.RU)(e))()?e:null})),{start:y,stop:c}=(0,v.ix)(r,i);return{click:s,start:y,stop:c,comp:m,tooltipDisplay:u,tooltipToBind:f,unref:l.unref,Visibility:a.EE,gatherTooltipProps:T,isCoercableComponent:v.RU}}});const _=(0,V.Z)(D,[["render",N],["__scopeId","data-v-176052a6"]]);var O=_,R=(0,l.defineComponent)({props:{nodes:{type:(0,v.P5)(Array),required:!0},leftSideNodes:(0,v.P5)(Array),rightSideNodes:(0,v.P5)(Array)},components:{TreeNode:O},setup(){function e(e){const{display:o,visibility:t,style:l,classes:r,tooltip:i,onClick:n,onHold:a,color:s,glowColor:m,forceTooltip:u,canClick:f,mark:y,id:c}=e;return{display:o,visibility:t,style:l,classes:r,tooltip:i,onClick:n,onHold:a,color:s,glowColor:m,forceTooltip:u,canClick:f,mark:y,id:c}}return{gatherNodeProps:e,unref:l.unref}}});const j=(0,V.Z)(R,[["render",g],["__scopeId","data-v-e6ef63ea"]]);var W=j,q=(t(3243),t(9583)),L=t(3273);const A=Symbol("TreeNode"),z=Symbol("Tree");function U(e){return(0,L.z2)((()=>{const o=e();return o.id=(0,a.QI)("treeNode-"),o.type=A,o.tooltip?o.forceTooltip=(0,u.ax)(!1):o.forceTooltip=(0,l.ref)(!1),(0,q.yB)(o,"visibility"),(0,a.Rh)(o,"visibility",a.EE.Visible),(0,q.yB)(o,"canClick"),(0,a.Rh)(o,"canClick",!0),(0,q.yB)(o,"color"),(0,q.yB)(o,"display"),(0,q.yB)(o,"tooltip"),(0,q.yB)(o,"glowColor"),(0,q.yB)(o,"classes"),(0,q.yB)(o,"style"),(0,q.yB)(o,"mark"),o}))}function G(e){return(0,L.z2)((()=>{const o=e();return o.id=(0,a.QI)("tree-"),o.type=z,o[a.wA]=W,o.isResetting=(0,l.ref)(!1),o.resettingNode=(0,l.ref)(null),o.reset=function(e){const t=o;t.isResetting.value=!0,t.resettingNode.value=e,t.resetPropagation?.(t,e),t.onReset?.(e),t.isResetting.value=!1,t.resettingNode.value=null},o.links=(0,l.computed)((()=>{const e=o;return(0,l.unref)(e.branches)??[]})),(0,q.yB)(o,"visibility"),(0,a.Rh)(o,"visibility",a.EE.Visible),(0,q.yB)(o,"nodes"),(0,q.yB)(o,"leftSideNodes"),(0,q.yB)(o,"rightSideNodes"),(0,q.yB)(o,"branches"),o[a.tj]=function(){const{nodes:e,leftSideNodes:o,rightSideNodes:t}=this;return{nodes:e,leftSideNodes:o,rightSideNodes:t}},o}))}const J=function(e,o){const t=[o];let r=[o];if((()=>void 0!==e.branches&&null!==e.branches&&e.branches[Symbol.for("!=")]?e.branches[Symbol.for("!=")](null):null!=e.branches)()){const o=(0,l.unref)(e.branches);while((()=>void 0!==r.length&&null!==r.length&&r.length[Symbol.for(">")]?r.length[Symbol.for(">")](0):r.length>0)()){const e=[];r.forEach((l=>{o.filter((e=>e.startNode===l||e.endNode===l)).map((e=>e.startNode===l?e.endNode:e.startNode)).filter((e=>(()=>void 0!==t.includes(e)&&null!==t.includes(e)&&t.includes(e)[Symbol.for("!")]?t.includes(e)[Symbol.for("!")]():!t.includes(e))())).forEach((o=>{(()=>void 0!==e.includes(o)&&null!==e.includes(o)&&e.includes(o)[Symbol.for("!")]?e.includes(o)[Symbol.for("!")]():!e.includes(o))()&&(e.push(o),o.reset?.reset())}))})),r=e,t.push(...r)}}};var Y=t(9365),H=t(5967);function $(e){return(0,L.z2)((()=>{const o=e();return(()=>void 0!==o.currentGain&&null!==o.currentGain&&o.currentGain[Symbol.for("==")]?o.currentGain[Symbol.for("==")](null):null==o.currentGain)()&&(o.currentGain=(0,l.computed)((()=>o.scaling.currentGain(o)))),(()=>void 0!==o.nextAt&&null!==o.nextAt&&o.nextAt[Symbol.for("==")]?o.nextAt[Symbol.for("==")](null):null==o.nextAt)()&&(o.nextAt=(0,l.computed)((()=>o.scaling.nextAt(o)))),(()=>void 0!==o.convert&&null!==o.convert&&o.convert[Symbol.for("==")]?o.convert[Symbol.for("==")](null):null==o.convert)()&&(o.convert=function(){o.gainResource.value=s.ZP.add(o.gainResource.value,o.modifyGainAmount?o.modifyGainAmount((0,l.unref)(o.currentGain)):(0,l.unref)(o.currentGain)),o.baseResource.value=0}),(0,q.yB)(o,"currentGain"),(0,q.yB)(o,"nextAt"),(0,q.yB)(o,"buyMax"),(0,a.Rh)(o,"buyMax",!0),(0,q.yB)(o,"roundUpCost"),(0,a.Rh)(o,"roundUpCost",!0),o}))}function X(e,o,t){return{currentGain(o){let r=s.ZP.div(o.baseResource.value,(0,l.unref)(e)).pow((0,l.unref)(t)).floor().max(0);return r.isNan()?new s.ZP(0):((()=>void 0!==o.buyMax&&null!==o.buyMax&&o.buyMax[Symbol.for("!")]?o.buyMax[Symbol.for("!")]():!o.buyMax)()&&(r=r.min(1)),r)},nextAt(o){let r=s.ZP.add((0,l.unref)(o.currentGain),1).root((0,l.unref)(t)).times((0,l.unref)(e)).max((0,l.unref)(e));return o.roundUpCost&&(r=r.ceil()),r}}}function Q(e){return $(e)}var K=t(1008);const ee=Symbol("Reset");function oe(e){return(0,L.z2)((()=>{const o=e();return o.id=(0,a.QI)("reset-"),o.type=ee,o.reset=function(){const e=o=>{o&&"object"===typeof o&&((()=>void 0!==a.PersistentState&&null!==a.PersistentState&&a.PersistentState[Symbol.for("in")]?a.PersistentState[Symbol.for("in")](o):a.PersistentState in o)()?o[a.PersistentState].value=o[a.DefaultValue]:(()=>o instanceof K.Z!==void 0&&o instanceof K.Z!==null&&(o instanceof K.Z)[Symbol.for("!")]?(o instanceof K.Z)[Symbol.for("!")]():!(o instanceof K.Z))()&&(()=>void 0!==(0,l.isRef)(o)&&null!==(0,l.isRef)(o)&&(0,l.isRef)(o)[Symbol.for("!")]?(0,l.isRef)(o)[Symbol.for("!")]():!(0,l.isRef)(o))()&&Object.values(o).forEach((o=>e(o))))};(0,l.unref)(o.thingsToReset).forEach(e),m.globalBus.emit("reset",o),o.onReset?.()},(0,q.yB)(o,"thingsToReset"),o}))}const te={};m.globalBus.on("removeLayer",(e=>{te[e.id]?.(),te[e.id]=void 0}));var le=(0,l.defineComponent)({props:{resource:null,color:null},setup(e){const o=e,t=(0,l.computed)((()=>b(o.resource)));return(o,r)=>((0,l.openBlock)(),(0,l.createElementBlock)("h2",{style:(0,l.normalizeStyle)({color:e.color,"text-shadow":(()=>"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](e.color):"0px 0px 10px "+e.color)()})},(0,l.toDisplayString)((0,l.unref)(t)),5))}});const re=le;var ie=re;const ne={key:0},ae={key:1},se=(0,l.createTextVNode)(", "),me=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)()),ue=(0,l.createElementVNode)("br",null,null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var fe=(0,l.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,v.KO)(t.effectDisplay),i=(0,l.computed)((()=>s.ZP.lt(t.resource.value,"1e1000")));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.unref)(i)?((0,l.openBlock)(),(0,l.createElementBlock)("span",ne,"You have ")):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(ie,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),(0,l.createTextVNode)((()=>" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)(e.resource.displayName)):" "+(0,l.toDisplayString)(e.resource.displayName))(),1),(0,l.unref)(r)?((0,l.openBlock)(),(0,l.createElementBlock)("span",ae,[se,((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(r))))])):(0,l.createCommentVNode)("",!0),me,ue]))}});const ye=fe;var ce=ye;const de=["disabled"];function be(e,o,t,r,i,n){const a=(0,l.resolveComponent)("MarkNode"),s=(0,l.resolveComponent)("LinkNode");return(()=>void 0!==e.unref(e.visibility)&&null!==e.unref(e.visibility)&&e.unref(e.visibility)[Symbol.for("!==")]?e.unref(e.visibility)[Symbol.for("!==")](e.Visibility.None):e.unref(e.visibility)!==e.Visibility.None)()?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,style:(0,l.normalizeStyle)({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0})},[(0,l.createElementVNode)("button",{style:(0,l.normalizeStyle)(e.unref(e.style)),onClick:o[0]||(o[0]=(...o)=>e.onClick&&e.onClick(...o)),onMousedown:o[1]||(o[1]=(...o)=>e.start&&e.start(...o)),onMouseleave:o[2]||(o[2]=(...o)=>e.stop&&e.stop(...o)),onMouseup:o[3]||(o[3]=(...o)=>e.stop&&e.stop(...o)),onTouchstart:o[4]||(o[4]=(...o)=>e.start&&e.start(...o)),onTouchend:o[5]||(o[5]=(...o)=>e.stop&&e.stop(...o)),onTouchcancel:o[6]||(o[6]=(...o)=>e.stop&&e.stop(...o)),disabled:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))(),class:(0,l.normalizeClass)({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:(()=>void 0!==e.unref(e.canClick)&&null!==e.unref(e.canClick)&&e.unref(e.canClick)[Symbol.for("!")]?e.unref(e.canClick)[Symbol.for("!")]():!e.unref(e.canClick))(),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.unref(e.comp)),{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(a,{mark:e.unref(e.mark)},null,8,["mark"]),(0,l.createVNode)(s,{id:e.id},null,8,["id"])],46,de)],4)):(0,l.createCommentVNode)("",!0)}var he=(0,l.defineComponent)({props:{display:{type:(0,v.P5)(Object,String,Function),required:!0},visibility:{type:(0,v.P5)(Number),required:!0},style:(0,v.P5)(Object,String,Array),classes:(0,v.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,v.P5)(Boolean),required:!0},small:Boolean,mark:(0,v.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:Z,MarkNode:P},setup(e){const{display:o,onClick:t,onHold:r}=(0,l.toRefs)(e),i=(0,l.shallowRef)("");(0,l.watchEffect)((()=>{const e=(0,v.Uv)(o);if((()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)())return void(i.value="");if((0,v.RU)(e))return void(i.value=(0,v.MM)(e));const t=(0,v.MM)(e.title||"","h3"),r=(0,v.MM)(e.description,"div");i.value=(0,v.MM)((0,a.tZ)((()=>(0,l.createVNode)("span",null,[e.title?(0,l.createVNode)("div",null,[(0,l.createVNode)(t,null,null)]):null,(0,l.createVNode)(r,null,null)]))))}));const{start:n,stop:s}=(0,v.ix)(t,r);return{start:n,stop:s,comp:i,Visibility:a.EE,unref:l.unref}}});const Se=(0,V.Z)(he,[["render",be],["__scopeId","data-v-2d81e1cc"]]);var ge=Se;const ve=Symbol("Clickable");function pe(e){return(0,L.z2)((()=>{const o=e();return o.id=(0,a.QI)("clickable-"),o.type=ve,o[a.wA]=ge,(0,q.yB)(o,"visibility"),(0,a.Rh)(o,"visibility",a.EE.Visible),(0,q.yB)(o,"canClick"),(0,a.Rh)(o,"canClick",!0),(0,q.yB)(o,"classes"),(0,q.yB)(o,"style"),(0,q.yB)(o,"mark"),(0,q.yB)(o,"display"),o[a.tj]=function(){const{display:e,visibility:o,style:t,classes:l,onClick:r,onHold:i,canClick:n,small:a,mark:s,id:m}=this;return{display:e,visibility:o,style:t,classes:l,onClick:r,onHold:i,canClick:n,small:a,mark:s,id:m}},o}))}function Ne(e){return pe((()=>{const o=e();(0,q.yB)(o,"showNextAt"),(0,a.Rh)(o,"showNextAt",!0),(()=>void 0!==o.resetDescription&&null!==o.resetDescription&&o.resetDescription[Symbol.for("==")]?o.resetDescription[Symbol.for("==")](null):null==o.resetDescription)()?o.resetDescription=(0,l.computed)((()=>s.ZP.lt(o.conversion.gainResource.value,1e3)?"Reset for ":"")):(0,q.yB)(o,"resetDescription"),(()=>void 0!==o.display&&null!==o.display&&o.display[Symbol.for("==")]?o.display[Symbol.for("==")](null):null==o.display)()&&(o.display=(0,a.tZ)((()=>(0,l.createVNode)("span",null,[(0,l.unref)(o.resetDescription),(0,l.createVNode)("b",null,[b(o.conversion.gainResource,(0,l.unref)(o.conversion.currentGain))])," ",o.conversion.gainResource.displayName,(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createVNode)("br",null,null),(0,l.createTextVNode)("Next:")," ",b(o.conversion.baseResource,(0,l.unref)(o.conversion.nextAt))," ",o.conversion.baseResource.displayName]),[[l.vShow,(0,l.unref)(o.showNextAt)]])])))),(()=>void 0!==o.canClick&&null!==o.canClick&&o.canClick[Symbol.for("==")]?o.canClick[Symbol.for("==")](null):null==o.canClick)()&&(o.canClick=(0,l.computed)((()=>s.ZP.gt((0,l.unref)(o.conversion.currentGain),0))));const t=o.onClick;return o.onClick=function(){o.conversion.convert(),o.tree.reset(o.treeNode),t?.()},o}))}function ke(e){return U((()=>{const o=e();return(0,q.yB)(o,"append"),{...o,display:o.layerID,onClick:(()=>void 0!==o.append&&null!==o.append&&o.append[Symbol.for("!=")]?o.append[Symbol.for("!=")](null):null!=o.append)()&&o.append?function(){if(H.Z.tabs.includes(o.layerID)){const e=H.Z.tabs.lastIndexOf(o.layerID);H.Z.tabs.splice(e,1)}else H.Z.tabs.push(o.layerID)}:function(){H.Z.tabs.splice(1,1,o.layerID)}}}))}const Me=(0,Y.createLayer)((()=>{const e="p",o="Prestige",t="#4BDC13",r=f(0,"prestige points"),i=Q((()=>({scaling:X(10,5,.5),baseResource:we.points,gainResource:r,roundUpCost:!0}))),n=oe((()=>({thingsToReset:()=>[Me]}))),s=ke((()=>({layerID:e,color:t,reset:n}))),m=Ne((()=>({conversion:i,tree:we.tree,treeNode:s})));return{id:e,name:o,color:t,points:r,display:(0,a.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.createVNode)(ce,{resource:r,color:t},null),(0,v.sY)(m)]))),treeNode:s}}));var Ve=Me;const we=(0,Y.createLayer)((()=>{const e=f(10),o=y(e),t=c(e),r=(0,l.computed)((()=>{let e=new s.ZP(1);return e}));m.globalBus.on("update",(o=>{e.value=s.ZP.add(e.value,s.ZP.times(r.value,o))}));const i=d(e,r),u=G((()=>({nodes:[[Ve.treeNode]],branches:[],onReset(){e.value=(0,l.toRaw)(this.resettingNode.value)===(0,l.toRaw)(Ve.treeNode)?0:10,o.value=e.value,t.value=e.value},resetPropagation:J})));return{id:"main",name:"Tree",links:u.links,display:(0,a.tZ)((()=>(0,l.createVNode)(l.Fragment,null,[(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Game Paused")]),[[l.vShow,0===H.Z.devSpeed]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Dev Speed: "),(0,s.WU)(H.Z.devSpeed||0),(0,l.createTextVNode)("x")]),[[l.vShow,H.Z.devSpeed&&(()=>void 0!==H.Z.devSpeed&&null!==H.Z.devSpeed&&H.Z.devSpeed[Symbol.for("!==")]?H.Z.devSpeed[Symbol.for("!==")](1):1!==H.Z.devSpeed)()]]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("Offline Time: "),(0,s.mr)(H.Z.offlineTime||0)]),[[l.vShow,(()=>void 0!==H.Z.offlineTime&&null!==H.Z.offlineTime&&H.Z.offlineTime[Symbol.for("!=")]?H.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=H.Z.offlineTime)()]]),(0,l.createVNode)("div",null,[(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)("You have ")]),[[l.vShow,s.ZP.lt(e.value,"1e1000")]]),(0,l.createVNode)("h2",null,[(0,s.WU)(e.value)]),(0,l.withDirectives)((0,l.createVNode)("span",null,[(0,l.createTextVNode)(" points")]),[[l.vShow,s.ZP.lt(e.value,"1e1e6")]])]),(0,l.withDirectives)((0,l.createVNode)("div",null,[(0,l.createTextVNode)("("),i.value,(0,l.createTextVNode)(")")]),[[l.vShow,s.ZP.gt(r.value,0)]]),(0,l.createVNode)(n,null,null),(0,v.sY)(u)]))),points:e,best:o,total:t,oomps:i,tree:u}})),Ze=e=>[we,Ve],xe=(0,l.computed)((()=>!1));function Ce(e,o){}},9365:function(e,o,t){"use strict";t.r(o),t.d(o,{layers:function(){return y},createLayer:function(){return c},addLayer:function(){return d},getLayer:function(){return b},removeLayer:function(){return h},reloadLayer:function(){return S},setupLayerModal:function(){return g}});var l=t(4865),r=t(7286),i=t(6113),n=t(9583),a=t(3273),s=t(8111),m=t(7302),u=t(4061),f=t(5967);const y={};function c(e){return(0,a.z2)((()=>{const o=e(),t=o.emitter=(0,s.i)();return o.on=t.on.bind(t),o.emit=t.emit.bind(t),o.minimized=(0,u.ax)(!1),(0,n.yB)(o,"color"),(0,n.yB)(o,"display"),(0,n.yB)(o,"name"),(0,i.Rh)(o,"name",o.id),(0,n.yB)(o,"minWidth"),(0,i.Rh)(o,"minWidth",600),(0,n.yB)(o,"minimizable"),(0,i.Rh)(o,"minimizable",!0),(0,n.yB)(o,"links"),o}))}function d(e,o){console.info("Adding layer",e.id),y[e.id]?console.error("Attempted to add layer with same ID as existing layer",e.id,y[e.id]):((0,i.Rh)(o,"layers",{}),(()=>void 0!==o.layers[e.id]&&null!==o.layers[e.id]&&o.layers[e.id][Symbol.for("==")]?o.layers[e.id][Symbol.for("==")](null):null==o.layers[e.id])()&&(o.layers[e.id]={}),y[e.id]=e,m.globalBus.emit("addLayer",e,o.layers[e.id]))}function b(e){return y[e]}function h(e){console.info("Removing layer",e.id),m.globalBus.emit("removeLayer",e),y[e.id]=void 0}function S(e){h(e),d(e,f.Z)}function g(e){const o=(0,l.ref)(!1);return{openModal:()=>o.value=!0,modal:(0,i.tZ)((()=>(0,l.createVNode)(r.Z,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e},{header:()=>(0,l.createVNode)("h2",null,[(0,l.unref)(e.name)]),body:(0,l.unref)(e.display)})))}}window.layers=y,m.globalBus.on("update",(function(e){Object.values(y).forEach((o=>{o?.emit("preUpdate",e)})),Object.values(y).forEach((o=>{o?.emit("update",e)})),Object.values(y).forEach((o=>{o?.emit("postUpdate",e)}))}))},8755:function(e,o,t){"use strict";t.d(o,{MM:function(){return n},vq:function(){return u},KO:function(){return f},RU:function(){return s},P5:function(){return d},sY:function(){return a},ix:function(){return m},Uv:function(){return c},o9:function(){return y}});var l=t(4865);t(1037),t(9266);var r=t(6113),i=t(9583);function n(e,o="span"){return"function"===typeof e?(0,l.defineComponent)({render:e}):"string"===typeof e?(()=>void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](0):e.length>0)()?(e=e.trim(),(()=>void 0!==e.charAt(0)&&null!==e.charAt(0)&&e.charAt(0)[Symbol.for("!==")]?e.charAt(0)[Symbol.for("!==")]("<"):"<"!==e.charAt(0))()&&(e=`<${o}>${e}</${o}>`),(0,l.defineComponent)({template:e})):(0,l.defineComponent)({render:()=>({})}):e}function a(e){if(s(e))return"function"===typeof e?e():n(e);const o=e[r.wA];return(0,l.createVNode)(o,e[r.tj](),null)}function s(e){return"string"===typeof e||("object"===typeof e?!(()=>void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e)()&&((()=>"render"[Symbol.for("in")]?"render"[Symbol.for("in")](e):"render"in e)()||(()=>"component"[Symbol.for("in")]?"component"[Symbol.for("in")](e):"component"in e)()):"function"===typeof e&&!0===e[i.mM])}function m(e,o){const t=(0,l.ref)(null);function r(){(()=>void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value)()&&(t.value=setInterval(n,250))}function i(){t.value&&(clearInterval(t.value),t.value=null)}function n(){o&&o.value?o.value():e&&e.value&&e.value()}return{start:r,stop:i,handleHolding:n}}function u(e,o="div"){const t=(0,l.shallowRef)();return(0,l.watchEffect)((()=>{t.value=n(c(e),o)})),t}function f(e,o="div"){const t=(0,l.shallowRef)(null);return(0,l.watchEffect)((()=>{const l=c(e);t.value=(()=>void 0!==l&&null!==l&&l[Symbol.for("==")]?l[Symbol.for("==")](null):null==l)()?null:n(l,o)})),t}function y(e){return(0,l.computed)((()=>c(e)))}function c(e){return(0,l.unref)((0,l.unref)(e))}function d(...e){return(()=>void 0!==e.includes(Object)&&null!==e.includes(Object)&&e.includes(Object)[Symbol.for("!")]?e.includes(Object)[Symbol.for("!")]():!e.includes(Object))()&&e.push(Object),e}},7286:function(e,o,t){"use strict";t.d(o,{Z:function(){return S}});var l=t(4865),r=t(5389);const i=["onPointerdown"],n={class:"modal-wrapper"},a={class:"modal-container"},s={class:"modal-header"},m=(0,l.createTextVNode)(" default header "),u={class:"modal-body"},f=(0,l.createTextVNode)(" default body "),y=(0,l.createTextVNode)(" default body "),c={class:"modal-footer"},d=(0,l.createElementVNode)("div",{class:"modal-default-flex-grow"},null,(()=>1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1)());var b=(0,l.defineComponent)({props:{modelValue:{type:Boolean},links:null},emits:["update:modelValue"],setup(e,{expose:o,emit:t}){const b=e,h=(0,l.toRefs)(b),S=(0,l.computed)((()=>h.modelValue||v.value));function g(){t("update:modelValue",!1)}const v=(0,l.ref)(!1);return o({isOpen:S}),(o,t)=>((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:"#modal-root"},[(0,l.createVNode)(l.Transition,{name:"modal",onBeforeEnter:t[0]||(t[0]=e=>v.value=!0),onAfterLeave:t[1]||(t[1]=e=>v.value=!1)},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",(0,l.mergeProps)({class:"modal-mask",onPointerdown:(0,l.withModifiers)(g,["self"])},o.$attrs),[(0,l.createElementVNode)("div",n,[(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",s,[(0,l.renderSlot)(o.$slots,"header",{shown:(0,l.unref)(S)},(()=>[m]))]),(0,l.createElementVNode)("div",u,[e.links?((0,l.openBlock)(),(0,l.createBlock)(r.Z,{key:0,links:e.links},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(o.$slots,"body",{shown:(0,l.unref)(S)},(()=>[f]))])),_:3},8,["links"])):(0,l.renderSlot)(o.$slots,"body",{key:1,shown:(0,l.unref)(S)},(()=>[y]))]),(0,l.createElementVNode)("div",c,[(0,l.renderSlot)(o.$slots,"footer",{shown:(0,l.unref)(S)},(()=>[(0,l.createElementVNode)("div",{class:"modal-default-footer"},[d,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:g}," Close ")])]))])])])],16,i),[[l.vShow,e.modelValue]])])),_:3})]))}});const h=b;var S=h},5939:function(e,o,t){"use strict";t.d(o,{Z:function(){return m}});var l=t(4865);function r(e,o,t,r,i,n){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["tooltip-container",{shown:e.isShown}]),onMouseenter:o[0]||(o[0]=o=>e.isHovered=!0),onMouseleave:o[1]||(o[1]=o=>e.isHovered=!1)},[(0,l.renderSlot)(e.$slots,"default",{},void 0,!0),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((()=>[e.isShown?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["tooltip",{top:e.unref(e.top),left:e.unref(e.left),right:e.unref(e.right),bottom:e.unref(e.bottom)}]),style:(0,l.normalizeStyle)({"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"})},[e.comp?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.comp),{key:0})):(0,l.createCommentVNode)("",!0)],6)):(0,l.createCommentVNode)("",!0)])),_:1})],34)}var i=t(8755),n=(0,l.defineComponent)({props:{display:(0,i.P5)(Object,String,Function),top:(0,i.P5)(Boolean),left:(0,i.P5)(Boolean),right:(0,i.P5)(Boolean),bottom:(0,i.P5)(Boolean),xoffset:(0,i.P5)(String),yoffset:(0,i.P5)(String),force:(0,i.P5)(Boolean)},setup(e){const{display:o,force:t}=(0,l.toRefs)(e),r=(0,l.ref)(!1),n=(0,l.computed)((()=>((0,i.Uv)(t)||r.value)&&a.value)),a=(0,i.KO)(o);return{isHovered:r,isShown:n,comp:a,unref:l.unref}}}),a=t(3744);const s=(0,a.Z)(n,[["render",r],["__scopeId","data-v-2ee899a0"]]);var m=s},5389:function(e,o,t){"use strict";t.d(o,{Z:function(){return y}});var l=t(4865),r=t(630);const i=["x1","y1","x2","y2"];var n=(0,l.defineComponent)({props:{link:null,startNode:null,endNode:null},setup(e){const o=e,t=(0,l.toRefs)(o),r=(0,l.computed)((()=>{const e={x:t.startNode.value.x||0,y:t.startNode.value.y||0};return t.link.value.offsetStart&&(e.x=(()=>void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,l.unref)(t.link.value.offsetStart).x):e.x+(0,l.unref)(t.link.value.offsetStart).x)(),e.y=(()=>void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,l.unref)(t.link.value.offsetStart).y):e.y+(0,l.unref)(t.link.value.offsetStart).y)()),e})),n=(0,l.computed)((()=>{const e={x:t.endNode.value.x||0,y:t.endNode.value.y||0};return t.link.value.offsetEnd&&(e.x=(()=>void 0!==e.x&&null!==e.x&&e.x[Symbol.for("+")]?e.x[Symbol.for("+")]((0,l.unref)(t.link.value.offsetEnd).x):e.x+(0,l.unref)(t.link.value.offsetEnd).x)(),e.y=(()=>void 0!==e.y&&null!==e.y&&e.y[Symbol.for("+")]?e.y[Symbol.for("+")]((0,l.unref)(t.link.value.offsetEnd).y):e.y+(0,l.unref)(t.link.value.offsetEnd).y)()),e}));return(o,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("line",(0,l.mergeProps)({"stroke-width":"15px",stroke:"white"},e.link,{x1:(0,l.unref)(r).x,y1:(0,l.unref)(r).y,x2:(0,l.unref)(n).x,y2:(0,l.unref)(n).y}),null,16,i))}});const a=n;var s=a,m=(0,l.defineComponent)({props:{links:null},setup(e){const o=e,t=(0,l.toRef)(o,"links"),i=new MutationObserver(c),n=new ResizeObserver(b),a=(0,l.ref)({}),m=(0,l.ref)(new DOMRect),u=(0,l.ref)(null);(0,l.onMounted)((()=>{const e=u.value;(()=>void 0!==e&&null!==e&&e[Symbol.for("!=")]?e[Symbol.for("!=")](null):null!=e)()&&n.observe(e),c()}));const f=(0,l.computed)((()=>t.value?.filter((e=>{const o=a.value;return(()=>void 0!==o[e.startNode.id]?.x&&null!==o[e.startNode.id]?.x&&o[e.startNode.id]?.x[Symbol.for("!=")]?o[e.startNode.id]?.x[Symbol.for("!=")](void 0):void 0!=o[e.startNode.id]?.x)()&&(()=>void 0!==o[e.startNode.id]?.y&&null!==o[e.startNode.id]?.y&&o[e.startNode.id]?.y[Symbol.for("!=")]?o[e.startNode.id]?.y[Symbol.for("!=")](void 0):void 0!=o[e.startNode.id]?.y)()&&(()=>void 0!==o[e.endNode.id]?.x&&null!==o[e.endNode.id]?.x&&o[e.endNode.id]?.x[Symbol.for("!=")]?o[e.endNode.id]?.x[Symbol.for("!=")](void 0):void 0!=o[e.endNode.id]?.x)()&&(()=>void 0!==o[e.endNode.id]?.y&&null!==o[e.endNode.id]?.y&&o[e.endNode.id]?.y[Symbol.for("!=")]?o[e.endNode.id]?.y[Symbol.for("!=")](void 0):void 0!=o[e.endNode.id]?.y)()}))??[])),y={attributes:!0,childList:!0,subtree:!0};function c(){(()=>void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value)()&&Object.keys(a.value).forEach((e=>d(e)))}function d(e){const o=a.value[e];if((()=>void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o)())return;const t=o.element.getBoundingClientRect();o.x=(()=>t.x+t.width/2!==void 0&&t.x+t.width/2!==null&&(t.x+t.width/2)[Symbol.for("-")]?(t.x+t.width/2)[Symbol.for("-")](m.value.x):t.x+t.width/2-m.value.x)(),o.y=(()=>t.y+t.height/2!==void 0&&t.y+t.height/2!==null&&(t.y+t.height/2)[Symbol.for("-")]?(t.y+t.height/2)[Symbol.for("-")](m.value.y):t.y+t.height/2-m.value.y)()}function b(){(()=>void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value)()&&(m.value=u.value.getBoundingClientRect(),c())}return(0,l.provide)(r.Z,((e,o)=>{a.value[e]={element:o},i.observe(o,y),(0,l.nextTick)((()=>{(()=>void 0!==u.value&&null!==u.value&&u.value[Symbol.for("!=")]?u.value[Symbol.for("!=")](null):null!=u.value)()&&d(e)}))})),(0,l.provide)(r.w,(e=>{a.value[e]=void 0})),(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.renderSlot)(e.$slots,"default"),(0,l.createElementVNode)("div",{ref_key:"resizeListener",ref:u,class:"resize-listener"},null,512),(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("svg",(0,l.normalizeProps)((0,l.mergeProps)({key:0},e.$attrs)),[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(f),((e,o)=>((0,l.openBlock)(),(0,l.createBlock)(s,{key:o,link:e,startNode:a.value[e.startNode.id],endNode:a.value[e.endNode.id]},null,8,["link","startNode","endNode"])))),128))],16)):(0,l.createCommentVNode)("",!0)],64))}}),u=t(3744);const f=(0,u.Z)(m,[["__scopeId","data-v-5bf46048"]]);var y=f},2736:function(e,o,t){"use strict";t.r(o),o["default"]="eyJpZCI6InRtdC14LTEwNSIsIm5hbWUiOiJEZWZhdWx0IFNhZmZmZiAtIHNvbWV0aGluZyBlbH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RPbkJ1eWFibGVzIjoiMCJ9LCJhIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbIjExIl0sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9LCJ1bmxvY2tlZCI6dHJ1ZSwicG9pbnRzIjoiMCJ9LCJnIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJoIjp7InVwZ3JhZGVzIjpbXSwiYWNoaWV2ZW1lbnRzIjpbXSwibWlsZXN0b25lcyI6W10sImluZm9ib3hlcyI6e319LCJzcG9vayI6eyJ1cGdyYWRlcyI6W10sImFjaGlldmVtZW50cyI6W10sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9fSwib29tcHNNYWciOjAsImxhc3RQb2ludHMiOiIzMzAwLjM3Nzc3Mzg1OTA1NSJ9"},7634:function(e,o,t){var l={"./safff.txt":2736};function r(e){var o=i(e);return t(o)}function i(e){if(!t.o(l,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return l[e]}r.keys=function(){return Object.keys(l)},r.resolve=i,e.exports=r,r.id=7634},2345:function(e){"use strict";e.exports=JSON.parse('{"title":"Profectus","id":"profectus","author":"thepaperpilot","discordName":"The Paper Pilot Community","discordLink":"https://discord.gg/WzejVAx","versionNumber":"0.0","versionTitle":"Initial Commit","allowGoBack":true,"allowSmall":false,"defaultDecimalsShown":2,"useHeader":true,"banner":null,"logo":"","initialTabs":["main"],"maxTickLength":3600,"offlineLimit":1}')}},o={};function t(l){var r=o[l];if(void 0!==r)return r.exports;var i=o[l]={exports:{}};return e[l].call(i.exports,i,i.exports,t),i.exports}t.m=e,function(){var e=[];t.O=function(o,l,r,i){if(!l){var n=1/0;for(u=0;u<e.length;u++){l=e[u][0],r=e[u][1],i=e[u][2];for(var a=!0,s=0;s<l.length;s++)(!1&i||n>=i)&&Object.keys(t.O).every((function(e){return t.O[e](l[s])}))?l.splice(s--,1):(a=!1,i<n&&(n=i));if(a){e.splice(u--,1);var m=r();void 0!==m&&(o=m)}}return o}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[l,r,i]}}(),function(){t.n=function(e){var o=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(o,{a:o}),o}}(),function(){t.d=function(e,o){for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={143:0};t.O.j=function(o){return 0===e[o]};var o=function(o,l){var r,i,n=l[0],a=l[1],s=l[2],m=0;if(n.some((function(o){return 0!==e[o]}))){for(r in a)t.o(a,r)&&(t.m[r]=a[r]);if(s)var u=s(t)}for(o&&o(l);m<n.length;m++)i=n[m],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(u)},l=self["webpackChunkprofectus"]=self["webpackChunkprofectus"]||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))}();var l=t.O(void 0,[998],(function(){return t(5634)}));l=t.O(l)})(); +//# sourceMappingURL=app.0ae1f71d.js.map \ No newline at end of file diff --git a/js/app.0ae1f71d.js.map b/js/app.0ae1f71d.js.map new file mode 100644 index 0000000..5b01075 --- /dev/null +++ b/js/app.0ae1f71d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/app.0ae1f71d.js","mappings":"qFAkCA,MAAMA,EAAsB,CACxBC,UAAW,CACP,eAAgB,UAChB,eAAgB,UAChB,uBAAwB,OACxB,uBAAwB,sBAC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BE,EAAUF,EAAK,GAGIjxB,EAAI,EAC3B,GAAGyvB,EAAS2B,MAAK,SAAS35B,GAAM,OAA+B,IAAxBo5B,EAAgBp5B,MAAe,CACrE,IAAI23B,KAAY8B,EACZrC,EAAoBC,EAAEoC,EAAa9B,KACrCP,EAAoB9qB,EAAEqrB,GAAY8B,EAAY9B,IAGhD,GAAG+B,EAAS,IAAIrnB,EAASqnB,EAAQtC,GAGlC,IADGmC,GAA4BA,EAA2BC,GACrDjxB,EAAIyvB,EAAS7lB,OAAQ5J,IACzB8wB,EAAUrB,EAASzvB,GAChB6uB,EAAoBC,EAAE+B,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOjC,EAAoBW,EAAE1lB,IAG1BunB,EAAqBC,KAAK,yBAA2BA,KAAK,0BAA4B,GAC1FD,EAAmB72B,QAAQu2B,EAAqBpQ,KAAK,KAAM,IAC3D0Q,EAAmBr2B,KAAO+1B,EAAqBpQ,KAAK,KAAM0Q,EAAmBr2B,KAAK2lB,KAAK0Q,I,GC/CvF,IAAIE,EAAsB1C,EAAoBW,OAAEr3B,EAAW,CAAC,MAAM,WAAa,OAAO02B,EAAoB,SAC1G0C,EAAsB1C,EAAoBW,EAAE+B,I","sources":["webpack://profectus/./src/data/themes.ts","webpack://profectus/./src/features/feature.ts","webpack://profectus/./src/features/links.ts","webpack://profectus/./src/game/events.ts","webpack://profectus/./src/game/persistence.ts","webpack://profectus/./src/game/player.ts","webpack://profectus/./src/game/settings.ts","webpack://profectus/./src/game/state.ts","webpack://profectus/./src/lib/break_eternity.ts","webpack://profectus/./src/components/Layer.vue?ce4d","webpack://profectus/./src/components/Layer.vue?ea1e","webpack://profectus/./src/components/Layer.vue","webpack://profectus/./src/data/Changelog.vue?6b26","webpack://profectus/./src/data/Changelog.vue","webpack://profectus/./src/components/Info.vue?8629","webpack://profectus/./src/components/Info.vue","webpack://profectus/./src/components/fields/Toggle.vue?20df","webpack://profectus/./src/components/fields/Toggle.vue","webpack://profectus/./src/components/fields/Select.vue?c5ab","webpack://profectus/./src/components/fields/Select.vue","webpack://profectus/./src/components/Options.vue?ba84","webpack://profectus/./src/components/Options.vue","webpack://profectus/./src/components/fields/Text.vue?ba89","webpack://profectus/./src/components/fields/Text.vue","webpack://profectus/./src/components/fields/DangerButton.vue?bf6c","webpack://profectus/./src/components/fields/DangerButton.vue","webpack://profectus/./src/components/fields/FeedbackButton.vue?2dba","webpack://profectus/./src/components/fields/FeedbackButton.vue","webpack://profectus/./src/components/Save.vue?548a","webpack://profectus/./src/components/Save.vue","webpack://profectus/./src/components/SavesManager.vue?f8a3","webpack://profectus/./src/components/SavesManager.vue","webpack://profectus/./src/components/Nav.vue?b4a5","webpack://profectus/./src/components/Nav.vue","webpack://profectus/./src/components/Game.vue?fa24","webpack://profectus/./src/components/Game.vue","webpack://profectus/./src/components/GameOverScreen.vue?ee8d","webpack://profectus/./src/components/GameOverScreen.vue","webpack://profectus/./src/components/NaNScreen.vue?4f64","webpack://profectus/./src/components/NaNScreen.vue","webpack://profectus/./src/components/TPS.vue?e36e","webpack://profectus/./src/components/TPS.vue","webpack://profectus/./src/App.vue?4a6b","webpack://profectus/./src/App.vue","webpack://profectus/./src/main.ts","webpack://profectus/./src/util/bignum.ts","webpack://profectus/./src/util/break_eternity.ts","webpack://profectus/./src/util/common.ts","webpack://profectus/./src/util/computed.ts","webpack://profectus/./src/util/proxies.ts","webpack://profectus/./src/util/save.ts","webpack://profectus/./src/components/layout/Spacer.vue?e0bd","webpack://profectus/./src/components/layout/Spacer.vue","webpack://profectus/./src/features/resources/resource.ts","webpack://profectus/./src/features/trees/Tree.vue?b63e","webpack://profectus/./src/features/trees/TreeNode.vue?e3a6","webpack://profectus/./src/components/links/LinkNode.vue?8567","webpack://profectus/./src/components/links/LinkNode.vue","webpack://profectus/./src/components/MarkNode.vue?acb3","webpack://profectus/./src/components/MarkNode.vue","webpack://profectus/./src/features/tooltip.ts","webpack://profectus/./src/features/trees/TreeNode.vue?9a03","webpack://profectus/./src/features/trees/TreeNode.vue","webpack://profectus/./src/features/trees/Tree.vue?e251","webpack://profectus/./src/features/trees/Tree.vue","webpack://profectus/./src/features/trees/tree.ts","webpack://profectus/./src/features/conversion.ts","webpack://profectus/./src/features/reset.ts","webpack://profectus/./src/features/resources/Resource.vue?0822","webpack://profectus/./src/features/resources/Resource.vue","webpack://profectus/./src/features/resources/MainDisplay.vue?8bde","webpack://profectus/./src/features/resources/MainDisplay.vue","webpack://profectus/./src/features/clickables/Clickable.vue?51fa","webpack://profectus/./src/features/clickables/Clickable.vue?22aa","webpack://profectus/./src/features/clickables/Clickable.vue","webpack://profectus/./src/features/clickables/clickable.ts","webpack://profectus/./src/data/common.tsx","webpack://profectus/./src/data/layers/prestige.tsx","webpack://profectus/./src/data/mod.tsx","webpack://profectus/./src/game/layers.tsx","webpack://profectus/./src/components/layout/Row.vue","webpack://profectus/./src/util/vue.tsx","webpack://profectus/./src/components/Modal.vue?1099","webpack://profectus/./src/components/Modal.vue","webpack://profectus/./src/components/Tooltip.vue?adff","webpack://profectus/./src/components/Tooltip.vue?b26d","webpack://profectus/./src/components/Tooltip.vue","webpack://profectus/./src/components/links/Link.vue?9f42","webpack://profectus/./src/components/links/Link.vue","webpack://profectus/./src/components/links/Links.vue?3e67","webpack://profectus/./src/components/links/Links.vue","webpack://profectus/./saves/safff.txt","webpack://profectus/|/\\.txt$/","webpack://profectus/webpack/bootstrap","webpack://profectus/webpack/runtime/chunk loaded","webpack://profectus/webpack/runtime/compat get default export","webpack://profectus/webpack/runtime/define property getters","webpack://profectus/webpack/runtime/global","webpack://profectus/webpack/runtime/hasOwnProperty shorthand","webpack://profectus/webpack/runtime/make namespace object","webpack://profectus/webpack/runtime/jsonp chunk loading","webpack://profectus/webpack/startup"],"sourcesContent":["interface ThemeVars {\n \"--foreground\": string;\n \"--background\": string;\n \"--feature-foreground\": string;\n \"--tooltip-background\": string;\n \"--raised-background\": string;\n \"--points\": string;\n \"--locked\": string;\n \"--highlighted\": string;\n \"--bought\": string;\n \"--danger\": string;\n \"--link\": string;\n \"--outline\": string;\n \"--accent1\": string;\n \"--accent2\": string;\n \"--accent3\": string;\n \"--border-radius\": string;\n \"--modal-border\": string;\n \"--feature-margin\": string;\n}\n\nexport interface Theme {\n variables: ThemeVars;\n stackedInfoboxes: boolean;\n floatingTabs: boolean;\n showSingleTab: boolean;\n mergeAdjacent: boolean;\n}\n\ndeclare module \"@vue/runtime-dom\" {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface CSSProperties extends Partial<ThemeVars> {}\n}\n\nconst defaultTheme: Theme = {\n variables: {\n \"--foreground\": \"#dfdfdf\",\n \"--background\": \"#0f0f0f\",\n \"--feature-foreground\": \"#eee\",\n \"--tooltip-background\": \"rgba(0, 0, 0, 0.75)\",\n \"--raised-background\": \"#0f0f0f\",\n \"--points\": \"#ffffff\",\n \"--locked\": \"#bf8f8f\",\n \"--highlighted\": \"#333\",\n \"--bought\": \"#77bf5f\",\n \"--danger\": \"rgb(220, 53, 69)\",\n \"--link\": \"#02f2f2\",\n \"--outline\": \"#dfdfdf\",\n \"--accent1\": \"#627a82\",\n \"--accent2\": \"#658262\",\n \"--accent3\": \"#7c6282\",\n\n \"--border-radius\": \"15px\",\n \"--modal-border\": \"solid 2px var(--color)\",\n \"--feature-margin\": \"0px\"\n },\n stackedInfoboxes: false,\n floatingTabs: true,\n showSingleTab: false,\n mergeAdjacent: true\n};\n\nexport enum Themes {\n Classic = \"classic\",\n Paper = \"paper\",\n Nordic = \"nordic\",\n Aqua = \"aqua\"\n}\n\nexport default {\n classic: defaultTheme,\n paper: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--background\": \"#2a323d\",\n \"--feature-foreground\": \"#000\",\n \"--raised-background\": \"#333c4a\",\n \"--locked\": \"#3a3e45\",\n \"--bought\": \"#5C8A58\",\n \"--outline\": \"#333c4a\",\n \"--border-radius\": \"4px\",\n \"--modal-border\": \"\",\n \"--feature-margin\": \"5px\"\n },\n stackedInfoboxes: true,\n floatingTabs: false\n } as Theme,\n // Based on https://www.nordtheme.com\n nordic: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--foreground\": \"#D8DEE9\",\n \"--background\": \"#2E3440\",\n \"--feature-foreground\": \"#000\",\n \"--raised-background\": \"#3B4252\",\n \"--points\": \"#E5E9F0\",\n \"--locked\": \"#4c566a\",\n \"--highlighted\": \"#434c5e\",\n \"--bought\": \"#8FBCBB\",\n \"--danger\": \"#D08770\",\n \"--link\": \"#88C0D0\",\n \"--outline\": \"#3B4252\",\n \"--accent1\": \"#B48EAD\",\n \"--accent2\": \"#A3BE8C\",\n \"--accent3\": \"#EBCB8B\",\n \"--border-radius\": \"4px\",\n \"--modal-border\": \"solid 2px #3B4252\",\n \"--feature-margin\": \"5px\"\n },\n stackedInfoboxes: true,\n floatingTabs: false\n } as Theme,\n aqua: {\n ...defaultTheme,\n variables: {\n ...defaultTheme.variables,\n \"--foreground\": \"#bfdfff\",\n \"--background\": \"#001f3f\",\n \"--tooltip-background\": \"rgba(0, 15, 31, 0.75)\",\n \"--raised-background\": \"#001f3f\",\n \"--points\": \"#dfefff\",\n \"--locked\": \"#c4a7b3\",\n \"--outline\": \"#bfdfff\"\n }\n } as Theme\n} as Record<Themes, Theme>;\n","import { DefaultValue } from \"@/game/persistence\";\nimport Decimal from \"@/util/bignum\";\nimport { DoNotCache, ProcessedComputable } from \"@/util/computed\";\nimport { CSSProperties, DefineComponent, isRef } from \"vue\";\n\nexport const Component = Symbol(\"Component\");\nexport const GatherProps = Symbol(\"GatherProps\");\n\nexport type JSXFunction = (() => JSX.Element) & { [DoNotCache]: true };\nexport type CoercableComponent = string | DefineComponent | JSXFunction;\nexport type StyleValue = string | CSSProperties | Array<string | CSSProperties>;\n\n// TODO if importing .vue components in .tsx can become type safe,\n// this type can probably be safely removed\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type GenericComponent = DefineComponent<any, any, any>;\n\nexport type FeatureComponent<T> = Omit<\n {\n [K in keyof T]: T[K] extends ProcessedComputable<infer S> ? S : T[K];\n },\n typeof Component | typeof DefaultValue\n>;\n\nexport type Replace<T, S> = S & Omit<T, keyof S>;\n\nlet id = 0;\n// Get a unique ID to allow a feature to be found for creating branches\n// and any other uses requiring unique identifiers for each feature\n// IDs are gauranteed unique, but should not be saved as they are not\n// guaranteed to be persistent through updates and such\nexport function getUniqueID(prefix = \"feature-\"): string {\n return prefix + id++;\n}\n\nexport enum Visibility {\n Visible,\n Hidden,\n None\n}\n\nexport function jsx(func: () => JSX.Element | \"\"): JSXFunction {\n (func as Partial<JSXFunction>)[DoNotCache] = true;\n return func as JSXFunction;\n}\n\nexport function showIf(condition: boolean, otherwise = Visibility.None): Visibility {\n return condition ? Visibility.Visible : otherwise;\n}\n\nexport function setDefault<T, K extends keyof T>(\n object: T,\n key: K,\n value: T[K]\n): asserts object is Exclude<T, K> & Required<Pick<T, K>> {\n if (object[key] === undefined && value != undefined) {\n object[key] = value;\n }\n}\n\nexport function findFeatures(obj: Record<string, unknown>, type: symbol): unknown[] {\n const objects: unknown[] = [];\n const handleObject = (obj: Record<string, unknown>) => {\n Object.keys(obj).forEach(key => {\n const value = obj[key];\n if (value && typeof value === \"object\") {\n if ((value as Record<string, unknown>).type === type) {\n objects.push(value);\n } else if (!(value instanceof Decimal) && !isRef(value)) {\n handleObject(value as Record<string, unknown>);\n }\n }\n });\n };\n handleObject(obj);\n return objects;\n}\n","import { Position } from \"@/game/layers\";\nimport { InjectionKey, SVGAttributes } from \"vue\";\n\nexport interface LinkNode {\n x?: number;\n y?: number;\n element: HTMLElement;\n}\n\nexport interface Link extends SVGAttributes {\n startNode: { id: string };\n endNode: { id: string };\n offsetStart?: Position;\n offsetEnd?: Position;\n}\n\nexport const RegisterLinkNodeInjectionKey: InjectionKey<\n (id: string, element: HTMLElement) => void\n> = Symbol(\"RegisterLinkNode\");\nexport const UnregisterLinkNodeInjectionKey: InjectionKey<(id: string) => void> =\n Symbol(\"UnregisterLinkNode\");\n","import modInfo from \"@/data/modInfo.json\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { createNanoEvents } from \"nanoevents\";\nimport { App, Ref } from \"vue\";\nimport { GenericLayer } from \"./layers\";\nimport player from \"./player\";\nimport settings, { Settings } from \"./settings\";\nimport state from \"./state\";\n\nexport interface GlobalEvents {\n addLayer: (layer: GenericLayer, saveData: Record<string, unknown>) => void;\n removeLayer: (layer: GenericLayer) => void;\n update: (diff: Decimal, trueDiff: number) => void;\n loadSettings: (settings: Partial<Settings>) => void;\n setupVue: (vue: App) => void;\n}\n\nexport const globalBus = createNanoEvents<GlobalEvents>();\n\nlet intervalID: number | null = null;\n\n// Not imported immediately due to dependency cycles\n// This gets set during startGameLoop(), and will only be used in the update function\nlet hasWon: null | Ref<boolean> = null;\n\nfunction update() {\n const now = Date.now();\n let diff: DecimalSource = (now - player.time) / 1e3;\n player.time = now;\n const trueDiff = diff;\n\n state.lastTenTicks.push(trueDiff);\n if (state.lastTenTicks.length > 10) {\n state.lastTenTicks = state.lastTenTicks.slice(1);\n }\n\n // Stop here if the game is paused on the win screen\n if (hasWon?.value && !player.keepGoing) {\n return;\n }\n // Stop here if the player had a NaN value\n if (state.hasNaN) {\n return;\n }\n\n diff = new Decimal(diff).max(0);\n\n if (player.devSpeed === 0) {\n return;\n }\n\n // Add offline time if any\n if (player.offlineTime != undefined) {\n if (Decimal.gt(player.offlineTime, modInfo.offlineLimit * 3600)) {\n player.offlineTime = new Decimal(modInfo.offlineLimit * 3600);\n }\n if (Decimal.gt(player.offlineTime, 0) && player.devSpeed !== 0) {\n const offlineDiff = Decimal.div(player.offlineTime, 10).max(diff);\n player.offlineTime = Decimal.sub(player.offlineTime, offlineDiff);\n diff = diff.add(offlineDiff);\n } else if (player.devSpeed === 0) {\n player.offlineTime = Decimal.add(player.offlineTime, diff);\n }\n if (!player.offlineProd || Decimal.lt(player.offlineTime, 0)) {\n player.offlineTime = null;\n }\n }\n\n // Cap at max tick length\n diff = Decimal.min(diff, modInfo.maxTickLength);\n\n // Apply dev speed\n if (player.devSpeed != undefined) {\n diff = diff.times(player.devSpeed);\n }\n\n // Update\n if (diff.eq(0)) {\n return;\n }\n player.timePlayed = Decimal.add(player.timePlayed, diff);\n globalBus.emit(\"update\", diff, trueDiff);\n\n if (settings.unthrottled) {\n requestAnimationFrame(update);\n if (intervalID != null) {\n clearInterval(intervalID);\n intervalID = null;\n }\n } else if (intervalID == null) {\n intervalID = setInterval(update, 50);\n }\n}\n\nexport async function startGameLoop() {\n hasWon = (await import(\"@/data/mod\")).hasWon;\n if (settings.unthrottled) {\n requestAnimationFrame(update);\n } else {\n intervalID = setInterval(update, 50);\n }\n}\n","import { globalBus } from \"@/game/events\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { ProxyState } from \"@/util/proxies\";\nimport { isArray } from \"@vue/shared\";\nimport { isRef, Ref, ref } from \"vue\";\nimport { GenericLayer } from \"./layers\";\n\nexport const PersistentState = Symbol(\"PersistentState\");\nexport const DefaultValue = Symbol(\"DefaultValue\");\n\n// Note: This is a union of things that should be safely stringifiable without needing\n// special processes for knowing what to load them in as\n// - Decimals aren't allowed because we'd need to know to parse them back.\n// - DecimalSources are allowed because the string is a valid value for them\nexport type State =\n | string\n | number\n | boolean\n | DecimalSource\n | { [key: string]: State }\n | { [key: number]: State };\n\nexport type Persistent<T extends State = State> = {\n [PersistentState]: Ref<T>;\n [DefaultValue]: T;\n};\nexport type PersistentRef<T extends State = State> = Ref<T> & Persistent<T>;\n\nexport function persistent<T extends State>(defaultValue: T | Ref<T>): PersistentRef<T> {\n const persistent = (\n isRef(defaultValue) ? defaultValue : (ref<T>(defaultValue) as unknown)\n ) as PersistentRef<T>;\n\n persistent[PersistentState] = persistent;\n persistent[DefaultValue] = isRef(defaultValue) ? defaultValue.value : defaultValue;\n return persistent as PersistentRef<T>;\n}\n\nexport function makePersistent<T extends State>(\n obj: unknown,\n defaultValue: T\n): asserts obj is Persistent<T> {\n const persistent = obj as Partial<Persistent<T>>;\n const state = ref(defaultValue) as Ref<T>;\n\n persistent[PersistentState] = state;\n persistent[DefaultValue] = isRef(defaultValue) ? (defaultValue.value as T) : defaultValue;\n}\n\nglobalBus.on(\"addLayer\", (layer: GenericLayer, saveData: Record<string, unknown>) => {\n const features: { type: typeof Symbol }[] = [];\n const handleObject = (obj: Record<string, unknown>, path: string[] = []): boolean => {\n let foundPersistent = false;\n Object.keys(obj).forEach(key => {\n const value = obj[key];\n if (value && typeof value === \"object\") {\n if (PersistentState in value) {\n foundPersistent = true;\n\n // Construct save path if it doesn't exist\n const persistentState = path.reduce<Record<string, unknown>>((acc, curr) => {\n if (!(curr in acc)) {\n acc[curr] = {};\n }\n return acc[curr] as Record<string, unknown>;\n }, saveData);\n\n // Cache currently saved value\n const savedValue = persistentState[key];\n // Add ref to save data\n persistentState[key] = (value as Persistent)[PersistentState];\n // Load previously saved value\n if (savedValue != null) {\n (persistentState[key] as Ref<unknown>).value = savedValue;\n } else {\n (persistentState[key] as Ref<unknown>).value = (value as Persistent)[\n DefaultValue\n ];\n }\n } else if (\n !(value instanceof Decimal) &&\n !isRef(value) &&\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n !features.includes(value as { type: typeof Symbol })\n ) {\n if (typeof (value as { type: typeof Symbol }).type === \"symbol\") {\n features.push(value as { type: typeof Symbol });\n }\n\n // Continue traversing\n const foundPersistentInChild = handleObject(value as Record<string, unknown>, [\n ...path,\n key\n ]);\n\n // Show warning for persistent values inside arrays\n // TODO handle arrays better\n if (foundPersistentInChild) {\n if (isArray(value) && !isArray(obj)) {\n console.warn(\n \"Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.\",\n ProxyState in obj\n ? (obj as Record<PropertyKey, unknown>)[ProxyState]\n : obj,\n key\n );\n } else {\n foundPersistent = true;\n }\n }\n }\n }\n });\n return foundPersistent;\n };\n handleObject(layer);\n});\n","import Decimal, { DecimalSource } from \"@/util/bignum\";\nimport { isPlainObject } from \"@/util/common\";\nimport { ProxiedWithState, ProxyPath, ProxyState } from \"@/util/proxies\";\nimport { reactive, unref } from \"vue\";\nimport transientState from \"./state\";\n\nexport interface PlayerData {\n id: string;\n devSpeed: DecimalSource | null;\n name: string;\n tabs: Array<string>;\n time: number;\n autosave: boolean;\n offlineProd: boolean;\n offlineTime: DecimalSource | null;\n timePlayed: DecimalSource;\n keepGoing: boolean;\n modID: string;\n modVersion: string;\n layers: Record<string, Record<string, unknown>>;\n}\n\nexport type Player = ProxiedWithState<PlayerData>;\n\nconst state = reactive<PlayerData>({\n id: \"\",\n devSpeed: null,\n name: \"\",\n tabs: [],\n time: -1,\n autosave: true,\n offlineProd: true,\n offlineTime: null,\n timePlayed: new Decimal(0),\n keepGoing: false,\n modID: \"\",\n modVersion: \"\",\n layers: {}\n});\n\nexport function stringifySave(player: PlayerData): string {\n return JSON.stringify(player, (key, value) => unref(value));\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst playerHandler: ProxyHandler<Record<PropertyKey, any>> = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get(target: Record<PropertyKey, any>, key: PropertyKey): any {\n if (key === ProxyState || key === ProxyPath) {\n return target[key];\n }\n\n const value = target[ProxyState][key];\n if (key !== \"value\" && isPlainObject(value) && !(value instanceof Decimal)) {\n if (value !== target[key]?.[ProxyState]) {\n const path = [...target[ProxyPath], key];\n target[key] = new Proxy({ [ProxyState]: value, [ProxyPath]: path }, playerHandler);\n }\n return target[key];\n }\n\n return value;\n },\n set(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target: Record<PropertyKey, any>,\n property: PropertyKey,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n value: any,\n receiver: ProxyConstructor\n ): boolean {\n if (\n !transientState.hasNaN &&\n ((typeof value === \"number\" && isNaN(value)) ||\n (value instanceof Decimal &&\n (isNaN(value.sign) || isNaN(value.layer) || isNaN(value.mag))))\n ) {\n const currentValue = target[ProxyState][property];\n if (\n !(\n (typeof currentValue === \"number\" && isNaN(currentValue)) ||\n (currentValue instanceof Decimal &&\n (isNaN(currentValue.sign) ||\n isNaN(currentValue.layer) ||\n isNaN(currentValue.mag)))\n )\n ) {\n state.autosave = false;\n transientState.hasNaN = true;\n transientState.NaNPath = [...target[ProxyPath], property];\n transientState.NaNReceiver = receiver as unknown as Record<string, unknown>;\n console.error(\n `Attempted to set NaN value`,\n [...target[ProxyPath], property],\n target[ProxyState]\n );\n throw \"Attempted to set NaN value. See above for details\";\n }\n }\n target[ProxyState][property] = value;\n return true;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ownKeys(target: Record<PropertyKey, any>) {\n return Reflect.ownKeys(target[ProxyState]);\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n has(target: Record<PropertyKey, any>, key: string) {\n return Reflect.has(target[ProxyState], key);\n },\n getOwnPropertyDescriptor(target, key) {\n return Object.getOwnPropertyDescriptor(target[ProxyState], key);\n }\n};\nexport default window.player = new Proxy(\n { [ProxyState]: state, [ProxyPath]: [\"player\"] },\n playerHandler\n) as Player;\n","import modInfo from \"@/data/modInfo.json\";\nimport { Themes } from \"@/data/themes\";\nimport { CoercableComponent } from \"@/features/feature\";\nimport { globalBus } from \"@/game/events\";\nimport { hardReset } from \"@/util/save\";\nimport { reactive, watch } from \"vue\";\n\nexport interface Settings {\n active: string;\n saves: string[];\n showTPS: boolean;\n theme: Themes;\n unthrottled: boolean;\n}\n\nconst state = reactive<Partial<Settings>>({\n active: \"\",\n saves: [],\n showTPS: true,\n theme: Themes.Nordic,\n unthrottled: false\n});\n\nwatch(\n state,\n state =>\n localStorage.setItem(modInfo.id, btoa(unescape(encodeURIComponent(JSON.stringify(state))))),\n { deep: true }\n);\nexport default window.settings = state as Settings;\n\nexport function loadSettings(): void {\n try {\n const item: string | null = localStorage.getItem(modInfo.id);\n if (item != null && item !== \"\") {\n const settings = JSON.parse(decodeURIComponent(escape(atob(item))));\n if (typeof settings === \"object\") {\n Object.assign(state, settings);\n }\n }\n globalBus.emit(\"loadSettings\", state);\n // eslint-disable-next-line no-empty\n } catch {}\n}\n\nexport const hardResetSettings = (window.hardResetSettings = () => {\n const settings = {\n active: \"\",\n saves: [],\n showTPS: true,\n theme: Themes.Nordic\n };\n globalBus.emit(\"loadSettings\", settings);\n Object.assign(state, settings);\n hardReset();\n});\n\nexport const settingFields: CoercableComponent[] = reactive([]);\n\nexport function registerSettingField(component: CoercableComponent) {\n settingFields.push(component);\n}\n","import { shallowReactive } from \"vue\";\n\nexport interface Transient {\n lastTenTicks: number[];\n hasNaN: boolean;\n NaNPath?: string[];\n NaNReceiver?: Record<string, unknown>;\n}\n\nexport default window.state = shallowReactive<Transient>({\n lastTenTicks: [],\n hasNaN: false,\n NaNPath: []\n});\n","/* eslint-disable @typescript-eslint/no-this-alias */\nexport type CompareResult = -1 | 0 | 1;\n\nconst MAX_SIGNIFICANT_DIGITS = 17; //Maximum number of digits of precision to assume in Number\n\nconst EXP_LIMIT = 9e15; //If we're ABOVE this value, increase a layer. (9e15 is close to the largest integer that can fit in a Number.)\n\nconst LAYER_DOWN: number = Math.log10(9e15);\n\nconst FIRST_NEG_LAYER = 1 / 9e15; //At layer 0, smaller non-zero numbers than this become layer 1 numbers with negative mag. After that the pattern continues as normal.\n\nconst NUMBER_EXP_MAX = 308; //The largest exponent that can appear in a Number, though not all mantissas are valid here.\n\nconst NUMBER_EXP_MIN = -324; //The smallest exponent that can appear in a Number, though not all mantissas are valid here.\n\nconst MAX_ES_IN_A_ROW = 5; //For default toString behaviour, when to swap from eee... to (e^n) syntax.\n\nconst IGNORE_COMMAS = true;\nconst COMMAS_ARE_DECIMAL_POINTS = false;\n\nconst powerOf10 = (function() {\n // We need this lookup table because Math.pow(10, exponent)\n // when exponent's absolute value is large is slightly inaccurate.\n // You can fix it with the power of math... or just make a lookup table.\n // Faster AND simpler\n const powersOf10: number[] = [];\n\n for (let i = NUMBER_EXP_MIN + 1; i <= NUMBER_EXP_MAX; i++) {\n powersOf10.push(Number(\"1e\" + i));\n }\n\n const indexOf0InPowersOf10 = 323;\n return function(power: number) {\n return powersOf10[power + indexOf0InPowersOf10];\n };\n})();\n\n//tetration/slog to real height stuff\n//background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22\nconst critical_headers = [2, Math.E, 3, 4, 5, 6, 7, 8, 9, 10];\nconst critical_tetr_values = [\n [\n // Base 2\n 1,\n 1.0891168053867777,\n 1.1789745164521264,\n 1.2701428397304229,\n 1.3632066654400328,\n 1.4587804913784246,\n 1.557523817412741,\n 1.660158301473385,\n 1.767487542936873,\n 1.8804205225512542,\n 2\n ],\n [\n // Base E\n 1, //0.0\n 1.1121114330934, //0.1\n 1.23103892493161, //0.2\n 1.35838369631113, //0.3\n 1.49605193039935, //0.4\n 1.64635423375119, //0.5\n 1.81213853570186, //0.6\n 1.99697132461829, //0.7\n 2.20538955455724, //0.8\n 2.44325744833852, //0.9\n Math.E //1.0\n ],\n [\n // Base 3\n 1,\n 1.1187738849693603,\n 1.2464963939368214,\n 1.38527004705667,\n 1.5376664685821402,\n 1.7068895236551784,\n 1.897001227148399,\n 2.1132403089001035,\n 2.362480153784171,\n 2.6539010333870774,\n 3\n ],\n [\n // Base 4\n 1,\n 1.1367350847096405,\n 1.2889510672956703,\n 1.4606478703324786,\n 1.6570295196661111,\n 1.8850062585672889,\n 2.1539465047453485,\n 2.476829779693097,\n 2.872061932789197,\n 3.3664204535587183,\n 4\n ],\n [\n // Base 5\n 1,\n 1.1494592900767588,\n 1.319708228183931,\n 1.5166291280087583,\n 1.748171114438024,\n 2.0253263297298045,\n 2.3636668498288547,\n 2.7858359149579424,\n 3.3257226212448145,\n 4.035730287722532,\n 5\n ],\n [\n // Base 6\n 1,\n 1.159225940787673,\n 1.343712473580932,\n 1.5611293155111927,\n 1.8221199554561318,\n 2.14183924486326,\n 2.542468319282638,\n 3.0574682501653316,\n 3.7390572020926873,\n 4.6719550537360774,\n 6\n ],\n [\n // Base 7\n 1,\n 1.1670905356972596,\n 1.3632807444991446,\n 1.5979222279405536,\n 1.8842640123816674,\n 2.2416069644878687,\n 2.69893426559423,\n 3.3012632110403577,\n 4.121250340630164,\n 5.281493033448316,\n 7\n ],\n [\n // Base 8\n 1,\n 1.1736630594087796,\n 1.379783782386201,\n 1.6292821855668218,\n 1.9378971836180754,\n 2.3289975651071977,\n 2.8384347394720835,\n 3.5232708454565906,\n 4.478242031114584,\n 5.868592169644505,\n 8\n ],\n [\n // Base 9\n 1,\n 1.1793017514670474,\n 1.394054150657457,\n 1.65664127441059,\n 1.985170999970283,\n 2.4069682290577457,\n 2.9647310119960752,\n 3.7278665320924946,\n 4.814462547283592,\n 6.436522247411611,\n 9\n ],\n [\n // Base 10\n 1,\n 1.18422737399915,\n 1.4066113788546144,\n 1.680911177655277,\n 2.027492094355525,\n 2.4775152854601967,\n 3.080455730250329,\n 3.918234505962507,\n 5.1332705696484595,\n 6.9878696918072905,\n 10\n ]\n];\nconst critical_slog_values = [\n [\n // Base 2\n -1,\n -0.9194161097107025,\n -0.8335625019330468,\n -0.7425599821143978,\n -0.6466611521029437,\n -0.5462617907227869,\n -0.4419033816638769,\n -0.3342645487554494,\n -0.224140440909962,\n -0.11241087890006762,\n 0\n ],\n [\n // Base E\n -1, //0.0\n -0.90603157029014, //0.1\n -0.80786507256596, //0.2\n -0.7064666939634, //0.3\n -0.60294836853664, //0.4\n -0.49849837513117, //0.5\n -0.39430303318768, //0.6\n -0.29147201034755, //0.7\n -0.19097820800866, //0.8\n -0.09361896280296, //0.9\n 0 //1.0\n ],\n [\n // Base 3\n -1,\n -0.9021579584316141,\n -0.8005762598234203,\n -0.6964780623319391,\n -0.5911906810998454,\n -0.486050182576545,\n -0.3823089430815083,\n -0.28106046722897615,\n -0.1831906535795894,\n -0.08935809204418144,\n 0\n ],\n [\n // Base 4\n -1,\n -0.8917227442365535,\n -0.781258746326964,\n -0.6705130326902455,\n -0.5612813129406509,\n -0.4551067709033134,\n -0.35319256652135966,\n -0.2563741554088552,\n -0.1651412821106526,\n -0.0796919581982668,\n 0\n ],\n [\n // Base 5\n -1,\n -0.8843387974366064,\n -0.7678744063886243,\n -0.6529563724510552,\n -0.5415870994657841,\n -0.4352842206588936,\n -0.33504449124791424,\n -0.24138853420685147,\n -0.15445285440944467,\n -0.07409659641336663,\n 0\n ],\n [\n // Base 6\n -1,\n -0.8786709358426346,\n -0.7577735191184886,\n -0.6399546189952064,\n -0.527284921869926,\n -0.4211627631006314,\n -0.3223479611761232,\n -0.23107655627789858,\n -0.1472057700818259,\n -0.07035171210706326,\n 0\n ],\n [\n // Base 7\n -1,\n -0.8740862815291583,\n -0.7497032990976209,\n -0.6297119746181752,\n -0.5161838335958787,\n -0.41036238255751956,\n -0.31277212146489963,\n -0.2233976621705518,\n -0.1418697367979619,\n -0.06762117662323441,\n 0\n ],\n [\n // Base 8\n -1,\n -0.8702632331800649,\n -0.7430366914122081,\n -0.6213373075161548,\n -0.5072025698095242,\n -0.40171437727184167,\n -0.30517930701410456,\n -0.21736343968190863,\n -0.137710238299109,\n -0.06550774483471955,\n 0\n ],\n [\n // Base 9\n -1,\n -0.8670016295947213,\n -0.7373984232432306,\n -0.6143173985094293,\n -0.49973884395492807,\n -0.394584953527678,\n -0.2989649949848695,\n -0.21245647317021688,\n -0.13434688362382652,\n -0.0638072667348083,\n 0\n ],\n [\n // Base 10\n -1,\n -0.8641642839543857,\n -0.732534623168535,\n -0.6083127477059322,\n -0.4934049257184696,\n -0.3885773075899922,\n -0.29376029055315767,\n -0.2083678561173622,\n -0.13155653399373268,\n -0.062401588652553186,\n 0\n ]\n];\n\nconst D = function D(value: DecimalSource): Decimal {\n return Decimal.fromValue_noAlloc(value);\n};\n\nconst FC = function(sign: number, layer: number, mag: number) {\n return Decimal.fromComponents(sign, layer, mag);\n};\n\nconst FC_NN = function FC_NN(sign: number, layer: number, mag: number) {\n return Decimal.fromComponents_noNormalize(sign, layer, mag);\n};\n\nconst ME = function ME(mantissa: number, exponent: number) {\n return Decimal.fromMantissaExponent(mantissa, exponent);\n};\n\nconst ME_NN = function ME_NN(mantissa: number, exponent: number) {\n return Decimal.fromMantissaExponent_noNormalize(mantissa, exponent);\n};\n\nconst decimalPlaces = function decimalPlaces(value: number, places: number): number {\n const len = places + 1;\n const numDigits = Math.ceil(Math.log10(Math.abs(value)));\n const rounded =\n Math.round(value * Math.pow(10, len - numDigits)) * Math.pow(10, numDigits - len);\n return parseFloat(rounded.toFixed(Math.max(len - numDigits, 0)));\n};\n\nconst f_maglog10 = function(n: number) {\n return Math.sign(n) * Math.log10(Math.abs(n));\n};\n\n//from HyperCalc source code\nconst f_gamma = function(n: number) {\n if (!isFinite(n)) {\n return n;\n }\n if (n < -50) {\n if (n === Math.trunc(n)) {\n return Number.NEGATIVE_INFINITY;\n }\n return 0;\n }\n\n let scal1 = 1;\n while (n < 10) {\n scal1 = scal1 * n;\n ++n;\n }\n\n n -= 1;\n let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI)\n l = l + (n + 0.5) * Math.log(n);\n l = l - n;\n const n2 = n * n;\n let np = n;\n l = l + 1 / (12 * np);\n np = np * n2;\n l = l + 1 / (360 * np);\n np = np * n2;\n l = l + 1 / (1260 * np);\n np = np * n2;\n l = l + 1 / (1680 * np);\n np = np * n2;\n l = l + 1 / (1188 * np);\n np = np * n2;\n l = l + 691 / (360360 * np);\n np = np * n2;\n l = l + 7 / (1092 * np);\n np = np * n2;\n l = l + 3617 / (122400 * np);\n\n return Math.exp(l) / scal1;\n};\n\nconst _twopi = 6.2831853071795864769252842; // 2*pi\nconst _EXPN1 = 0.36787944117144232159553; // exp(-1)\nconst OMEGA = 0.56714329040978387299997; // W(1, 0)\n//from https://math.stackexchange.com/a/465183\n// The evaluation can become inaccurate very close to the branch point\nconst f_lambertw = function(z: number, tol = 1e-10): number {\n let w;\n let wn;\n\n if (!Number.isFinite(z)) {\n return z;\n }\n if (z === 0) {\n return z;\n }\n if (z === 1) {\n return OMEGA;\n }\n\n if (z < 10) {\n w = 0;\n } else {\n w = Math.log(z) - Math.log(Math.log(z));\n }\n\n for (let i = 0; i < 100; ++i) {\n wn = (z * Math.exp(-w) + w * w) / (w + 1);\n if (Math.abs(wn - w) < tol * Math.abs(wn)) {\n return wn;\n } else {\n w = wn;\n }\n }\n\n throw Error(`Iteration failed to converge: ${z.toString()}`);\n //return Number.NaN;\n};\n\n//from https://github.com/scipy/scipy/blob/8dba340293fe20e62e173bdf2c10ae208286692f/scipy/special/lambertw.pxd\n// The evaluation can become inaccurate very close to the branch point\n// at ``-1/e``. In some corner cases, `lambertw` might currently\n// fail to converge, or can end up on the wrong branch.\nfunction d_lambertw(z: Decimal, tol = 1e-10): Decimal {\n let w;\n let ew, wew, wewz, wn;\n\n if (!Number.isFinite(z.mag)) {\n return z;\n }\n if (z === Decimal.dZero) {\n return z;\n }\n if (z === Decimal.dOne) {\n //Split out this case because the asymptotic series blows up\n return D(OMEGA);\n }\n\n const absz = Decimal.abs(z);\n //Get an initial guess for Halley's method\n w = Decimal.ln(z);\n\n //Halley's method; see 5.9 in [1]\n\n for (let i = 0; i < 100; ++i) {\n ew = Decimal.exp(-w);\n wewz = w.sub(z.mul(ew));\n wn = w.sub(\n wewz.div(\n w.add(1).sub(\n w\n .add(2)\n .mul(wewz)\n .div(Decimal.mul(2, w).add(2))\n )\n )\n );\n if (Decimal.abs(wn.sub(w)).lt(Decimal.abs(wn).mul(tol))) {\n return wn;\n } else {\n w = wn;\n }\n }\n\n throw Error(`Iteration failed to converge: ${z.toString()}`);\n //return Decimal.dNaN;\n}\n\nexport type DecimalSource = Decimal | number | string;\n\n/**\n * The Decimal's value is simply mantissa * 10^exponent.\n */\nexport default class Decimal {\n public static readonly dZero = FC_NN(0, 0, 0);\n public static readonly dOne = FC_NN(1, 0, 1);\n public static readonly dNegOne = FC_NN(-1, 0, 1);\n public static readonly dTwo = FC_NN(1, 0, 2);\n public static readonly dTen = FC_NN(1, 0, 10);\n public static readonly dNaN = FC_NN(Number.NaN, Number.NaN, Number.NaN);\n public static readonly dInf = FC_NN(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY);\n public static readonly dNegInf = FC_NN(-1, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY);\n public static readonly dNumberMax = FC(1, 0, Number.MAX_VALUE);\n public static readonly dNumberMin = FC(1, 0, Number.MIN_VALUE);\n\n public sign: number = Number.NaN;\n public mag: number = Number.NaN;\n public layer: number = Number.NaN;\n\n constructor(value?: DecimalSource) {\n if (value instanceof Decimal || (value != null && typeof value === \"object\" && \"sign\" in value && \"mag\" in value && \"layer\" in value)) {\n this.fromDecimal(value);\n } else if (typeof value === \"number\") {\n this.fromNumber(value);\n } else if (typeof value === \"string\") {\n this.fromString(value);\n } else {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n }\n }\n\n get m(): number {\n if (this.sign === 0) {\n return 0;\n } else if (this.layer === 0) {\n const exp = Math.floor(Math.log10(this.mag));\n //handle special case 5e-324\n let man;\n if (this.mag === 5e-324) {\n man = 5;\n } else {\n man = this.mag / powerOf10(exp);\n }\n return this.sign * man;\n } else if (this.layer === 1) {\n const residue = this.mag - Math.floor(this.mag);\n return this.sign * Math.pow(10, residue);\n } else {\n //mantissa stops being relevant past 1e9e15 / ee15.954\n return this.sign;\n }\n }\n\n set m(value: number) {\n if (this.layer <= 2) {\n this.fromMantissaExponent(value, this.e);\n } else {\n //don't even pretend mantissa is meaningful\n this.sign = Math.sign(value);\n if (this.sign === 0) {\n this.layer === 0;\n this.exponent === 0;\n }\n }\n }\n\n get e(): number {\n if (this.sign === 0) {\n return 0;\n } else if (this.layer === 0) {\n return Math.floor(Math.log10(this.mag));\n } else if (this.layer === 1) {\n return Math.floor(this.mag);\n } else if (this.layer === 2) {\n return Math.floor(Math.sign(this.mag) * Math.pow(10, Math.abs(this.mag)));\n } else {\n return this.mag * Number.POSITIVE_INFINITY;\n }\n }\n set e(value: number) {\n this.fromMantissaExponent(this.m, value);\n }\n\n get s(): number {\n return this.sign;\n }\n set s(value: number) {\n if (value === 0) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n } else {\n this.sign = value;\n }\n }\n\n // Object.defineProperty(Decimal.prototype, \"mantissa\", {\n get mantissa(): number {\n return this.m;\n }\n\n set mantissa(value: number) {\n this.m = value;\n }\n\n get exponent(): number {\n return this.e;\n }\n set exponent(value: number) {\n this.e = value;\n }\n\n public static fromComponents(sign: number, layer: number, mag: number): Decimal {\n return new Decimal().fromComponents(sign, layer, mag);\n }\n\n public static fromComponents_noNormalize(sign: number, layer: number, mag: number): Decimal {\n return new Decimal().fromComponents_noNormalize(sign, layer, mag);\n }\n\n public static fromMantissaExponent(mantissa: number, exponent: number): Decimal {\n return new Decimal().fromMantissaExponent(mantissa, exponent);\n }\n\n public static fromMantissaExponent_noNormalize(mantissa: number, exponent: number): Decimal {\n return new Decimal().fromMantissaExponent_noNormalize(mantissa, exponent);\n }\n\n public static fromDecimal(value: Decimal): Decimal {\n return new Decimal().fromDecimal(value);\n }\n\n public static fromNumber(value: number): Decimal {\n return new Decimal().fromNumber(value);\n }\n\n public static fromString(value: string): Decimal {\n return new Decimal().fromString(value);\n }\n\n public static fromValue(value: DecimalSource): Decimal {\n return new Decimal().fromValue(value);\n }\n\n public static fromValue_noAlloc(value: DecimalSource): Decimal {\n return value instanceof Decimal ? value : new Decimal(value);\n }\n\n public static abs(value: DecimalSource): Decimal {\n return D(value).abs();\n }\n\n public static neg(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static negate(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static negated(value: DecimalSource): Decimal {\n return D(value).neg();\n }\n\n public static sign(value: DecimalSource): number {\n return D(value).sign;\n }\n\n public static sgn(value: DecimalSource): number {\n return D(value).sign;\n }\n\n public static round(value: DecimalSource): Decimal {\n return D(value).round();\n }\n\n public static floor(value: DecimalSource): Decimal {\n return D(value).floor();\n }\n\n public static ceil(value: DecimalSource): Decimal {\n return D(value).ceil();\n }\n\n public static trunc(value: DecimalSource): Decimal {\n return D(value).trunc();\n }\n\n public static add(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).add(other);\n }\n\n public static plus(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).add(other);\n }\n\n public static sub(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static subtract(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static minus(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).sub(other);\n }\n\n public static mul(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static multiply(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static times(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).mul(other);\n }\n\n public static div(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).div(other);\n }\n\n public static divide(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).div(other);\n }\n\n public static recip(value: DecimalSource): Decimal {\n return D(value).recip();\n }\n\n public static reciprocal(value: DecimalSource): Decimal {\n return D(value).recip();\n }\n\n public static reciprocate(value: DecimalSource): Decimal {\n return D(value).reciprocate();\n }\n\n public static cmp(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmp(other);\n }\n\n public static cmpabs(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmpabs(other);\n }\n\n public static compare(value: DecimalSource, other: DecimalSource): CompareResult {\n return D(value).cmp(other);\n }\n\n public static isNaN(value: DecimalSource): boolean {\n value = D(value);\n return isNaN(value.sign) || isNaN(value.layer) || isNaN(value.mag);\n }\n\n public static isFinite(value: DecimalSource): boolean {\n value = D(value);\n return isFinite(value.sign) && isFinite(value.layer) && isFinite(value.mag);\n }\n\n public static eq(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).eq(other);\n }\n\n public static equals(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).eq(other);\n }\n\n public static neq(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).neq(other);\n }\n\n public static notEquals(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).notEquals(other);\n }\n\n public static lt(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).lt(other);\n }\n\n public static lte(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).lte(other);\n }\n\n public static gt(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).gt(other);\n }\n\n public static gte(value: DecimalSource, other: DecimalSource): boolean {\n return D(value).gte(other);\n }\n\n public static max(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).max(other);\n }\n\n public static min(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).min(other);\n }\n\n public static minabs(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).minabs(other);\n }\n\n public static maxabs(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).maxabs(other);\n }\n\n public static clamp(value: DecimalSource, min: DecimalSource, max: DecimalSource): Decimal {\n return D(value).clamp(min, max);\n }\n\n public static clampMin(value: DecimalSource, min: DecimalSource): Decimal {\n return D(value).clampMin(min);\n }\n\n public static clampMax(value: DecimalSource, max: DecimalSource): Decimal {\n return D(value).clampMax(max);\n }\n\n public static cmp_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): CompareResult {\n return D(value).cmp_tolerance(other, tolerance);\n }\n\n public static compare_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): CompareResult {\n return D(value).cmp_tolerance(other, tolerance);\n }\n\n public static eq_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).eq_tolerance(other, tolerance);\n }\n\n public static equals_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).eq_tolerance(other, tolerance);\n }\n\n public static neq_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).neq_tolerance(other, tolerance);\n }\n\n public static notEquals_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).notEquals_tolerance(other, tolerance);\n }\n\n public static lt_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).lt_tolerance(other, tolerance);\n }\n\n public static lte_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).lte_tolerance(other, tolerance);\n }\n\n public static gt_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).gt_tolerance(other, tolerance);\n }\n\n public static gte_tolerance(\n value: DecimalSource,\n other: DecimalSource,\n tolerance: number\n ): boolean {\n return D(value).gte_tolerance(other, tolerance);\n }\n\n public static pLog10(value: DecimalSource): Decimal {\n return D(value).pLog10();\n }\n\n public static absLog10(value: DecimalSource): Decimal {\n return D(value).absLog10();\n }\n\n public static log10(value: DecimalSource): Decimal {\n return D(value).log10();\n }\n\n public static log(value: DecimalSource, base: DecimalSource): Decimal {\n return D(value).log(base);\n }\n\n public static log2(value: DecimalSource): Decimal {\n return D(value).log2();\n }\n\n public static ln(value: DecimalSource): Decimal {\n return D(value).ln();\n }\n\n public static logarithm(value: DecimalSource, base: DecimalSource): Decimal {\n return D(value).logarithm(base);\n }\n\n public static pow(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).pow(other);\n }\n\n public static pow10(value: DecimalSource): Decimal {\n return D(value).pow10();\n }\n\n public static root(value: DecimalSource, other: DecimalSource): Decimal {\n return D(value).root(other);\n }\n\n public static factorial(value: DecimalSource, _other?: never): Decimal {\n return D(value).factorial();\n }\n\n public static gamma(value: DecimalSource, _other?: never): Decimal {\n return D(value).gamma();\n }\n\n public static lngamma(value: DecimalSource, _other?: never): Decimal {\n return D(value).lngamma();\n }\n\n public static exp(value: DecimalSource): Decimal {\n return D(value).exp();\n }\n\n public static sqr(value: DecimalSource): Decimal {\n return D(value).sqr();\n }\n\n public static sqrt(value: DecimalSource): Decimal {\n return D(value).sqrt();\n }\n\n public static cube(value: DecimalSource): Decimal {\n return D(value).cube();\n }\n\n public static cbrt(value: DecimalSource): Decimal {\n return D(value).cbrt();\n }\n\n public static tetrate(\n value: DecimalSource,\n height = 2,\n payload: DecimalSource = FC_NN(1, 0, 1)\n ): Decimal {\n return D(value).tetrate(height, payload);\n }\n\n public static iteratedexp(value: DecimalSource, height = 2, payload = FC_NN(1, 0, 1)): Decimal {\n return D(value).iteratedexp(height, payload);\n }\n\n public static iteratedlog(value: DecimalSource, base: DecimalSource = 10, times = 1): Decimal {\n return D(value).iteratedlog(base, times);\n }\n\n public static layeradd10(value: DecimalSource, diff: DecimalSource): Decimal {\n return D(value).layeradd10(diff);\n }\n\n public static layeradd(value: DecimalSource, diff: number, base = 10): Decimal {\n return D(value).layeradd(diff, base);\n }\n\n public static slog(value: DecimalSource, base = 10): Decimal {\n return D(value).slog(base);\n }\n\n public static lambertw(value: DecimalSource): Decimal {\n return D(value).lambertw();\n }\n\n public static ssqrt(value: DecimalSource): Decimal {\n return D(value).ssqrt();\n }\n\n public static pentate(\n value: DecimalSource,\n height = 2,\n payload: DecimalSource = FC_NN(1, 0, 1)\n ): Decimal {\n return D(value).pentate(height, payload);\n }\n\n /**\n * If you're willing to spend 'resourcesAvailable' and want to buy something\n * with exponentially increasing cost each purchase (start at priceStart,\n * multiply by priceRatio, already own currentOwned), how much of it can you buy?\n * Adapted from Trimps source code.\n */\n\n public static affordGeometricSeries(\n resourcesAvailable: DecimalSource,\n priceStart: DecimalSource,\n priceRatio: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.affordGeometricSeries_core(\n D(resourcesAvailable),\n D(priceStart),\n D(priceRatio),\n currentOwned\n );\n }\n /**\n * How much resource would it cost to buy (numItems) items if you already have currentOwned,\n * the initial price is priceStart and it multiplies by priceRatio each purchase?\n */\n\n public static sumGeometricSeries(\n numItems: DecimalSource,\n priceStart: DecimalSource,\n priceRatio: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.sumGeometricSeries_core(numItems, D(priceStart), D(priceRatio), currentOwned);\n }\n /**\n * If you're willing to spend 'resourcesAvailable' and want to buy something with additively\n * increasing cost each purchase (start at priceStart, add by priceAdd, already own currentOwned),\n * how much of it can you buy?\n */\n\n public static affordArithmeticSeries(\n resourcesAvailable: DecimalSource,\n priceStart: DecimalSource,\n priceAdd: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.affordArithmeticSeries_core(\n D(resourcesAvailable),\n D(priceStart),\n D(priceAdd),\n D(currentOwned)\n );\n }\n /**\n * How much resource would it cost to buy (numItems) items if you already have currentOwned,\n * the initial price is priceStart and it adds priceAdd each purchase?\n * Adapted from http://www.mathwords.com/a/arithmetic_series.htm\n */\n\n public static sumArithmeticSeries(\n numItems: DecimalSource,\n priceStart: DecimalSource,\n priceAdd: DecimalSource,\n currentOwned: DecimalSource\n ): Decimal {\n return this.sumArithmeticSeries_core(\n D(numItems),\n D(priceStart),\n D(priceAdd),\n D(currentOwned)\n );\n }\n /**\n * When comparing two purchases that cost (resource) and increase your resource/sec by (deltaRpS),\n * the lowest efficiency score is the better one to purchase.\n * From Frozen Cookies:\n * http://cookieclicker.wikia.com/wiki/Frozen_Cookies_(JavaScript_Add-on)#Efficiency.3F_What.27s_that.3F\n */\n\n public static efficiencyOfPurchase(\n cost: DecimalSource,\n currentRpS: DecimalSource,\n deltaRpS: DecimalSource\n ): Decimal {\n return this.efficiencyOfPurchase_core(D(cost), D(currentRpS), D(deltaRpS));\n }\n\n public static randomDecimalForTesting(maxLayers: number): Decimal {\n // NOTE: This doesn't follow any kind of sane random distribution, so use this for testing purposes only.\n //5% of the time, return 0\n if (Math.random() * 20 < 1) {\n return FC_NN(0, 0, 0);\n }\n\n const randomsign = Math.random() > 0.5 ? 1 : -1;\n\n //5% of the time, return 1 or -1\n if (Math.random() * 20 < 1) {\n return FC_NN(randomsign, 0, 1);\n }\n\n //pick a random layer\n const layer = Math.floor(Math.random() * (maxLayers + 1));\n\n let randomexp = layer === 0 ? Math.random() * 616 - 308 : Math.random() * 16;\n //10% of the time, make it a simple power of 10\n if (Math.random() > 0.9) {\n randomexp = Math.trunc(randomexp);\n }\n let randommag = Math.pow(10, randomexp);\n //10% of the time, trunc mag\n if (Math.random() > 0.9) {\n randommag = Math.trunc(randommag);\n }\n return FC(randomsign, layer, randommag);\n }\n\n public static affordGeometricSeries_core(\n resourcesAvailable: Decimal,\n priceStart: Decimal,\n priceRatio: Decimal,\n currentOwned: DecimalSource\n ): Decimal {\n const actualStart = priceStart.mul(priceRatio.pow(currentOwned));\n return Decimal.floor(\n resourcesAvailable\n .div(actualStart)\n .mul(priceRatio.sub(1))\n .add(1)\n .log10()\n .div(priceRatio.log10())\n );\n }\n\n public static sumGeometricSeries_core(\n numItems: DecimalSource,\n priceStart: Decimal,\n priceRatio: Decimal,\n currentOwned: DecimalSource\n ): Decimal {\n return priceStart\n .mul(priceRatio.pow(currentOwned))\n .mul(Decimal.sub(1, priceRatio.pow(numItems)))\n .div(Decimal.sub(1, priceRatio));\n }\n\n public static affordArithmeticSeries_core(\n resourcesAvailable: Decimal,\n priceStart: Decimal,\n priceAdd: Decimal,\n currentOwned: Decimal\n ): Decimal {\n // n = (-(a-d/2) + sqrt((a-d/2)^2+2dS))/d\n // where a is actualStart, d is priceAdd and S is resourcesAvailable\n // then floor it and you're done!\n const actualStart = priceStart.add(currentOwned.mul(priceAdd));\n const b = actualStart.sub(priceAdd.div(2));\n const b2 = b.pow(2);\n return b\n .neg()\n .add(b2.add(priceAdd.mul(resourcesAvailable).mul(2)).sqrt())\n .div(priceAdd)\n .floor();\n }\n\n public static sumArithmeticSeries_core(\n numItems: Decimal,\n priceStart: Decimal,\n priceAdd: Decimal,\n currentOwned: Decimal\n ): Decimal {\n const actualStart = priceStart.add(currentOwned.mul(priceAdd)); // (n/2)*(2*a+(n-1)*d)\n\n return numItems.div(2).mul(actualStart.mul(2).plus(numItems.sub(1).mul(priceAdd)));\n }\n\n public static efficiencyOfPurchase_core(\n cost: Decimal,\n currentRpS: Decimal,\n deltaRpS: Decimal\n ): Decimal {\n return cost.div(currentRpS).add(cost.div(deltaRpS));\n }\n\n public [Symbol.for(\"+\")](other: DecimalSource): DecimalSource {\n return this.add(other);\n }\n\n public [Symbol.for(\"-\")](other: DecimalSource): DecimalSource {\n return this.sub(other);\n }\n\n public [Symbol.for(\"*\")](other: DecimalSource): DecimalSource {\n return this.times(other);\n }\n\n public [Symbol.for(\"/\")](other: DecimalSource): DecimalSource {\n return this.div(other);\n }\n\n public [Symbol.for(\"minus\")](): DecimalSource {\n return this.neg();\n }\n\n public [Symbol.for(\"==\")](other: DecimalSource): boolean {\n return this.eq(other);\n }\n\n public [Symbol.for(\">\")](other: DecimalSource): boolean {\n return this.gt(other);\n }\n\n public [Symbol.for(\"<\")](other: DecimalSource): boolean {\n return this.lt(other);\n }\n\n public [Symbol.for(\">=\")](other: DecimalSource): boolean {\n return this.gte(other);\n }\n\n public [Symbol.for(\"<=\")](other: DecimalSource): boolean {\n return this.lte(other);\n }\n\n public [Symbol.for(\"!=\")](other: DecimalSource): boolean {\n return this.neq(other);\n }\n\n public normalize(): this {\n /*\n PSEUDOCODE:\n Whenever we are partially 0 (sign is 0 or mag and layer is 0), make it fully 0.\n Whenever we are at or hit layer 0, extract sign from negative mag.\n If layer === 0 and mag < FIRST_NEG_LAYER (1/9e15), shift to 'first negative layer' (add layer, log10 mag).\n While abs(mag) > EXP_LIMIT (9e15), layer += 1, mag = maglog10(mag).\n While abs(mag) < LAYER_DOWN (15.954) and layer > 0, layer -= 1, mag = pow(10, mag).\n\n When we're done, all of the following should be true OR one of the numbers is not IsFinite OR layer is not IsInteger (error state):\n Any 0 is totally zero (0, 0, 0).\n Anything layer 0 has mag 0 OR mag > 1/9e15 and < 9e15.\n Anything layer 1 or higher has abs(mag) >= 15.954 and < 9e15.\n We will assume in calculations that all Decimals are either erroneous or satisfy these criteria. (Otherwise: Garbage in, garbage out.)\n */\n if (this.sign === 0 || (this.mag === 0 && this.layer === 0)) {\n this.sign = 0;\n this.mag = 0;\n this.layer = 0;\n return this;\n }\n\n if (this.layer === 0 && this.mag < 0) {\n //extract sign from negative mag at layer 0\n this.mag = -this.mag;\n this.sign = -this.sign;\n }\n\n //Handle shifting from layer 0 to negative layers.\n if (this.layer === 0 && this.mag < FIRST_NEG_LAYER) {\n this.layer += 1;\n this.mag = Math.log10(this.mag);\n return this;\n }\n\n let absmag = Math.abs(this.mag);\n let signmag = Math.sign(this.mag);\n\n if (absmag >= EXP_LIMIT) {\n this.layer += 1;\n this.mag = signmag * Math.log10(absmag);\n return this;\n } else {\n while (absmag < LAYER_DOWN && this.layer > 0) {\n this.layer -= 1;\n if (this.layer === 0) {\n this.mag = Math.pow(10, this.mag);\n } else {\n this.mag = signmag * Math.pow(10, absmag);\n absmag = Math.abs(this.mag);\n signmag = Math.sign(this.mag);\n }\n }\n if (this.layer === 0) {\n if (this.mag < 0) {\n //extract sign from negative mag at layer 0\n this.mag = -this.mag;\n this.sign = -this.sign;\n } else if (this.mag === 0) {\n //excessive rounding can give us all zeroes\n this.sign = 0;\n }\n }\n }\n\n return this;\n }\n\n public fromComponents(sign: number, layer: number, mag: number): this {\n this.sign = sign;\n this.layer = layer;\n this.mag = mag;\n\n this.normalize();\n return this;\n }\n\n public fromComponents_noNormalize(sign: number, layer: number, mag: number): this {\n this.sign = sign;\n this.layer = layer;\n this.mag = mag;\n return this;\n }\n\n public fromMantissaExponent(mantissa: number, exponent: number): this {\n this.layer = 1;\n this.sign = Math.sign(mantissa);\n mantissa = Math.abs(mantissa);\n this.mag = exponent + Math.log10(mantissa);\n\n this.normalize();\n return this;\n }\n\n public fromMantissaExponent_noNormalize(mantissa: number, exponent: number): this {\n //The idea of 'normalizing' a break_infinity.js style Decimal doesn't really apply. So just do the same thing.\n this.fromMantissaExponent(mantissa, exponent);\n return this;\n }\n\n public fromDecimal(value: Decimal): this {\n this.sign = value.sign;\n this.layer = value.layer;\n this.mag = value.mag;\n return this;\n }\n\n public fromNumber(value: number): this {\n this.mag = Math.abs(value);\n this.sign = Math.sign(value);\n this.layer = 0;\n this.normalize();\n return this;\n }\n\n public fromString(value: string): Decimal {\n if (IGNORE_COMMAS) {\n value = value.replace(\",\", \"\");\n } else if (COMMAS_ARE_DECIMAL_POINTS) {\n value = value.replace(\",\", \".\");\n }\n\n //Handle x^^^y format.\n const pentationparts = value.split(\"^^^\");\n if (pentationparts.length === 2) {\n const base = parseFloat(pentationparts[0]);\n const height = parseFloat(pentationparts[1]);\n const heightparts = pentationparts[1].split(\";\");\n let payload = 1;\n if (heightparts.length === 2) {\n payload = parseFloat(heightparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.pentate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle x^^y format.\n const tetrationparts = value.split(\"^^\");\n if (tetrationparts.length === 2) {\n const base = parseFloat(tetrationparts[0]);\n const height = parseFloat(tetrationparts[1]);\n const heightparts = tetrationparts[1].split(\";\");\n let payload = 1;\n if (heightparts.length === 2) {\n payload = parseFloat(heightparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle x^y format.\n const powparts = value.split(\"^\");\n if (powparts.length === 2) {\n const base = parseFloat(powparts[0]);\n const exponent = parseFloat(powparts[1]);\n if (isFinite(base) && isFinite(exponent)) {\n const result = Decimal.pow(base, exponent);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //Handle various cases involving it being a Big Number.\n value = value.trim().toLowerCase();\n\n //handle X PT Y format.\n let base;\n let height;\n let ptparts = value.split(\"pt\");\n if (ptparts.length === 2) {\n base = 10;\n height = parseFloat(ptparts[0]);\n ptparts[1] = ptparts[1].replace(\"(\", \"\");\n ptparts[1] = ptparts[1].replace(\")\", \"\");\n let payload = parseFloat(ptparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n //handle XpY format (it's the same thing just with p).\n ptparts = value.split(\"p\");\n if (ptparts.length === 2) {\n base = 10;\n height = parseFloat(ptparts[0]);\n ptparts[1] = ptparts[1].replace(\"(\", \"\");\n ptparts[1] = ptparts[1].replace(\")\", \"\");\n let payload = parseFloat(ptparts[1]);\n if (!isFinite(payload)) {\n payload = 1;\n }\n if (isFinite(base) && isFinite(height)) {\n const result = Decimal.tetrate(base, height, payload);\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n }\n }\n\n const parts = value.split(\"e\");\n const ecount = parts.length - 1;\n\n //Handle numbers that are exactly floats (0 or 1 es).\n if (ecount === 0) {\n const numberAttempt = parseFloat(value);\n if (isFinite(numberAttempt)) {\n return this.fromNumber(numberAttempt);\n }\n } else if (ecount === 1) {\n //Very small numbers (\"2e-3000\" and so on) may look like valid floats but round to 0.\n const numberAttempt = parseFloat(value);\n if (isFinite(numberAttempt) && numberAttempt !== 0) {\n return this.fromNumber(numberAttempt);\n }\n }\n\n //Handle new (e^N)X format.\n const newparts = value.split(\"e^\");\n if (newparts.length === 2) {\n this.sign = 1;\n if (newparts[0].charAt(0) == \"-\") {\n this.sign = -1;\n }\n let layerstring = \"\";\n for (let i = 0; i < newparts[1].length; ++i) {\n const chrcode = newparts[1].charCodeAt(i);\n if ((chrcode >= 43 && chrcode <= 57) || chrcode === 101) {\n //is \"0\" to \"9\" or \"+\" or \"-\" or \".\" or \"e\" (or \",\" or \"/\")\n layerstring += newparts[1].charAt(i);\n } //we found the end of the layer count\n else {\n this.layer = parseFloat(layerstring);\n this.mag = parseFloat(newparts[1].substr(i + 1));\n this.normalize();\n return this;\n }\n }\n }\n\n if (ecount < 1) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n const mantissa = parseFloat(parts[0]);\n if (mantissa === 0) {\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n let exponent = parseFloat(parts[parts.length - 1]);\n //handle numbers like AeBeC and AeeeeBeC\n if (ecount >= 2) {\n const me = parseFloat(parts[parts.length - 2]);\n if (isFinite(me)) {\n exponent *= Math.sign(me);\n exponent += f_maglog10(me);\n }\n }\n\n //Handle numbers written like eee... (N es) X\n if (!isFinite(mantissa)) {\n this.sign = parts[0] === \"-\" ? -1 : 1;\n this.layer = ecount;\n this.mag = exponent;\n }\n //Handle numbers written like XeY\n else if (ecount === 1) {\n this.sign = Math.sign(mantissa);\n this.layer = 1;\n //Example: 2e10 is equal to 10^log10(2e10) which is equal to 10^(10+log10(2))\n this.mag = exponent + Math.log10(Math.abs(mantissa));\n }\n //Handle numbers written like Xeee... (N es) Y\n else {\n this.sign = Math.sign(mantissa);\n this.layer = ecount;\n if (ecount === 2) {\n const result = Decimal.mul(FC(1, 2, exponent), D(mantissa));\n this.sign = result.sign;\n this.layer = result.layer;\n this.mag = result.mag;\n return this;\n } else {\n //at eee and above, mantissa is too small to be recognizable!\n this.mag = exponent;\n }\n }\n\n this.normalize();\n return this;\n }\n\n public fromValue(value: DecimalSource): Decimal {\n if (value instanceof Decimal || (value != null && typeof value === \"object\" && \"sign\" in value && \"mag\" in value && \"layer\" in value)) {\n return this.fromDecimal(value);\n }\n\n if (typeof value === \"number\") {\n return this.fromNumber(value);\n }\n\n if (typeof value === \"string\") {\n return this.fromString(value);\n }\n\n this.sign = 0;\n this.layer = 0;\n this.mag = 0;\n return this;\n }\n\n public toNumber(): number {\n if (!Number.isFinite(this.layer)) {\n return Number.NaN;\n }\n if (this.layer === 0) {\n return this.sign * this.mag;\n } else if (this.layer === 1) {\n return this.sign * Math.pow(10, this.mag);\n } //overflow for any normalized Decimal\n else {\n return this.mag > 0\n ? this.sign > 0\n ? Number.POSITIVE_INFINITY\n : Number.NEGATIVE_INFINITY\n : 0;\n }\n }\n\n public mantissaWithDecimalPlaces(places: number): number {\n // https://stackoverflow.com/a/37425022\n if (isNaN(this.m)) {\n return Number.NaN;\n }\n\n if (this.m === 0) {\n return 0;\n }\n\n return decimalPlaces(this.m, places);\n }\n\n public magnitudeWithDecimalPlaces(places: number): number {\n // https://stackoverflow.com/a/37425022\n if (isNaN(this.mag)) {\n return Number.NaN;\n }\n\n if (this.mag === 0) {\n return 0;\n }\n\n return decimalPlaces(this.mag, places);\n }\n\n public toString(): string {\n if (isNaN(this.layer) || isNaN(this.sign) || isNaN(this.mag)) {\n return \"NaN\";\n }\n if (this.mag === Number.POSITIVE_INFINITY || this.layer === Number.POSITIVE_INFINITY) {\n return this.sign === 1 ? \"Infinity\" : \"-Infinity\";\n }\n\n if (this.layer === 0) {\n if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) {\n return (this.sign * this.mag).toString();\n }\n return this.m + \"e\" + this.e;\n } else if (this.layer === 1) {\n return this.m + \"e\" + this.e;\n } else {\n //layer 2+\n if (this.layer <= MAX_ES_IN_A_ROW) {\n return (this.sign === -1 ? \"-\" : \"\") + \"e\".repeat(this.layer) + this.mag;\n } else {\n return (this.sign === -1 ? \"-\" : \"\") + \"(e^\" + this.layer + \")\" + this.mag;\n }\n }\n }\n\n public toExponential(places: number): string {\n if (this.layer === 0) {\n return (this.sign * this.mag).toExponential(places);\n }\n return this.toStringWithDecimalPlaces(places);\n }\n\n public toFixed(places: number): string {\n if (this.layer === 0) {\n return (this.sign * this.mag).toFixed(places);\n }\n return this.toStringWithDecimalPlaces(places);\n }\n\n public toPrecision(places: number): string {\n if (this.e <= -7) {\n return this.toExponential(places - 1);\n }\n\n if (places > this.e) {\n return this.toFixed(places - this.exponent - 1);\n }\n\n return this.toExponential(places - 1);\n }\n\n public valueOf(): string {\n return this.toString();\n }\n\n public toJSON(): string {\n return this.toString();\n }\n\n public toStringWithDecimalPlaces(places: number): string {\n if (this.layer === 0) {\n if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) {\n return (this.sign * this.mag).toFixed(places);\n }\n return decimalPlaces(this.m, places) + \"e\" + decimalPlaces(this.e, places);\n } else if (this.layer === 1) {\n return decimalPlaces(this.m, places) + \"e\" + decimalPlaces(this.e, places);\n } else {\n //layer 2+\n if (this.layer <= MAX_ES_IN_A_ROW) {\n return (\n (this.sign === -1 ? \"-\" : \"\") +\n \"e\".repeat(this.layer) +\n decimalPlaces(this.mag, places)\n );\n } else {\n return (\n (this.sign === -1 ? \"-\" : \"\") +\n \"(e^\" +\n this.layer +\n \")\" +\n decimalPlaces(this.mag, places)\n );\n }\n }\n }\n\n public abs(): Decimal {\n return FC_NN(this.sign === 0 ? 0 : 1, this.layer, this.mag);\n }\n\n public neg(): Decimal {\n return FC_NN(-this.sign, this.layer, this.mag);\n }\n\n public negate(): Decimal {\n return this.neg();\n }\n\n public negated(): Decimal {\n return this.neg();\n }\n\n // public sign () {\n // return this.sign;\n // }\n\n public sgn(): number {\n return this.sign;\n }\n\n public round(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.round(this.mag));\n }\n return this;\n }\n\n public floor(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.floor(this.mag));\n }\n return this;\n }\n\n public ceil(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.ceil(this.mag));\n }\n return this;\n }\n\n public trunc(): this | Decimal {\n if (this.mag < 0) {\n return Decimal.dZero;\n }\n if (this.layer === 0) {\n return FC(this.sign, 0, Math.trunc(this.mag));\n }\n return this;\n }\n\n public add(value: DecimalSource): this | Decimal {\n const decimal = D(value);\n\n //inf/nan check\n if (!Number.isFinite(this.layer)) {\n return this;\n }\n if (!Number.isFinite(decimal.layer)) {\n return decimal;\n }\n\n //Special case - if one of the numbers is 0, return the other number.\n if (this.sign === 0) {\n return decimal;\n }\n if (decimal.sign === 0) {\n return this;\n }\n\n //Special case - Adding a number to its negation produces 0, no matter how large.\n if (\n this.sign === -decimal.sign &&\n this.layer === decimal.layer &&\n this.mag === decimal.mag\n ) {\n return FC_NN(0, 0, 0);\n }\n\n let a;\n let b;\n\n //Special case: If one of the numbers is layer 2 or higher, just take the bigger number.\n if (this.layer >= 2 || decimal.layer >= 2) {\n return this.maxabs(decimal);\n }\n\n if (Decimal.cmpabs(this, decimal) > 0) {\n a = this;\n b = decimal;\n } else {\n a = decimal;\n b = this;\n }\n\n if (a.layer === 0 && b.layer === 0) {\n return D(a.sign * a.mag + b.sign * b.mag);\n }\n\n const layera = a.layer * Math.sign(a.mag);\n const layerb = b.layer * Math.sign(b.mag);\n\n //If one of the numbers is 2+ layers higher than the other, just take the bigger number.\n if (layera - layerb >= 2) {\n return a;\n }\n\n if (layera === 0 && layerb === -1) {\n if (Math.abs(b.mag - Math.log10(a.mag)) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, Math.log10(a.mag) - b.mag);\n const mantissa = b.sign + a.sign * magdiff;\n return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa)));\n }\n }\n\n if (layera === 1 && layerb === 0) {\n if (Math.abs(a.mag - Math.log10(b.mag)) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, a.mag - Math.log10(b.mag));\n const mantissa = b.sign + a.sign * magdiff;\n return FC(\n Math.sign(mantissa),\n 1,\n Math.log10(b.mag) + Math.log10(Math.abs(mantissa))\n );\n }\n }\n\n if (Math.abs(a.mag - b.mag) > MAX_SIGNIFICANT_DIGITS) {\n return a;\n } else {\n const magdiff = Math.pow(10, a.mag - b.mag);\n const mantissa = b.sign + a.sign * magdiff;\n return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa)));\n }\n\n throw Error(\"Bad arguments to add: \" + this + \", \" + value);\n }\n\n public plus(value: DecimalSource): Decimal {\n return this.add(value);\n }\n\n public sub(value: DecimalSource): Decimal {\n return this.add(D(value).neg());\n }\n\n public subtract(value: DecimalSource): Decimal {\n return this.sub(value);\n }\n\n public minus(value: DecimalSource): Decimal {\n return this.sub(value);\n }\n\n public mul(value: DecimalSource): Decimal {\n const decimal = D(value);\n\n //inf/nan check\n if (!Number.isFinite(this.layer)) {\n return this;\n }\n if (!Number.isFinite(decimal.layer)) {\n return decimal;\n }\n\n //Special case - if one of the numbers is 0, return 0.\n if (this.sign === 0 || decimal.sign === 0) {\n return FC_NN(0, 0, 0);\n }\n\n //Special case - Multiplying a number by its own reciprocal yields +/- 1, no matter how large.\n if (this.layer === decimal.layer && this.mag === -decimal.mag) {\n return FC_NN(this.sign * decimal.sign, 0, 1);\n }\n\n let a;\n let b;\n\n //Which number is bigger in terms of its multiplicative distance from 1?\n if (\n this.layer > decimal.layer ||\n (this.layer == decimal.layer && Math.abs(this.mag) > Math.abs(decimal.mag))\n ) {\n a = this;\n b = decimal;\n } else {\n a = decimal;\n b = this;\n }\n\n if (a.layer === 0 && b.layer === 0) {\n return D(a.sign * b.sign * a.mag * b.mag);\n }\n\n //Special case: If one of the numbers is layer 3 or higher or one of the numbers is 2+ layers bigger than the other, just take the bigger number.\n if (a.layer >= 3 || a.layer - b.layer >= 2) {\n return FC(a.sign * b.sign, a.layer, a.mag);\n }\n\n if (a.layer === 1 && b.layer === 0) {\n return FC(a.sign * b.sign, 1, a.mag + Math.log10(b.mag));\n }\n\n if (a.layer === 1 && b.layer === 1) {\n return FC(a.sign * b.sign, 1, a.mag + b.mag);\n }\n\n if (a.layer === 2 && b.layer === 1) {\n const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add(\n FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag))\n );\n return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag);\n }\n\n if (a.layer === 2 && b.layer === 2) {\n const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add(\n FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag))\n );\n return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag);\n }\n\n throw Error(\"Bad arguments to mul: \" + this + \", \" + value);\n }\n\n public multiply(value: DecimalSource): Decimal {\n return this.mul(value);\n }\n\n public times(value: DecimalSource): Decimal {\n return this.mul(value);\n }\n\n public div(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.mul(decimal.recip());\n }\n\n public divide(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public divideBy(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public dividedBy(value: DecimalSource): Decimal {\n return this.div(value);\n }\n\n public recip(): Decimal {\n if (this.mag === 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, 1 / this.mag);\n } else {\n return FC(this.sign, this.layer, -this.mag);\n }\n }\n\n public reciprocal(): Decimal {\n return this.recip();\n }\n\n public reciprocate(): Decimal {\n return this.recip();\n }\n\n /**\n * -1 for less than value, 0 for equals value, 1 for greater than value\n */\n public cmp(value: DecimalSource): CompareResult {\n const decimal = D(value);\n if (this.sign > decimal.sign) {\n return 1;\n }\n if (this.sign < decimal.sign) {\n return -1;\n }\n return (this.sign * this.cmpabs(value)) as CompareResult;\n }\n\n public cmpabs(value: DecimalSource): CompareResult {\n const decimal = D(value);\n const layera = this.mag > 0 ? this.layer : -this.layer;\n const layerb = decimal.mag > 0 ? decimal.layer : -decimal.layer;\n if (layera > layerb) {\n return 1;\n }\n if (layera < layerb) {\n return -1;\n }\n if (this.mag > decimal.mag) {\n return 1;\n }\n if (this.mag < decimal.mag) {\n return -1;\n }\n return 0;\n }\n\n public compare(value: DecimalSource): CompareResult {\n return this.cmp(value);\n }\n\n public isNan(): boolean {\n return isNaN(this.sign) || isNaN(this.layer) || isNaN(this.mag);\n }\n\n public isFinite(): boolean {\n return isFinite(this.sign) && isFinite(this.layer) && isFinite(this.mag);\n }\n\n public eq(value: DecimalSource): boolean {\n const decimal = D(value);\n return (\n this.sign === decimal.sign && this.layer === decimal.layer && this.mag === decimal.mag\n );\n }\n\n public equals(value: DecimalSource): boolean {\n return this.eq(value);\n }\n\n public neq(value: DecimalSource): boolean {\n return !this.eq(value);\n }\n\n public notEquals(value: DecimalSource): boolean {\n return this.neq(value);\n }\n\n public lt(value: DecimalSource): boolean {\n return this.cmp(value) === -1;\n }\n\n public lte(value: DecimalSource): boolean {\n return !this.gt(value);\n }\n\n public gt(value: DecimalSource): boolean {\n return this.cmp(value) === 1;\n }\n\n public gte(value: DecimalSource): boolean {\n return !this.lt(value);\n }\n\n public max(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.lt(decimal) ? decimal : this;\n }\n\n public min(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.gt(decimal) ? decimal : this;\n }\n\n public maxabs(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.cmpabs(decimal) < 0 ? decimal : this;\n }\n\n public minabs(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.cmpabs(decimal) > 0 ? decimal : this;\n }\n\n public clamp(min: DecimalSource, max: DecimalSource): Decimal {\n return this.max(min).min(max);\n }\n\n public clampMin(min: DecimalSource): Decimal {\n return this.max(min);\n }\n\n public clampMax(max: DecimalSource): Decimal {\n return this.min(max);\n }\n\n public cmp_tolerance(value: DecimalSource, tolerance: number): CompareResult {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) ? 0 : this.cmp(decimal);\n }\n\n public compare_tolerance(value: DecimalSource, tolerance: number): CompareResult {\n return this.cmp_tolerance(value, tolerance);\n }\n\n /**\n * Tolerance is a relative tolerance, multiplied by the greater of the magnitudes of the two arguments.\n * For example, if you put in 1e-9, then any number closer to the\n * larger number than (larger number)*1e-9 will be considered equal.\n */\n public eq_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value); // https://stackoverflow.com/a/33024979\n if (tolerance == null) {\n tolerance = 1e-7;\n }\n //Numbers that are too far away are never close.\n if (this.sign !== decimal.sign) {\n return false;\n }\n if (Math.abs(this.layer - decimal.layer) > 1) {\n return false;\n }\n // return abs(a-b) <= tolerance * max(abs(a), abs(b))\n let magA = this.mag;\n let magB = decimal.mag;\n if (this.layer > decimal.layer) {\n magB = f_maglog10(magB);\n }\n if (this.layer < decimal.layer) {\n magA = f_maglog10(magA);\n }\n return Math.abs(magA - magB) <= tolerance * Math.max(Math.abs(magA), Math.abs(magB));\n }\n\n public equals_tolerance(value: DecimalSource, tolerance: number): boolean {\n return this.eq_tolerance(value, tolerance);\n }\n\n public neq_tolerance(value: DecimalSource, tolerance: number): boolean {\n return !this.eq_tolerance(value, tolerance);\n }\n\n public notEquals_tolerance(value: DecimalSource, tolerance: number): boolean {\n return this.neq_tolerance(value, tolerance);\n }\n\n public lt_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return !this.eq_tolerance(decimal, tolerance) && this.lt(decimal);\n }\n\n public lte_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) || this.lt(decimal);\n }\n\n public gt_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return !this.eq_tolerance(decimal, tolerance) && this.gt(decimal);\n }\n\n public gte_tolerance(value: DecimalSource, tolerance: number): boolean {\n const decimal = D(value);\n return this.eq_tolerance(decimal, tolerance) || this.gt(decimal);\n }\n\n public pLog10(): Decimal {\n if (this.lt(Decimal.dZero)) {\n return Decimal.dZero;\n }\n return this.log10();\n }\n\n public absLog10(): Decimal {\n if (this.sign === 0) {\n return Decimal.dNaN;\n } else if (this.layer > 0) {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n } else {\n return FC(1, 0, Math.log10(this.mag));\n }\n }\n\n public log10(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer > 0) {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n } else {\n return FC(this.sign, 0, Math.log10(this.mag));\n }\n }\n\n public log(base: DecimalSource): Decimal {\n base = D(base);\n if (this.sign <= 0) {\n return Decimal.dNaN;\n }\n if (base.sign <= 0) {\n return Decimal.dNaN;\n }\n if (base.sign === 1 && base.layer === 0 && base.mag === 1) {\n return Decimal.dNaN;\n } else if (this.layer === 0 && base.layer === 0) {\n return FC(this.sign, 0, Math.log(this.mag) / Math.log(base.mag));\n }\n\n return Decimal.div(this.log10(), base.log10());\n }\n\n public log2(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, Math.log2(this.mag));\n } else if (this.layer === 1) {\n return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 3.321928094887362); //log2(10)\n } else if (this.layer === 2) {\n return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.5213902276543247); //-log10(log10(2))\n } else {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n }\n }\n\n public ln(): Decimal {\n if (this.sign <= 0) {\n return Decimal.dNaN;\n } else if (this.layer === 0) {\n return FC(this.sign, 0, Math.log(this.mag));\n } else if (this.layer === 1) {\n return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 2.302585092994046); //ln(10)\n } else if (this.layer === 2) {\n return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.36221568869946325); //log10(log10(e))\n } else {\n return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag));\n }\n }\n\n public logarithm(base: DecimalSource): Decimal {\n return this.log(base);\n }\n\n public pow(value: DecimalSource): Decimal {\n const decimal = D(value);\n const a = this;\n const b = decimal;\n\n //special case: if a is 0, then return 0 (UNLESS b is 0, then return 1)\n if (a.sign === 0) {\n return b.eq(0) ? FC_NN(1, 0, 1) : a;\n }\n //special case: if a is 1, then return 1\n if (a.sign === 1 && a.layer === 0 && a.mag === 1) {\n return a;\n }\n //special case: if b is 0, then return 1\n if (b.sign === 0) {\n return FC_NN(1, 0, 1);\n }\n //special case: if b is 1, then return a\n if (b.sign === 1 && b.layer === 0 && b.mag === 1) {\n return a;\n }\n\n const result = a\n .absLog10()\n .mul(b)\n .pow10();\n\n if (this.sign === -1) {\n if (Math.abs(b.toNumber() % 2) % 2 === 1) {\n return result.neg();\n } else if (Math.abs(b.toNumber() % 2) % 2 === 0) {\n return result;\n }\n return Decimal.dNaN;\n }\n\n return result;\n }\n\n public pow10(): Decimal {\n /*\n There are four cases we need to consider:\n 1) positive sign, positive mag (e15, ee15): +1 layer (e.g. 10^15 becomes e15, 10^e15 becomes ee15)\n 2) negative sign, positive mag (-e15, -ee15): +1 layer but sign and mag sign are flipped (e.g. 10^-15 becomes e-15, 10^-e15 becomes ee-15)\n 3) positive sign, negative mag (e-15, ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1\n 4) negative sign, negative mag (-e-15, -ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1\n */\n\n if (!Number.isFinite(this.layer) || !Number.isFinite(this.mag)) {\n return Decimal.dNaN;\n }\n\n let a = this;\n\n //handle layer 0 case - if no precision is lost just use Math.pow, else promote one layer\n if (a.layer === 0) {\n const newmag = Math.pow(10, a.sign * a.mag);\n if (Number.isFinite(newmag) && Math.abs(newmag) >= 0.1) {\n return FC(1, 0, newmag);\n } else {\n if (a.sign === 0) {\n return Decimal.dOne;\n } else {\n a = FC_NN(a.sign, a.layer + 1, Math.log10(a.mag)) as this;\n }\n }\n }\n\n //handle all 4 layer 1+ cases individually\n if (a.sign > 0 && a.mag >= 0) {\n return FC(a.sign, a.layer + 1, a.mag);\n }\n if (a.sign < 0 && a.mag >= 0) {\n return FC(-a.sign, a.layer + 1, -a.mag);\n }\n //both the negative mag cases are identical: one +/- rounding error\n return Decimal.dOne;\n }\n\n public pow_base(value: DecimalSource): Decimal {\n return D(value).pow(this);\n }\n\n public root(value: DecimalSource): Decimal {\n const decimal = D(value);\n return this.pow(decimal.recip());\n }\n\n public factorial(): Decimal {\n if (this.mag < 0) {\n return this.add(1).gamma();\n } else if (this.layer === 0) {\n return this.add(1).gamma();\n } else if (this.layer === 1) {\n return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1)));\n } else {\n return Decimal.exp(this);\n }\n }\n\n //from HyperCalc source code\n public gamma(): Decimal {\n if (this.mag < 0) {\n return this.recip();\n } else if (this.layer === 0) {\n if (this.lt(FC_NN(1, 0, 24))) {\n return D(f_gamma(this.sign * this.mag));\n }\n\n const t = this.mag - 1;\n let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI)\n l = l + (t + 0.5) * Math.log(t);\n l = l - t;\n const n2 = t * t;\n let np = t;\n let lm = 12 * np;\n let adj = 1 / lm;\n let l2 = l + adj;\n if (l2 === l) {\n return Decimal.exp(l);\n }\n\n l = l2;\n np = np * n2;\n lm = 360 * np;\n adj = 1 / lm;\n l2 = l - adj;\n if (l2 === l) {\n return Decimal.exp(l);\n }\n\n l = l2;\n np = np * n2;\n lm = 1260 * np;\n let lt = 1 / lm;\n l = l + lt;\n np = np * n2;\n lm = 1680 * np;\n lt = 1 / lm;\n l = l - lt;\n return Decimal.exp(l);\n } else if (this.layer === 1) {\n return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1)));\n } else {\n return Decimal.exp(this);\n }\n }\n\n public lngamma(): Decimal {\n return this.gamma().ln();\n }\n\n public exp(): Decimal {\n if (this.mag < 0) {\n return Decimal.dOne;\n }\n if (this.layer === 0 && this.mag <= 709.7) {\n return D(Math.exp(this.sign * this.mag));\n } else if (this.layer === 0) {\n return FC(1, 1, this.sign * Math.log10(Math.E) * this.mag);\n } else if (this.layer === 1) {\n return FC(1, 2, this.sign * (Math.log10(0.4342944819032518) + this.mag));\n } else {\n return FC(1, this.layer + 1, this.sign * this.mag);\n }\n }\n\n public sqr(): Decimal {\n return this.pow(2);\n }\n\n public sqrt(): Decimal {\n if (this.layer === 0) {\n return D(Math.sqrt(this.sign * this.mag));\n } else if (this.layer === 1) {\n return FC(1, 2, Math.log10(this.mag) - 0.3010299956639812);\n } else {\n const result = Decimal.div(FC_NN(this.sign, this.layer - 1, this.mag), FC_NN(1, 0, 2));\n result.layer += 1;\n result.normalize();\n return result;\n }\n }\n\n public cube(): Decimal {\n return this.pow(3);\n }\n\n public cbrt(): Decimal {\n return this.pow(1 / 3);\n }\n\n //Tetration/tetrate: The result of exponentiating 'this' to 'this' 'height' times in a row. https://en.wikipedia.org/wiki/Tetration\n //If payload != 1, then this is 'iterated exponentiation', the result of exping (payload) to base (this) (height) times. https://andydude.github.io/tetration/archives/tetration2/ident.html\n //Works with negative and positive real heights.\n public tetrate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal {\n //x^^1 == x\n if (height === 1) {\n return Decimal.pow(this, payload);\n }\n //x^^0 == 1\n if (height === 0) {\n return new Decimal(payload);\n }\n //1^^x == 1\n if (this.eq(Decimal.dOne)) {\n return Decimal.dOne;\n }\n //-1^^x == -1\n if (this.eq(-1)) {\n return Decimal.pow(this, payload);\n }\n\n if (height === Number.POSITIVE_INFINITY) {\n const this_num = this.toNumber();\n //within the convergence range?\n if (this_num <= 1.44466786100976613366 && this_num >= 0.06598803584531253708) {\n //hotfix for the very edge of the number range not being handled properly\n if (this_num > 1.444667861009099) {\n return new Decimal(Math.E);\n }\n //Formula for infinite height power tower.\n const negln = Decimal.ln(this).neg();\n return negln.lambertw().div(negln);\n } else if (this_num > 1.44466786100976613366) {\n //explodes to infinity\n return new Decimal(Number.POSITIVE_INFINITY);\n } else {\n //0.06598803584531253708 > this_num >= 0: never converges\n //this_num < 0: quickly becomes a complex number\n return Decimal.dNaN;\n }\n }\n\n //0^^x oscillates if we define 0^0 == 1 (which in javascript land we do), since then 0^^1 is 0, 0^^2 is 1, 0^^3 is 0, etc. payload is ignored\n //using the linear approximation for height (TODO: don't know a better way to calculate it ATM, but it wouldn't surprise me if it's just NaN)\n if (this.eq(Decimal.dZero)) {\n let result = Math.abs((height + 1) % 2);\n if (result > 1) {\n result = 2 - result;\n }\n return new Decimal(result);\n }\n\n if (height < 0) {\n return Decimal.iteratedlog(payload, this, -height);\n }\n\n payload = D(payload);\n const oldheight = height;\n height = Math.trunc(height);\n const fracheight = oldheight - height;\n\n if (this.gt(Decimal.dZero) && this.lte(1.44466786100976613366)) {\n //similar to 0^^n, flip-flops between two values, converging slowly (or if it's below 0.06598803584531253708, never. so once again, the fractional part at the end will be a linear approximation (TODO: again pending knowledge of how to approximate better, although tbh I think it should in reality just be NaN)\n height = Math.min(10000, height);\n for (let i = 0; i < height; ++i) {\n const old_payload: Decimal = payload;\n payload = this.pow(payload);\n //stop early if we converge\n if (old_payload.eq(payload)) {\n return payload;\n }\n }\n if (fracheight != 0) {\n const next_payload = this.pow(payload);\n return payload.mul(1 - fracheight).add(next_payload.mul(fracheight));\n }\n return payload;\n }\n //TODO: base < 0, but it's hard for me to reason about (probably all non-integer heights are NaN automatically?)\n\n if (fracheight !== 0) {\n if (payload.eq(Decimal.dOne)) {\n //TODO: for bases above 10, revert to old linear approximation until I can think of something better\n if (this.gt(10)) {\n payload = this.pow(fracheight);\n } else {\n payload = D(Decimal.tetrate_critical(this.toNumber(), fracheight));\n //TODO: until the critical section grid can handle numbers below 2, scale them to the base\n //TODO: maybe once the critical section grid has very large bases, this math can be appropriate for them too? I'll think about it\n if (this.lt(2)) {\n payload = payload\n .sub(1)\n .mul(this.minus(1))\n .plus(1);\n }\n }\n } else {\n if (this.eq(10)) {\n payload = payload.layeradd10(fracheight);\n } else {\n payload = payload.layeradd(fracheight, this);\n }\n }\n }\n\n for (let i = 0; i < height; ++i) {\n payload = this.pow(payload);\n //bail if we're NaN\n if (!isFinite(payload.layer) || !isFinite(payload.mag)) {\n return payload.normalize();\n }\n //shortcut\n if (payload.layer - this.layer > 3) {\n return FC_NN(payload.sign, payload.layer + (height - i - 1), payload.mag);\n }\n //give up after 10000 iterations if nothing is happening\n if (i > 10000) {\n return payload;\n }\n }\n return payload;\n }\n\n //iteratedexp/iterated exponentiation: - all cases handled in tetrate, so just call it\n public iteratedexp(height = 2, payload = FC_NN(1, 0, 1)): Decimal {\n return this.tetrate(height, payload);\n }\n\n //iterated log/repeated log: The result of applying log(base) 'times' times in a row. Approximately equal to subtracting (times) from the number's slog representation. Equivalent to tetrating to a negative height.\n //Works with negative and positive real heights.\n public iteratedlog(base: DecimalSource = 10, times = 1): Decimal {\n if (times < 0) {\n return Decimal.tetrate(base, -times, this);\n }\n\n base = D(base);\n let result = D(this);\n const fulltimes = times;\n times = Math.trunc(times);\n const fraction = fulltimes - times;\n if (result.layer - base.layer > 3) {\n const layerloss = Math.min(times, result.layer - base.layer - 3);\n times -= layerloss;\n result.layer -= layerloss;\n }\n\n for (let i = 0; i < times; ++i) {\n result = result.log(base);\n //bail if we're NaN\n if (!isFinite(result.layer) || !isFinite(result.mag)) {\n return result.normalize();\n }\n //give up after 10000 iterations if nothing is happening\n if (i > 10000) {\n return result;\n }\n }\n\n //handle fractional part\n if (fraction > 0 && fraction < 1) {\n if (base.eq(10)) {\n result = result.layeradd10(-fraction);\n } else {\n result = result.layeradd(-fraction, base);\n }\n }\n\n return result;\n }\n\n //Super-logarithm, one of tetration's inverses, tells you what size power tower you'd have to tetrate base to to get number. By definition, will never be higher than 1.8e308 in break_eternity.js, since a power tower 1.8e308 numbers tall is the largest representable number.\n // https://en.wikipedia.org/wiki/Super-logarithm\n public slog(base: DecimalSource = 10): Decimal {\n base = D(base);\n\n //special cases:\n //slog base 0 or lower is NaN\n if (base.lte(Decimal.dZero)) {\n return Decimal.dNaN;\n }\n //slog base 1 is NaN\n if (base.eq(Decimal.dOne)) {\n return Decimal.dNaN;\n }\n //need to handle these small, wobbling bases specially\n if (base.lt(Decimal.dOne)) {\n if (this.eq(Decimal.dOne)) {\n return Decimal.dZero;\n }\n if (this.eq(Decimal.dZero)) {\n return Decimal.dNegOne;\n }\n //0 < this < 1: ambiguous (happens multiple times)\n //this < 0: impossible (as far as I can tell)\n //this > 1: partially complex (http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html base 0.25 for proof)\n return Decimal.dNaN;\n }\n //slog_n(0) is -1\n if (this.mag < 0 || this.eq(Decimal.dZero)) {\n return Decimal.dNegOne;\n }\n\n let result = 0;\n let copy = D(this);\n if (copy.layer - base.layer > 3) {\n const layerloss = copy.layer - base.layer - 3;\n result += layerloss;\n copy.layer -= layerloss;\n }\n\n for (let i = 0; i < 100; ++i) {\n if (copy.lt(Decimal.dZero)) {\n copy = Decimal.pow(base, copy);\n result -= 1;\n } else if (copy.lte(Decimal.dOne)) {\n return D(result + Decimal.slog_critical(base.toNumber(), copy.toNumber()));\n } else {\n result += 1;\n copy = Decimal.log(copy, base);\n }\n }\n return D(result);\n }\n\n //background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22\n public static slog_critical(base: number, height: number): number {\n //TODO: for bases above 10, revert to old linear approximation until I can think of something better\n if (base > 10) {\n return height - 1;\n }\n return Decimal.critical_section(base, height, critical_slog_values);\n }\n\n public static tetrate_critical(base: number, height: number): number {\n return Decimal.critical_section(base, height, critical_tetr_values);\n }\n\n public static critical_section(base: number, height: number, grid: number[][]): number {\n //this part is simple at least, since it's just 0.1 to 0.9\n height *= 10;\n if (height < 0) {\n height = 0;\n }\n if (height > 10) {\n height = 10;\n }\n //have to do this complicated song and dance since one of the critical_headers is Math.E, and in the future I'd like 1.5 as well\n if (base < 2) {\n base = 2;\n }\n if (base > 10) {\n base = 10;\n }\n let lower = 0;\n let upper = 0;\n //basically, if we're between bases, we interpolate each bases' relevant values together\n //then we interpolate based on what the fractional height is.\n //accuracy could be improved by doing a non-linear interpolation (maybe), by adding more bases and heights (definitely) but this is AFAIK the best you can get without running some pari.gp or mathematica program to calculate exact values\n for (let i = 0; i < critical_headers.length; ++i) {\n if (critical_headers[i] == base) {\n // exact match\n lower = grid[i][Math.floor(height)];\n upper = grid[i][Math.ceil(height)];\n break;\n } else if (critical_headers[i] < base && critical_headers[i + 1] > base) {\n // interpolate between this and the next\n const basefrac =\n (base - critical_headers[i]) / (critical_headers[i + 1] - critical_headers[i]);\n lower =\n grid[i][Math.floor(height)] * (1 - basefrac) +\n grid[i + 1][Math.floor(height)] * basefrac;\n upper =\n grid[i][Math.ceil(height)] * (1 - basefrac) +\n grid[i + 1][Math.ceil(height)] * basefrac;\n break;\n }\n }\n const frac = height - Math.floor(height);\n const result = lower * (1 - frac) + upper * frac;\n return result;\n }\n\n //Function for adding/removing layers from a Decimal, even fractional layers (e.g. its slog10 representation).\n //Moved this over to use the same critical section as tetrate/slog.\n public layeradd10(diff: DecimalSource): Decimal {\n diff = Decimal.fromValue_noAlloc(diff).toNumber();\n const result = D(this);\n if (diff >= 1) {\n //bug fix: if result is very smol (mag < 0, layer > 0) turn it into 0 first\n if (result.mag < 0 && result.layer > 0) {\n result.sign = 0;\n result.mag = 0;\n result.layer = 0;\n } else if (result.sign === -1 && result.layer == 0) {\n //bug fix - for stuff like -3.layeradd10(1) we need to move the sign to the mag\n result.sign = 1;\n result.mag = -result.mag;\n }\n const layeradd = Math.trunc(diff);\n diff -= layeradd;\n result.layer += layeradd;\n }\n if (diff <= -1) {\n const layeradd = Math.trunc(diff);\n diff -= layeradd;\n result.layer += layeradd;\n if (result.layer < 0) {\n for (let i = 0; i < 100; ++i) {\n result.layer++;\n result.mag = Math.log10(result.mag);\n if (!isFinite(result.mag)) {\n //another bugfix: if we hit -Infinity mag, then we should return negative infinity, not 0. 0.layeradd10(-1) h its this\n if (result.sign === 0) {\n result.sign = 1;\n }\n //also this, for 0.layeradd10(-2)\n if (result.layer < 0) {\n result.layer = 0;\n }\n return result.normalize();\n }\n if (result.layer >= 0) {\n break;\n }\n }\n }\n }\n\n while (result.layer < 0) {\n result.layer++;\n result.mag = Math.log10(result.mag);\n }\n //bugfix: before we normalize: if we started with 0, we now need to manually fix a layer ourselves!\n if (result.sign === 0) {\n result.sign = 1;\n if (result.mag === 0 && result.layer >= 1) {\n result.layer -= 1;\n result.mag = 1;\n }\n }\n result.normalize();\n\n //layeradd10: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 10 and iterated log base 10. Also equivalent to adding a fractional amount to the number's layer in its break_eternity.js representation.\n if (diff !== 0) {\n return result.layeradd(diff, 10); //safe, only calls positive height 1 payload tetration, slog and log\n }\n\n return result;\n }\n\n //layeradd: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 'base' and iterated log base 'base'.\n public layeradd(diff: number, base: DecimalSource): Decimal {\n const slogthis = this.slog(base).toNumber();\n const slogdest = slogthis + diff;\n if (slogdest >= 0) {\n return Decimal.tetrate(base, slogdest);\n } else if (!Number.isFinite(slogdest)) {\n return Decimal.dNaN;\n } else if (slogdest >= -1) {\n return Decimal.log(Decimal.tetrate(base, slogdest + 1), base);\n } else {\n return Decimal.log(Decimal.log(Decimal.tetrate(base, slogdest + 2), base), base);\n }\n }\n\n //The Lambert W function, also called the omega function or product logarithm, is the solution W(x) === x*e^x.\n // https://en.wikipedia.org/wiki/Lambert_W_function\n //Some special values, for testing: https://en.wikipedia.org/wiki/Lambert_W_function#Special_values\n public lambertw(): Decimal {\n if (this.lt(-0.3678794411710499)) {\n throw Error(\"lambertw is unimplemented for results less than -1, sorry!\");\n } else if (this.mag < 0) {\n return D(f_lambertw(this.toNumber()));\n } else if (this.layer === 0) {\n return D(f_lambertw(this.sign * this.mag));\n } else if (this.layer === 1) {\n return d_lambertw(this);\n } else if (this.layer === 2) {\n return d_lambertw(this);\n }\n if (this.layer >= 3) {\n return FC_NN(this.sign, this.layer - 1, this.mag);\n }\n\n throw \"Unhandled behavior in lambertw()\";\n }\n\n //The super square-root function - what number, tetrated to height 2, equals this?\n //Other sroots are possible to calculate probably through guess and check methods, this one is easy though.\n // https://en.wikipedia.org/wiki/Tetration#Super-root\n public ssqrt(): Decimal {\n if (this.sign == 1 && this.layer >= 3) {\n return FC_NN(this.sign, this.layer - 1, this.mag);\n }\n const lnx = this.ln();\n return lnx.div(lnx.lambertw());\n }\n /*\n\nUnit tests for tetrate/iteratedexp/iteratedlog/layeradd10/layeradd/slog:\n(note: these won't be exactly precise with the new slog implementation, but that's okay)\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var expected = first+both+1;\n var result = new Decimal(10).layeradd10(first).layeradd10(both).slog();\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n first += both;\n var expected = first-both+1;\n var result = new Decimal(10).layeradd10(first).layeradd10(-both).slog();\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var base = Math.random()*8+2;\n var expected = first+both+1;\n var result = new Decimal(base).layeradd(first, base).layeradd(both, base).slog(base);\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var first = Math.random()*100;\n var both = Math.random()*100;\n var base = Math.random()*8+2;\n first += both;\n var expected = first-both+1;\n var result = new Decimal(base).layeradd(first, base).layeradd(-both, base).slog(base);\n if (Number.isFinite(result.mag) && !Decimal.eq_tolerance(expected, result))\n {\n console.log(first + \", \" + both);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar tetrateonly = Decimal.tetrate(10, first);\nvar tetrateandlog = Decimal.tetrate(10, first+both).iteratedlog(10, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar base = Math.random()*8+2;\nvar tetrateonly = Decimal.tetrate(base, first);\nvar tetrateandlog = Decimal.tetrate(base, first+both).iteratedlog(base, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\nvar first = Math.round((Math.random()*30))/10;\nvar both = Math.round((Math.random()*30))/10;\nvar base = Math.random()*8+2;\nvar tetrateonly = Decimal.tetrate(base, first, base);\nvar tetrateandlog = Decimal.tetrate(base, first+both, base).iteratedlog(base, both);\nif (!Decimal.eq_tolerance(tetrateonly, tetrateandlog))\n{\n console.log(first + \", \" + both);\n}\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var xex = new Decimal(-0.3678794411710499+Math.random()*100);\n var x = Decimal.lambertw(xex);\n if (!Decimal.eq_tolerance(xex, x.mul(Decimal.exp(x))))\n {\n console.log(xex);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var xex = new Decimal(-0.3678794411710499+Math.exp(Math.random()*100));\n var x = Decimal.lambertw(xex);\n if (!Decimal.eq_tolerance(xex, x.mul(Decimal.exp(x))))\n {\n console.log(xex);\n }\n}\n\nfor (var i = 0; i < 1000; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.random() > 0.5 ? 0 : 1);\n var b = Decimal.randomDecimalForTesting(Math.random() > 0.5 ? 0 : 1);\n if (Math.random() > 0.5) { a = a.recip(); }\n if (Math.random() > 0.5) { b = b.recip(); }\n var c = a.add(b).toNumber();\n if (Number.isFinite(c) && !Decimal.eq_tolerance(c, a.toNumber()+b.toNumber()))\n {\n console.log(a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 100; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n var b = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n if (Math.random() > 0.5) { a = a.recip(); }\n if (Math.random() > 0.5) { b = b.recip(); }\n var c = a.mul(b).toNumber();\n if (Number.isFinite(c) && Number.isFinite(a.toNumber()) && Number.isFinite(b.toNumber()) && a.toNumber() != 0 && b.toNumber() != 0 && c != 0 && !Decimal.eq_tolerance(c, a.toNumber()*b.toNumber()))\n {\n console.log(\"Test 1: \" + a + \", \" + b);\n }\n else if (!Decimal.mul(a.recip(), b.recip()).eq_tolerance(Decimal.mul(a, b).recip()))\n {\n console.log(\"Test 3: \" + a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 10; ++i)\n{\n var a = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n var b = Decimal.randomDecimalForTesting(Math.round(Math.random()*4));\n if (Math.random() > 0.5 && a.sign !== 0) { a = a.recip(); }\n if (Math.random() > 0.5 && b.sign !== 0) { b = b.recip(); }\n var c = a.pow(b);\n var d = a.root(b.recip());\n var e = a.pow(b.recip());\n var f = a.root(b);\n\n if (!c.eq_tolerance(d) && a.sign !== 0 && b.sign !== 0)\n {\n console.log(\"Test 1: \" + a + \", \" + b);\n }\n if (!e.eq_tolerance(f) && a.sign !== 0 && b.sign !== 0)\n {\n console.log(\"Test 2: \" + a + \", \" + b);\n }\n}\n\nfor (var i = 0; i < 10; ++i)\n{\n var a = Math.round(Math.random()*18-9);\n var b = Math.round(Math.random()*100-50);\n var c = Math.round(Math.random()*18-9);\n var d = Math.round(Math.random()*100-50);\n console.log(\"Decimal.pow(Decimal.fromMantissaExponent(\" + a + \", \" + b + \"), Decimal.fromMantissaExponent(\" + c + \", \" + d + \")).toString()\");\n}\n\n*/\n\n //Pentation/pentate: The result of tetrating 'height' times in a row. An absurdly strong operator - Decimal.pentate(2, 4.28) and Decimal.pentate(10, 2.37) are already too huge for break_eternity.js!\n // https://en.wikipedia.org/wiki/Pentation\n public pentate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal {\n payload = D(payload);\n const oldheight = height;\n height = Math.trunc(height);\n const fracheight = oldheight - height;\n\n //I have no idea if this is a meaningful approximation for pentation to continuous heights, but it is monotonic and continuous.\n if (fracheight !== 0) {\n if (payload.eq(Decimal.dOne)) {\n ++height;\n payload = new Decimal(fracheight);\n } else {\n if (this.eq(10)) {\n payload = payload.layeradd10(fracheight);\n } else {\n payload = payload.layeradd(fracheight, this);\n }\n }\n }\n\n for (let i = 0; i < height; ++i) {\n payload = this.tetrate(payload.toNumber());\n //bail if we're NaN\n if (!isFinite(payload.layer) || !isFinite(payload.mag)) {\n return payload.normalize();\n }\n //give up after 10 iterations if nothing is happening\n if (i > 10) {\n return payload;\n }\n }\n\n return payload;\n }\n\n // trig functions!\n public sin(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.sin(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public cos(): Decimal {\n if (this.mag < 0) {\n return Decimal.dOne;\n }\n if (this.layer === 0) {\n return D(Math.cos(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public tan(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.tan(this.sign * this.mag));\n }\n return FC_NN(0, 0, 0);\n }\n\n public asin(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.asin(this.sign * this.mag));\n }\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n public acos(): Decimal {\n if (this.mag < 0) {\n return D(Math.acos(this.toNumber()));\n }\n if (this.layer === 0) {\n return D(Math.acos(this.sign * this.mag));\n }\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n public atan(): this | Decimal {\n if (this.mag < 0) {\n return this;\n }\n if (this.layer === 0) {\n return D(Math.atan(this.sign * this.mag));\n }\n return D(Math.atan(this.sign * 1.8e308));\n }\n\n public sinh(): Decimal {\n return this.exp()\n .sub(this.negate().exp())\n .div(2);\n }\n\n public cosh(): Decimal {\n return this.exp()\n .add(this.negate().exp())\n .div(2);\n }\n\n public tanh(): Decimal {\n return this.sinh().div(this.cosh());\n }\n\n public asinh(): Decimal {\n return Decimal.ln(\n this.add(\n this.sqr()\n .add(1)\n .sqrt()\n )\n );\n }\n\n public acosh(): Decimal {\n return Decimal.ln(\n this.add(\n this.sqr()\n .sub(1)\n .sqrt()\n )\n );\n }\n\n public atanh(): Decimal {\n if (this.abs().gte(1)) {\n return FC_NN(Number.NaN, Number.NaN, Number.NaN);\n }\n\n return Decimal.ln(this.add(1).div(D(1).sub(this))).div(2);\n }\n\n /**\n * Joke function from Realm Grinder\n */\n public ascensionPenalty(ascensions: DecimalSource): Decimal {\n if (ascensions === 0) {\n return this;\n }\n\n return this.root(Decimal.pow(10, ascensions));\n }\n\n /**\n * Joke function from Cookie Clicker. It's 'egg'\n */\n public egg(): Decimal {\n return this.add(9);\n }\n\n public lessThanOrEqualTo(other: DecimalSource): boolean {\n return this.cmp(other) < 1;\n }\n\n public lessThan(other: DecimalSource): boolean {\n return this.cmp(other) < 0;\n }\n\n public greaterThanOrEqualTo(other: DecimalSource): boolean {\n return this.cmp(other) > -1;\n }\n\n public greaterThan(other: DecimalSource): boolean {\n return this.cmp(other) > 0;\n }\n\n // return Decimal;\n}\n\n// return Decimal;\n","import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Links = _resolveComponent(\"Links\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"layer-container\",\n style: _normalizeStyle({ '--layer-color': _ctx.unref(_ctx.color) })\n }, [\n (_ctx.showGoBack)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n class: \"goBack\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.goBack && _ctx.goBack(...args)))\n }, \"←\"))\n : _createCommentVNode(\"\", true),\n (_ctx.minimized.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n class: \"layer-tab minimized\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.minimized.value = false))\n }, [\n _createElementVNode(\"div\", null, _toDisplayString(_ctx.unref(_ctx.name)), 1)\n ]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass([\"layer-tab\", [{ showGoBack: _ctx.showGoBack }, _ctx.unref(_ctx.classes)]]),\n style: _normalizeStyle(_ctx.unref(_ctx.style))\n }, [\n _createVNode(_component_Links, {\n links: _ctx.unref(_ctx.links)\n }, {\n default: _withCtx(() => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.component)))\n ]),\n _: 1\n }, 8, [\"links\"])\n ], 6)),\n (_ctx.unref(_ctx.minimizable))\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 3,\n class: \"minimize\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.minimized.value = true))\n }, \" ▼ \"))\n : _createCommentVNode(\"\", true)\n ], 4))\n}","\nimport Links from \"@/components/links/Links.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport { CoercableComponent, PersistentRef, StyleValue } from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport player from \"@/game/player\";\nimport { computeComponent, processedPropType, wrapRef } from \"@/util/vue\";\nimport { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from \"vue\";\n\nexport default defineComponent({\n components: { Links },\n props: {\n index: {\n type: Number,\n required: true\n },\n tab: {\n type: Function as PropType<() => HTMLElement | undefined>,\n required: true\n },\n display: {\n type: processedPropType<CoercableComponent>(Object, String, Function),\n required: true\n },\n minimized: {\n type: Object as PropType<PersistentRef<boolean>>,\n required: true\n },\n minWidth: {\n type: processedPropType<number>(Number),\n required: true\n },\n name: {\n type: processedPropType<string>(String),\n required: true\n },\n color: processedPropType<string>(String),\n style: processedPropType<StyleValue>(String, Object, Array),\n classes: processedPropType<Record<string, boolean>>(Object),\n links: processedPropType<Link[]>(Array),\n minimizable: processedPropType<boolean>(Boolean)\n },\n setup(props) {\n const { display, index, minimized, minWidth, tab } = toRefs(props);\n\n const component = computeComponent(display);\n const showGoBack = computed(\n () => modInfo.allowGoBack && index.value > 0 && !minimized.value\n );\n\n function goBack() {\n player.tabs.splice(unref(props.index), Infinity);\n }\n\n nextTick(() => updateTab(minimized.value, unref(minWidth.value)));\n watch([minimized, wrapRef(minWidth)], ([minimized, minWidth]) =>\n updateTab(minimized, minWidth)\n );\n\n function updateTab(minimized: boolean, minWidth: number) {\n const tabValue = tab.value();\n if (tabValue != undefined) {\n if (minimized) {\n tabValue.style.flexGrow = \"0\";\n tabValue.style.flexShrink = \"0\";\n tabValue.style.width = \"60px\";\n tabValue.style.minWidth = tabValue.style.flexBasis = \"\";\n tabValue.style.margin = \"0\";\n } else {\n tabValue.style.flexGrow = \"\";\n tabValue.style.flexShrink = \"\";\n tabValue.style.width = \"\";\n tabValue.style.minWidth = tabValue.style.flexBasis = `${minWidth}px`;\n tabValue.style.margin = \"\";\n }\n }\n }\n\n return {\n component,\n showGoBack,\n unref,\n goBack\n };\n }\n});\n","import { render } from \"./Layer.vue?vue&type=template&id=666ada59&scoped=true&ts=true\"\nimport script from \"./Layer.vue?vue&type=script&lang=ts\"\nexport * from \"./Layer.vue?vue&type=script&lang=ts\"\n\nimport \"./Layer.vue?vue&type=style&index=0&id=666ada59&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-666ada59\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3303e3d5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Changelog\", -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"details\", { open: \"\" }, [\n /*#__PURE__*/_createElementVNode(\"summary\", null, [\n /*#__PURE__*/_createTextVNode(\"v0.0 Initial Commit - \"),\n /*#__PURE__*/_createElementVNode(\"time\", null, \"2021-09-04\")\n ]),\n /*#__PURE__*/_createTextVNode(\" This is the first release :D \"),\n /*#__PURE__*/_createElementVNode(\"ul\", null, [\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"feature\" }, \"Did everything\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"fix\" }, \"Had some fun\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"breaking\" }, \"Removed everything\"),\n /*#__PURE__*/_createElementVNode(\"li\", { class: \"balancing\" }, \"Created some bugs to fix later\")\n ])\n], -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport { ref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Changelog.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Changelog.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Changelog.vue?vue&type=style&index=0&id=3303e3d5&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3303e3d5\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0b3812f2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"info-modal-header\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"info-modal-title\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \" Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb \", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\", -1))\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n class: \"info-modal-discord-link\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\"),\n /*#__PURE__*/_createTextVNode(\" The Paper Pilot Community \")\n ])\n], -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n class: \"info-modal-discord-link\"\n }, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons info-modal-discord\" }, \"discord\"),\n /*#__PURE__*/_createTextVNode(\" The Modding Tree \")\n ])\n], -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport type Changelog from \"@/data/Changelog.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport { formatTime } from \"@/util/bignum\";\nimport { computed, ref, toRefs, unref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n changelog: null\n },\n setup(__props: any, { expose }) {\n\nconst _props = __props as { changelog: typeof Changelog | null }\n\nconst { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = modInfo;\n\n\nconst props = toRefs(_props);\n\nconst isOpen = ref(false);\n\nconst timePlayed = computed(() => formatTime(player.timePlayed));\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nfunction openChangelog() {\n unref(props.changelog)?.open();\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n (_unref(logo))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n class: \"info-modal-logo\",\n src: _unref(logo),\n alt: _unref(title)\n }, null, 8, _hoisted_2))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"h2\", null, _toDisplayString(_unref(title)), 1),\n _createElementVNode(\"h4\", null, \"v\" + _toDisplayString(_unref(versionNumber)) + \": \" + _toDisplayString(_unref(versionTitle)), 1)\n ])\n ])\n ]),\n body: _withCtx(({ shown }) => [\n shown\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n (_unref(author))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, \"By \" + _toDisplayString(_unref(author)), 1))\n : _createCommentVNode(\"\", true),\n _hoisted_6,\n _hoisted_7,\n _createElementVNode(\"div\", {\n class: \"link\",\n onClick: openChangelog\n }, \"Changelog\"),\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n href: _unref(discordLink),\n class: \"info-modal-discord-link\"\n }, [\n _hoisted_10,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_9))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_11,\n _hoisted_12,\n _hoisted_13,\n _createElementVNode(\"div\", null, \"Time Played: \" + _toDisplayString(_unref(timePlayed)), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Info.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Info.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Info.vue?vue&type=style&index=0&id=0b3812f2&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0b3812f2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, isRef as _isRef, vModelCheckbox as _vModelCheckbox, createElementVNode as _createElementVNode, withDirectives as _withDirectives, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7db643c6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"field\" }\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { coerceComponent } from \"@/util/vue\";\nimport { computed, unref } from \"vue\";\nimport \"@/components/common/fields.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\n title?: CoercableComponent;\n modelValue?: boolean;\n}\n\n\n\n\nconst component = computed(() => coerceComponent(unref(props.title) || \"<span></span>\", \"span\"));\n\nconst value = computed({\n get() {\n return !!props.modelValue;\n },\n set(value: boolean) {\n emit(\"update:modelValue\", value);\n }\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"label\", _hoisted_1, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"checkbox\",\n class: \"toggle\",\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(value) ? (value).value = $event : null))\n }, null, 512), [\n [_vModelCheckbox, _unref(value)]\n ]),\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(component))))\n ]))\n}\n}\n\n})","import script from \"./Toggle.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Toggle.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Toggle.vue?vue&type=style&index=0&id=7db643c6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7db643c6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"field\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"field-title\"\n}\n\nimport \"@/components/common/fields.css\";\nimport { CoercableComponent } from \"@/features/feature\";\nimport { computeOptionalComponent } from \"@/util/vue\";\nimport { ref, toRef, watch } from \"vue\";\nimport VueNextSelect from \"vue-next-select\";\nimport \"vue-next-select/dist/index.css\";\n\nexport type SelectOption = { label: string; value: unknown };\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: null,\n options: null,\n placeholder: null,\n closeOnSelect: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: unknown): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst props = __props as {\n title?: CoercableComponent;\n modelValue?: unknown;\n options: SelectOption[];\n placeholder?: string;\n closeOnSelect?: boolean;\n}\n\n\n\n\nconst titleComponent = computeOptionalComponent(toRef(props, \"title\"), \"span\");\n\nconst value = ref<SelectOption | undefined>(\n props.options.find(option => option.value === props.modelValue)\n);\nwatch(toRef(props, \"modelValue\"), modelValue => {\n if (value.value?.value !== modelValue) {\n value.value = props.options.find(option => option.value === modelValue);\n }\n});\n\nfunction onUpdate(value: SelectOption) {\n emit(\"update:modelValue\", value.value);\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(titleComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(titleComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_unref(VueNextSelect), {\n options: __props.options,\n modelValue: value.value,\n \"onUpdate:modelValue\": [\n _cache[0] || (_cache[0] = ($event: any) => ((value).value = $event)),\n onUpdate\n ],\n min: 1,\n \"label-by\": \"label\",\n placeholder: __props.placeholder,\n \"close-on-select\": __props.closeOnSelect\n }, null, 8, [\"options\", \"modelValue\", \"placeholder\", \"close-on-select\"])\n ]))\n}\n}\n\n})","import script from \"./Select.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Select.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Select.vue?vue&type=style&index=0&id=fd319188&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, isRef as _isRef, createVNode as _createVNode, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-54e795a4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"header\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", null, \"Options\")\n], -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"hr\", null, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport rawThemes from \"@/data/themes\";\nimport player from \"@/game/player\";\nimport settings, { settingFields } from \"@/game/settings\";\nimport { camelToTitle } from \"@/util/common\";\nimport { computed, ref, toRefs } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\nimport Select from \"./fields/Select.vue\";\nimport Tooltip from \"./Tooltip.vue\";\nimport { jsx } from \"@/features/feature\";\nimport { coerceComponent, render } from \"@/util/vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nconst themes = Object.keys(rawThemes).map(theme => ({\n label: camelToTitle(theme),\n value: theme\n}));\n\nconst settingFieldsComponent = computed(() => {\n return coerceComponent(jsx(() => <>{settingFields.map(render)}</>));\n});\n\nconst { showTPS, theme, unthrottled } = toRefs(settings);\nconst { autosave, offlineProd } = toRefs(player);\nconst isPaused = computed({\n get() {\n return player.devSpeed === 0;\n },\n set(value: boolean) {\n player.devSpeed = value ? 0 : null;\n }\n});\n\nconst offlineProdTitle = jsx(() => (\n <span>\n Offline Production<Tooltip display=\"Save-specific\">*</Tooltip>\n </span>\n));\nconst autosaveTitle = jsx(() => (\n <span>\n Autosave<Tooltip display=\"Save-specific\">*</Tooltip>\n </span>\n));\nconst isPausedTitle = jsx(() => (\n <span>\n Pause game<Tooltip display=\"Save-specific\">*</Tooltip>\n </span>\n));\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => ((isOpen).value = $event))\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _createVNode(Select, {\n title: \"Theme\",\n options: _unref(themes),\n modelValue: _unref(theme),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(theme) ? (theme).value = $event : null))\n }, null, 8, [\"options\", \"modelValue\"]),\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(settingFieldsComponent)))),\n _createVNode(Toggle, {\n title: \"Show TPS\",\n modelValue: _unref(showTPS),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(showTPS) ? (showTPS).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _hoisted_2,\n _createVNode(Toggle, {\n title: \"Unthrottled\",\n modelValue: _unref(unthrottled),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_isRef(unthrottled) ? (unthrottled).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(offlineProdTitle),\n modelValue: _unref(offlineProd),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_isRef(offlineProd) ? (offlineProd).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(autosaveTitle),\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"]),\n _createVNode(Toggle, {\n title: _unref(isPausedTitle),\n modelValue: _unref(isPaused),\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_isRef(isPaused) ? (isPaused).value = $event : null))\n }, null, 8, [\"title\", \"modelValue\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./Options.vue?vue&type=script&setup=true&lang=tsx\"\nexport * from \"./Options.vue?vue&type=script&setup=true&lang=tsx\"\n\nimport \"./Options.vue?vue&type=style&index=0&id=54e795a4&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-54e795a4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, isRef as _isRef, vModelText as _vModelText, normalizeClass as _normalizeClass, withDirectives as _withDirectives, createElementVNode as _createElementVNode, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-540fa62c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"onSubmit\"]\nconst _hoisted_2 = { class: \"field\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"field-title\"\n}\nconst _hoisted_4 = [\"placeholder\"]\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { coerceComponent } from \"@/util/vue\";\nimport { computed, onMounted, ref, toRefs, unref } from \"vue\";\nimport VueTextareaAutosize from \"vue-textarea-autosize\";\nimport \"@/components/common/fields.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n title: null,\n modelValue: null,\n textArea: { type: Boolean },\n placeholder: null,\n maxHeight: null\n },\n emits: [\"update:modelValue\", \"submit\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"update:modelValue\", value: string): void;\n (e: \"submit\"): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n title?: CoercableComponent;\n modelValue?: string;\n textArea?: boolean;\n placeholder?: string;\n maxHeight?: number;\n}\n\n\nconst props = toRefs(_props);\n\n\nconst titleComponent = computed(\n () => props.title?.value && coerceComponent(unref(props.title.value), \"span\")\n);\n\nconst field = ref<HTMLElement | null>(null);\nonMounted(() => {\n field.value?.focus();\n});\n\nconst value = computed({\n get() {\n return unref(props.modelValue) || \"\";\n },\n set(value: string) {\n emit(\"update:modelValue\", value);\n }\n});\n\nfunction submit() {\n emit(\"submit\");\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"form\", {\n onSubmit: _withModifiers(submit, [\"prevent\"])\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(titleComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(titleComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n (__props.textArea)\n ? (_openBlock(), _createBlock(_unref(VueTextareaAutosize), {\n key: 1,\n modelValue: _unref(value),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(value) ? (value).value = $event : null)),\n placeholder: __props.placeholder,\n maxHeight: __props.maxHeight,\n onBlur: submit,\n ref_key: \"field\",\n ref: field\n }, null, 8, [\"modelValue\", \"placeholder\", \"maxHeight\"]))\n : _withDirectives((_openBlock(), _createElementBlock(\"input\", {\n key: 2,\n type: \"text\",\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(value) ? (value).value = $event : null)),\n placeholder: __props.placeholder,\n class: _normalizeClass({ fullWidth: !__props.title }),\n onBlur: submit,\n ref_key: \"field\",\n ref: field\n }, null, 42, _hoisted_4)), [\n [_vModelText, _unref(value)]\n ])\n ])\n ], 40, _hoisted_1))\n}\n}\n\n})","import script from \"./Text.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Text.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Text.vue?vue&type=style&index=0&id=540fa62c&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-540fa62c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, withModifiers as _withModifiers, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-bf59fca4\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = [\"onClick\", \"disabled\"]\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = [\"onClick\"]\n\nimport { ref, toRefs, unref, watch } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n disabled: { type: Boolean },\n skipConfirm: { type: Boolean }\n },\n emits: [\"click\", \"confirmingChanged\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"click\"): void;\n (e: \"confirmingChanged\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n disabled?: boolean;\n skipConfirm?: boolean;\n}\n\n\nconst props = toRefs(_props);\n\n\nconst isConfirming = ref(false);\n\nwatch(isConfirming, isConfirming => {\n emit(\"confirmingChanged\", isConfirming);\n});\n\nfunction click() {\n if (unref(props.skipConfirm)) {\n emit(\"click\");\n return;\n }\n if (isConfirming.value) {\n emit(\"click\");\n }\n isConfirming.value = !isConfirming.value;\n}\n\nfunction cancel() {\n isConfirming.value = false;\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: _normalizeClass([\"container\", { confirming: isConfirming.value }])\n }, [\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, \"Are you sure?\"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"button\", {\n onClick: _withModifiers(click, [\"stop\"]),\n class: \"button danger\",\n disabled: __props.disabled\n }, [\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \"Yes\"))\n : _renderSlot(_ctx.$slots, \"default\", { key: 1 })\n ], 8, _hoisted_2),\n (isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n class: \"button\",\n onClick: _withModifiers(cancel, [\"stop\"])\n }, \"No\", 8, _hoisted_4))\n : _createCommentVNode(\"\", true)\n ], 2))\n}\n}\n\n})","import script from \"./DangerButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./DangerButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./DangerButton.vue?vue&type=style&index=0&id=bf59fca4&scoped=true&lang=css\"\nimport \"./DangerButton.vue?vue&type=style&index=1&id=bf59fca4&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-bf59fca4\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, withModifiers as _withModifiers, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5bbcedd3\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"onClick\"]\n\nimport { nextTick, ref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n left: { type: Boolean }\n },\n emits: [\"click\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"click\"): void;\n}), expose: any, slots: any, attrs: any }) {\n\n\n\n\nconst activated = ref(false);\nconst activatedTimeout = ref<number | null>(null);\n\nfunction click() {\n emit(\"click\");\n\n // Give feedback to user\n if (activatedTimeout.value) {\n clearTimeout(activatedTimeout.value);\n }\n activated.value = false;\n nextTick(() => {\n activated.value = true;\n activatedTimeout.value = setTimeout(() => (activated.value = false), 500);\n });\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n onClick: _withModifiers(click, [\"stop\"]),\n class: _normalizeClass([\"feedback\", { activated: activated.value, left: __props.left }])\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 10, _hoisted_1))\n}\n}\n\n})","import script from \"./FeedbackButton.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./FeedbackButton.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./FeedbackButton.vue?vue&type=style&index=0&id=5bbcedd3&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5bbcedd3\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4c4580ca\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"handle material-icons\" }, \"drag_handle\", -1))\nconst _hoisted_2 = {\n key: 0,\n class: \"actions\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"content_paste\", -1))\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"content_copy\", -1))\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"edit\", -1))\nconst _hoisted_7 = [\n _hoisted_6\n]\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", {\n class: \"material-icons\",\n style: {\"margin\":\"-2px\"}\n}, \"delete\", -1))\nconst _hoisted_9 = {\n key: 1,\n class: \"actions\"\n}\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"check\", -1))\nconst _hoisted_11 = [\n _hoisted_10\n]\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"close\", -1))\nconst _hoisted_13 = [\n _hoisted_12\n]\nconst _hoisted_14 = {\n key: 2,\n class: \"details\"\n}\nconst _hoisted_15 = { class: \"save-version\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_17 = { key: 0 }\nconst _hoisted_18 = {\n key: 3,\n class: \"details\"\n}\nconst _hoisted_19 = {\n key: 4,\n class: \"details error\"\n}\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\n\nimport player from \"@/game/player\";\nimport { computed, ref, toRefs, watch } from \"vue\";\nimport DangerButton from \"./fields/DangerButton.vue\";\nimport FeedbackButton from \"./fields/FeedbackButton.vue\";\nimport Text from \"./fields/Text.vue\";\nimport { LoadablePlayerData } from \"./SavesManager.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n save: null\n },\n emits: [\"export\", \"open\", \"duplicate\", \"delete\", \"editName\"],\n setup(__props: any, { emit }: { emit: ({\n (e: \"export\"): void;\n (e: \"open\"): void;\n (e: \"duplicate\"): void;\n (e: \"delete\"): void;\n (e: \"editName\", name: string): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n save: LoadablePlayerData;\n}\n\n\nconst { save } = toRefs(_props);\n\n\nconst dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\"\n});\n\nconst isEditing = ref(false);\nconst isConfirming = ref(false);\nconst newName = ref(\"\");\n\nwatch(isEditing, () => (newName.value = save.value.name || \"\"));\n\nconst isActive = computed(() => save.value && save.value.id === player.id);\nconst currentTime = computed(() =>\n isActive.value ? player.time : (save.value && save.value.time) || 0\n);\n\nfunction changeName() {\n emit(\"editName\", newName.value);\n isEditing.value = false;\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"save\", { active: _unref(isActive) }])\n }, [\n _hoisted_1,\n (!isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createBlock(FeedbackButton, {\n key: 0,\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('export'))),\n class: \"button\",\n left: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 1,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (emit('duplicate'))),\n class: \"button\"\n }, _hoisted_5))\n : _createCommentVNode(\"\", true),\n (_unref(save).error == undefined && !isConfirming.value)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 2,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (isEditing.value = !isEditing.value)),\n class: \"button\"\n }, _hoisted_7))\n : _createCommentVNode(\"\", true),\n _createVNode(DangerButton, {\n disabled: _unref(isActive),\n onClick: _cache[3] || (_cache[3] = ($event: any) => (emit('delete'))),\n onConfirmingChanged: _cache[4] || (_cache[4] = value => (isConfirming.value = value))\n }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [\n _createElementVNode(\"button\", {\n onClick: changeName,\n class: \"button\"\n }, _hoisted_11),\n _createElementVNode(\"button\", {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (isEditing.value = !isEditing.value)),\n class: \"button\"\n }, _hoisted_13)\n ])),\n (_unref(save).error == undefined && !isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _createElementVNode(\"button\", {\n class: \"button open\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (emit('open')))\n }, [\n _createElementVNode(\"h3\", null, _toDisplayString(_unref(save).name), 1)\n ]),\n _createElementVNode(\"span\", _hoisted_15, \"v\" + _toDisplayString(_unref(save).modVersion), 1),\n _hoisted_16,\n (_unref(currentTime))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, \"Last played \" + _toDisplayString(_unref(dateFormat).format(_unref(currentTime))), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : (_unref(save).error == undefined && isEditing.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_18, [\n _createVNode(Text, {\n modelValue: newName.value,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => ((newName).value = $event)),\n class: \"editname\",\n onSubmit: changeName\n }, null, 8, [\"modelValue\"])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_19, [\n _createTextVNode(\" Error: Failed to load save with id \" + _toDisplayString(_unref(save).id), 1),\n _hoisted_20,\n _createTextVNode(_toDisplayString(_unref(save).error), 1)\n ]))\n ], 2))\n}\n}\n\n})","import script from \"./Save.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Save.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Save.vue?vue&type=style&index=0&id=4c4580ca&scoped=true&lang=css\"\nimport \"./Save.vue?vue&type=style&index=1&id=4c4580ca&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4c4580ca\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-199ffea0\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Saves Manager\", -1))\nconst _hoisted_2 = { class: \"modal-footer\" }\nconst _hoisted_3 = { class: \"field\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"field-title\" }, \"Create Save\", -1))\nconst _hoisted_5 = { class: \"field-buttons\" }\nconst _hoisted_6 = { class: \"footer\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex-grow\":\"1\"} }, null, -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport player, { PlayerData } from \"@/game/player\";\nimport settings from \"@/game/settings\";\nimport { getUniqueID, loadSave, save, newSave } from \"@/util/save\";\nimport {\n ComponentPublicInstance,\n computed,\n nextTick,\n ref,\n shallowReactive,\n unref,\n watch\n} from \"vue\";\nimport Select from \"./fields/Select.vue\";\nimport Text from \"./fields/Text.vue\";\nimport Save from \"./Save.vue\";\nimport Draggable from \"vuedraggable\";\n\nexport type LoadablePlayerData = Omit<Partial<PlayerData>, \"id\"> & { id: string; error?: unknown };\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props, { expose }) {\n\nconst isOpen = ref(false);\nconst modal = ref<ComponentPublicInstance<typeof Modal> | null>(null);\n\nexpose({\n open() {\n isOpen.value = true;\n }\n});\n\nconst importingFailed = ref(false);\nconst saveToImport = ref(\"\");\n\nwatch(saveToImport, save => {\n if (save) {\n nextTick(() => {\n try {\n const playerData = JSON.parse(decodeURIComponent(escape(atob(save))));\n if (typeof playerData !== \"object\") {\n importingFailed.value = true;\n return;\n }\n const id = getUniqueID();\n playerData.id = id;\n localStorage.setItem(\n id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n saveToImport.value = \"\";\n importingFailed.value = false;\n\n settings.saves.push(id);\n } catch (e) {\n importingFailed.value = true;\n }\n });\n } else {\n importingFailed.value = false;\n }\n});\n\nlet bankContext = require.context(\"raw-loader!../../saves\", true, /\\.txt$/);\nlet bank = ref(\n bankContext.keys().reduce((acc: Array<{ label: string; value: string }>, curr) => {\n // .slice(2, -4) strips the leading ./ and the trailing .txt\n acc.push({\n label: curr.slice(2, -4),\n value: bankContext(curr).default\n });\n return acc;\n }, [])\n);\n\nconst cachedSaves = shallowReactive<Record<string, LoadablePlayerData | undefined>>({});\nfunction getCachedSave(id: string) {\n if (cachedSaves[id] == null) {\n const save = localStorage.getItem(id);\n if (save == null) {\n cachedSaves[id] = { error: `Save doesn't exist in localStorage`, id };\n } else if (save === \"dW5kZWZpbmVk\") {\n cachedSaves[id] = { error: `Save is undefined`, id };\n } else {\n try {\n cachedSaves[id] = { ...JSON.parse(decodeURIComponent(escape(atob(save)))), id };\n } catch (error) {\n cachedSaves[id] = { error, id };\n console.warn(\n `SavesManager: Failed to load info about save with id ${id}:\\n${error}\\n${save}`\n );\n }\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return cachedSaves[id]!;\n}\n// Wipe cache whenever the modal is opened\nwatch(isOpen, isOpen => {\n if (isOpen) {\n Object.keys(cachedSaves).forEach(key => delete cachedSaves[key]);\n }\n});\n\nconst saves = computed(() =>\n settings.saves.reduce((acc: Record<string, LoadablePlayerData>, curr: string) => {\n acc[curr] = getCachedSave(curr);\n return acc;\n }, {})\n);\n\nfunction exportSave(id: string) {\n let saveToExport;\n if (player.id === id) {\n saveToExport = save();\n } else {\n saveToExport = btoa(unescape(encodeURIComponent(JSON.stringify(saves.value[id]))));\n }\n\n // Put on clipboard. Using the clipboard API asks for permissions and stuff\n const el = document.createElement(\"textarea\");\n el.value = saveToExport;\n document.body.appendChild(el);\n el.select();\n el.setSelectionRange(0, 99999);\n document.execCommand(\"copy\");\n document.body.removeChild(el);\n}\n\nfunction duplicateSave(id: string) {\n if (player.id === id) {\n save();\n }\n\n const playerData = { ...saves.value[id], id: getUniqueID() };\n localStorage.setItem(\n playerData.id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n\n settings.saves.push(playerData.id);\n}\n\nfunction deleteSave(id: string) {\n settings.saves = settings.saves.filter((save: string) => save !== id);\n localStorage.removeItem(id);\n cachedSaves[id] = undefined;\n}\n\nfunction openSave(id: string) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n saves.value[player.id]!.time = player.time;\n save();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n loadSave(saves.value[id]!);\n // Delete cached version in case of opening it again\n cachedSaves[id] = undefined;\n}\n\nfunction newFromPreset(preset: string) {\n const playerData = JSON.parse(decodeURIComponent(escape(atob(preset))));\n playerData.id = getUniqueID();\n localStorage.setItem(\n playerData.id,\n btoa(unescape(encodeURIComponent(JSON.stringify(playerData))))\n );\n\n settings.saves.push(playerData.id);\n}\n\nfunction editSave(id: string, newName: string) {\n const currSave = saves.value[id];\n if (currSave) {\n currSave.name = newName;\n if (player.id === id) {\n player.name = newName;\n save();\n } else {\n localStorage.setItem(id, btoa(unescape(encodeURIComponent(JSON.stringify(currSave)))));\n cachedSaves[id] = undefined;\n }\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, {\n modelValue: isOpen.value,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ((isOpen).value = $event)),\n ref_key: \"modal\",\n ref: modal\n }, {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n (unref(modal.value?.isOpen))\n ? (_openBlock(), _createBlock(_unref(Draggable), {\n key: 0,\n list: _unref(settings).saves,\n handle: \".handle\",\n itemKey: (save) => save\n }, {\n item: _withCtx(({ element }) => [\n _createVNode(Save, {\n save: _unref(saves)[element],\n onOpen: ($event: any) => (openSave(element)),\n onExport: ($event: any) => (exportSave(element)),\n onEditName: name => editSave(element, name),\n onDuplicate: ($event: any) => (duplicateSave(element)),\n onDelete: ($event: any) => (deleteSave(element))\n }, null, 8, [\"save\", \"onOpen\", \"onExport\", \"onEditName\", \"onDuplicate\", \"onDelete\"])\n ]),\n _: 1\n }, 8, [\"list\", \"itemKey\"]))\n : _createCommentVNode(\"\", true)\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(Text, {\n modelValue: saveToImport.value,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((saveToImport).value = $event)),\n title: \"Import Save\",\n placeholder: \"Paste your save here!\",\n class: _normalizeClass({ importingFailed: importingFailed.value })\n }, null, 8, [\"modelValue\", \"class\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"button\", {\n class: \"button\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_unref(newSave) && _unref(newSave)(...args)))\n }, \"New Game\"),\n (Object.keys(_unref(bank)).length > 0)\n ? (_openBlock(), _createBlock(Select, {\n key: 0,\n options: _unref(bank),\n modelValue: undefined,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = preset => newFromPreset(preset as string)),\n closeOnSelect: \"\",\n placeholder: \"Select preset\",\n class: \"presets\"\n }, null, 8, [\"options\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"button\", {\n class: \"button modal-default-button\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (isOpen.value = false))\n }, \" Close \")\n ])\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\"]))\n}\n}\n\n})","import script from \"./SavesManager.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./SavesManager.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./SavesManager.vue?vue&type=style&index=0&id=199ffea0&scoped=true&lang=css\"\nimport \"./SavesManager.vue?vue&type=style&index=1&id=199ffea0&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-199ffea0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withCtx as _withCtx, createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-72eb8c78\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\", \"alt\"]\nconst _hoisted_2 = {\n key: 1,\n class: \"title\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex-grow\":\"1\",\"cursor\":\"unset\"} }, null, -1))\nconst _hoisted_4 = { class: \"discord\" }\nconst _hoisted_5 = { class: \"discord-links\" }\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = [\"href\"]\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n target: \"_blank\"\n }, \"The Paper Pilot Community\")\n], -1))\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n target: \"_blank\"\n }, \"The Modding Tree\")\n], -1))\nconst _hoisted_10 = {\n href: \"https://forums.moddingtree.com/\",\n target: \"_blank\"\n}\nconst _hoisted_11 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"forum\", -1))\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"info\", -1))\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"library_books\", -1))\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"settings\", -1))\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"library_books\", -1))\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"settings\", -1))\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"info\", -1))\nconst _hoisted_18 = {\n href: \"https://forums.moddingtree.com/\",\n target: \"_blank\"\n}\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons\" }, \"forum\", -1))\nconst _hoisted_20 = { class: \"discord\" }\nconst _hoisted_21 = { class: \"discord-links\" }\nconst _hoisted_22 = { key: 0 }\nconst _hoisted_23 = [\"href\"]\nconst _hoisted_24 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/WzejVAx\",\n target: \"_blank\"\n }, \"The Paper Pilot Community\")\n], -1))\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"li\", null, [\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://discord.gg/F3xveHV\",\n target: \"_blank\"\n }, \"The Modding Tree\")\n], -1))\n\nimport Changelog from \"@/data/Changelog.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport { ComponentPublicInstance, ref } from \"vue\";\nimport Info from \"./Info.vue\";\nimport Options from \"./Options.vue\";\nimport SavesManager from \"./SavesManager.vue\";\nimport Tooltip from \"./Tooltip.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst info = ref<ComponentPublicInstance<typeof Info> | null>(null);\nconst savesManager = ref<ComponentPublicInstance<typeof SavesManager> | null>(null);\nconst options = ref<ComponentPublicInstance<typeof Options> | null>(null);\n// For some reason Info won't accept the changelog unless I do this:\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst changelog = ref<ComponentPublicInstance<any> | null>(null);\n\nconst { useHeader, banner, title, discordName, discordLink, versionNumber } = modInfo;\n\nfunction openDiscord() {\n window.open(discordLink, \"mywindow\");\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_unref(useHeader))\n ? (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n key: 0,\n class: \"nav\"\n }, _ctx.$attrs), [\n (_unref(banner))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n src: _unref(banner),\n height: \"100%\",\n alt: _unref(title)\n }, null, 8, _hoisted_1))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_unref(title)), 1)),\n _createElementVNode(\"div\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (changelog.value?.open())),\n class: \"version-container\"\n }, [\n _createVNode(Tooltip, {\n display: \"Changelog\",\n bottom: \"\",\n class: \"version\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, \"v\" + _toDisplayString(_unref(versionNumber)), 1)\n ]),\n _: 1\n })\n ]),\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", {\n onClick: openDiscord,\n class: \"material-icons\"\n }, \"discord\"),\n _createElementVNode(\"ul\", _hoisted_5, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_6, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n target: \"_blank\"\n }, _toDisplayString(_unref(discordName)), 9, _hoisted_7)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_8,\n _hoisted_9\n ])\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", _hoisted_10, [\n _createVNode(Tooltip, {\n display: \"Forums\",\n bottom: \"\",\n yoffset: \"5px\"\n }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (info.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Info\",\n bottom: \"\",\n class: \"info\"\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (savesManager.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Saves\",\n bottom: \"\",\n xoffset: \"-20px\"\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[3] || (_cache[3] = ($event: any) => (options.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Options\",\n bottom: \"\",\n xoffset: \"-66px\"\n }, {\n default: _withCtx(() => [\n _hoisted_14\n ]),\n _: 1\n })\n ])\n ], 16))\n : (_openBlock(), _createElementBlock(\"div\", _mergeProps({\n key: 1,\n class: \"overlay-nav\"\n }, _ctx.$attrs), [\n _createElementVNode(\"div\", {\n onClick: _cache[4] || (_cache[4] = ($event: any) => (changelog.value?.open())),\n class: \"version-container\"\n }, [\n _createVNode(Tooltip, {\n display: \"Changelog\",\n right: \"\",\n xoffset: \"25%\",\n class: \"version\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, \"v\" + _toDisplayString(_unref(versionNumber)), 1)\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (savesManager.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Saves\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[6] || (_cache[6] = ($event: any) => (options.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Options\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", {\n onClick: _cache[7] || (_cache[7] = ($event: any) => (info.value?.open()))\n }, [\n _createVNode(Tooltip, {\n display: \"Info\",\n right: \"\"\n }, {\n default: _withCtx(() => [\n _hoisted_17\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", _hoisted_18, [\n _createVNode(Tooltip, {\n display: \"Forums\",\n right: \"\",\n xoffset: \"7px\"\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"span\", {\n onClick: openDiscord,\n class: \"material-icons\"\n }, \"discord\"),\n _createElementVNode(\"ul\", _hoisted_21, [\n (_unref(discordLink) !== 'https://discord.gg/WzejVAx')\n ? (_openBlock(), _createElementBlock(\"li\", _hoisted_22, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n target: \"_blank\"\n }, _toDisplayString(_unref(discordName)), 9, _hoisted_23)\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_24,\n _hoisted_25\n ])\n ])\n ], 16)),\n _createVNode(Info, {\n ref_key: \"info\",\n ref: info,\n changelog: changelog.value\n }, null, 8, [\"changelog\"]),\n _createVNode(SavesManager, {\n ref_key: \"savesManager\",\n ref: savesManager\n }, null, 512),\n _createVNode(Options, {\n ref_key: \"options\",\n ref: options\n }, null, 512),\n _createVNode(Changelog, {\n ref_key: \"changelog\",\n ref: changelog\n }, null, 512)\n ], 64))\n}\n}\n\n})","import script from \"./Nav.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Nav.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Nav.vue?vue&type=style&index=0&id=72eb8c78&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-72eb8c78\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6bcb9872\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"tabs-container\" }\nconst _hoisted_2 = { class: \"inner-tab\" }\nconst _hoisted_3 = {\n key: 1,\n class: \"separator\"\n}\n\nimport modInfo from \"@/data/modInfo.json\";\nimport { GenericLayer, layers } from \"@/game/layers\";\nimport player from \"@/game/player\";\nimport { computed, toRef } from \"vue\";\nimport Layer from \"./Layer.vue\";\nimport Nav from \"./Nav.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tabs = toRef(player, \"tabs\");\nconst layerKeys = computed(() => Object.keys(layers));\nconst useHeader = modInfo.useHeader;\n\nfunction gatherLayerProps(layer: GenericLayer) {\n const { display, minimized, minWidth, name, color, style, classes, links, minimizable } = layer;\n return { display, minimized, minWidth, name, color, style, classes, links, minimizable };\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(tabs), (tab, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n key: index,\n class: \"tab\",\n ref_for: true,\n ref: `tab-${index}`\n }, [\n (index === 0 && !_unref(useHeader))\n ? (_openBlock(), _createBlock(Nav, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_2, [\n (_unref(layerKeys).includes(tab))\n ? (_openBlock(), _createBlock(Layer, _mergeProps({ key: 0 }, gatherLayerProps(_unref(layers)[tab]!), {\n index: index,\n tab: () => ((_ctx.$refs[`tab-${index}`] as HTMLElement[] | undefined)?.[0])\n }), null, 16, [\"index\", \"tab\"]))\n : (_openBlock(), _createBlock(_resolveDynamicComponent(tab), {\n key: 1,\n index: index\n }, null, 8, [\"index\"]))\n ]),\n (index !== _unref(tabs).length - 1)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n}\n}\n\n})","import script from \"./Game.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Game.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Game.vue?vue&type=style&index=0&id=6bcb9872&scoped=true&lang=css\"\nimport \"./Game.vue?vue&type=style&index=1&id=6bcb9872&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6bcb9872\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, isRef as _isRef, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-364b55bc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"game-over-modal-header\" }\nconst _hoisted_2 = [\"src\", \"alt\"]\nconst _hoisted_3 = { class: \"game-over-modal-title\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", null, \"Congratulations!\", -1))\nconst _hoisted_5 = { key: 0 }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \" Please check the Discord to discuss the game or to check for new content updates! \", -1))\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_9 = [\"href\"]\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons game-over-modal-discord\" }, \"discord\", -1))\n\nimport Modal from \"@/components/Modal.vue\";\nimport { hasWon } from \"@/data/mod\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport { formatTime } from \"@/util/bignum\";\nimport { loadSave, newSave } from \"@/util/save\";\nimport { computed, toRef } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst { title, logo, discordName, discordLink, versionNumber, versionTitle } = modInfo;\n\nconst timePlayed = computed(() => formatTime(player.timePlayed));\nconst isOpen = computed(() => hasWon.value && !player.keepGoing);\nconst autosave = toRef(player, \"autosave\");\n\nfunction keepGoing() {\n player.keepGoing = true;\n}\n\nfunction playAgain() {\n loadSave(newSave());\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(Modal, { \"model-value\": _unref(isOpen) }, {\n header: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n (_unref(logo))\n ? (_openBlock(), _createElementBlock(\"img\", {\n key: 0,\n class: \"game-over-modal-logo\",\n src: _unref(logo),\n alt: _unref(title)\n }, null, 8, _hoisted_2))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"h4\", null, \"You've beaten \" + _toDisplayString(_unref(title)) + \" v\" + _toDisplayString(_unref(versionNumber)) + \": \" + _toDisplayString(_unref(versionTitle)), 1)\n ])\n ])\n ]),\n body: _withCtx(({ shown }) => [\n shown\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", null, \"It took you \" + _toDisplayString(_unref(timePlayed)) + \" to beat the game.\", 1),\n _hoisted_6,\n _hoisted_7,\n _hoisted_8,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n class: \"game-over-modal-discord-link\"\n }, [\n _hoisted_10,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_9)\n ]),\n _createVNode(Toggle, {\n title: \"Autosave\",\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"modelValue\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", { class: \"game-over-footer\" }, [\n _createElementVNode(\"button\", {\n onClick: keepGoing,\n class: \"button\"\n }, \"Keep Going\"),\n _createElementVNode(\"button\", {\n onClick: playAgain,\n class: \"button danger\"\n }, \"Play Again\")\n ])\n ]),\n _: 1\n }, 8, [\"model-value\"]))\n}\n}\n\n})","import script from \"./GameOverScreen.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./GameOverScreen.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./GameOverScreen.vue?vue&type=style&index=0&id=364b55bc&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-364b55bc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, isRef as _isRef, createVNode as _createVNode, mergeProps as _mergeProps, withCtx as _withCtx, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0f93e378\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"nan-modal-header\" }, [\n /*#__PURE__*/_createElementVNode(\"h2\", null, \"NaN value detected!\")\n], -1))\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_4 = [\"href\"]\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"material-icons nan-modal-discord\" }, \"discord\", -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"br\", null, null, -1))\nconst _hoisted_7 = { class: \"nan-footer\" }\n\nimport Modal from \"@/components/Modal.vue\";\nimport modInfo from \"@/data/modInfo.json\";\nimport player from \"@/game/player\";\nimport state from \"@/game/state\";\nimport Decimal, { DecimalSource, format } from \"@/util/bignum\";\nimport { ComponentPublicInstance, computed, ref, toRef } from \"vue\";\nimport Toggle from \"./fields/Toggle.vue\";\nimport SavesManager from \"./SavesManager.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst { discordName, discordLink } = modInfo;\nconst autosave = toRef(player, \"autosave\");\nconst hasNaN = toRef(state, \"hasNaN\");\nconst savesManager = ref<ComponentPublicInstance<typeof SavesManager> | null>(null);\n\nconst path = computed(() => state.NaNPath?.join(\".\"));\nconst property = computed(() => state.NaNPath?.slice(-1)[0]);\nconst previous = computed<DecimalSource | null>(() => {\n if (state.NaNReceiver && property.value) {\n return state.NaNReceiver[property.value] as DecimalSource;\n }\n return null;\n});\nconst isPaused = computed({\n get() {\n return player.devSpeed === 0;\n },\n set(value: boolean) {\n player.devSpeed = value ? null : 0;\n }\n});\n\nfunction setZero() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(0);\n state.hasNaN = false;\n }\n}\n\nfunction setOne() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(1);\n state.hasNaN = false;\n }\n}\n\nfunction ignore() {\n if (state.NaNReceiver && property.value) {\n state.NaNReceiver[property.value] = new Decimal(NaN);\n state.hasNaN = false;\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(Modal, _mergeProps({\n modelValue: _unref(hasNaN),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_isRef(hasNaN) ? (hasNaN).value = $event : null))\n }, _ctx.$attrs), {\n header: _withCtx(() => [\n _hoisted_1\n ]),\n body: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createTextVNode(\" Attempted to assign \\\"\" + _toDisplayString(_unref(path)) + \"\\\" to NaN\", 1),\n (_unref(previous))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(\" \") + \"(previously \" + _toDisplayString(_unref(format)(_unref(previous))) + \")\", 1))\n : _createCommentVNode(\"\", true),\n _createTextVNode(\". Auto-saving has been \" + _toDisplayString(_unref(autosave) ? \"enabled\" : \"disabled\") + \". Check the console for more details, and consider sharing it with the developers on discord. \", 1)\n ]),\n _hoisted_3,\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"a\", {\n href: _unref(discordLink),\n class: \"nan-modal-discord-link\"\n }, [\n _hoisted_5,\n _createTextVNode(\" \" + _toDisplayString(_unref(discordName)), 1)\n ], 8, _hoisted_4)\n ]),\n _hoisted_6,\n _createVNode(Toggle, {\n title: \"Autosave\",\n modelValue: _unref(autosave),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_isRef(autosave) ? (autosave).value = $event : null))\n }, null, 8, [\"modelValue\"]),\n _createVNode(Toggle, {\n title: \"Pause game\",\n modelValue: _unref(isPaused),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_isRef(isPaused) ? (isPaused).value = $event : null))\n }, null, 8, [\"modelValue\"])\n ]),\n footer: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"button\", {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (savesManager.value?.open())),\n class: \"button\"\n }, \"Open Saves Manager\"),\n _createElementVNode(\"button\", {\n onClick: setZero,\n class: \"button\"\n }, \"Set to 0\"),\n _createElementVNode(\"button\", {\n onClick: setOne,\n class: \"button\"\n }, \"Set to 1\"),\n (_unref(previous) && _unref(Decimal).neq(_unref(previous), 0) && _unref(Decimal).neq(_unref(previous), 1))\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (hasNaN.value = false)),\n class: \"button\"\n }, \" Set to previous \"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"button\", {\n onClick: ignore,\n class: \"button danger\"\n }, \"Ignore\")\n ])\n ]),\n _: 1\n }, 16, [\"modelValue\"]),\n _createVNode(SavesManager, {\n ref_key: \"savesManager\",\n ref: savesManager\n }, null, 512)\n ], 64))\n}\n}\n\n})","import script from \"./NaNScreen.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./NaNScreen.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./NaNScreen.vue?vue&type=style&index=0&id=0f93e378&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0f93e378\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-323f9b12\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"tpsDisplay\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"low\"\n}\n\nimport state from \"@/game/state\";\nimport Decimal, { DecimalSource, formatWhole } from \"@/util/bignum\";\nimport { computed, ref, watchEffect } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tps = computed(() =>\n Decimal.div(\n state.lastTenTicks.length,\n state.lastTenTicks.reduce((acc, curr) => acc + curr, 0)\n )\n);\n\nconst lastTenFPS = ref<number[]>([]);\nwatchEffect(() => {\n lastTenFPS.value.push(Math.round(tps.value.toNumber()));\n if (lastTenFPS.value.length > 10) {\n lastTenFPS.value = lastTenFPS.value.slice(1);\n }\n});\n\nconst low = computed(() =>\n lastTenFPS.value.reduce<DecimalSource>((acc, curr) => Decimal.max(acc, curr), 0)\n);\n\nconst showLow = computed(() => Decimal.sub(tps.value, low.value).gt(1));\n\nreturn (_ctx: any,_cache: any) => {\n return (!_unref(tps).isNan())\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createTextVNode(\" TPS: \" + _toDisplayString(_unref(formatWhole)(_unref(tps))) + \" \", 1),\n _createVNode(_Transition, { name: \"fade\" }, {\n default: _withCtx(() => [\n (_unref(showLow))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, _toDisplayString(_unref(formatWhole)(_unref(low))), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./TPS.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TPS.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TPS.vue?vue&type=style&index=0&id=323f9b12&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-323f9b12\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, normalizeClass as _normalizeClass, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed, toRef, unref } from \"vue\";\nimport Game from \"./components/Game.vue\";\nimport GameOverScreen from \"./components/GameOverScreen.vue\";\nimport NaNScreen from \"./components/NaNScreen.vue\";\nimport Nav from \"./components/Nav.vue\";\nimport TPS from \"./components/TPS.vue\";\nimport modInfo from \"./data/modInfo.json\";\nimport themes from \"./data/themes\";\nimport settings from \"./game/settings\";\nimport \"./main.css\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nfunction updateMouse(/* event */) {\n // TODO use event to update mouse position for particles\n}\n\nconst useHeader = modInfo.useHeader;\nconst theme = computed(() => themes[settings.theme].variables);\nconst showTPS = toRef(settings, \"showTPS\");\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n id: \"modal-root\",\n style: _normalizeStyle(_unref(theme))\n }, null, 4),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"app\", { useHeader: _unref(useHeader) }]),\n onMousemove: updateMouse,\n style: _normalizeStyle(_unref(theme))\n }, [\n (_unref(useHeader))\n ? (_openBlock(), _createBlock(Nav, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createVNode(Game),\n (unref(_unref(showTPS)))\n ? (_openBlock(), _createBlock(TPS, { key: 1 }))\n : _createCommentVNode(\"\", true),\n _createVNode(GameOverScreen),\n _createVNode(NaNScreen)\n ], 38)\n ], 64))\n}\n}\n\n})","import script from \"./App.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./App.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=e0e491f6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-e0e491f6\"]])\n\nexport default __exports__","import { App as VueApp, createApp } from \"vue\";\nimport App from \"./App.vue\";\nimport modInfo from \"./data/modInfo.json\";\nimport { GenericLayer } from \"./game/layers\";\nimport { PlayerData } from \"./game/player\";\nimport { Settings } from \"./game/settings\";\nimport { Transient } from \"./game/state\";\nimport Decimal, { DecimalSource } from \"./lib/break_eternity\";\nimport { load } from \"./util/save\";\n\ndeclare global {\n interface Window {\n vue: VueApp;\n save: VoidFunction;\n hardReset: VoidFunction;\n hardResetSettings: VoidFunction;\n layers: Record<string, Readonly<GenericLayer> | undefined>;\n player: PlayerData;\n state: Transient;\n settings: Settings;\n Decimal: typeof Decimal;\n exponentialFormat: (num: DecimalSource, precision: number, mantissa: boolean) => string;\n commaFormat: (num: DecimalSource, precision: number) => string;\n regularFormat: (num: DecimalSource, precision: number) => string;\n format: (num: DecimalSource, precision?: number, small?: boolean) => string;\n formatWhole: (num: DecimalSource) => string;\n formatTime: (s: number) => string;\n toPlaces: (x: DecimalSource, precision: number, maxAccepted: DecimalSource) => string;\n formatSmall: (x: DecimalSource, precision?: number) => string;\n invertOOM: (x: DecimalSource) => Decimal;\n modInfo: typeof modInfo;\n }\n}\n\nrequestAnimationFrame(async () => {\n console.log(\n \"%cMade in Profectus%c\\nLearn more at www.moddingtree.com\",\n \"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;\",\n \"padding: 4px;\"\n );\n await load();\n const { globalBus, startGameLoop } = await require(\"./game/events\");\n\n // Create Vue\n const vue = (window.vue = createApp({\n ...App\n }));\n globalBus.emit(\"setupVue\", vue);\n vue.mount(\"#app\");\n document.title = modInfo.title;\n\n startGameLoop();\n});\n\nwindow.modInfo = modInfo;\n","// Import Decimal and numberUtils from a different file to globally change which big num library gets used\n// This way switching out big number libraries just needs to happen here, not every file that needs big numbers\nimport { DecimalSource as RawDecimalSource } from \"@/lib/break_eternity\";\nimport Decimal, * as numberUtils from \"@/util/break_eternity\";\n\nexport const {\n exponentialFormat,\n commaFormat,\n regularFormat,\n format,\n formatWhole,\n formatTime,\n toPlaces,\n formatSmall,\n invertOOM\n} = numberUtils;\n\nexport type DecimalSource = RawDecimalSource;\n\nwindow.Decimal = Decimal;\nwindow.exponentialFormat = exponentialFormat;\nwindow.commaFormat = commaFormat;\nwindow.regularFormat = regularFormat;\nwindow.format = format;\nwindow.formatWhole = formatWhole;\nwindow.formatTime = formatTime;\nwindow.toPlaces = toPlaces;\nwindow.formatSmall = formatSmall;\nwindow.invertOOM = invertOOM;\n\nexport default Decimal;\n","import Decimal, { DecimalSource } from \"@/lib/break_eternity\";\nimport modInfo from \"@/data/modInfo.json\";\n\nexport default Decimal;\n\nconst decimalOne = new Decimal(1);\n\nexport function exponentialFormat(num: DecimalSource, precision: number, mantissa = true): string {\n let e = Decimal.log10(num).floor();\n let m = Decimal.div(num, Decimal.pow(10, e));\n if (m.toStringWithDecimalPlaces(precision) === \"10\") {\n m = decimalOne;\n e = e.add(1);\n }\n const eString = e.gte(1e9)\n ? format(e, Math.max(Math.max(precision, 3), modInfo.defaultDecimalsShown))\n : e.gte(10000)\n ? commaFormat(e, 0)\n : e.toStringWithDecimalPlaces(0);\n if (mantissa) {\n return m.toStringWithDecimalPlaces(precision) + \"e\" + eString;\n } else {\n return \"e\" + eString;\n }\n}\n\nexport function commaFormat(num: DecimalSource, precision: number): string {\n if (num === null || num === undefined) {\n return \"NaN\";\n }\n num = new Decimal(num);\n if (num.mag < 0.001) {\n return (0).toFixed(precision);\n }\n const init = num.toStringWithDecimalPlaces(precision);\n const portions = init.split(\".\");\n portions[0] = portions[0].replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, \"$1,\");\n if (portions.length == 1) return portions[0];\n return portions[0] + \".\" + portions[1];\n}\n\nexport function regularFormat(num: DecimalSource, precision: number): string {\n if (num === null || num === undefined) {\n return \"NaN\";\n }\n num = new Decimal(num);\n if (num.mag < 0.0001) {\n return (0).toFixed(precision);\n }\n if (num.mag < 0.1 && precision !== 0) {\n precision = Math.max(Math.max(precision, 4), modInfo.defaultDecimalsShown);\n }\n return num.toStringWithDecimalPlaces(precision);\n}\n\nexport function format(num: DecimalSource, precision?: number, small?: boolean): string {\n if (precision == null) precision = modInfo.defaultDecimalsShown;\n small = small || modInfo.allowSmall;\n num = new Decimal(num);\n if (isNaN(num.sign) || isNaN(num.layer) || isNaN(num.mag)) {\n return \"NaN\";\n }\n if (num.sign < 0) {\n return \"-\" + format(num.neg(), precision);\n }\n if (num.mag === Number.POSITIVE_INFINITY) {\n return \"Infinity\";\n }\n if (num.gte(\"eeee1000\")) {\n const slog = num.slog();\n if (slog.gte(1e6)) {\n return \"F\" + format(slog.floor());\n } else {\n return (\n Decimal.pow(10, slog.sub(slog.floor())).toStringWithDecimalPlaces(3) +\n \"F\" +\n commaFormat(slog.floor(), 0)\n );\n }\n } else if (num.gte(\"1e100000\")) {\n return exponentialFormat(num, 0, false);\n } else if (num.gte(\"1e1000\")) {\n return exponentialFormat(num, 0);\n } else if (num.gte(1e9)) {\n return exponentialFormat(num, precision);\n } else if (num.gte(1e3)) {\n return commaFormat(num, 0);\n } else if (num.gte(0.001) || !small) {\n return regularFormat(num, precision);\n } else if (num.eq(0)) {\n return (0).toFixed(precision);\n }\n\n num = invertOOM(num);\n if (num.lt(\"1e1000\")) {\n const val = exponentialFormat(num, precision);\n return val.replace(/([^(?:e|F)]*)$/, \"-$1\");\n } else {\n return format(num, precision) + \"⁻¹\";\n }\n}\n\nexport function formatWhole(num: DecimalSource): string {\n num = new Decimal(num);\n if (num.sign < 0) {\n return \"-\" + formatWhole(num.neg());\n }\n if (num.gte(1e9)) {\n return format(num);\n }\n if (num.lte(0.98) && !num.eq(0)) {\n return format(num);\n }\n return format(num, 0);\n}\n\nexport function formatTime(seconds: DecimalSource): string {\n if (Decimal.lt(seconds, 0)) {\n return \"-\" + formatTime(Decimal.neg(seconds));\n }\n if (Decimal.gt(seconds, 2 ** 51)) {\n // integer precision limit\n return format(Decimal.div(seconds, 31536000)) + \"y\";\n }\n seconds = new Decimal(seconds).toNumber();\n if (seconds < 60) {\n return format(seconds) + \"s\";\n } else if (seconds < 3600) {\n return formatWhole(Math.floor(seconds / 60)) + \"m \" + format(seconds % 60) + \"s\";\n } else if (seconds < 86400) {\n return (\n formatWhole(Math.floor(seconds / 3600)) +\n \"h \" +\n formatWhole(Math.floor(seconds / 60) % 60) +\n \"m \" +\n formatWhole(seconds % 60) +\n \"s\"\n );\n } else if (seconds < 31536000) {\n return (\n formatWhole(Math.floor(seconds / 84600) % 365) +\n \"d \" +\n formatWhole(Math.floor(seconds / 3600) % 24) +\n \"h \" +\n formatWhole(Math.floor(seconds / 60) % 60) +\n \"m\"\n );\n } else {\n return (\n formatWhole(Math.floor(seconds / 31536000)) +\n \"y \" +\n formatWhole(Math.floor(seconds / 84600) % 365) +\n \"d \" +\n formatWhole(Math.floor(seconds / 3600) % 24) +\n \"h\"\n );\n }\n}\n\nexport function toPlaces(x: DecimalSource, precision: number, maxAccepted: DecimalSource): string {\n x = new Decimal(x);\n let result = x.toStringWithDecimalPlaces(precision);\n if (new Decimal(result).gte(maxAccepted)) {\n result = Decimal.sub(maxAccepted, Math.pow(0.1, precision)).toStringWithDecimalPlaces(\n precision\n );\n }\n return result;\n}\n\n// Will also display very small numbers\nexport function formatSmall(x: DecimalSource, precision?: number): string {\n return format(x, precision, true);\n}\n\nexport function invertOOM(x: DecimalSource): Decimal {\n let e = Decimal.log10(x).ceil();\n const m = Decimal.div(x, Decimal.pow(10, e));\n e = e.neg();\n x = new Decimal(10).pow(e).times(m);\n\n return x;\n}\n","// Reference:\n// https://stackoverflow.com/questions/7225407/convert-camelcasetext-to-sentence-case-text\nexport function camelToTitle(camel: string): string {\n let title = camel.replace(/([A-Z])/g, \" $1\");\n title = title.charAt(0).toUpperCase() + title.slice(1);\n return title;\n}\n\nexport function isPlainObject(object: unknown): boolean {\n return Object.prototype.toString.call(object) === \"[object Object]\";\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isFunction(func: unknown): func is Function {\n return typeof func === \"function\";\n}\n","import { computed, Ref } from \"vue\";\nimport { isFunction } from \"./common\";\n\nexport const DoNotCache = Symbol(\"DoNotCache\");\n\nexport type Computable<T> = T | Ref<T> | (() => T);\nexport type ProcessedComputable<T> = T | Ref<T>;\nexport type GetComputableType<T> = T extends { [DoNotCache]: true }\n ? T\n : T extends () => infer S\n ? Ref<S>\n : undefined extends T\n ? undefined\n : T;\nexport type GetComputableTypeWithDefault<T, S> = undefined extends T\n ? S\n : GetComputableType<NonNullable<T>>;\ntype UnwrapComputableType<T> = T extends Ref<infer S> ? S : T extends () => infer S ? S : T;\n\ntype ComputableKeysOf<T> = Pick<\n T,\n {\n [K in keyof T]: T[K] extends Computable<unknown> ? K : never;\n }[keyof T]\n>;\n\n// TODO fix the typing of this function, such that casting isn't necessary and can be used to\n// detect if a createX function is validly written\nexport function processComputable<T, S extends keyof ComputableKeysOf<T>>(\n obj: T,\n key: S\n): asserts obj is T & { [K in S]: ProcessedComputable<UnwrapComputableType<T[S]>> } {\n const computable = obj[key];\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isFunction(computable) && computable.length === 0 && !(computable as any)[DoNotCache]) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n obj[key] = computed(computable.bind(obj));\n }\n}\n\nexport function convertComputable<T>(obj: Computable<T>): ProcessedComputable<T> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isFunction(obj) && !(obj as any)[DoNotCache]) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n obj = computed(obj);\n }\n return obj as ProcessedComputable<T>;\n}\n","import Decimal from \"./bignum\";\n\nexport const ProxyState = Symbol(\"ProxyState\");\nexport const ProxyPath = Symbol(\"ProxyPath\");\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ProxiedWithState<T> = NonNullable<T> extends Record<PropertyKey, any>\n ? NonNullable<T> extends Decimal\n ? T\n : {\n [K in keyof T]: ProxiedWithState<T[K]>;\n } & {\n [ProxyState]: T;\n [ProxyPath]: string[];\n }\n : T;\n\n// Takes a function that returns an object and pretends to be that object\n// Note that the object is lazily calculated\nexport function createLazyProxy<T extends object>(objectFunc: () => T): T {\n const obj: T | Record<string, never> = {};\n let calculated = false;\n function calculateObj(): T {\n if (!calculated) {\n Object.assign(obj, objectFunc());\n calculated = true;\n }\n return obj as T;\n }\n\n return new Proxy(obj, {\n get(target, key) {\n if (key === ProxyState) {\n return calculateObj();\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (calculateObj() as any)[key];\n },\n set() {\n console.error(\"Layers and features are shallow readonly\");\n return false;\n },\n has(target, key) {\n if (key === ProxyState) {\n return true;\n }\n return Reflect.has(calculateObj(), key);\n },\n ownKeys() {\n return Reflect.ownKeys(calculateObj());\n },\n getOwnPropertyDescriptor(target, key) {\n if (!calculated) {\n Object.assign(obj, objectFunc());\n calculated = true;\n }\n return Object.getOwnPropertyDescriptor(target, key);\n }\n }) as T;\n}\n","import modInfo from \"@/data/modInfo.json\";\nimport player, { Player, PlayerData, stringifySave } from \"@/game/player\";\nimport settings, { loadSettings } from \"@/game/settings\";\nimport Decimal from \"./bignum\";\nimport { ProxyState } from \"./proxies\";\n\nexport function setupInitialStore(player: Partial<PlayerData> = {}): Player {\n return Object.assign(\n {\n id: `${modInfo.id}-0`,\n name: \"Default Save\",\n tabs: modInfo.initialTabs.slice(),\n time: Date.now(),\n autosave: true,\n offlineProd: true,\n offlineTime: new Decimal(0),\n timePlayed: new Decimal(0),\n keepGoing: false,\n modID: modInfo.id,\n modVersion: modInfo.versionNumber,\n layers: {}\n },\n player\n ) as Player;\n}\n\nexport function save(): string {\n const stringifiedSave = btoa(unescape(encodeURIComponent(stringifySave(player[ProxyState]))));\n localStorage.setItem(player.id, stringifiedSave);\n return stringifiedSave;\n}\n\nexport async function load(): Promise<void> {\n // Load global settings\n loadSettings();\n\n try {\n const save = localStorage.getItem(settings.active);\n if (save == null) {\n await loadSave(newSave());\n return;\n }\n const player = JSON.parse(decodeURIComponent(escape(atob(save))));\n if (player.modID !== modInfo.id) {\n await loadSave(newSave());\n return;\n }\n player.id = settings.active;\n await loadSave(player);\n } catch (e) {\n console.error(\"Failed to load save. Falling back to new save.\\n\", e);\n await loadSave(newSave());\n }\n}\n\nexport function newSave(): PlayerData {\n const id = getUniqueID();\n const player = setupInitialStore({ id });\n localStorage.setItem(id, btoa(unescape(encodeURIComponent(stringifySave(player)))));\n\n settings.saves.push(id);\n\n return player;\n}\n\nexport function getUniqueID(): string {\n let id,\n i = 0;\n do {\n id = `${modInfo.id}-${i++}`;\n } while (localStorage.getItem(id));\n return id;\n}\n\nexport async function loadSave(playerObj: Partial<PlayerData>): Promise<void> {\n console.info(\"Loading save\", playerObj);\n const { layers, removeLayer, addLayer } = await import(\"@/game/layers\");\n const { fixOldSave, getInitialLayers } = await import(\"@/data/mod\");\n\n for (const layer in layers) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n removeLayer(layers[layer]!);\n }\n getInitialLayers(playerObj).forEach(layer => addLayer(layer, playerObj));\n\n playerObj = setupInitialStore(playerObj);\n if (playerObj.offlineProd && playerObj.time) {\n if (playerObj.offlineTime == undefined) playerObj.offlineTime = new Decimal(0);\n playerObj.offlineTime = Decimal.add(\n playerObj.offlineTime,\n (Date.now() - playerObj.time) / 1000\n );\n }\n playerObj.time = Date.now();\n if (playerObj.modVersion !== modInfo.versionNumber) {\n fixOldSave(playerObj.modVersion, playerObj);\n }\n\n Object.assign(player, playerObj);\n settings.active = player.id;\n}\n\nsetInterval(() => {\n if (player.autosave) {\n save();\n }\n}, 1000);\nwindow.onbeforeunload = () => {\n if (player.autosave) {\n save();\n }\n};\nwindow.save = save;\nexport const hardReset = (window.hardReset = async () => {\n await loadSave(newSave());\n});\n","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n width: { default: \"8px\" },\n height: { default: \"17px\" }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n style: _normalizeStyle({ width: __props.width, height: __props.height })\n }, null, 4))\n}\n}\n\n})","import script from \"./Spacer.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Spacer.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Decimal, { DecimalSource, format, formatWhole } from \"@/util/bignum\";\nimport { computed, ComputedRef, ref, Ref, watch } from \"vue\";\nimport { globalBus } from \"@/game/events\";\nimport { State, persistent } from \"@/game/persistence\";\n\nexport interface Resource<T = DecimalSource> extends Ref<T> {\n displayName: string;\n precision: number;\n small: boolean;\n}\n\nexport function createResource<T extends State>(\n defaultValue: T | Ref<T>,\n displayName = \"points\",\n precision = 0,\n small = false\n): Resource<T> {\n const resource: Partial<Resource<T>> = persistent(defaultValue);\n resource.displayName = displayName;\n resource.precision = precision;\n resource.small = small;\n return resource as Resource<T>;\n}\n\nexport function trackBest(resource: Resource): Ref<DecimalSource> {\n const best = persistent(resource.value);\n watch(resource, amount => {\n if (Decimal.gt(amount, best.value)) {\n best.value = amount;\n }\n });\n return best;\n}\n\nexport function trackTotal(resource: Resource): Ref<DecimalSource> {\n const total = persistent(resource.value);\n watch(resource, (amount, prevAmount) => {\n if (Decimal.gt(amount, prevAmount)) {\n total.value = Decimal.add(total.value, Decimal.sub(amount, prevAmount));\n }\n });\n return total;\n}\n\nexport function trackOOMPS(\n resource: Resource,\n pointGain?: ComputedRef<DecimalSource>\n): Ref<string> {\n const oomps = ref<DecimalSource>(0);\n const oompsMag = ref(0);\n const lastPoints = ref<DecimalSource>(0);\n\n globalBus.on(\"update\", diff => {\n oompsMag.value = 0;\n if (Decimal.lte(resource.value, 1e100)) {\n lastPoints.value = resource.value;\n return;\n }\n\n let curr = resource.value;\n let prev = lastPoints.value;\n lastPoints.value = curr;\n if (Decimal.gt(curr, prev)) {\n if (Decimal.gte(curr, \"10^^8\")) {\n curr = Decimal.slog(curr, 1e10);\n prev = Decimal.slog(prev, 1e10);\n oomps.value = curr.sub(prev).div(diff);\n oompsMag.value = -1;\n } else {\n while (\n Decimal.div(curr, prev).log(10).div(diff).gte(\"100\") &&\n oompsMag.value <= 5 &&\n Decimal.gt(prev, 0)\n ) {\n curr = Decimal.log10(curr);\n prev = Decimal.log10(prev);\n oomps.value = curr.sub(prev).div(diff);\n oompsMag.value++;\n }\n }\n }\n });\n\n const oompsString = computed(() => {\n if (oompsMag.value === 0) {\n return pointGain\n ? format(pointGain.value, resource.precision, resource.small) +\n \" \" +\n resource.displayName +\n \"/s\"\n : \"\";\n }\n return (\n format(oomps.value) +\n \" OOM\" +\n (oompsMag.value < 0 ? \"^OOM\" : \"^\" + oompsMag.value) +\n \"s/sec\"\n );\n });\n return oompsString;\n}\n\nexport function displayResource(resource: Resource, overrideAmount?: DecimalSource): string {\n const amount = overrideAmount ?? resource.value;\n if (Decimal.eq(resource.precision, 0)) {\n return formatWhole(amount);\n }\n return format(amount, resource.precision, resource.small);\n}\n","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, mergeProps as _mergeProps, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-e6ef63ea\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"left-side-nodes\"\n}\nconst _hoisted_2 = {\n key: 1,\n class: \"side-nodes\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_TreeNode = _resolveComponent(\"TreeNode\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.nodes), (row, index) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({\n class: \"row\",\n key: index\n }, _ctx.$attrs), [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(row, (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ], 16))\n }), 128)),\n (_ctx.unref(_ctx.leftSideNodes))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.leftSideNodes), (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip,\n small: \"\"\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.unref(_ctx.rightSideNodes))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.unref(_ctx.rightSideNodes), (node, nodeIndex) => {\n return (_openBlock(), _createBlock(_component_TreeNode, _mergeProps({ key: nodeIndex }, _ctx.gatherNodeProps(node), {\n \"force-tooltip\": node.forceTooltip,\n small: \"\"\n }), null, 16, [\"force-tooltip\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, mergeProps as _mergeProps, withCtx as _withCtx, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-176052a6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MarkNode = _resolveComponent(\"MarkNode\")!\n const _component_LinkNode = _resolveComponent(\"LinkNode\")!\n const _component_Tooltip = _resolveComponent(\"Tooltip\")!\n\n return (_ctx.unref(_ctx.visibility) !== _ctx.Visibility.None)\n ? (_openBlock(), _createBlock(_component_Tooltip, _mergeProps({ key: 0 }, _ctx.tooltipToBind && _ctx.gatherTooltipProps(_ctx.tooltipToBind), {\n display: _ctx.tooltipDisplay,\n force: _ctx.forceTooltip,\n style: { visibility: _ctx.unref(_ctx.visibility) === _ctx.Visibility.Hidden ? 'hidden' : undefined },\n class: {\n treeNode: true,\n can: _ctx.unref(_ctx.canClick),\n small: _ctx.unref(_ctx.small),\n ..._ctx.unref(_ctx.classes)\n }\n }), {\n default: _withCtx(() => [\n _createElementVNode(\"button\", {\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.click && _ctx.click(...args))),\n onMousedown: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onMouseleave: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onMouseup: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchstart: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onTouchend: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchcancel: _cache[6] || (_cache[6] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n style: _normalizeStyle([\n {\n backgroundColor: _ctx.unref(_ctx.color),\n boxShadow: `-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${_ctx.unref(\n _ctx.glowColor\n )}`\n },\n _ctx.unref(_ctx.style) ?? []\n ]),\n disabled: !_ctx.unref(_ctx.canClick)\n }, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.unref(_ctx.comp))))\n ], 44, _hoisted_1),\n _createVNode(_component_MarkNode, {\n mark: _ctx.unref(_ctx.mark)\n }, null, 8, [\"mark\"]),\n _createVNode(_component_LinkNode, { id: _ctx.id }, null, 8, [\"id\"])\n ]),\n _: 1\n }, 16, [\"display\", \"force\", \"style\", \"class\"]))\n : _createCommentVNode(\"\", true)\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { RegisterLinkNodeInjectionKey, UnregisterLinkNodeInjectionKey } from \"@/features/links\";\nimport { computed, inject, onUnmounted, ref, toRefs, unref, watch } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n id: null\n },\n setup(__props: any) {\n\nconst _props = __props as { id: string }\n\n\nconst props = toRefs(_props);\n\nconst register = inject(RegisterLinkNodeInjectionKey);\nconst unregister = inject(UnregisterLinkNodeInjectionKey);\n\nconst node = ref<HTMLElement | null>(null);\nconst parentNode = computed(() => node.value && node.value.parentElement);\n\nif (register && unregister) {\n watch([parentNode, props.id], ([newNode, newID], [prevNode, prevID]) => {\n if (prevNode) {\n unregister(unref(prevID));\n }\n if (newNode) {\n register(newID, newNode);\n }\n });\n\n onUnmounted(() => unregister(unref(props.id)));\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"branch\",\n ref_key: \"node\",\n ref: node\n }, null, 512))\n}\n}\n\n})","import script from \"./LinkNode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./LinkNode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./LinkNode.vue?vue&type=style&index=0&id=1318daf7&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1318daf7\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-c476c56a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = {\n key: 0,\n class: \"mark star\"\n}\nconst _hoisted_3 = [\"src\"]\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n mark: { type: [Boolean, String] }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (__props.mark)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (__props.mark === true)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2))\n : (_openBlock(), _createElementBlock(\"img\", {\n key: 1,\n class: \"mark\",\n src: __props.mark\n }, null, 8, _hoisted_3))\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./MarkNode.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MarkNode.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./MarkNode.vue?vue&type=style&index=0&id=c476c56a&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-c476c56a\"]])\n\nexport default __exports__","import { CoercableComponent } from \"@/features/feature\";\nimport { ProcessedComputable } from \"@/util/computed\";\n\ndeclare module \"@vue/runtime-dom\" {\n interface CSSProperties {\n \"--xoffset\"?: string;\n \"--yoffset\"?: string;\n }\n}\n\nexport interface Tooltip {\n display: ProcessedComputable<CoercableComponent>;\n top?: ProcessedComputable<boolean>;\n left?: ProcessedComputable<boolean>;\n right?: ProcessedComputable<boolean>;\n bottom?: ProcessedComputable<boolean>;\n xoffset?: ProcessedComputable<string>;\n yoffset?: ProcessedComputable<string>;\n force?: ProcessedComputable<boolean>;\n}\n\nexport function gatherTooltipProps(tooltip: Tooltip) {\n const { display, top, left, right, bottom, xoffset, yoffset, force } = tooltip;\n return { display, top, left, right, bottom, xoffset, yoffset, force };\n}\n","\nimport LinkNode from \"@/components/links/LinkNode.vue\";\nimport MarkNode from \"@/components/MarkNode.vue\";\nimport TooltipVue from \"@/components/Tooltip.vue\";\nimport { CoercableComponent, StyleValue, Visibility } from \"@/features/feature\";\nimport { gatherTooltipProps, Tooltip } from \"@/features/tooltip\";\nimport { ProcessedComputable } from \"@/util/computed\";\nimport {\n computeOptionalComponent,\n isCoercableComponent,\n processedPropType,\n setupHoldToClick,\n unwrapRef\n} from \"@/util/vue\";\nimport {\n computed,\n defineComponent,\n PropType,\n Ref,\n shallowRef,\n toRefs,\n unref,\n watchEffect\n} from \"vue\";\n\nexport default defineComponent({\n props: {\n display: processedPropType<CoercableComponent>(Object, String, Function),\n visibility: {\n type: processedPropType<Visibility>(Number),\n required: true\n },\n style: processedPropType<StyleValue>(String, Object, Array),\n classes: processedPropType<Record<string, boolean>>(Object),\n tooltip: processedPropType<CoercableComponent | Tooltip>(Object, String, Function),\n onClick: Function as PropType<VoidFunction>,\n onHold: Function as PropType<VoidFunction>,\n color: processedPropType<string>(String),\n glowColor: processedPropType<string>(String),\n forceTooltip: {\n type: Object as PropType<Ref<boolean>>,\n required: true\n },\n canClick: {\n type: processedPropType<boolean>(Boolean),\n required: true\n },\n mark: processedPropType<boolean | string>(Boolean, String),\n id: {\n type: String,\n required: true\n },\n small: processedPropType<boolean>(Boolean)\n },\n components: {\n Tooltip: TooltipVue,\n MarkNode,\n LinkNode\n },\n setup(props) {\n const { tooltip, forceTooltip, onClick, onHold, display } = toRefs(props);\n\n function click(e: MouseEvent) {\n if (e.shiftKey && tooltip) {\n forceTooltip.value = !forceTooltip.value;\n } else {\n unref(onClick)?.();\n }\n }\n\n const comp = computeOptionalComponent(display);\n const tooltipDisplay = shallowRef<ProcessedComputable<CoercableComponent> | undefined>(\n undefined\n );\n watchEffect(() => {\n const currTooltip = unwrapRef(tooltip);\n\n if (typeof currTooltip === \"object\" && !isCoercableComponent(currTooltip)) {\n tooltipDisplay.value = currTooltip.display;\n return;\n }\n tooltipDisplay.value = currTooltip;\n });\n const tooltipToBind = computed(() => {\n const currTooltip = unwrapRef(tooltip);\n\n if (typeof currTooltip === \"object\" && !isCoercableComponent(currTooltip)) {\n return currTooltip;\n }\n return null;\n });\n\n const { start, stop } = setupHoldToClick(onClick, onHold);\n\n return {\n click,\n start,\n stop,\n comp,\n tooltipDisplay,\n tooltipToBind,\n unref,\n Visibility,\n gatherTooltipProps,\n isCoercableComponent\n };\n }\n});\n","import { render } from \"./TreeNode.vue?vue&type=template&id=176052a6&scoped=true&ts=true\"\nimport script from \"./TreeNode.vue?vue&type=script&lang=ts\"\nexport * from \"./TreeNode.vue?vue&type=script&lang=ts\"\n\nimport \"./TreeNode.vue?vue&type=style&index=0&id=176052a6&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-176052a6\"]])\n\nexport default __exports__","\nimport \"@/components/common/table.css\";\nimport { GenericTreeNode } from \"@/features/trees/tree\";\nimport { processedPropType } from \"@/util/vue\";\nimport { defineComponent, unref } from \"vue\";\nimport TreeNode from \"./TreeNode.vue\";\n\nexport default defineComponent({\n props: {\n nodes: {\n type: processedPropType<GenericTreeNode[][]>(Array),\n required: true\n },\n leftSideNodes: processedPropType<GenericTreeNode[]>(Array),\n rightSideNodes: processedPropType<GenericTreeNode[]>(Array)\n },\n components: { TreeNode },\n setup() {\n function gatherNodeProps(node: GenericTreeNode) {\n const {\n display,\n visibility,\n style,\n classes,\n tooltip,\n onClick,\n onHold,\n color,\n glowColor,\n forceTooltip,\n canClick,\n mark,\n id\n } = node;\n return {\n display,\n visibility,\n style,\n classes,\n tooltip,\n onClick,\n onHold,\n color,\n glowColor,\n forceTooltip,\n canClick,\n mark,\n id\n };\n }\n\n return {\n gatherNodeProps,\n unref\n };\n }\n});\n","import { render } from \"./Tree.vue?vue&type=template&id=e6ef63ea&scoped=true&ts=true\"\nimport script from \"./Tree.vue?vue&type=script&lang=ts\"\nexport * from \"./Tree.vue?vue&type=script&lang=ts\"\n\nimport \"./Tree.vue?vue&type=style&index=0&id=e6ef63ea&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e6ef63ea\"]])\n\nexport default __exports__","import {\n CoercableComponent,\n Component,\n GatherProps,\n getUniqueID,\n Replace,\n setDefault,\n StyleValue,\n Visibility\n} from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport { GenericReset } from \"@/features/reset\";\nimport { displayResource, Resource } from \"@/features/resources/resource\";\nimport { Tooltip } from \"@/features/tooltip\";\nimport TreeComponent from \"@/features/trees/Tree.vue\";\nimport { persistent } from \"@/game/persistence\";\nimport { DecimalSource, format } from \"@/util/bignum\";\nimport Decimal, { formatWhole } from \"@/util/break_eternity\";\nimport {\n Computable,\n convertComputable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { computed, ref, Ref, unref } from \"vue\";\n\nexport const TreeNodeType = Symbol(\"TreeNode\");\nexport const TreeType = Symbol(\"Tree\");\n\nexport interface TreeNodeOptions {\n visibility?: Computable<Visibility>;\n canClick?: Computable<boolean>;\n color?: Computable<string>;\n display?: Computable<CoercableComponent>;\n tooltip?: Computable<string | Tooltip>;\n glowColor?: Computable<string>;\n classes?: Computable<Record<string, boolean>>;\n style?: Computable<StyleValue>;\n mark?: Computable<boolean | string>;\n reset?: GenericReset;\n onClick?: VoidFunction;\n onHold?: VoidFunction;\n}\n\nexport interface BaseTreeNode {\n id: string;\n forceTooltip: Ref<boolean>;\n type: typeof TreeNodeType;\n}\n\nexport type TreeNode<T extends TreeNodeOptions> = Replace<\n T & BaseTreeNode,\n {\n visibility: GetComputableTypeWithDefault<T[\"visibility\"], Visibility.Visible>;\n canClick: GetComputableTypeWithDefault<T[\"canClick\"], true>;\n color: GetComputableType<T[\"color\"]>;\n display: GetComputableType<T[\"display\"]>;\n glowColor: GetComputableType<T[\"glowColor\"]>;\n classes: GetComputableType<T[\"classes\"]>;\n style: GetComputableType<T[\"style\"]>;\n mark: GetComputableType<T[\"mark\"]>;\n tooltip: GetComputableType<T[\"tooltip\"]>;\n }\n>;\n\nexport type GenericTreeNode = Replace<\n TreeNode<TreeNodeOptions>,\n {\n visibility: ProcessedComputable<Visibility>;\n canClick: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createTreeNode<T extends TreeNodeOptions>(\n optionsFunc: () => T & ThisType<TreeNode<T>>\n): TreeNode<T> {\n return createLazyProxy(() => {\n const treeNode: T & Partial<BaseTreeNode> = optionsFunc();\n treeNode.id = getUniqueID(\"treeNode-\");\n treeNode.type = TreeNodeType;\n\n if (treeNode.tooltip) {\n treeNode.forceTooltip = persistent(false);\n } else {\n // If we don't have a tooltip, no point in making this persistent\n treeNode.forceTooltip = ref(false);\n }\n\n processComputable(treeNode as T, \"visibility\");\n setDefault(treeNode, \"visibility\", Visibility.Visible);\n processComputable(treeNode as T, \"canClick\");\n setDefault(treeNode, \"canClick\", true);\n processComputable(treeNode as T, \"color\");\n processComputable(treeNode as T, \"display\");\n processComputable(treeNode as T, \"tooltip\");\n processComputable(treeNode as T, \"glowColor\");\n processComputable(treeNode as T, \"classes\");\n processComputable(treeNode as T, \"style\");\n processComputable(treeNode as T, \"mark\");\n\n return treeNode as unknown as TreeNode<T>;\n });\n}\n\nexport interface TreeBranch extends Omit<Link, \"startNode\" | \"endNode\"> {\n startNode: GenericTreeNode;\n endNode: GenericTreeNode;\n}\n\nexport interface TreeOptions {\n visibility?: Computable<Visibility>;\n nodes: Computable<GenericTreeNode[][]>;\n leftSideNodes?: Computable<GenericTreeNode[]>;\n rightSideNodes?: Computable<GenericTreeNode[]>;\n branches?: Computable<TreeBranch[]>;\n resetPropagation?: ResetPropagation;\n onReset?: (node: GenericTreeNode) => void;\n}\n\ninterface BaseTree {\n id: string;\n links: Ref<Link[]>;\n reset: (node: GenericTreeNode) => void;\n isResetting: Ref<boolean>;\n resettingNode: Ref<GenericTreeNode | null>;\n type: typeof TreeType;\n [Component]: typeof TreeComponent;\n [GatherProps]: () => Record<string, unknown>;\n}\n\nexport type Tree<T extends TreeOptions> = Replace<\n T & BaseTree,\n {\n visibility: GetComputableTypeWithDefault<T[\"visibility\"], Visibility.Visible>;\n nodes: GetComputableType<T[\"nodes\"]>;\n leftSideNodes: GetComputableType<T[\"leftSideNodes\"]>;\n rightSideNodes: GetComputableType<T[\"rightSideNodes\"]>;\n branches: GetComputableType<T[\"branches\"]>;\n }\n>;\n\nexport type GenericTree = Replace<\n Tree<TreeOptions>,\n {\n visibility: ProcessedComputable<Visibility>;\n }\n>;\n\nexport function createTree<T extends TreeOptions>(\n optionsFunc: () => T & ThisType<Tree<T>>\n): Tree<T> {\n return createLazyProxy(() => {\n const tree: T & Partial<BaseTree> = optionsFunc();\n tree.id = getUniqueID(\"tree-\");\n tree.type = TreeType;\n tree[Component] = TreeComponent;\n\n tree.isResetting = ref(false);\n tree.resettingNode = ref(null);\n\n tree.reset = function (node) {\n const genericTree = tree as GenericTree;\n genericTree.isResetting.value = true;\n genericTree.resettingNode.value = node;\n genericTree.resetPropagation?.(genericTree, node);\n genericTree.onReset?.(node);\n genericTree.isResetting.value = false;\n genericTree.resettingNode.value = null;\n };\n tree.links = computed(() => {\n const genericTree = tree as GenericTree;\n return unref(genericTree.branches) ?? [];\n });\n\n processComputable(tree as T, \"visibility\");\n setDefault(tree, \"visibility\", Visibility.Visible);\n processComputable(tree as T, \"nodes\");\n processComputable(tree as T, \"leftSideNodes\");\n processComputable(tree as T, \"rightSideNodes\");\n processComputable(tree as T, \"branches\");\n\n tree[GatherProps] = function (this: GenericTree) {\n const { nodes, leftSideNodes, rightSideNodes } = this;\n return { nodes, leftSideNodes, rightSideNodes };\n };\n\n return tree as unknown as Tree<T>;\n });\n}\n\nexport type ResetPropagation = {\n (tree: GenericTree, resettingNode: GenericTreeNode): void;\n};\n\nexport const defaultResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const nodes = unref(tree.nodes);\n const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) - 1;\n for (let x = row; x >= 0; x--) {\n nodes[x].forEach(node => node.reset?.reset());\n }\n};\n\nexport const invertedResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const nodes = unref(tree.nodes);\n const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) + 1;\n for (let x = row; x < nodes.length; x++) {\n nodes[x].forEach(node => node.reset?.reset());\n }\n};\n\nexport const branchedResetPropagation = function (\n tree: GenericTree,\n resettingNode: GenericTreeNode\n): void {\n const visitedNodes = [resettingNode];\n let currentNodes = [resettingNode];\n if (tree.branches != null) {\n const branches = unref(tree.branches);\n while (currentNodes.length > 0) {\n const nextNodes: GenericTreeNode[] = [];\n currentNodes.forEach(node => {\n branches\n .filter(branch => branch.startNode === node || branch.endNode === node)\n .map(branch => {\n if (branch.startNode === node) {\n return branch.endNode;\n }\n return branch.startNode;\n })\n .filter(node => !visitedNodes.includes(node))\n .forEach(node => {\n // Check here instead of in the filter because this check's results may\n // change as we go through each node\n if (!nextNodes.includes(node)) {\n nextNodes.push(node);\n node.reset?.reset();\n }\n });\n });\n currentNodes = nextNodes;\n visitedNodes.push(...currentNodes);\n }\n }\n};\n\nexport function createResourceTooltip(\n resource: Resource,\n requiredResource: Resource | null = null,\n requirement: Computable<DecimalSource> = 0\n): Ref<string> {\n const req = convertComputable(requirement);\n return computed(() => {\n if (requiredResource == null || Decimal.gte(resource.value, unref(req))) {\n return displayResource(resource);\n }\n return `Reach ${\n Decimal.eq(requiredResource.precision, 0)\n ? formatWhole(unref(req))\n : format(unref(req), requiredResource.precision)\n } ${requiredResource.displayName} to unlock (You have ${\n Decimal.eq(requiredResource.precision, 0)\n ? formatWhole(requiredResource.value)\n : format(requiredResource.value, requiredResource.precision)\n })`;\n });\n}\n","import { GenericLayer } from \"@/game/layers\";\nimport Decimal, { DecimalSource } from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { computed, isRef, Ref, unref } from \"vue\";\nimport { Replace, setDefault } from \"./feature\";\nimport { Resource } from \"./resources/resource\";\n\nexport interface ConversionOptions {\n scaling: ScalingFunction;\n currentGain?: Computable<DecimalSource>;\n nextAt?: Computable<DecimalSource>;\n baseResource: Resource;\n gainResource: Resource;\n buyMax?: Computable<boolean>;\n roundUpCost?: Computable<boolean>;\n convert?: VoidFunction;\n modifyGainAmount?: (gain: DecimalSource) => DecimalSource;\n}\n\ninterface BaseConversion {\n convert: VoidFunction;\n}\n\nexport type Conversion<T extends ConversionOptions> = Replace<\n T & BaseConversion,\n {\n currentGain: GetComputableTypeWithDefault<T[\"currentGain\"], Ref<DecimalSource>>;\n nextAt: GetComputableTypeWithDefault<T[\"nextAt\"], Ref<DecimalSource>>;\n buyMax: GetComputableTypeWithDefault<T[\"buyMax\"], true>;\n roundUpCost: GetComputableTypeWithDefault<T[\"roundUpCost\"], true>;\n }\n>;\n\nexport type GenericConversion = Replace<\n Conversion<ConversionOptions>,\n {\n currentGain: ProcessedComputable<DecimalSource>;\n nextAt: ProcessedComputable<DecimalSource>;\n buyMax: ProcessedComputable<boolean>;\n roundUpCost: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createConversion<T extends ConversionOptions>(\n optionsFunc: () => T & ThisType<Conversion<T>>\n): Conversion<T> {\n return createLazyProxy(() => {\n const conversion: T = optionsFunc();\n\n if (conversion.currentGain == null) {\n conversion.currentGain = computed(() =>\n conversion.scaling.currentGain(conversion as GenericConversion)\n );\n }\n if (conversion.nextAt == null) {\n conversion.nextAt = computed(() =>\n conversion.scaling.nextAt(conversion as GenericConversion)\n );\n }\n\n if (conversion.convert == null) {\n conversion.convert = function () {\n conversion.gainResource.value = Decimal.add(\n conversion.gainResource.value,\n conversion.modifyGainAmount\n ? conversion.modifyGainAmount(\n unref((conversion as GenericConversion).currentGain)\n )\n : unref((conversion as GenericConversion).currentGain)\n );\n // TODO just subtract cost?\n conversion.baseResource.value = 0;\n };\n }\n\n processComputable(conversion as T, \"currentGain\");\n processComputable(conversion as T, \"nextAt\");\n processComputable(conversion as T, \"buyMax\");\n setDefault(conversion, \"buyMax\", true);\n processComputable(conversion as T, \"roundUpCost\");\n setDefault(conversion, \"roundUpCost\", true);\n\n return conversion as unknown as Conversion<T>;\n });\n}\n\nexport type ScalingFunction = {\n currentGain: (conversion: GenericConversion) => DecimalSource;\n nextAt: (conversion: GenericConversion) => DecimalSource;\n};\n\n// Gain formula is (baseResource - base) * coefficient\n// e.g. if base is 10 and coefficient is 0.5, 10 points makes 1 gain, 12 points is 2\nexport function createLinearScaling(\n base: DecimalSource | Ref<DecimalSource>,\n coefficient: DecimalSource | Ref<DecimalSource>\n): ScalingFunction {\n return {\n currentGain(conversion) {\n if (Decimal.lt(conversion.baseResource.value, unref(base))) {\n return 0;\n }\n\n let gain = Decimal.sub(conversion.baseResource.value, unref(base))\n .sub(1)\n .times(unref(coefficient))\n .add(1)\n .floor()\n .max(0);\n\n if (!conversion.buyMax) {\n gain = gain.min(1);\n }\n return gain;\n },\n nextAt(conversion) {\n let next = Decimal.add(unref(conversion.currentGain), 1)\n .times(unref(coefficient))\n .add(unref(base))\n .max(unref(base));\n if (conversion.roundUpCost) next = next.ceil();\n return next;\n }\n };\n}\n\n// Gain formula is (baseResource / base) ^ exponent\n// e.g. if exponent is 0.5 and base is 10, then having 10 points makes gain 1, and 40 points is 2\nexport function createExponentialScaling(\n base: DecimalSource | Ref<DecimalSource>,\n coefficient: DecimalSource | Ref<DecimalSource>,\n exponent: DecimalSource | Ref<DecimalSource>\n): ScalingFunction {\n return {\n currentGain(conversion) {\n let gain = Decimal.div(conversion.baseResource.value, unref(base))\n .pow(unref(exponent))\n .floor()\n .max(0);\n\n if (gain.isNan()) {\n return new Decimal(0);\n }\n\n if (!conversion.buyMax) {\n gain = gain.min(1);\n }\n return gain;\n },\n nextAt(conversion) {\n let next = Decimal.add(unref(conversion.currentGain), 1)\n .root(unref(exponent))\n .times(unref(base))\n .max(unref(base));\n if (conversion.roundUpCost) next = next.ceil();\n return next;\n }\n };\n}\n\nexport function createCumulativeConversion<S extends ConversionOptions>(\n optionsFunc: () => S & ThisType<Conversion<S>>\n): Conversion<S> {\n return createConversion(optionsFunc);\n}\n\nexport function createIndependentConversion<S extends ConversionOptions>(\n optionsFunc: () => S & ThisType<Conversion<S>>\n): Conversion<S> {\n return createConversion(() => {\n const conversion: S = optionsFunc();\n\n setDefault(conversion, \"buyMax\", false);\n\n if (conversion.currentGain == null) {\n conversion.currentGain = computed(() =>\n Decimal.sub(\n conversion.scaling.currentGain(conversion as GenericConversion),\n conversion.gainResource.value\n )\n .add(1)\n .max(1)\n );\n }\n setDefault(conversion, \"convert\", function () {\n conversion.gainResource.value = conversion.modifyGainAmount\n ? conversion.modifyGainAmount(unref((conversion as GenericConversion).currentGain))\n : unref((conversion as GenericConversion).currentGain);\n // TODO just subtract cost?\n // Maybe by adding a cost function to scaling and nextAt just calls the cost function\n // with 1 + currentGain\n conversion.baseResource.value = 0;\n });\n\n return conversion;\n });\n}\n\nexport function setupPassiveGeneration(\n layer: GenericLayer,\n conversion: GenericConversion,\n rate: ProcessedComputable<DecimalSource> = 1\n): void {\n layer.on(\"preUpdate\", (diff: Decimal) => {\n const currRate = isRef(rate) ? rate.value : rate;\n if (Decimal.neq(currRate, 0)) {\n conversion.gainResource.value = Decimal.add(\n conversion.gainResource.value,\n Decimal.times(currRate, diff).times(unref(conversion.currentGain))\n );\n }\n });\n}\n\nfunction softcap(\n value: DecimalSource,\n cap: DecimalSource,\n power: DecimalSource = 0.5\n): DecimalSource {\n if (Decimal.lte(value, cap)) {\n return value;\n } else {\n return Decimal.pow(value, power).times(Decimal.pow(cap, Decimal.sub(1, power)));\n }\n}\n\nexport function addSoftcap(\n scaling: ScalingFunction,\n cap: ProcessedComputable<DecimalSource>,\n power: ProcessedComputable<DecimalSource> = 0.5\n): ScalingFunction {\n return {\n ...scaling,\n currentGain: conversion =>\n softcap(scaling.currentGain(conversion), unref(cap), unref(power))\n };\n}\n\nexport function addHardcap(\n scaling: ScalingFunction,\n cap: ProcessedComputable<DecimalSource>\n): ScalingFunction {\n return {\n ...scaling,\n currentGain: conversion => Decimal.min(scaling.currentGain(conversion), unref(cap))\n };\n}\n","import {\n DefaultValue,\n getUniqueID,\n Persistent,\n persistent,\n PersistentRef,\n PersistentState,\n Replace\n} from \"@/features/feature\";\nimport { globalBus } from \"@/game/events\";\nimport { GenericLayer } from \"@/game/layers\";\nimport Decimal from \"@/lib/break_eternity\";\nimport { Computable, GetComputableType, processComputable } from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { Unsubscribe } from \"nanoevents\";\nimport { computed, isRef, unref } from \"vue\";\n\nexport const ResetType = Symbol(\"Reset\");\n\nexport interface ResetOptions {\n thingsToReset: Computable<Record<string, unknown>[]>;\n onReset?: VoidFunction;\n}\n\ninterface BaseReset {\n id: string;\n reset: VoidFunction;\n type: typeof ResetType;\n}\n\nexport type Reset<T extends ResetOptions> = Replace<\n T & BaseReset,\n {\n thingsToReset: GetComputableType<T[\"thingsToReset\"]>;\n }\n>;\n\nexport type GenericReset = Reset<ResetOptions>;\n\nexport function createReset<T extends ResetOptions>(\n optionsFunc: () => T & ThisType<Reset<T>>\n): Reset<T> {\n return createLazyProxy(() => {\n const reset: T & Partial<BaseReset> = optionsFunc();\n reset.id = getUniqueID(\"reset-\");\n reset.type = ResetType;\n\n reset.reset = function () {\n const handleObject = (obj: unknown) => {\n if (obj && typeof obj === \"object\") {\n if (PersistentState in obj) {\n (obj as Persistent)[PersistentState].value = (obj as Persistent)[\n DefaultValue\n ];\n } else if (!(obj instanceof Decimal) && !isRef(obj)) {\n Object.values(obj).forEach(obj =>\n handleObject(obj as Record<string, unknown>)\n );\n }\n }\n };\n unref((reset as GenericReset).thingsToReset).forEach(handleObject);\n globalBus.emit(\"reset\", reset as GenericReset);\n reset.onReset?.();\n };\n\n processComputable(reset as T, \"thingsToReset\");\n\n return reset as unknown as Reset<T>;\n });\n}\n\nexport function setupAutoReset(\n layer: GenericLayer,\n reset: GenericReset,\n autoActive: Computable<boolean> = true\n): Unsubscribe {\n const isActive = typeof autoActive === \"function\" ? computed(autoActive) : autoActive;\n return layer.on(\"update\", () => {\n if (unref(isActive)) {\n reset.reset();\n }\n });\n}\n\nconst listeners: Record<string, Unsubscribe | undefined> = {};\nexport function trackResetTime(layer: GenericLayer, reset: GenericReset): PersistentRef<Decimal> {\n const resetTime = persistent<Decimal>(new Decimal(0));\n listeners[layer.id] = layer.on(\"preUpdate\", (diff: Decimal) => {\n resetTime.value = Decimal.add(resetTime.value, diff);\n });\n globalBus.on(\"reset\", currentReset => {\n if (currentReset === reset) {\n resetTime.value = new Decimal(0);\n }\n });\n return resetTime;\n}\nglobalBus.on(\"removeLayer\", layer => {\n // unsubscribe from preUpdate\n listeners[layer.id]?.();\n listeners[layer.id] = undefined;\n});\n\ndeclare module \"@/game/events\" {\n interface GlobalEvents {\n reset: (reset: GenericReset) => void;\n }\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { displayResource, Resource } from \"@/features/resources/resource\";\nimport { computed } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n resource: null,\n color: null\n },\n setup(__props: any) {\n\nconst props = __props as {\n resource: Resource;\n color: string;\n}\n\n\n\nconst amount = computed(() => displayResource(props.resource));\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"h2\", {\n style: _normalizeStyle({ color: __props.color, 'text-shadow': '0px 0px 10px ' + __props.color })\n }, _toDisplayString(_unref(amount)), 5))\n}\n}\n\n})","import script from \"./Resource.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Resource.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, createBlock as _createBlock, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { key: 1 }\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\", \")\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"br\", null, null, -1)\n\nimport { CoercableComponent } from \"@/features/feature\";\nimport { Resource } from \"@/features/resources/resource\";\nimport Decimal from \"@/util/bignum\";\nimport { computeOptionalComponent } from \"@/util/vue\";\nimport { computed, Ref, StyleValue, toRefs } from \"vue\";\nimport ResourceVue from \"@/features/resources/Resource.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n resource: null,\n color: null,\n classes: null,\n style: null,\n effectDisplay: null\n },\n setup(__props: any) {\n\nconst _props = __props as {\n resource: Resource;\n color?: string;\n classes?: Record<string, boolean>;\n style?: StyleValue;\n effectDisplay?: CoercableComponent;\n}\n\n\nconst props = toRefs(_props);\n\nconst effectComponent = computeOptionalComponent(\n props.effectDisplay as Ref<CoercableComponent | undefined>\n);\n\nconst showPrefix = computed(() => {\n return Decimal.lt(props.resource.value, \"1e1000\");\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", null, [\n (_unref(showPrefix))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_1, \"You have \"))\n : _createCommentVNode(\"\", true),\n _createVNode(ResourceVue, {\n resource: __props.resource,\n color: __props.color || 'white'\n }, null, 8, [\"resource\", \"color\"]),\n _createTextVNode(\" \" + _toDisplayString(__props.resource.displayName), 1),\n (_unref(effectComponent))\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, [\n _hoisted_3,\n (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(effectComponent))))\n ]))\n : _createCommentVNode(\"\", true),\n _hoisted_4,\n _hoisted_5\n ]))\n}\n}\n\n})","import script from \"./MainDisplay.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./MainDisplay.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2d81e1cc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MarkNode = _resolveComponent(\"MarkNode\")!\n const _component_LinkNode = _resolveComponent(\"LinkNode\")!\n\n return (_ctx.unref(_ctx.visibility) !== _ctx.Visibility.None)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n style: _normalizeStyle({ visibility: _ctx.unref(_ctx.visibility) === _ctx.Visibility.Hidden ? 'hidden' : undefined })\n }, [\n _createElementVNode(\"button\", {\n style: _normalizeStyle(_ctx.unref(_ctx.style)),\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.onClick && _ctx.onClick(...args))),\n onMousedown: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onMouseleave: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onMouseup: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchstart: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.start && _ctx.start(...args))),\n onTouchend: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n onTouchcancel: _cache[6] || (_cache[6] = \n//@ts-ignore\n(...args) => (_ctx.stop && _ctx.stop(...args))),\n disabled: !_ctx.unref(_ctx.canClick),\n class: _normalizeClass({\n feature: true,\n clickable: true,\n can: _ctx.unref(_ctx.canClick),\n locked: !_ctx.unref(_ctx.canClick),\n small: _ctx.small,\n ..._ctx.unref(_ctx.classes)\n })\n }, [\n (_ctx.unref(_ctx.comp))\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.unref(_ctx.comp)), { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_MarkNode, {\n mark: _ctx.unref(_ctx.mark)\n }, null, 8, [\"mark\"]),\n _createVNode(_component_LinkNode, { id: _ctx.id }, null, 8, [\"id\"])\n ], 46, _hoisted_1)\n ], 4))\n : _createCommentVNode(\"\", true)\n}","\nimport \"@/components/common/features.css\";\nimport LinkNode from \"@/components/links/LinkNode.vue\";\nimport MarkNode from \"@/components/MarkNode.vue\";\nimport { GenericClickable } from \"@/features/clickables/clickable\";\nimport { jsx, StyleValue, Visibility } from \"@/features/feature\";\nimport {\n coerceComponent,\n isCoercableComponent,\n processedPropType,\n setupHoldToClick,\n unwrapRef\n} from \"@/util/vue\";\nimport {\n Component,\n defineComponent,\n PropType,\n shallowRef,\n toRefs,\n unref,\n UnwrapRef,\n watchEffect\n} from \"vue\";\n\nexport default defineComponent({\n props: {\n display: {\n type: processedPropType<UnwrapRef<GenericClickable[\"display\"]>>(\n Object,\n String,\n Function\n ),\n required: true\n },\n visibility: {\n type: processedPropType<Visibility>(Number),\n required: true\n },\n style: processedPropType<StyleValue>(Object, String, Array),\n classes: processedPropType<Record<string, boolean>>(Object),\n onClick: Function as PropType<VoidFunction>,\n onHold: Function as PropType<VoidFunction>,\n canClick: {\n type: processedPropType<boolean>(Boolean),\n required: true\n },\n small: Boolean,\n mark: processedPropType<boolean | string>(Boolean, String),\n id: {\n type: String,\n required: true\n }\n },\n components: {\n LinkNode,\n MarkNode\n },\n setup(props) {\n const { display, onClick, onHold } = toRefs(props);\n\n const comp = shallowRef<Component | string>(\"\");\n\n watchEffect(() => {\n const currDisplay = unwrapRef(display);\n if (currDisplay == null) {\n comp.value = \"\";\n return;\n }\n if (isCoercableComponent(currDisplay)) {\n comp.value = coerceComponent(currDisplay);\n return;\n }\n const Title = coerceComponent(currDisplay.title || \"\", \"h3\");\n const Description = coerceComponent(currDisplay.description, \"div\");\n comp.value = coerceComponent(\n jsx(() => (\n <span>\n {currDisplay.title ? (\n <div>\n <Title />\n </div>\n ) : null}\n <Description />\n </span>\n ))\n );\n });\n\n const { start, stop } = setupHoldToClick(onClick, onHold);\n\n return {\n start,\n stop,\n comp,\n Visibility,\n unref\n };\n }\n});\n","import { render } from \"./Clickable.vue?vue&type=template&id=2d81e1cc&scoped=true&ts=true\"\nimport script from \"./Clickable.vue?vue&type=script&lang=tsx\"\nexport * from \"./Clickable.vue?vue&type=script&lang=tsx\"\n\nimport \"./Clickable.vue?vue&type=style&index=0&id=2d81e1cc&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2d81e1cc\"]])\n\nexport default __exports__","import ClickableComponent from \"@/features/clickables/Clickable.vue\";\nimport {\n CoercableComponent,\n Component,\n GatherProps,\n getUniqueID,\n Replace,\n setDefault,\n StyleValue,\n Visibility\n} from \"@/features/feature\";\nimport {\n Computable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\n\nexport const ClickableType = Symbol(\"Clickable\");\n\nexport interface ClickableOptions {\n visibility?: Computable<Visibility>;\n canClick?: Computable<boolean>;\n classes?: Computable<Record<string, boolean>>;\n style?: Computable<StyleValue>;\n mark?: Computable<boolean | string>;\n display?: Computable<\n | CoercableComponent\n | {\n title?: CoercableComponent;\n description: CoercableComponent;\n }\n >;\n small?: boolean;\n onClick?: VoidFunction;\n onHold?: VoidFunction;\n}\n\ninterface BaseClickable {\n id: string;\n type: typeof ClickableType;\n [Component]: typeof ClickableComponent;\n [GatherProps]: () => Record<string, unknown>;\n}\n\nexport type Clickable<T extends ClickableOptions> = Replace<\n T & BaseClickable,\n {\n visibility: GetComputableTypeWithDefault<T[\"visibility\"], Visibility.Visible>;\n canClick: GetComputableTypeWithDefault<T[\"canClick\"], true>;\n classes: GetComputableType<T[\"classes\"]>;\n style: GetComputableType<T[\"style\"]>;\n mark: GetComputableType<T[\"mark\"]>;\n display: GetComputableType<T[\"display\"]>;\n }\n>;\n\nexport type GenericClickable = Replace<\n Clickable<ClickableOptions>,\n {\n visibility: ProcessedComputable<Visibility>;\n canClick: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createClickable<T extends ClickableOptions>(\n optionsFunc: () => T & ThisType<Clickable<T>>\n): Clickable<T> {\n return createLazyProxy(() => {\n const clickable: T & Partial<BaseClickable> = optionsFunc();\n clickable.id = getUniqueID(\"clickable-\");\n clickable.type = ClickableType;\n clickable[Component] = ClickableComponent;\n\n processComputable(clickable as T, \"visibility\");\n setDefault(clickable, \"visibility\", Visibility.Visible);\n processComputable(clickable as T, \"canClick\");\n setDefault(clickable, \"canClick\", true);\n processComputable(clickable as T, \"classes\");\n processComputable(clickable as T, \"style\");\n processComputable(clickable as T, \"mark\");\n processComputable(clickable as T, \"display\");\n\n clickable[GatherProps] = function (this: GenericClickable) {\n const {\n display,\n visibility,\n style,\n classes,\n onClick,\n onHold,\n canClick,\n small,\n mark,\n id\n } = this;\n return {\n display,\n visibility,\n style,\n classes,\n onClick,\n onHold,\n canClick,\n small,\n mark,\n id\n };\n };\n\n return clickable as unknown as Clickable<T>;\n });\n}\n","import {\n Clickable,\n ClickableOptions,\n createClickable,\n GenericClickable\n} from \"@/features/clickables/clickable\";\nimport { GenericConversion } from \"@/features/conversion\";\nimport { CoercableComponent, jsx, Replace, setDefault } from \"@/features/feature\";\nimport { displayResource } from \"@/features/resources/resource\";\nimport {\n createTreeNode,\n GenericTree,\n GenericTreeNode,\n TreeNode,\n TreeNodeOptions\n} from \"@/features/trees/tree\";\nimport player from \"@/game/player\";\nimport Decimal from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { computed, Ref, unref } from \"vue\";\n\nexport interface ResetButtonOptions extends ClickableOptions {\n conversion: GenericConversion;\n tree: GenericTree;\n treeNode: GenericTreeNode;\n resetDescription?: Computable<string>;\n showNextAt?: Computable<boolean>;\n display?: Computable<CoercableComponent>;\n canClick?: Computable<boolean>;\n}\n\ntype ResetButton<T extends ResetButtonOptions> = Replace<\n Clickable<T>,\n {\n resetDescription: GetComputableTypeWithDefault<T[\"resetDescription\"], Ref<string>>;\n showNextAt: GetComputableTypeWithDefault<T[\"showNextAt\"], true>;\n display: GetComputableTypeWithDefault<T[\"display\"], Ref<JSX.Element>>;\n canClick: GetComputableTypeWithDefault<T[\"canClick\"], Ref<boolean>>;\n onClick: VoidFunction;\n }\n>;\n\nexport type GenericResetButton = Replace<\n GenericClickable & ResetButton<ResetButtonOptions>,\n {\n resetDescription: ProcessedComputable<string>;\n showNextAt: ProcessedComputable<boolean>;\n display: ProcessedComputable<CoercableComponent>;\n canClick: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createResetButton<T extends ClickableOptions & ResetButtonOptions>(\n optionsFunc: () => T\n): ResetButton<T> {\n return createClickable(() => {\n const resetButton = optionsFunc();\n\n processComputable(resetButton as T, \"showNextAt\");\n setDefault(resetButton, \"showNextAt\", true);\n\n if (resetButton.resetDescription == null) {\n resetButton.resetDescription = computed(() =>\n Decimal.lt(resetButton.conversion.gainResource.value, 1e3) ? \"Reset for \" : \"\"\n );\n } else {\n processComputable(resetButton as T, \"resetDescription\");\n }\n\n if (resetButton.display == null) {\n resetButton.display = jsx(() => (\n <span>\n {unref(resetButton.resetDescription as ProcessedComputable<string>)}\n <b>\n {displayResource(\n resetButton.conversion.gainResource,\n unref(resetButton.conversion.currentGain)\n )}\n </b>{\" \"}\n {resetButton.conversion.gainResource.displayName}\n <div v-show={unref(resetButton.showNextAt)}>\n <br />\n Next:{\" \"}\n {displayResource(\n resetButton.conversion.baseResource,\n unref(resetButton.conversion.nextAt)\n )}{\" \"}\n {resetButton.conversion.baseResource.displayName}\n </div>\n </span>\n ));\n }\n\n if (resetButton.canClick == null) {\n resetButton.canClick = computed(() =>\n Decimal.gt(unref(resetButton.conversion.currentGain), 0)\n );\n }\n\n const onClick = resetButton.onClick;\n resetButton.onClick = function () {\n resetButton.conversion.convert();\n resetButton.tree.reset(resetButton.treeNode);\n onClick?.();\n };\n\n return resetButton;\n }) as unknown as ResetButton<T>;\n}\n\nexport interface LayerTreeNodeOptions extends TreeNodeOptions {\n layerID: string;\n color: string;\n append?: boolean;\n}\nexport type LayerTreeNode<T extends LayerTreeNodeOptions> = Replace<\n TreeNode<T>,\n {\n append: ProcessedComputable<boolean>;\n }\n>;\nexport type GenericLayerTreeNode = LayerTreeNode<LayerTreeNodeOptions>;\n\nexport function createLayerTreeNode<T extends LayerTreeNodeOptions>(\n optionsFunc: () => T\n): LayerTreeNode<T> {\n return createTreeNode(() => {\n const options = optionsFunc();\n processComputable(options as T, \"append\");\n return {\n ...options,\n display: options.layerID,\n onClick:\n options.append != null && options.append\n ? function () {\n if (player.tabs.includes(options.layerID)) {\n const index = player.tabs.lastIndexOf(options.layerID);\n player.tabs.splice(index, 1);\n } else {\n player.tabs.push(options.layerID);\n }\n }\n : function () {\n player.tabs.splice(1, 1, options.layerID);\n }\n };\n }) as unknown as LayerTreeNode<T>;\n}\n","import { main } from \"@/data/mod\";\nimport { createCumulativeConversion, createExponentialScaling } from \"@/features/conversion\";\nimport { jsx } from \"@/features/feature\";\nimport { createReset } from \"@/features/reset\";\nimport MainDisplay from \"@/features/resources/MainDisplay.vue\";\nimport { createResource } from \"@/features/resources/resource\";\nimport { createLayer } from \"@/game/layers\";\nimport { DecimalSource } from \"@/lib/break_eternity\";\nimport { render } from \"@/util/vue\";\nimport { createLayerTreeNode, createResetButton } from \"../common\";\n\nconst layer = createLayer(() => {\n const id = \"p\";\n const name = \"Prestige\";\n const color = \"#4BDC13\";\n const points = createResource<DecimalSource>(0, \"prestige points\");\n\n const conversion = createCumulativeConversion(() => ({\n scaling: createExponentialScaling(10, 5, 0.5),\n baseResource: main.points,\n gainResource: points,\n roundUpCost: true\n }));\n\n const reset = createReset(() => ({\n thingsToReset: (): Record<string, unknown>[] => [layer]\n }));\n\n const treeNode = createLayerTreeNode(() => ({\n layerID: id,\n color,\n reset\n }));\n\n const resetButton = createResetButton(() => ({\n conversion,\n tree: main.tree,\n treeNode\n }));\n\n return {\n id,\n name,\n color,\n points,\n display: jsx(() => (\n <>\n <MainDisplay resource={points} color={color} />\n {render(resetButton)}\n </>\n )),\n treeNode\n };\n});\n\nexport default layer;\n","import Spacer from \"@/components/layout/Spacer.vue\";\nimport { jsx } from \"@/features/feature\";\nimport { createResource, trackBest, trackOOMPS, trackTotal } from \"@/features/resources/resource\";\nimport { branchedResetPropagation, createTree, GenericTree } from \"@/features/trees/tree\";\nimport { globalBus } from \"@/game/events\";\nimport { createLayer, GenericLayer } from \"@/game/layers\";\nimport player, { PlayerData } from \"@/game/player\";\nimport { DecimalSource } from \"@/lib/break_eternity\";\nimport Decimal, { format, formatTime } from \"@/util/bignum\";\nimport { render } from \"@/util/vue\";\nimport { computed, toRaw } from \"vue\";\nimport prestige from \"./layers/prestige\";\n\nexport const main = createLayer(() => {\n const points = createResource<DecimalSource>(10);\n const best = trackBest(points);\n const total = trackTotal(points);\n\n const pointGain = computed(() => {\n // eslint-disable-next-line prefer-const\n let gain = new Decimal(1);\n return gain;\n });\n globalBus.on(\"update\", diff => {\n points.value = Decimal.add(points.value, Decimal.times(pointGain.value, diff));\n });\n const oomps = trackOOMPS(points, pointGain);\n\n const tree = createTree(() => ({\n nodes: [[prestige.treeNode]],\n branches: [],\n onReset() {\n points.value = toRaw(this.resettingNode.value) === toRaw(prestige.treeNode) ? 0 : 10;\n best.value = points.value;\n total.value = points.value;\n },\n resetPropagation: branchedResetPropagation\n })) as GenericTree;\n\n return {\n id: \"main\",\n name: \"Tree\",\n links: tree.links,\n display: jsx(() => (\n <>\n <div v-show={player.devSpeed === 0}>Game Paused</div>\n <div v-show={player.devSpeed && player.devSpeed !== 1}>\n Dev Speed: {format(player.devSpeed || 0)}x\n </div>\n <div v-show={player.offlineTime != undefined}>\n Offline Time: {formatTime(player.offlineTime || 0)}\n </div>\n <div>\n <span v-show={Decimal.lt(points.value, \"1e1000\")}>You have </span>\n <h2>{format(points.value)}</h2>\n <span v-show={Decimal.lt(points.value, \"1e1e6\")}> points</span>\n </div>\n <div v-show={Decimal.gt(pointGain.value, 0)}>({oomps.value})</div>\n <Spacer />\n {render(tree)}\n </>\n )),\n points,\n best,\n total,\n oomps,\n tree\n };\n});\n\nexport const getInitialLayers = (\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\n player: Partial<PlayerData>\n): Array<GenericLayer> => [main, prestige];\n\nexport const hasWon = computed(() => {\n return false;\n});\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport function fixOldSave(\n oldVersion: string | undefined,\n player: Partial<PlayerData>\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n): void {}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n","import Modal from \"@/components/Modal.vue\";\nimport {\n CoercableComponent,\n jsx,\n JSXFunction,\n Replace,\n setDefault,\n StyleValue\n} from \"@/features/feature\";\nimport { Link } from \"@/features/links\";\nimport Decimal from \"@/util/bignum\";\nimport {\n Computable,\n GetComputableType,\n GetComputableTypeWithDefault,\n processComputable,\n ProcessedComputable\n} from \"@/util/computed\";\nimport { createLazyProxy } from \"@/util/proxies\";\nimport { createNanoEvents, Emitter } from \"nanoevents\";\nimport { ref, unref } from \"vue\";\nimport { globalBus } from \"./events\";\nimport { persistent, PersistentRef } from \"./persistence\";\nimport player from \"./player\";\n\nexport interface LayerEvents {\n // Generation\n preUpdate: (diff: Decimal) => void;\n // Actions (e.g. automation)\n update: (diff: Decimal) => void;\n // Effects (e.g. milestones)\n postUpdate: (diff: Decimal) => void;\n}\n\nexport const layers: Record<string, Readonly<GenericLayer> | undefined> = {};\nwindow.layers = layers;\n\ndeclare module \"@vue/runtime-dom\" {\n interface CSSProperties {\n \"--layer-color\"?: string;\n }\n}\n\nexport interface Position {\n x: number;\n y: number;\n}\n\nexport interface LayerOptions {\n id: string;\n color?: Computable<string>;\n display: Computable<CoercableComponent>;\n classes?: Computable<Record<string, boolean>>;\n style?: Computable<StyleValue>;\n name?: Computable<string>;\n minimizable?: Computable<boolean>;\n forceHideGoBack?: Computable<boolean>;\n minWidth?: Computable<number>;\n links?: Computable<Link[]>;\n}\n\nexport interface BaseLayer {\n minimized: PersistentRef<boolean>;\n emitter: Emitter<LayerEvents>;\n on: OmitThisParameter<Emitter<LayerEvents>[\"on\"]>;\n emit: <K extends keyof LayerEvents>(event: K, ...args: Parameters<LayerEvents[K]>) => void;\n}\n\nexport type Layer<T extends LayerOptions> = Replace<\n T & BaseLayer,\n {\n color: GetComputableType<T[\"color\"]>;\n display: GetComputableType<T[\"display\"]>;\n classes: GetComputableType<T[\"classes\"]>;\n style: GetComputableType<T[\"style\"]>;\n name: GetComputableTypeWithDefault<T[\"name\"], T[\"id\"]>;\n minWidth: GetComputableTypeWithDefault<T[\"minWidth\"], 600>;\n minimizable: GetComputableTypeWithDefault<T[\"minimizable\"], true>;\n forceHideGoBack: GetComputableType<T[\"forceHideGoBack\"]>;\n links: GetComputableType<T[\"links\"]>;\n }\n>;\n\nexport type GenericLayer = Replace<\n Layer<LayerOptions>,\n {\n name: ProcessedComputable<string>;\n minWidth: ProcessedComputable<number>;\n minimizable: ProcessedComputable<boolean>;\n }\n>;\n\nexport function createLayer<T extends LayerOptions>(optionsFunc: () => T): Layer<T> {\n return createLazyProxy(() => {\n const layer = optionsFunc() as T & Partial<BaseLayer>;\n const emitter = (layer.emitter = createNanoEvents<LayerEvents>());\n layer.on = emitter.on.bind(emitter);\n layer.emit = emitter.emit.bind(emitter);\n\n layer.minimized = persistent(false);\n\n processComputable(layer as T, \"color\");\n processComputable(layer as T, \"display\");\n processComputable(layer as T, \"name\");\n setDefault(layer, \"name\", layer.id);\n processComputable(layer as T, \"minWidth\");\n setDefault(layer, \"minWidth\", 600);\n processComputable(layer as T, \"minimizable\");\n setDefault(layer, \"minimizable\", true);\n processComputable(layer as T, \"links\");\n\n return layer as unknown as Layer<T>;\n });\n}\n\nexport function addLayer(\n layer: GenericLayer,\n player: { layers?: Record<string, Record<string, unknown>> }\n): void {\n console.info(\"Adding layer\", layer.id);\n if (layers[layer.id]) {\n console.error(\n \"Attempted to add layer with same ID as existing layer\",\n layer.id,\n layers[layer.id]\n );\n return;\n }\n\n setDefault(player, \"layers\", {});\n if (player.layers[layer.id] == null) {\n player.layers[layer.id] = {};\n }\n layers[layer.id] = layer;\n\n globalBus.emit(\"addLayer\", layer, player.layers[layer.id]);\n}\n\nexport function getLayer<T extends GenericLayer>(layerID: string): T {\n return layers[layerID] as T;\n}\n\nexport function removeLayer(layer: GenericLayer): void {\n console.info(\"Removing layer\", layer.id);\n globalBus.emit(\"removeLayer\", layer);\n\n layers[layer.id] = undefined;\n}\n\nexport function reloadLayer(layer: GenericLayer): void {\n removeLayer(layer);\n\n // Re-create layer\n addLayer(layer, player);\n}\n\nexport function setupLayerModal(layer: GenericLayer): {\n openModal: VoidFunction;\n modal: JSXFunction;\n} {\n const showModal = ref(false);\n return {\n openModal: () => (showModal.value = true),\n modal: jsx(() => (\n <Modal\n modelValue={showModal.value}\n onUpdate:modelValue={value => (showModal.value = value)}\n v-slots={{\n header: () => <h2>{unref(layer.name)}</h2>,\n body: unref(layer.display)\n }}\n />\n ))\n };\n}\n\nglobalBus.on(\"update\", function updateLayers(diff) {\n Object.values(layers).forEach(layer => {\n layer?.emit(\"preUpdate\", diff);\n });\n Object.values(layers).forEach(layer => {\n layer?.emit(\"update\", diff);\n });\n Object.values(layers).forEach(layer => {\n layer?.emit(\"postUpdate\", diff);\n });\n});\n","import script from \"./Row.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Row.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import Col from \"@/components/layout/Column.vue\";\nimport Row from \"@/components/layout/Row.vue\";\nimport {\n CoercableComponent,\n Component as ComponentKey,\n GatherProps,\n GenericComponent,\n JSXFunction\n} from \"@/features/feature\";\nimport {\n Component,\n computed,\n ComputedRef,\n DefineComponent,\n defineComponent,\n isRef,\n PropType,\n ref,\n Ref,\n ShallowRef,\n shallowRef,\n unref,\n watchEffect\n} from \"vue\";\nimport { DoNotCache, ProcessedComputable } from \"./computed\";\n\nexport function coerceComponent(\n component: CoercableComponent,\n defaultWrapper = \"span\"\n): DefineComponent {\n if (typeof component === \"function\") {\n return defineComponent({ render: component });\n }\n if (typeof component === \"string\") {\n if (component.length > 0) {\n component = component.trim();\n if (component.charAt(0) !== \"<\") {\n component = `<${defaultWrapper}>${component}</${defaultWrapper}>`;\n }\n\n return defineComponent({ template: component });\n }\n return defineComponent({ render: () => ({}) });\n }\n return component;\n}\n\nexport type VueFeature = {\n [ComponentKey]: GenericComponent;\n [GatherProps]: () => Record<string, unknown>;\n};\n\nexport function render(object: VueFeature | CoercableComponent): JSX.Element | DefineComponent {\n if (isCoercableComponent(object)) {\n if (typeof object === \"function\") {\n return (object as JSXFunction)();\n }\n return coerceComponent(object);\n }\n const Component = object[ComponentKey];\n return <Component {...object[GatherProps]()} />;\n}\n\nexport function renderRow(...objects: (VueFeature | CoercableComponent)[]): JSX.Element {\n return <Row>{objects.map(render)}</Row>;\n}\n\nexport function renderCol(...objects: (VueFeature | CoercableComponent)[]): JSX.Element {\n return <Col>{objects.map(render)}</Col>;\n}\n\nexport function isCoercableComponent(component: unknown): component is CoercableComponent {\n if (typeof component === \"string\") {\n return true;\n } else if (typeof component === \"object\") {\n if (component == null) {\n return false;\n }\n return \"render\" in component || \"component\" in component;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } else if (typeof component === \"function\" && (component as any)[DoNotCache] === true) {\n return true;\n }\n return false;\n}\n\nexport function setupHoldToClick(\n onClick?: Ref<VoidFunction | undefined>,\n onHold?: Ref<VoidFunction | undefined>\n): {\n start: VoidFunction;\n stop: VoidFunction;\n handleHolding: VoidFunction;\n} {\n const interval = ref<null | number>(null);\n\n function start() {\n if (!interval.value) {\n interval.value = setInterval(handleHolding, 250);\n }\n }\n function stop() {\n if (interval.value) {\n clearInterval(interval.value);\n interval.value = null;\n }\n }\n function handleHolding() {\n if (onHold && onHold.value) {\n onHold.value();\n } else if (onClick && onClick.value) {\n onClick.value();\n }\n }\n\n return { start, stop, handleHolding };\n}\n\nexport function computeComponent(\n component: Ref<ProcessedComputable<CoercableComponent>>,\n defaultWrapper = \"div\"\n): ShallowRef<Component | JSXFunction | \"\"> {\n const comp = shallowRef<Component | JSXFunction | \"\">();\n watchEffect(() => {\n comp.value = coerceComponent(unwrapRef(component), defaultWrapper);\n });\n return comp as ShallowRef<Component | JSXFunction | \"\">;\n}\nexport function computeOptionalComponent(\n component: Ref<ProcessedComputable<CoercableComponent | undefined> | undefined>,\n defaultWrapper = \"div\"\n): ShallowRef<Component | JSXFunction | \"\" | null> {\n const comp = shallowRef<Component | JSXFunction | \"\" | null>(null);\n watchEffect(() => {\n const currComponent = unwrapRef(component);\n comp.value = currComponent == null ? null : coerceComponent(currComponent, defaultWrapper);\n });\n return comp;\n}\n\nexport function wrapRef<T>(ref: Ref<ProcessedComputable<T>>): ComputedRef<T> {\n return computed(() => unwrapRef(ref));\n}\n\nexport function unwrapRef<T>(ref: Ref<ProcessedComputable<T>>): T {\n return unref<T>(unref(ref));\n}\n\nexport function setRefValue<T>(ref: Ref<T | Ref<T>>, value: T) {\n if (isRef(ref.value)) {\n ref.value.value = value;\n } else {\n ref.value = value;\n }\n}\n\ntype PropTypes =\n | typeof Boolean\n | typeof String\n | typeof Number\n | typeof Function\n | typeof Object\n | typeof Array;\n// TODO Unfortunately, the typescript engine gives up on typing completely when you use this method,\n// Even though it has the same typing as when doing it manually\nexport function processedPropType<T>(...types: PropTypes[]): PropType<ProcessedComputable<T>> {\n if (!types.includes(Object)) {\n types.push(Object);\n }\n return types as PropType<ProcessedComputable<T>>;\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderSlot as _renderSlot, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withModifiers as _withModifiers, mergeProps as _mergeProps, withDirectives as _withDirectives, Transition as _Transition, createVNode as _createVNode, Teleport as _Teleport } from \"vue\"\n\nconst _hoisted_1 = [\"onPointerdown\"]\nconst _hoisted_2 = { class: \"modal-wrapper\" }\nconst _hoisted_3 = { class: \"modal-container\" }\nconst _hoisted_4 = { class: \"modal-header\" }\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\" default header \")\nconst _hoisted_6 = { class: \"modal-body\" }\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\" default body \")\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\" default body \")\nconst _hoisted_9 = { class: \"modal-footer\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal-default-flex-grow\" }, null, -1)\n\nimport { Link } from \"@/features/links\";\nimport { computed, ref, toRefs } from \"vue\";\nimport Links from \"./links/Links.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n modelValue: { type: Boolean },\n links: null\n },\n emits: [\"update:modelValue\"],\n setup(__props: any, { expose, emit }: { emit: ({\n (e: \"update:modelValue\", value: boolean): void;\n}), expose: any, slots: any, attrs: any }) {\n\nconst _props = __props as {\n modelValue: boolean;\n links?: Link[];\n}\n\n\nconst props = toRefs(_props);\n\n\nconst isOpen = computed(() => props.modelValue || isAnimating.value);\nfunction close() {\n emit(\"update:modelValue\", false);\n}\n\nconst isAnimating = ref(false);\n\nexpose({ isOpen });\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"#modal-root\" }, [\n _createVNode(_Transition, {\n name: \"modal\",\n onBeforeEnter: _cache[0] || (_cache[0] = ($event: any) => (isAnimating.value = true)),\n onAfterLeave: _cache[1] || (_cache[1] = ($event: any) => (isAnimating.value = false))\n }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", _mergeProps({\n class: \"modal-mask\",\n onPointerdown: _withModifiers(close, [\"self\"])\n }, _ctx.$attrs), [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"header\", { shown: _unref(isOpen) }, () => [\n _hoisted_5\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (__props.links)\n ? (_openBlock(), _createBlock(Links, {\n key: 0,\n links: __props.links\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"body\", { shown: _unref(isOpen) }, () => [\n _hoisted_7\n ])\n ]),\n _: 3\n }, 8, [\"links\"]))\n : _renderSlot(_ctx.$slots, \"body\", {\n key: 1,\n shown: _unref(isOpen)\n }, () => [\n _hoisted_8\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _renderSlot(_ctx.$slots, \"footer\", { shown: _unref(isOpen) }, () => [\n _createElementVNode(\"div\", { class: \"modal-default-footer\" }, [\n _hoisted_10,\n _createElementVNode(\"button\", {\n class: \"button modal-default-button\",\n onClick: close\n }, \" Close \")\n ])\n ])\n ])\n ])\n ])\n ], 16, _hoisted_1), [\n [_vShow, __props.modelValue]\n ])\n ]),\n _: 3\n })\n ]))\n}\n}\n\n})","import script from \"./Modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Modal.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=a59fd290&lang=css\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"tooltip-container\", { shown: _ctx.isShown }]),\n onMouseenter: _cache[0] || (_cache[0] = ($event: any) => (_ctx.isHovered = true)),\n onMouseleave: _cache[1] || (_cache[1] = ($event: any) => (_ctx.isHovered = false))\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true),\n _createVNode(_Transition, { name: \"fade\" }, {\n default: _withCtx(() => [\n (_ctx.isShown)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"tooltip\", {\n top: _ctx.unref(_ctx.top),\n left: _ctx.unref(_ctx.left),\n right: _ctx.unref(_ctx.right),\n bottom: _ctx.unref(_ctx.bottom)\n }]),\n style: _normalizeStyle({\n '--xoffset': _ctx.unref(_ctx.xoffset) || '0px',\n '--yoffset': _ctx.unref(_ctx.yoffset) || '0px'\n })\n }, [\n (_ctx.comp)\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.comp), { key: 0 }))\n : _createCommentVNode(\"\", true)\n ], 6))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ], 34))\n}","\nimport { CoercableComponent } from \"@/features/feature\";\nimport { computeOptionalComponent, processedPropType, unwrapRef } from \"@/util/vue\";\nimport { computed, defineComponent, ref, toRefs, unref } from \"vue\";\n\nexport default defineComponent({\n props: {\n display: processedPropType<CoercableComponent>(Object, String, Function),\n top: processedPropType<boolean>(Boolean),\n left: processedPropType<boolean>(Boolean),\n right: processedPropType<boolean>(Boolean),\n bottom: processedPropType<boolean>(Boolean),\n xoffset: processedPropType<string>(String),\n yoffset: processedPropType<string>(String),\n force: processedPropType<boolean>(Boolean)\n },\n setup(props) {\n const { display, force } = toRefs(props);\n\n const isHovered = ref(false);\n const isShown = computed(() => (unwrapRef(force) || isHovered.value) && comp.value);\n const comp = computeOptionalComponent(display);\n\n return {\n isHovered,\n isShown,\n comp,\n unref\n };\n }\n});\n","import { render } from \"./Tooltip.vue?vue&type=template&id=2ee899a0&scoped=true&ts=true\"\nimport script from \"./Tooltip.vue?vue&type=script&lang=ts\"\nexport * from \"./Tooltip.vue?vue&type=script&lang=ts\"\n\nimport \"./Tooltip.vue?vue&type=style&index=0&id=2ee899a0&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2ee899a0\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"x1\", \"y1\", \"x2\", \"y2\"]\n\nimport { Link, LinkNode } from \"@/features/links\";\nimport { computed, toRefs, unref } from \"vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n link: null,\n startNode: null,\n endNode: null\n },\n setup(__props: any) {\n\nconst _props = __props as {\n link: Link;\n startNode: LinkNode;\n endNode: LinkNode;\n}\n\n\nconst props = toRefs(_props);\n\nconst startPosition = computed(() => {\n const position = { x: props.startNode.value.x || 0, y: props.startNode.value.y || 0 };\n if (props.link.value.offsetStart) {\n position.x += unref(props.link.value.offsetStart).x;\n position.y += unref(props.link.value.offsetStart).y;\n }\n return position;\n});\n\nconst endPosition = computed(() => {\n const position = { x: props.endNode.value.x || 0, y: props.endNode.value.y || 0 };\n if (props.link.value.offsetEnd) {\n position.x += unref(props.link.value.offsetEnd).x;\n position.y += unref(props.link.value.offsetEnd).y;\n }\n return position;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"line\", _mergeProps({\n \"stroke-width\": \"15px\",\n stroke: \"white\"\n }, __props.link, {\n x1: _unref(startPosition).x,\n y1: _unref(startPosition).y,\n x2: _unref(endPosition).x,\n y2: _unref(endPosition).y\n }), null, 16, _hoisted_1))\n}\n}\n\n})","import script from \"./Link.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Link.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, mergeProps as _mergeProps, createCommentVNode as _createCommentVNode } from \"vue\"\n\nimport {\n Link,\n LinkNode,\n RegisterLinkNodeInjectionKey,\n UnregisterLinkNodeInjectionKey\n} from \"@/features/links\";\nimport { computed, nextTick, onMounted, provide, ref, toRef } from \"vue\";\nimport LinkVue from \"./Link.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n props: {\n links: null\n },\n setup(__props: any) {\n\nconst _props = __props as { links?: Link[] }\n\n\nconst links = toRef(_props, \"links\");\n\nconst observer = new MutationObserver(updateNodes);\nconst resizeObserver = new ResizeObserver(updateBounds);\n\nconst nodes = ref<Record<string, LinkNode | undefined>>({});\nconst boundingRect = ref(new DOMRect());\n\nconst resizeListener = ref<Element | null>(null);\n\nonMounted(() => {\n // ResizeListener exists because ResizeObserver's don't work when told to observe an SVG element\n const resListener = resizeListener.value;\n if (resListener != null) {\n resizeObserver.observe(resListener);\n }\n updateNodes();\n});\n\nconst validLinks = computed(\n () =>\n links.value?.filter(link => {\n const n = nodes.value;\n return (\n n[link.startNode.id]?.x != undefined &&\n n[link.startNode.id]?.y != undefined &&\n n[link.endNode.id]?.x != undefined &&\n n[link.endNode.id]?.y != undefined\n );\n }) ?? []\n);\n\nconst observerOptions = {\n attributes: true,\n childList: true,\n subtree: true\n};\n\nprovide(RegisterLinkNodeInjectionKey, (id, element) => {\n nodes.value[id] = { element };\n observer.observe(element, observerOptions);\n nextTick(() => {\n if (resizeListener.value != null) {\n updateNode(id);\n }\n });\n});\nprovide(UnregisterLinkNodeInjectionKey, id => {\n nodes.value[id] = undefined;\n});\n\nfunction updateNodes() {\n if (resizeListener.value != null) {\n Object.keys(nodes.value).forEach(id => updateNode(id));\n }\n}\n\nfunction updateNode(id: string) {\n const node = nodes.value[id];\n if (!node) {\n return;\n }\n const linkStartRect = node.element.getBoundingClientRect();\n node.x = linkStartRect.x + linkStartRect.width / 2 - boundingRect.value.x;\n node.y = linkStartRect.y + linkStartRect.height / 2 - boundingRect.value.y;\n}\n\nfunction updateBounds() {\n if (resizeListener.value != null) {\n boundingRect.value = resizeListener.value.getBoundingClientRect();\n updateNodes();\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _renderSlot(_ctx.$slots, \"default\"),\n _createElementVNode(\"div\", {\n ref_key: \"resizeListener\",\n ref: resizeListener,\n class: \"resize-listener\"\n }, null, 512),\n (_unref(validLinks))\n ? (_openBlock(), _createElementBlock(\"svg\", _normalizeProps(_mergeProps({ key: 0 }, _ctx.$attrs)), [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(validLinks), (link, index) => {\n return (_openBlock(), _createBlock(LinkVue, {\n key: index,\n link: link,\n startNode: nodes.value[link.startNode.id]!,\n endNode: nodes.value[link.endNode.id]!\n }, null, 8, [\"link\", \"startNode\", \"endNode\"]))\n }), 128))\n ], 16))\n : _createCommentVNode(\"\", true)\n ], 64))\n}\n}\n\n})","import script from \"./Links.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Links.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Links.vue?vue&type=style&index=0&id=5bf46048&scoped=true&lang=css\"\n\nimport exportComponent from \"/home/runner/work/Profectus/Profectus/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5bf46048\"]])\n\nexport default __exports__","export default \"eyJpZCI6InRtdC14LTEwNSIsIm5hbWUiOiJEZWZhdWx0IFNhZmZmZiAtIHNvbWV0aGluZyBlbHNlIiwidGFicyI6WyJtYWluIiwiYyJdLCJ0aW1lIjoxNjI0MjQ1MjYxMDg3LCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsInRpbWVQbGF5ZWQiOiIzNDQ4LjYxNTc4MTcwOTAxIiwia2VlcEdvaW5nIjpmYWxzZSwibGFzdFRlblRpY2tzIjpbMC4wNTEsMC4wNSwwLjA0OSwwLjA1LDAuMDUsMC4wNTEsMC4wNDksMC4wNSwwLjA1LDAuMDUxXSwic2hvd1RQUyI6dHJ1ZSwibXNEaXNwbGF5IjoiYWxsIiwiaGlkZ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10sImluZm9ib3hlcyI6e319LCJzcG9vayI6eyJ1cGdyYWRlcyI6W10sImFjaGlldmVtZW50cyI6W10sIm1pbGVzdG9uZXMiOltdLCJpbmZvYm94ZXMiOnt9fSwib29tcHNNYWciOjAsImxhc3RQb2ludHMiOiIzMzAwLjM3Nzc3Mzg1OTA1NSJ9\";","var map = {\n\t\"./safff.txt\": 2736\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7634;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkprofectus\"] = self[\"webpackChunkprofectus\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(5634); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["defaultTheme","variables","stackedInfoboxes","floatingTabs","showSingleTab","mergeAdjacent","Themes","classic","paper","nordic","aqua","Component","Symbol","GatherProps","id","getUniqueID","prefix","Visibility","jsx","func","setDefault","object","key","value","undefined","RegisterLinkNodeInjectionKey","UnregisterLinkNodeInjectionKey","globalBus","intervalID","hasWon","update","now","Date","diff","trueDiff","max","offlineDiff","add","times","eq","emit","requestAnimationFrame","clearInterval","setInterval","async","startGameLoop","PersistentState","DefaultValue","persistent","defaultValue","isRef","ref","layer","saveData","features","handleObject","obj","path","foundPersistent","Object","keys","forEach","persistentState","reduce","acc","curr","savedValue","includes","type","push","foundPersistentInChild","console","warn","state","reactive","devSpeed","name","tabs","time","autosave","offlineProd","offlineTime","timePlayed","keepGoing","modID","modVersion","layers","stringifySave","player","JSON","stringify","unref","playerHandler","get","target","Proxy","set","property","receiver","isNaN","sign","mag","currentValue","error","ownKeys","Reflect","has","getOwnPropertyDescriptor","window","active","saves","showTPS","theme","unthrottled","loadSettings","item","localStorage","getItem","settings","parse","decodeURIComponent","escape","atob","assign","watch","setItem","btoa","unescape","encodeURIComponent","deep","hardResetSettings","settingFields","shallowReactive","lastTenTicks","hasNaN","NaNPath","MAX_SIGNIFICANT_DIGITS","EXP_LIMIT","LAYER_DOWN","Math","log10","FIRST_NEG_LAYER","NUMBER_EXP_MAX","NUMBER_EXP_MIN","MAX_ES_IN_A_ROW","IGNORE_COMMAS","COMMAS_ARE_DECIMAL_POINTS","powerOf10","powersOf10","i","for","Number","indexOf0InPowersOf10","power","critical_headers","E","critical_tetr_values","critical_slog_values","D","Decimal","fromValue_noAlloc","FC","fromComponents","FC_NN","fromComponents_noNormalize","decimalPlaces","places","len","numDigits","ceil","abs","rounded","round","pow","parseFloat","toFixed","f_maglog10","n","f_gamma","isFinite","trunc","NEGATIVE_INFINITY","scal1","l","log","n2","np","exp","OMEGA","f_lambertw","z","tol","w","wn","Error","toString","d_lambertw","ew","wewz","dZero","dOne","ln","sub","mul","div","lt","constructor","NaN","this","fromDecimal","fromNumber","fromString","m","floor","man","residue","fromMantissaExponent","e","exponent","POSITIVE_INFINITY","s","mantissa","fromMantissaExponent_noNormalize","fromValue","neg","other","recip","reciprocate","cmp","cmpabs","neq","notEquals","lte","gt","gte","min","minabs","maxabs","clamp","clampMin","clampMax","tolerance","cmp_tolerance","eq_tolerance","neq_tolerance","notEquals_tolerance","lt_tolerance","lte_tolerance","gt_tolerance","gte_tolerance","pLog10","absLog10","base","log2","logarithm","pow10","root","_other","factorial","gamma","lngamma","sqr","sqrt","cube","cbrt","height","payload","tetrate","iteratedexp","iteratedlog","layeradd10","layeradd","slog","lambertw","ssqrt","pentate","resourcesAvailable","priceStart","priceRatio","currentOwned","affordGeometricSeries_core","numItems","sumGeometricSeries_core","priceAdd","affordArithmeticSeries_core","sumArithmeticSeries_core","cost","currentRpS","deltaRpS","efficiencyOfPurchase_core","maxLayers","random","randomsign","randomexp","randommag","actualStart","b","b2","plus","normalize","absmag","signmag","replace","pentationparts","split","length","heightparts","result","tetrationparts","powparts","trim","toLowerCase","ptparts","parts","ecount","numberAttempt","newparts","charAt","layerstring","chrcode","charCodeAt","substr","me","toNumber","mantissaWithDecimalPlaces","magnitudeWithDecimalPlaces","repeat","toExponential","toStringWithDecimalPlaces","toPrecision","valueOf","toJSON","negate","negated","sgn","decimal","a","layera","layerb","magdiff","subtract","minus","newmag","multiply","divide","divideBy","dividedBy","dNaN","reciprocal","compare","isNan","equals","compare_tolerance","magA","magB","equals_tolerance","pow_base","t","lm","adj","l2","this_num","negln","oldheight","fracheight","old_payload","next_payload","tetrate_critical","fulltimes","fraction","layerloss","dNegOne","copy","slog_critical","critical_section","grid","lower","upper","basefrac","frac","slogthis","slogdest","lnx","sin","cos","tan","asin","acos","atan","sinh","cosh","tanh","asinh","acosh","atanh","ascensionPenalty","ascensions","egg","lessThanOrEqualTo","lessThan","greaterThanOrEqualTo","greaterThan","MAX_VALUE","MIN_VALUE","render","_ctx","_cache","$props","$setup","$data","$options","_component_Links","class","style","color","showGoBack","onClick","args","goBack","minimized","$event","classes","links","default","component","_","minimizable","defineComponent","components","Links","props","index","required","tab","Function","display","String","minWidth","Array","Boolean","setup","toRefs","computed","modInfo","allowGoBack","Infinity","updateTab","tabValue","flexGrow","flexShrink","width","flexBasis","margin","nextTick","__exports__","_withScopeId","_hoisted_1","_hoisted_2","open","__props","expose","isOpen","Modal","modelValue","header","body","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","href","_hoisted_12","_hoisted_13","changelog","_props","title","logo","author","discordName","discordLink","versionNumber","versionTitle","openChangelog","src","alt","shown","emits","options","placeholder","closeOnSelect","titleComponent","toRef","find","option","onUpdate","themes","map","label","settingFieldsComponent","isPaused","offlineProdTitle","autosaveTitle","isPausedTitle","Select","Toggle","textArea","maxHeight","field","onMounted","focus","submit","onSubmit","onBlur","ref_key","fullWidth","disabled","skipConfirm","isConfirming","click","cancel","confirming","$slots","left","activated","activatedTimeout","clearTimeout","setTimeout","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","save","dateFormat","Intl","DateTimeFormat","year","month","day","hour","minute","second","isEditing","newName","isActive","currentTime","changeName","FeedbackButton","DangerButton","onConfirmingChanged","format","Text","modal","importingFailed","saveToImport","playerData","bankContext","bank","slice","cachedSaves","getCachedSave","exportSave","saveToExport","el","document","createElement","appendChild","select","setSelectionRange","execCommand","removeChild","duplicateSave","deleteSave","removeItem","openSave","newFromPreset","preset","editSave","currSave","list","handle","itemKey","element","Save","onOpen","onExport","onEditName","onDuplicate","onDelete","footer","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","info","savesManager","useHeader","banner","openDiscord","$attrs","Tooltip","bottom","yoffset","xoffset","right","Info","SavesManager","Options","Changelog","layerKeys","gatherLayerProps","ref_for","Nav","Layer","$refs","playAgain","previous","setZero","setOne","ignore","tps","lastTenFPS","watchEffect","low","showLow","updateMouse","onMousemove","Game","TPS","GameOverScreen","NaNScreen","vue","createApp","App","mount","exponentialFormat","commaFormat","regularFormat","formatWhole","formatTime","toPlaces","formatSmall","invertOOM","decimalOne","num","precision","eString","init","portions","small","val","seconds","x","maxAccepted","camelToTitle","camel","toUpperCase","isPlainObject","prototype","call","isFunction","DoNotCache","processComputable","computable","bind","ProxyState","ProxyPath","createLazyProxy","objectFunc","calculated","calculateObj","setupInitialStore","stringifiedSave","load","loadSave","newSave","playerObj","removeLayer","addLayer","fixOldSave","getInitialLayers","onbeforeunload","hardReset","createResource","displayName","resource","trackBest","best","amount","trackTotal","total","prevAmount","trackOOMPS","pointGain","oomps","oompsMag","lastPoints","prev","oompsString","overrideAmount","_component_TreeNode","nodes","row","node","nodeIndex","gatherNodeProps","forceTooltip","leftSideNodes","rightSideNodes","_component_MarkNode","_component_LinkNode","_component_Tooltip","visibility","None","tooltipToBind","gatherTooltipProps","tooltipDisplay","force","Hidden","treeNode","can","canClick","onMousedown","start","onMouseleave","stop","onMouseup","onTouchstart","onTouchend","onTouchcancel","backgroundColor","boxShadow","glowColor","comp","mark","register","inject","unregister","parentNode","parentElement","newNode","newID","prevNode","prevID","onUnmounted","tooltip","top","onHold","MarkNode","LinkNode","shiftKey","shallowRef","currTooltip","isCoercableComponent","TreeNode","TreeNodeType","TreeType","createTreeNode","optionsFunc","createTree","tree","Tree","isResetting","resettingNode","reset","genericTree","resetPropagation","onReset","branches","branchedResetPropagation","visitedNodes","currentNodes","nextNodes","filter","branch","startNode","endNode","createConversion","conversion","currentGain","scaling","nextAt","convert","gainResource","modifyGainAmount","baseResource","createExponentialScaling","coefficient","gain","buyMax","next","roundUpCost","createCumulativeConversion","ResetType","createReset","values","thingsToReset","listeners","effectDisplay","effectComponent","showPrefix","Resource","feature","clickable","locked","currDisplay","Title","Description","description","ClickableType","createClickable","Clickable","createResetButton","resetButton","resetDescription","showNextAt","createLayerTreeNode","layerID","append","createLayer","points","main","prestige","toRaw","oldVersion","emitter","on","getLayer","reloadLayer","setupLayerModal","showModal","openModal","coerceComponent","defaultWrapper","template","setupHoldToClick","interval","handleHolding","computeComponent","unwrapRef","computeOptionalComponent","currComponent","wrapRef","processedPropType","types","isAnimating","close","to","onBeforeEnter","onAfterLeave","onPointerdown","isShown","onMouseenter","isHovered","link","startPosition","position","y","offsetStart","endPosition","offsetEnd","stroke","x1","y1","x2","y2","observer","MutationObserver","updateNodes","resizeObserver","ResizeObserver","updateBounds","boundingRect","DOMRect","resizeListener","resListener","observe","validLinks","observerOptions","attributes","childList","subtree","updateNode","linkStartRect","getBoundingClientRect","provide","Link","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","resolve","module","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","deferred","O","chunkIds","fn","priority","notFulfilled","fulfilled","j","every","splice","r","getter","__esModule","d","definition","defineProperty","enumerable","g","globalThis","prop","hasOwnProperty","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/chunk-vendors-legacy.fc4e402a.js b/js/chunk-vendors-legacy.fc4e402a.js new file mode 100644 index 0000000..cd4116b --- /dev/null +++ b/js/chunk-vendors-legacy.fc4e402a.js @@ -0,0 +1,14 @@ +(self["webpackChunkprofectus"]=self["webpackChunkprofectus"]||[]).push([[998],{3577:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{Z6:function(){return A},kT:function(){return I},NO:function(){return M},dG:function(){return N},m:function(){return o},_A:function(){return re},kC:function(){return ce},Nj:function(){return se},l7:function(){return j},Kp:function(){return u},E9:function(){return pe},aU:function(){return ue},RI:function(){return L},rs:function(){return ie},yA:function(){return f},ir:function(){return le},kJ:function(){return V},mf:function(){return z},e1:function(){return c},eS:function(){return S},S0:function(){return Q},_N:function(){return $},tR:function(){return P},Kn:function(){return K},F7:function(){return D},PO:function(){return Z},tI:function(){return J},Gg:function(){return ee},aN:function(){return w},DM:function(){return H},Pq:function(){return s},HD:function(){return G},yk:function(){return W},WB:function(){return _},WV:function(){return k},hq:function(){return C},fY:function(){return r},C_:function(){return m},vs:function(){return g},j5:function(){return d},yL:function(){return v},Od:function(){return F},zw:function(){return O},hR:function(){return ae},He:function(){return fe},W7:function(){return X}});const o={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",c=r(i),a=2;function u(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2===1));r=r.filter(((e,t)=>t%2===0));let i=0;const c=[];for(let u=0;u<r.length;u++)if(i+=r[u].length+(o[u]&&o[u].length||0),i>=t){for(let e=u-a;e<=u+a||n>i;e++){if(e<0||e>=r.length)continue;const a=e+1;c.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[e]}`);const l=r[e].length,s=o[e]&&o[e].length||0;if(e===u){const e=t-(i-(l+s)),r=Math.max(1,n>i?l-e:n-t);c.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>u){if(n>i){const e=Math.max(Math.min(n-i,l),1);c.push(" | "+"^".repeat(e))}i+=l+s}}break}return c.join("\n")}const l="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=r(l);function f(e){return!!e||""===e}function d(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=G(r)?v(r):d(r);if(o)for(const e in o)t[e]=o[e]}return t}return G(e)||K(e)?e:void 0}const p=/;(?![^(]*\))/g,h=/:(.+)/;function v(e){const t={};return e.split(p).forEach((e=>{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function m(e){let t="";if(G(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=m(e[n]);r&&(t+=r+" ")}else if(K(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function g(e){if(!e)return null;let{class:t,style:n}=e;return t&&!G(t)&&(e.class=m(t)),n&&(e.style=d(n)),e}const y="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",b="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",x="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",S=r(y),w=r(b),_=r(x);function E(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=k(e[r],t[r]);return n}function k(e,t){if(e===t)return!0;let n=U(e),r=U(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=V(e),r=V(t),n||r)return!(!n||!r)&&E(e,t);if(n=K(e),r=K(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!k(e[n],t[n]))return!1}}return String(e)===String(t)}function C(e,t){return e.findIndex((e=>k(e,t)))}const O=e=>null==e?"":V(e)||K(e)&&(e.toString===Y||!z(e.toString))?JSON.stringify(e,T,2):String(e),T=(e,t)=>t&&t.__v_isRef?T(e,t.value):$(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:H(t)?{[`Set(${t.size})`]:[...t.values()]}:!K(t)||V(t)||Z(t)?t:String(t),I={},A=[],N=()=>{},M=()=>!1,R=/^on[^a-z]/,D=e=>R.test(e),P=e=>e.startsWith("onUpdate:"),j=Object.assign,F=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},B=Object.prototype.hasOwnProperty,L=(e,t)=>B.call(e,t),V=Array.isArray,$=e=>"[object Map]"===q(e),H=e=>"[object Set]"===q(e),U=e=>e instanceof Date,z=e=>"function"===typeof e,G=e=>"string"===typeof e,W=e=>"symbol"===typeof e,K=e=>null!==e&&"object"===typeof e,J=e=>K(e)&&z(e.then)&&z(e.catch),Y=Object.prototype.toString,q=e=>Y.call(e),X=e=>q(e).slice(8,-1),Z=e=>"[object Object]"===q(e),Q=e=>G(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ee=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),te=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},ne=/-(\w)/g,re=te((e=>e.replace(ne,((e,t)=>t?t.toUpperCase():"")))),oe=/\B([A-Z])/g,ie=te((e=>e.replace(oe,"-$1").toLowerCase())),ce=te((e=>e.charAt(0).toUpperCase()+e.slice(1))),ae=te((e=>e?`on${ce(e)}`:"")),ue=(e,t)=>!Object.is(e,t),le=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},se=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let de;const pe=()=>de||(de="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},9662:function(e,t,n){var r=n(7854),o=n(614),i=n(6330),c=r.TypeError;e.exports=function(e){if(o(e))return e;throw c(i(e)+" is not a function")}},9483:function(e,t,n){var r=n(7854),o=n(4411),i=n(6330),c=r.TypeError;e.exports=function(e){if(o(e))return e;throw c(i(e)+" is not a constructor")}},6077:function(e,t,n){var r=n(7854),o=n(614),i=r.String,c=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw c("Can't set "+i(e)+" as a prototype")}},1223:function(e,t,n){var r=n(5112),o=n(30),i=n(3070),c=r("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),e.exports=function(e){a[c][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e,t,n){var r=n(7854),o=n(7976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},9670:function(e,t,n){var r=n(7854),o=n(111),i=r.String,c=r.TypeError;e.exports=function(e){if(o(e))return e;throw c(i(e)+" is not an object")}},8533:function(e,t,n){"use strict";var r=n(2092).forEach,o=n(9341),i=o("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,n){"use strict";var r=n(7854),o=n(9974),i=n(6916),c=n(7908),a=n(3411),u=n(7659),l=n(4411),s=n(6244),f=n(6135),d=n(8554),p=n(1246),h=r.Array;e.exports=function(e){var t=c(e),n=l(this),r=arguments.length,v=r>1?arguments[1]:void 0,m=void 0!==v;m&&(v=o(v,r>2?arguments[2]:void 0));var g,y,b,x,S,w,_=p(t),E=0;if(!_||this==h&&u(_))for(g=s(t),y=n?new this(g):h(g);g>E;E++)w=m?v(t[E],E):t[E],f(y,E,w);else for(x=d(t,_),S=x.next,y=n?new this:[];!(b=i(S,x)).done;E++)w=m?a(x,v,[b.value,E],!0):b.value,f(y,E,w);return y.length=E,y}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),c=function(e){return function(t,n,c){var a,u=r(t),l=i(u),s=o(c,l);if(e&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},2092:function(e,t,n){var r=n(9974),o=n(1702),i=n(8361),c=n(7908),a=n(6244),u=n(5417),l=o([].push),s=function(e){var t=1==e,n=2==e,o=3==e,s=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,v,m,g){for(var y,b,x=c(h),S=i(x),w=r(v,m),_=a(S),E=0,k=g||u,C=t?k(h,_):n||d?k(h,0):void 0;_>E;E++)if((p||E in S)&&(y=S[E],b=w(y,E,x),e))if(t)C[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:l(C,y)}else switch(e){case 4:return!1;case 7:l(C,y)}return f?-1:o||s?s:C}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:function(e,t,n){var r=n(7293),o=n(5112),i=n(7392),c=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[],n=t.constructor={};return n[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(7293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},1589:function(e,t,n){var r=n(7854),o=n(1400),i=n(6244),c=n(6135),a=r.Array,u=Math.max;e.exports=function(e,t,n){for(var r=i(e),l=o(t,r),s=o(void 0===n?r:n,r),f=a(u(s-l,0)),d=0;l<s;l++,d++)c(f,d,e[l]);return f.length=d,f}},206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},7475:function(e,t,n){var r=n(7854),o=n(3157),i=n(4411),c=n(111),a=n(5112),u=a("species"),l=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,i(t)&&(t===l||o(t.prototype))?t=void 0:c(t)&&(t=t[u],null===t&&(t=void 0))),void 0===t?l:t}},5417:function(e,t,n){var r=n(7475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),o=n(9212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(c){o(e,"throw",c)}}},7072:function(e,t,n){var r=n(5112),o=r("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(7854),o=n(1694),i=n(614),c=n(4326),a=n(5112),u=a("toStringTag"),l=r.Object,s="Arguments"==c(function(){return arguments}()),f=function(e,t){try{return e[t]}catch(n){}};e.exports=o?c:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=f(t=l(e),u))?n:s?c(t):"Object"==(r=c(t))&&i(t.callee)?"Arguments":r}},7741:function(e,t,n){var r=n(1702),o=r("".replace),i=function(e){return String(Error(e).stack)}("zxcasd"),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(i);e.exports=function(e,t){if(a&&"string"==typeof e)while(t--)e=o(e,c,"");return e}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),c=n(3070);e.exports=function(e,t,n){for(var a=o(t),u=c.f,l=i.f,s=0;s<a.length;s++){var f=a[s];r(e,f)||n&&r(n,f)||u(e,f,l(t,f))}}},4964:function(e,t,n){var r=n(5112),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:function(e,t,n){var r=n(1702),o=n(4488),i=n(1340),c=/"/g,a=r("".replace);e.exports=function(e,t,n,r){var u=i(o(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+a(i(r),c,""")+'"'),l+">"+u+"</"+t+">"}},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),c=n(8003),a=n(7497),u=function(){return this};e.exports=function(e,t,n,l){var s=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),c(e,s,!1,!0),a[s]=u,e}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(4948),o=n(3070),i=n(9114);e.exports=function(e,t,n){var c=r(t);c in e?o.f(e,c,i(0,n)):e[c]=n}},654:function(e,t,n){"use strict";var r=n(2109),o=n(6916),i=n(1913),c=n(6530),a=n(614),u=n(4994),l=n(9518),s=n(7674),f=n(8003),d=n(8880),p=n(1320),h=n(5112),v=n(7497),m=n(3383),g=c.PROPER,y=c.CONFIGURABLE,b=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,S=h("iterator"),w="keys",_="values",E="entries",k=function(){return this};e.exports=function(e,t,n,c,h,m,C){u(n,t,c);var O,T,I,A=function(e){if(e===h&&P)return P;if(!x&&e in R)return R[e];switch(e){case w:return function(){return new n(this,e)};case _:return function(){return new n(this,e)};case E:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,R=e.prototype,D=R[S]||R["@@iterator"]||h&&R[h],P=!x&&D||A(h),j="Array"==t&&R.entries||D;if(j&&(O=l(j.call(new e)),O!==Object.prototype&&O.next&&(i||l(O)===b||(s?s(O,b):a(O[S])||p(O,S,k)),f(O,N,!0,!0),i&&(v[N]=k))),g&&h==_&&D&&D.name!==_&&(!i&&y?d(R,"name",_):(M=!0,P=function(){return o(D,this)})),h)if(T={values:A(_),keys:m?P:A(w),entries:A(E)},C)for(I in T)(x||M||!(I in R))&&p(R,I,T[I]);else r({target:t,proto:!0,forced:x||M},T);return i&&!C||R[S]===P||p(R,S,P,{name:h}),v[t]=P,T}},7235:function(e,t,n){var r=n(857),o=n(2597),i=n(6061),c=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||c(t,e,{value:i.f(e)})}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,c=o(i)&&o(i.createElement);e.exports=function(e){return c?i.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(e,t,n){var r=n(317),o=r("span").classList,i=o&&o.constructor&&o.constructor.prototype;e.exports=i===Object.prototype?void 0:i},7871:function(e){e.exports="object"==typeof window},1528:function(e,t,n){var r=n(8113),o=n(7854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:function(e,t,n){var r=n(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),c=n(8113),a=i.process,u=i.Deno,l=a&&a.versions||u&&u.version,s=l&&l.v8;s&&(r=s.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,n){var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),c=n(1320),a=n(3505),u=n(9920),l=n(4705);e.exports=function(e,t){var n,s,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(s=m?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(h=o(s,f),d=h&&h.value):d=s[f],n=l(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),c(s,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1702),o=n(1320),i=n(2261),c=n(7293),a=n(5112),u=n(8880),l=a("species"),s=RegExp.prototype;e.exports=function(e,t,n,f){var d=a(e),p=!c((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!c((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var v=r(/./[d]),m=t(d,""[e],(function(e,t,n,o,c){var a=r(e),u=t.exec;return u===i||u===s.exec?p&&!c?{done:!0,value:v(t,n,o)}:{done:!0,value:a(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(s,d,m[1])}f&&u(s[d],"sham",!0)}},2104:function(e){var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},9974:function(e,t,n){var r=n(1702),o=n(9662),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?i(e,t):function(){return e.apply(t,arguments)}}},6916:function(e){var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,l=a&&(!r||r&&c(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},1702:function(e){var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r,r);e.exports=n?function(e){return e&&o(e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1246:function(e,t,n){var r=n(648),o=n(8173),i=n(7497),c=n(5112),a=c("iterator");e.exports=function(e){if(void 0!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:function(e,t,n){var r=n(7854),o=n(6916),i=n(9662),c=n(9670),a=n(6330),u=n(1246),l=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?u(e):t;if(i(n))return c(o(n,e));throw l(a(e)+" is not iterable")}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},647:function(e,t,n){var r=n(1702),o=n(7908),i=Math.floor,c=r("".charAt),a=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,v=s;return void 0!==f&&(f=o(f),v=l),a(d,v,(function(o,a){var l;switch(c(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":l=f[u(a,1,-1)];break;default:var s=+a;if(0===s)return o;if(s>h){var d=i(s/10);return 0===d?o:d<=h?void 0===r[d-1]?c(a,1):r[d-1]+c(a,1):o}l=r[s-1]}return void 0===l?"":l}))}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7854),o=n(1702),i=n(7293),c=n(4326),a=r.Object,u=o("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==c(e)?u(e,""):a(e)}:a},9587:function(e,t,n){var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var c,a;return i&&r(c=t.constructor)&&c!==n&&o(a=c.prototype)&&a!==n.prototype&&i(e,a),e}},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return c(e)}),e.exports=i.inspectSource},8340:function(e,t,n){var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},9909:function(e,t,n){var r,o,i,c=n(8536),a=n(7854),u=n(1702),l=n(111),s=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),v="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(e){return i(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(c||d.state){var x=d.state||(d.state=new g),S=u(x.get),w=u(x.has),_=u(x.set);r=function(e,t){if(w(x,e))throw new m(v);return t.facade=e,_(x,e,t),t},o=function(e){return S(x,e)||{}},i=function(e){return w(x,e)}}else{var E=p("state");h[E]=!0,r=function(e,t){if(f(e,E))throw new m(v);return t.facade=e,s(e,E,t),t},o=function(e){return f(e,E)?e[E]:{}},i=function(e){return f(e,E)}}e.exports={set:r,get:o,has:i,enforce:y,getterFor:b}},7659:function(e,t,n){var r=n(5112),o=n(7497),i=r("iterator"),c=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||c[i]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e){e.exports=function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),o=n(7293),i=n(614),c=n(648),a=n(5005),u=n(2788),l=function(){},s=[],f=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(l),v=function(e){if(!i(e))return!1;try{return f(l,s,e),!0}catch(t){return!1}},m=function(e){if(!i(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,u(e))}catch(t){return!0}};m.sham=!0,e.exports=!f||o((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?m:v},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,c=function(e,t){var n=u[a(e)];return n==s||n!=l&&(o(t)?r(t):!!t)},a=c.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=c.data={},l=c.NATIVE="N",s=c.POLYFILL="P";e.exports=c},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),o=n(4326),i=n(5112),c=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},2190:function(e,t,n){var r=n(7854),o=n(5005),i=n(614),c=n(7976),a=n(3307),u=r.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&c(t.prototype,u(e))}},408:function(e,t,n){var r=n(7854),o=n(9974),i=n(6916),c=n(9670),a=n(6330),u=n(7659),l=n(6244),s=n(7976),f=n(8554),d=n(1246),p=n(9212),h=r.TypeError,v=function(e,t){this.stopped=e,this.result=t},m=v.prototype;e.exports=function(e,t,n){var r,g,y,b,x,S,w,_=n&&n.that,E=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),O=o(t,_),T=function(e){return r&&p(r,"normal",e),new v(!0,e)},I=function(e){return E?(c(e),C?O(e[0],e[1],T):O(e[0],e[1])):C?O(e,T):O(e)};if(k)r=e;else{if(g=d(e),!g)throw h(a(e)+" is not iterable");if(u(g)){for(y=0,b=l(e);b>y;y++)if(x=I(e[y]),x&&s(m,x))return x;return new v(!1)}r=f(e,g)}S=r.next;while(!(w=i(S,r)).done){try{x=I(w.value)}catch(A){p(r,"throw",A)}if("object"==typeof x&&x&&s(m,x))return x}return new v(!1)}},9212:function(e,t,n){var r=n(6916),o=n(9670),i=n(8173);e.exports=function(e,t,n){var c,a;o(e);try{if(c=i(e,"return"),!c){if("throw"===t)throw n;return n}c=r(c,e)}catch(u){a=!0,c=u}if("throw"===t)throw n;if(a)throw c;return o(c),n}},3383:function(e,t,n){"use strict";var r,o,i,c=n(7293),a=n(614),u=n(30),l=n(9518),s=n(1320),f=n(5112),d=n(1913),p=f("iterator"),h=!1;[].keys&&(i=[].keys(),"next"in i?(o=l(l(i)),o!==Object.prototype&&(r=o)):h=!0);var v=void 0==r||c((function(){var e={};return r[p].call(e)!==e}));v?r={}:d&&(r=u(r)),a(r[p])||s(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:function(e){e.exports={}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},403:function(e){var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},4310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},5948:function(e,t,n){var r,o,i,c,a,u,l,s,f=n(7854),d=n(9974),p=n(1236).f,h=n(261).set,v=n(6833),m=n(1528),g=n(1036),y=n(5268),b=f.MutationObserver||f.WebKitMutationObserver,x=f.document,S=f.process,w=f.Promise,_=p(f,"queueMicrotask"),E=_&&_.value;E||(r=function(){var e,t;y&&(e=S.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?c():i=void 0,n}}i=void 0,e&&e.enter()},v||y||g||!b||!x?!m&&w&&w.resolve?(l=w.resolve(void 0),l.constructor=w,s=d(l.then,l),c=function(){s(r)}):y?c=function(){S.nextTick(r)}:(h=d(h,f),c=function(){h(r)}):(a=!0,u=x.createTextNode(""),new b(r).observe(u,{characterData:!0}),c=function(){u.data=a=!a})),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,c()),i=t}},3366:function(e,t,n){var r=n(7854);e.exports=r.Promise},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(614),i=n(2788),c=r.WeakMap;e.exports=o(c)&&/native code/.test(i(c))},8523:function(e,t,n){"use strict";var r=n(9662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3929:function(e,t,n){var r=n(7854),o=n(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},7023:function(e,t,n){var r=n(7854),o=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},1574:function(e,t,n){"use strict";var r=n(9781),o=n(1702),i=n(6916),c=n(7293),a=n(1956),u=n(5181),l=n(5296),s=n(7908),f=n(8361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||c((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||a(d({},t)).join("")!=o}))?function(e,t){var n=s(e),o=arguments.length,c=1,d=u.f,p=l.f;while(o>c){var v,m=f(arguments[c++]),g=d?h(a(m),d(m)):a(m),y=g.length,b=0;while(y>b)v=g[b++],r&&!i(p,m,v)||(n[v]=m[v])}return n}:d},30:function(e,t,n){var r,o=n(9670),i=n(6048),c=n(748),a=n(3501),u=n(490),l=n(317),s=n(6200),f=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),m=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=c.length;while(e--)delete x[p][c[e]];return x()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=x(),void 0===t?n:i.f(n,t)}},6048:function(e,t,n){var r=n(9781),o=n(3353),i=n(3070),c=n(9670),a=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){c(e);var n,r=a(t),o=u(t),l=o.length,s=0;while(l>s)i.f(e,n=o[s++],r[n]);return e}},3070:function(e,t,n){var r=n(7854),o=n(9781),i=n(4664),c=n(3353),a=n(9670),u=n(4948),l=r.TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=o?c?function(e,t,n){if(a(e),t=u(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=f(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=u(t),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),c=n(9114),a=n(5656),u=n(4948),l=n(2597),s=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=a(e),t=u(t),s)try{return f(e,t)}catch(n){}if(l(e,t))return c(!o(i.f,e,t),e[t])}},1156:function(e,t,n){var r=n(4326),o=n(5656),i=n(8006).f,c=n(1589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return i(e)}catch(t){return c(a)}};e.exports.f=function(e){return a&&"Window"==r(e)?u(e):i(o(e))}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(7854),o=n(2597),i=n(614),c=n(7908),a=n(6200),u=n(8544),l=a("IE_PROTO"),s=r.Object,f=s.prototype;e.exports=u?s.getPrototypeOf:function(e){var t=c(e);if(o(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof s?f:null}},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),c=n(1318).indexOf,a=n(3501),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,s=[];for(n in r)!o(a,n)&&o(r,n)&&u(s,n);while(t.length>l)o(r,n=t[l++])&&(~c(s,n)||u(s,n));return s}},1956:function(e,t,n){var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(c){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},4699:function(e,t,n){var r=n(9781),o=n(1702),i=n(1956),c=n(5656),a=n(5296).f,u=o(a),l=o([].push),s=function(e){return function(t){var n,o=c(t),a=i(o),s=a.length,f=0,d=[];while(s>f)n=a[f++],r&&!u(o,n)||l(d,e?[n,o[n]]:o[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},288:function(e,t,n){"use strict";var r=n(1694),o=n(648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(e,t,n){var r=n(7854),o=n(6916),i=n(614),c=n(111),a=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!c(r=o(n,e)))return r;if(i(n=e.valueOf)&&!c(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!c(r=o(n,e)))return r;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),c=n(5181),a=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=c.f;return n?u(t,n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},9478:function(e,t,n){var r=n(9670),o=n(111),i=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),c=n.resolve;return c(t),n.promise}},8572:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1320:function(e,t,n){var r=n(7854),o=n(614),i=n(2597),c=n(8880),a=n(3505),u=n(2788),l=n(9909),s=n(6530).CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(e.exports=function(e,t,n,u){var l,f=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,m=u&&void 0!==u.name?u.name:t;o(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==m)&&c(n,"name",m),l=d(n),l.source||(l.source=p.join("string"==typeof m?m:""))),e!==r?(f?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:c(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||u(this)}))},7651:function(e,t,n){var r=n(7854),o=n(6916),i=n(9670),c=n(614),a=n(4326),u=n(2261),l=r.TypeError;e.exports=function(e,t){var n=e.exec;if(c(n)){var r=o(n,e,t);return null!==r&&i(r),r}if("RegExp"===a(e))return o(u,e,t);throw l("RegExp#exec called on incompatible receiver")}},2261:function(e,t,n){"use strict";var r=n(6916),o=n(1702),i=n(1340),c=n(7066),a=n(2999),u=n(2309),l=n(30),s=n(9909).get,f=n(9441),d=n(7168),p=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,m=o("".charAt),g=o("".indexOf),y=o("".replace),b=o("".slice),x=function(){var e=/a/,t=/b*/g;return r(h,e,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),S=a.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],_=x||w||S||f||d;_&&(v=function(e){var t,n,o,a,u,f,d,_=this,E=s(_),k=i(e),C=E.raw;if(C)return C.lastIndex=_.lastIndex,t=r(v,C,k),_.lastIndex=C.lastIndex,t;var O=E.groups,T=S&&_.sticky,I=r(c,_),A=_.source,N=0,M=k;if(T&&(I=y(I,"y",""),-1===g(I,"g")&&(I+="g"),M=b(k,_.lastIndex),_.lastIndex>0&&(!_.multiline||_.multiline&&"\n"!==m(k,_.lastIndex-1))&&(A="(?: "+A+")",M=" "+M,N++),n=new RegExp("^(?:"+A+")",I)),w&&(n=new RegExp("^"+A+"$(?!\\s)",I)),x&&(o=_.lastIndex),a=r(h,T?n:_,M),T?a?(a.input=b(a.input,N),a[0]=b(a[0],N),a.index=_.lastIndex,_.lastIndex+=a[0].length):_.lastIndex=0:x&&a&&(_.lastIndex=_.global?a.index+a[0].length:o),w&&a&&a.length>1&&r(p,a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&O)for(a.groups=f=l(null),u=0;u<O.length;u++)d=O[u],f[d[0]]=a[d[1]];return a}),e.exports=v},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){var r=n(7293),o=n(7854),i=o.RegExp,c=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=c||r((function(){return!i("a","y").sticky})),u=c||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:c}},9441:function(e,t,n){var r=n(7293),o=n(7854),i=o.RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},7168:function(e,t,n){var r=n(7293),o=n(7854),i=o.RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},4488:function(e,t,n){var r=n(7854),o=r.TypeError;e.exports=function(e){if(void 0==e)throw o("Can't call method on "+e);return e}},3505:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),c=n(9781),a=i("species");e.exports=function(e){var t=r(e),n=o.f;c&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,o=n(2597),i=n(5112),c=i("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,c)&&r(e,c,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3505),i="__core-js_shared__",c=r[i]||o(i,{});e.exports=c},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.2",mode:r?"pure":"global",copyright:"© 2022 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var r=n(9670),o=n(9483),i=n(5112),c=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[c])?t:o(n)}},3429:function(e,t,n){var r=n(7293);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},8710:function(e,t,n){var r=n(1702),o=n(9303),i=n(1340),c=n(4488),a=r("".charAt),u=r("".charCodeAt),l=r("".slice),s=function(e){return function(t,n){var r,s,f=i(c(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d),r<55296||r>56319||d+1===p||(s=u(f,d+1))<56320||s>57343?e?a(f,d):r:e?l(f,d,d+2):s-56320+(r-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},8415:function(e,t,n){"use strict";var r=n(7854),o=n(9303),i=n(1340),c=n(4488),a=r.RangeError;e.exports=function(e){var t=i(c(this)),n="",r=o(e);if(r<0||r==1/0)throw a("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},6091:function(e,t,n){var r=n(6530).PROPER,o=n(7293),i=n(1361),c="​…᠎";e.exports=function(e){return o((function(){return!!i[e]()||c[e]()!==c||r&&i[e].name!==e}))}},3111:function(e,t,n){var r=n(1702),o=n(4488),i=n(1340),c=n(1361),a=r("".replace),u="["+c+"]",l=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(e){return function(t){var n=i(o(t));return 1&e&&(n=a(n,l,"")),2&e&&(n=a(n,s,"")),n}};e.exports={start:f(1),end:f(2),trim:f(3)}},261:function(e,t,n){var r,o,i,c,a=n(7854),u=n(2104),l=n(9974),s=n(614),f=n(2597),d=n(7293),p=n(490),h=n(206),v=n(317),m=n(6833),g=n(5268),y=a.setImmediate,b=a.clearImmediate,x=a.process,S=a.Dispatch,w=a.Function,_=a.MessageChannel,E=a.String,k=0,C={},O="onreadystatechange";try{r=a.location}catch(M){}var T=function(e){if(f(C,e)){var t=C[e];delete C[e],t()}},I=function(e){return function(){T(e)}},A=function(e){T(e.data)},N=function(e){a.postMessage(E(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){var t=h(arguments,1);return C[++k]=function(){u(s(e)?e:w(e),void 0,t)},o(k),k},b=function(e){delete C[e]},g?o=function(e){x.nextTick(I(e))}:S&&S.now?o=function(e){S.now(I(e))}:_&&!m?(i=new _,c=i.port2,i.port1.onmessage=A,o=l(c.postMessage,c)):a.addEventListener&&s(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!d(N)?(o=N,a.addEventListener("message",A,!1)):o=O in v("script")?function(e){p.appendChild(v("script"))[O]=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:b}},863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!==r||0===r?0:(r>0?n:t)(r)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},7593:function(e,t,n){var r=n(7854),o=n(6916),i=n(111),c=n(2190),a=n(8173),u=n(2140),l=n(5112),s=r.TypeError,f=l("toPrimitive");e.exports=function(e,t){if(!i(e)||c(e))return e;var n,r=a(e,f);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||c(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e,t,n){var r=n(7854),o=r.String;e.exports=function(e){try{return o(e)}catch(t){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),c=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+c(++o+i,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),c=n(9711),a=n(133),u=n(3307),l=o("wks"),s=r.Symbol,f=s&&s["for"],d=u?s:s&&s.withoutSetter||c;e.exports=function(e){if(!i(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;a&&i(s,e)?l[e]=s[e]:l[e]=u&&f?f(t):d(t)}return l[e]}},1361:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9191:function(e,t,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),c=n(7976),a=n(7674),u=n(9920),l=n(9587),s=n(6277),f=n(8340),d=n(7741),p=n(2914),h=n(1913);e.exports=function(e,t,n,v){var m=v?2:1,g=e.split("."),y=g[g.length-1],b=r.apply(null,g);if(b){var x=b.prototype;if(!h&&o(x,"cause")&&delete x.cause,!n)return b;var S=r("Error"),w=t((function(e,t){var n=s(v?t:e,void 0),r=v?new b(e):new b;return void 0!==n&&i(r,"message",n),p&&i(r,"stack",d(r.stack,2)),this&&c(x,this)&&l(r,this,w),arguments.length>m&&f(r,arguments[m]),r}));if(w.prototype=x,"Error"!==y&&(a?a(w,S):u(w,S,{name:!0})),u(w,b),!h)try{x.name!==y&&i(x,"name",y),x.constructor=w}catch(_){}return w}}},2222:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(7293),c=n(3157),a=n(111),u=n(7908),l=n(6244),s=n(6135),f=n(5417),d=n(1194),p=n(5112),h=n(7392),v=p("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",y=o.TypeError,b=h>=51||!i((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),x=d("concat"),S=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:c(e)},w=!b||!x;r({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,r,o,i,c=u(this),a=f(c,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],S(i)){if(o=l(i),d+o>m)throw y(g);for(n=0;n<o;n++,d++)n in i&&s(a,d,i[n])}else{if(d>=m)throw y(g);s(a,d++,i)}return a.length=d,a}})},7327:function(e,t,n){"use strict";var r=n(2109),o=n(2092).filter,i=n(1194),c=i("filter");r({target:"Array",proto:!0,forced:!c},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},4553:function(e,t,n){"use strict";var r=n(2109),o=n(2092).findIndex,i=n(1223),c="findIndex",a=!0;c in[]&&Array(1)[c]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(c)},9826:function(e,t,n){"use strict";var r=n(2109),o=n(2092).find,i=n(1223),c="find",a=!0;c in[]&&Array(1)[c]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(c)},1038:function(e,t,n){var r=n(2109),o=n(8457),i=n(7072),c=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:c},{from:o})},6699:function(e,t,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(1223);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},6992:function(e,t,n){"use strict";var r=n(5656),o=n(1223),i=n(7497),c=n(9909),a=n(3070).f,u=n(654),l=n(1913),s=n(9781),f="Array Iterator",d=c.set,p=c.getterFor(f);e.exports=u(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&s&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(v){}},9600:function(e,t,n){"use strict";var r=n(2109),o=n(1702),i=n(8361),c=n(5656),a=n(9341),u=o([].join),l=i!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:l||!s},{join:function(e){return u(c(this),void 0===e?",":e)}})},1249:function(e,t,n){"use strict";var r=n(2109),o=n(2092).map,i=n(1194),c=i("map");r({target:"Array",proto:!0,forced:!c},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},7042:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(3157),c=n(4411),a=n(111),u=n(1400),l=n(6244),s=n(5656),f=n(6135),d=n(5112),p=n(1194),h=n(206),v=p("slice"),m=d("species"),g=o.Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,o,d=s(this),p=l(d),v=u(e,p),b=u(void 0===t?p:t,p);if(i(d)&&(n=d.constructor,c(n)&&(n===g||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===g||void 0===n))return h(d,v,b);for(r=new(void 0===n?g:n)(y(b-v,0)),o=0;v<b;v++,o++)v in d&&f(r,o,d[v]);return r.length=o,r}})},561:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(1400),c=n(9303),a=n(6244),u=n(7908),l=n(5417),s=n(6135),f=n(1194),d=f("splice"),p=o.TypeError,h=Math.max,v=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,o,f,d,y,b=u(this),x=a(b),S=i(e,x),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=x-S):(n=w-2,r=v(h(c(t),0),x-S)),x+n-r>m)throw p(g);for(o=l(b,r),f=0;f<r;f++)d=S+f,d in b&&s(o,f,b[d]);if(o.length=r,n<r){for(f=S;f<x-r;f++)d=f+r,y=f+n,d in b?b[y]=b[d]:delete b[y];for(f=x;f>x-r+n;f--)delete b[f-1]}else if(n>r)for(f=x-r;f>S;f--)d=f+r-1,y=f+n-1,d in b?b[y]=b[d]:delete b[y];for(f=0;f<n;f++)b[f+S]=arguments[f+2];return b.length=x-r+n,o}})},1703:function(e,t,n){var r=n(2109),o=n(7854),i=n(2104),c=n(9191),a="WebAssembly",u=o[a],l=7!==Error("e",{cause:7}).cause,s=function(e,t){var n={};n[e]=c(e,t,l),r({global:!0,forced:l},n)},f=function(e,t){if(u&&u[e]){var n={};n[e]=c(a+"."+e,t,l),r({target:a,stat:!0,forced:l},n)}};s("Error",(function(e){return function(t){return i(e,this,arguments)}})),s("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),s("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),s("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),s("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),s("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),s("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},8309:function(e,t,n){var r=n(9781),o=n(6530).EXISTS,i=n(1702),c=n(3070).f,a=Function.prototype,u=i(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(l.exec),f="name";r&&!o&&c(a,f,{configurable:!0,get:function(){try{return s(l,u(this))[1]}catch(e){return""}}})},8862:function(e,t,n){var r=n(2109),o=n(7854),i=n(5005),c=n(2104),a=n(1702),u=n(7293),l=o.Array,s=i("JSON","stringify"),f=a(/./.exec),d=a("".charAt),p=a("".charCodeAt),h=a("".replace),v=a(1..toString),m=/[\uD800-\uDFFF]/g,g=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,b=function(e,t,n){var r=d(n,t-1),o=d(n,t+1);return f(g,e)&&!f(y,o)||f(y,e)&&!f(g,r)?"\\u"+v(p(e,0),16):e},x=u((function(){return'"\\udf06\\ud834"'!==s("\udf06\ud834")||'"\\udead"'!==s("\udead")}));s&&r({target:"JSON",stat:!0,forced:x},{stringify:function(e,t,n){for(var r=0,o=arguments.length,i=l(o);r<o;r++)i[r]=arguments[r];var a=c(s,null,i);return"string"==typeof a?h(a,m,b):a}})},658:function(e,t,n){var r=n(2109),o=n(403);r({target:"Math",stat:!0},{log10:o})},4914:function(e,t,n){var r=n(2109),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},2420:function(e,t,n){var r=n(2109),o=n(4310);r({target:"Math",stat:!0},{sign:o})},3689:function(e,t,n){var r=n(2109),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},9653:function(e,t,n){"use strict";var r=n(9781),o=n(7854),i=n(1702),c=n(4705),a=n(1320),u=n(2597),l=n(9587),s=n(7976),f=n(2190),d=n(7593),p=n(7293),h=n(8006).f,v=n(1236).f,m=n(3070).f,g=n(863),y=n(3111).trim,b="Number",x=o[b],S=x.prototype,w=o.TypeError,_=i("".slice),E=i("".charCodeAt),k=function(e){var t=d(e,"number");return"bigint"==typeof t?t:C(t)},C=function(e){var t,n,r,o,i,c,a,u,l=d(e,"number");if(f(l))throw w("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=y(l),t=E(l,0),43===t||45===t){if(n=E(l,2),88===n||120===n)return NaN}else if(48===t){switch(E(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(i=_(l,2),c=i.length,a=0;a<c;a++)if(u=E(i,a),u<48||u>o)return NaN;return parseInt(i,r)}return+l};if(c(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var O,T=function(e){var t=arguments.length<1?0:x(k(e)),n=this;return s(S,n)&&p((function(){g(n)}))?l(Object(t),n,T):t},I=r?h(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;I.length>A;A++)u(x,O=I[A])&&!u(T,O)&&m(T,O,v(x,O));T.prototype=S,S.constructor=T,a(o,b,T)}},5192:function(e,t,n){var r=n(2109),o=n(7023);r({target:"Number",stat:!0},{isFinite:o})},1354:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),c=n(9303),a=n(863),u=n(8415),l=n(403),s=n(7293),f=o.RangeError,d=o.String,p=o.isFinite,h=Math.abs,v=Math.floor,m=Math.pow,g=Math.round,y=i(1..toExponential),b=i(u),x=i("".slice),S="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0),w=s((function(){y(1,1/0)}))&&s((function(){y(1,-1/0)})),_=!s((function(){y(1/0,1/0)}))&&!s((function(){y(NaN,1/0)})),E=!S||!w||!_;r({target:"Number",proto:!0,forced:E},{toExponential:function(e){var t=a(this);if(void 0===e)return y(t);var n=c(e);if(!p(t))return d(t);if(n<0||n>20)throw f("Incorrect fraction digits");if(S)return y(t,n);var r="",o="",i=0,u="",s="";if(t<0&&(r="-",t=-t),0===t)i=0,o=b("0",n+1);else{var w=l(t);i=v(w);var _=0,E=m(10,i-n);_=g(t/E),2*t>=(2*_+1)*E&&(_+=1),_>=m(10,n+1)&&(_/=10,i+=1),o=d(_)}return 0!==n&&(o=x(o,0,1)+"."+x(o,1)),0===i?(u="+",s="0"):(u=i>0?"+":"-",s=d(h(i))),o+="e"+u+s,r+o}})},6977:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(1702),c=n(9303),a=n(863),u=n(8415),l=n(7293),s=o.RangeError,f=o.String,d=Math.floor,p=i(u),h=i("".slice),v=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},y=function(e,t,n){var r=-1,o=n;while(++r<6)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},b=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},x=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=f(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n},S=l((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!l((function(){v({})}));r({target:"Number",proto:!0,forced:S},{toFixed:function(e){var t,n,r,o,i=a(this),u=c(e),l=[0,0,0,0,0,0],d="",v="0";if(u<0||u>20)throw s("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return f(i);if(i<0&&(d="-",i=-i),i>1e-21)if(t=g(i*m(2,69,1))-69,n=t<0?i*m(2,-t,1):i/m(2,t,1),n*=4503599627370496,t=52-t,t>0){y(l,0,n),r=u;while(r>=7)y(l,1e7,0),r-=7;y(l,m(10,r,1),0),r=t-1;while(r>=23)b(l,1<<23),r-=23;b(l,1<<r),y(l,1,1),b(l,2),v=x(l)}else y(l,0,n),y(l,1<<-t,0),v=x(l)+p("0",u);return u>0?(o=v.length,v=d+(o<=u?"0."+p("0",u-o)+v:h(v,0,o-u)+"."+h(v,o-u))):v=d+v,v}})},9601:function(e,t,n){var r=n(2109),o=n(1574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},5003:function(e,t,n){var r=n(2109),o=n(7293),i=n(5656),c=n(1236).f,a=n(9781),u=o((function(){c(1)})),l=!a||u;r({target:"Object",stat:!0,forced:l,sham:!a},{getOwnPropertyDescriptor:function(e,t){return c(i(e),t)}})},9337:function(e,t,n){var r=n(2109),o=n(9781),i=n(3887),c=n(5656),a=n(1236),u=n(6135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=c(e),o=a.f,l=i(r),s={},f=0;while(l.length>f)n=o(r,t=l[f++]),void 0!==n&&u(s,t,n);return s}})},7941:function(e,t,n){var r=n(2109),o=n(7908),i=n(1956),c=n(7293),a=c((function(){i(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(e){return i(o(e))}})},1539:function(e,t,n){var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},2479:function(e,t,n){var r=n(2109),o=n(4699).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},7727:function(e,t,n){"use strict";var r=n(2109),o=n(1913),i=n(3366),c=n(7293),a=n(5005),u=n(614),l=n(6707),s=n(9478),f=n(1320),d=!!i&&c((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,a("Promise")),n=u(e);return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}}),!o&&u(i)){var p=a("Promise").prototype["finally"];i.prototype["finally"]!==p&&f(i.prototype,"finally",p,{unsafe:!0})}},8674:function(e,t,n){"use strict";var r,o,i,c,a=n(2109),u=n(1913),l=n(7854),s=n(5005),f=n(6916),d=n(3366),p=n(1320),h=n(2248),v=n(7674),m=n(8003),g=n(6340),y=n(9662),b=n(614),x=n(111),S=n(5787),w=n(2788),_=n(408),E=n(7072),k=n(6707),C=n(261).set,O=n(5948),T=n(9478),I=n(842),A=n(8523),N=n(2534),M=n(8572),R=n(9909),D=n(4705),P=n(5112),j=n(7871),F=n(5268),B=n(7392),L=P("species"),V="Promise",$=R.getterFor(V),H=R.set,U=R.getterFor(V),z=d&&d.prototype,G=d,W=z,K=l.TypeError,J=l.document,Y=l.process,q=A.f,X=q,Z=!!(J&&J.createEvent&&l.dispatchEvent),Q=b(l.PromiseRejectionEvent),ee="unhandledrejection",te="rejectionhandled",ne=0,re=1,oe=2,ie=1,ce=2,ae=!1,ue=D(V,(function(){var e=w(G),t=e!==String(G);if(!t&&66===B)return!0;if(u&&!W["finally"])return!0;if(B>=51&&/native code/.test(e))return!1;var n=new G((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};return o[L]=r,ae=n.then((function(){}))instanceof r,!ae||!t&&j&&!Q})),le=ue||!E((function(e){G.all(e)["catch"]((function(){}))})),se=function(e){var t;return!(!x(e)||!b(t=e.then))&&t},fe=function(e,t){var n,r,o,i=t.value,c=t.state==re,a=c?e.ok:e.fail,u=e.resolve,l=e.reject,s=e.domain;try{a?(c||(t.rejection===ce&&me(t),t.rejection=ie),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===e.promise?l(K("Promise-chain cycle")):(r=se(n))?f(r,n,u,l):u(n)):l(i)}catch(d){s&&!o&&s.exit(),l(d)}},de=function(e,t){e.notified||(e.notified=!0,O((function(){var n,r=e.reactions;while(n=r.get())fe(n,e);e.notified=!1,t&&!e.rejection&&he(e)})))},pe=function(e,t,n){var r,o;Z?(r=J.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(o=l["on"+e])?o(r):e===ee&&I("Unhandled promise rejection",n)},he=function(e){f(C,l,(function(){var t,n=e.facade,r=e.value,o=ve(e);if(o&&(t=N((function(){F?Y.emit("unhandledRejection",r,n):pe(ee,n,r)})),e.rejection=F||ve(e)?ce:ie,t.error))throw t.value}))},ve=function(e){return e.rejection!==ie&&!e.parent},me=function(e){f(C,l,(function(){var t=e.facade;F?Y.emit("rejectionHandled",t):pe(te,t,e.value)}))},ge=function(e,t,n){return function(r){e(t,r,n)}},ye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=oe,de(e,!0))},be=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw K("Promise can't be resolved itself");var r=se(t);r?O((function(){var n={done:!1};try{f(r,t,ge(be,n,e),ge(ye,n,e))}catch(o){ye(n,o,e)}})):(e.value=t,e.state=re,de(e,!1))}catch(o){ye({done:!1},o,e)}}};if(ue&&(G=function(e){S(this,W),y(e),f(r,this);var t=$(this);try{e(ge(be,t),ge(ye,t))}catch(n){ye(t,n)}},W=G.prototype,r=function(e){H(this,{type:V,done:!1,notified:!1,parent:!1,reactions:new M,rejection:!1,state:ne,value:void 0})},r.prototype=h(W,{then:function(e,t){var n=U(this),r=q(k(this,G));return n.parent=!0,r.ok=!b(e)||e,r.fail=b(t)&&t,r.domain=F?Y.domain:void 0,n.state==ne?n.reactions.add(r):O((function(){fe(r,n)})),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=$(e);this.promise=e,this.resolve=ge(be,t),this.reject=ge(ye,t)},A.f=q=function(e){return e===G||e===i?new o(e):X(e)},!u&&b(d)&&z!==Object.prototype)){c=z.then,ae||(p(z,"then",(function(e,t){var n=this;return new G((function(e,t){f(c,n,e,t)})).then(e,t)}),{unsafe:!0}),p(z,"catch",W["catch"],{unsafe:!0}));try{delete z.constructor}catch(xe){}v&&v(z,W)}a({global:!0,wrap:!0,forced:ue},{Promise:G}),m(G,V,!1,!0),g(V),i=s(V),a({target:V,stat:!0,forced:ue},{reject:function(e){var t=q(this);return f(t.reject,void 0,e),t.promise}}),a({target:V,stat:!0,forced:u||ue},{resolve:function(e){return T(u&&this===i?G:this,e)}}),a({target:V,stat:!0,forced:le},{all:function(e){var t=this,n=q(t),r=n.resolve,o=n.reject,i=N((function(){var n=y(t.resolve),i=[],c=0,a=1;_(e,(function(e){var u=c++,l=!1;a++,f(n,t,e).then((function(e){l||(l=!0,i[u]=e,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=q(t),r=n.reject,o=N((function(){var o=y(t.resolve);_(e,(function(e){f(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},1037:function(e,t,n){var r=n(2109);r({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},7556:function(e,t,n){var r=n(2109),o=n(3887);r({target:"Reflect",stat:!0},{ownKeys:o})},1299:function(e,t,n){var r=n(2109),o=n(7854),i=n(8003);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},4916:function(e,t,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7601:function(e,t,n){"use strict";n(4916);var r=n(2109),o=n(7854),i=n(6916),c=n(1702),a=n(614),u=n(111),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),s=o.Error,f=c(/./.test);r({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=this.exec;if(!a(t))return f(this,e);var n=i(t,this,e);if(null!==n&&!u(n))throw new s("RegExp exec method returned something other than an Object or null");return!!n}})},9714:function(e,t,n){"use strict";var r=n(1702),o=n(6530).PROPER,i=n(1320),c=n(9670),a=n(7976),u=n(1340),l=n(7293),s=n(7066),f="toString",d=RegExp.prototype,p=d[f],h=r(s),v=l((function(){return"/a/b"!=p.call({source:"a",flags:"b"})})),m=o&&p.name!=f;(v||m)&&i(RegExp.prototype,f,(function(){var e=c(this),t=u(e.source),n=e.flags,r=u(void 0===n&&a(d,e)&&!("flags"in d)?h(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2023:function(e,t,n){"use strict";var r=n(2109),o=n(1702),i=n(3929),c=n(4488),a=n(1340),u=n(4964),l=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(a(c(this)),a(i(e)),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),c=n(654),a="String Iterator",u=i.set,l=i.getterFor(a);c(String,"String",(function(e){u(this,{type:a,string:o(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},9254:function(e,t,n){"use strict";var r=n(2109),o=n(4230),i=n(3429);r({target:"String",proto:!0,forced:i("link")},{link:function(e){return o(this,"a","href",e)}})},2481:function(e,t,n){var r=n(2109),o=n(8415);r({target:"String",proto:!0},{repeat:o})},5306:function(e,t,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),c=n(7007),a=n(7293),u=n(9670),l=n(614),s=n(9303),f=n(7466),d=n(1340),p=n(4488),h=n(1530),v=n(8173),m=n(647),g=n(7651),y=n(5112),b=y("replace"),x=Math.max,S=Math.min,w=i([].concat),_=i([].push),E=i("".indexOf),k=i("".slice),C=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),T=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),I=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));c("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var r=p(this),i=void 0==e?void 0:v(e,b);return i?o(i,e,r,n):o(t,d(r),e,n)},function(e,o){var c=u(this),a=d(e);if("string"==typeof o&&-1===E(o,i)&&-1===E(o,"$<")){var p=n(t,c,a,o);if(p.done)return p.value}var v=l(o);v||(o=d(o));var y=c.global;if(y){var b=c.unicode;c.lastIndex=0}var O=[];while(1){var T=g(c,a);if(null===T)break;if(_(O,T),!y)break;var I=d(T[0]);""===I&&(c.lastIndex=h(a,f(c.lastIndex),b))}for(var A="",N=0,M=0;M<O.length;M++){T=O[M];for(var R=d(T[0]),D=x(S(s(T.index),a.length),0),P=[],j=1;j<T.length;j++)_(P,C(T[j]));var F=T.groups;if(v){var B=w([R],P,D,a);void 0!==F&&_(B,F);var L=d(r(o,void 0,B))}else L=m(R,a,D,P,F,o);D>=N&&(A+=k(a,N,D)+L,N=D+R.length)}return A+k(a,N)}]}),!I||!O||T)},7268:function(e,t,n){"use strict";var r=n(2109),o=n(4230),i=n(3429);r({target:"String",proto:!0,forced:i("small")},{small:function(){return o(this,"small","","")}})},3123:function(e,t,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),c=n(7007),a=n(7850),u=n(9670),l=n(4488),s=n(6707),f=n(1530),d=n(7466),p=n(1340),h=n(8173),v=n(1589),m=n(7651),g=n(2261),y=n(2999),b=n(7293),x=y.UNSUPPORTED_Y,S=4294967295,w=Math.min,_=[].push,E=i(/./.exec),k=i(_),C=i("".slice),O=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));c("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=p(l(this)),c=void 0===n?S:n>>>0;if(0===c)return[];if(void 0===e)return[i];if(!a(e))return o(t,i,e,c);var u,s,f,d=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,h+"g");while(u=o(g,y,i)){if(s=y.lastIndex,s>m&&(k(d,C(i,m,u.index)),u.length>1&&u.index<i.length&&r(_,d,v(u,1)),f=u[0].length,m=s,d.length>=c))break;y.lastIndex===u.index&&y.lastIndex++}return m===i.length?!f&&E(y,"")||k(d,""):k(d,C(i,m)),d.length>c?v(d,0,c):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=l(this),c=void 0==t?void 0:h(t,e);return c?o(c,t,r,n):o(i,p(r),t,n)},function(e,r){var o=u(this),c=p(e),a=n(i,o,c,r,i!==t);if(a.done)return a.value;var l=s(o,RegExp),h=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(x?"g":"y"),g=new l(x?"^(?:"+o.source+")":o,v),y=void 0===r?S:r>>>0;if(0===y)return[];if(0===c.length)return null===m(g,c)?[c]:[];var b=0,_=0,E=[];while(_<c.length){g.lastIndex=x?0:_;var O,T=m(g,x?C(c,_):c);if(null===T||(O=w(d(g.lastIndex+(x?_:0)),c.length))===b)_=f(c,_,h);else{if(k(E,C(c,b,_)),E.length===y)return E;for(var I=1;I<=T.length-1;I++)if(k(E,T[I]),E.length===y)return E;_=b=O}}return k(E,C(c,b)),E}]}),!O,x)},86:function(e,t,n){"use strict";var r=n(2109),o=n(4230),i=n(3429);r({target:"String",proto:!0,forced:i("sub")},{sub:function(){return o(this,"sub","","")}})},3210:function(e,t,n){"use strict";var r=n(2109),o=n(3111).trim,i=n(6091);r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},1817:function(e,t,n){"use strict";var r=n(2109),o=n(9781),i=n(7854),c=n(1702),a=n(2597),u=n(614),l=n(7976),s=n(1340),f=n(3070).f,d=n(9920),p=i.Symbol,h=p&&p.prototype;if(o&&u(p)&&(!("description"in h)||void 0!==p().description)){var v={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),t=l(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};d(m,p),m.prototype=h,h.constructor=m;var g="Symbol(test)"==String(p("test")),y=c(h.toString),b=c(h.valueOf),x=/^Symbol\((.*)\)[^)]+$/,S=c("".replace),w=c("".slice);f(h,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(a(v,e))return"";var n=g?w(t,7,-1):S(t,x,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:m})}},2165:function(e,t,n){var r=n(7235);r("iterator")},2526:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(5005),c=n(2104),a=n(6916),u=n(1702),l=n(1913),s=n(9781),f=n(133),d=n(7293),p=n(2597),h=n(3157),v=n(614),m=n(111),g=n(7976),y=n(2190),b=n(9670),x=n(7908),S=n(5656),w=n(4948),_=n(1340),E=n(9114),k=n(30),C=n(1956),O=n(8006),T=n(1156),I=n(5181),A=n(1236),N=n(3070),M=n(6048),R=n(5296),D=n(206),P=n(1320),j=n(2309),F=n(6200),B=n(3501),L=n(9711),V=n(5112),$=n(6061),H=n(7235),U=n(8003),z=n(9909),G=n(2092).forEach,W=F("hidden"),K="Symbol",J="prototype",Y=V("toPrimitive"),q=z.set,X=z.getterFor(K),Z=Object[J],Q=o.Symbol,ee=Q&&Q[J],te=o.TypeError,ne=o.QObject,re=i("JSON","stringify"),oe=A.f,ie=N.f,ce=T.f,ae=R.f,ue=u([].push),le=j("symbols"),se=j("op-symbols"),fe=j("string-to-symbol-registry"),de=j("symbol-to-string-registry"),pe=j("wks"),he=!ne||!ne[J]||!ne[J].findChild,ve=s&&d((function(){return 7!=k(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=oe(Z,t);r&&delete Z[t],ie(e,t,n),r&&e!==Z&&ie(Z,t,r)}:ie,me=function(e,t){var n=le[e]=k(ee);return q(n,{type:K,tag:e,description:t}),s||(n.description=t),n},ge=function(e,t,n){e===Z&&ge(se,t,n),b(e);var r=w(t);return b(n),p(le,r)?(n.enumerable?(p(e,W)&&e[W][r]&&(e[W][r]=!1),n=k(n,{enumerable:E(0,!1)})):(p(e,W)||ie(e,W,E(1,{})),e[W][r]=!0),ve(e,r,n)):ie(e,r,n)},ye=function(e,t){b(e);var n=S(t),r=C(n).concat(_e(n));return G(r,(function(t){s&&!a(xe,n,t)||ge(e,t,n[t])})),e},be=function(e,t){return void 0===t?k(e):ye(k(e),t)},xe=function(e){var t=w(e),n=a(ae,this,t);return!(this===Z&&p(le,t)&&!p(se,t))&&(!(n||!p(this,t)||!p(le,t)||p(this,W)&&this[W][t])||n)},Se=function(e,t){var n=S(e),r=w(t);if(n!==Z||!p(le,r)||p(se,r)){var o=oe(n,r);return!o||!p(le,r)||p(n,W)&&n[W][r]||(o.enumerable=!0),o}},we=function(e){var t=ce(S(e)),n=[];return G(t,(function(e){p(le,e)||p(B,e)||ue(n,e)})),n},_e=function(e){var t=e===Z,n=ce(t?se:S(e)),r=[];return G(n,(function(e){!p(le,e)||t&&!p(Z,e)||ue(r,le[e])})),r};if(f||(Q=function(){if(g(ee,this))throw te("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=L(e),n=function(e){this===Z&&a(n,se,e),p(this,W)&&p(this[W],t)&&(this[W][t]=!1),ve(this,t,E(1,e))};return s&&he&&ve(Z,t,{configurable:!0,set:n}),me(t,e)},ee=Q[J],P(ee,"toString",(function(){return X(this).tag})),P(Q,"withoutSetter",(function(e){return me(L(e),e)})),R.f=xe,N.f=ge,M.f=ye,A.f=Se,O.f=T.f=we,I.f=_e,$.f=function(e){return me(V(e),e)},s&&(ie(ee,"description",{configurable:!0,get:function(){return X(this).description}}),l||P(Z,"propertyIsEnumerable",xe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:Q}),G(C(pe),(function(e){H(e)})),r({target:K,stat:!0,forced:!f},{for:function(e){var t=_(e);if(p(fe,t))return fe[t];var n=Q(t);return fe[t]=n,de[n]=t,n},keyFor:function(e){if(!y(e))throw te(e+" is not a symbol");if(p(de,e))return de[e]},useSetter:function(){he=!0},useSimple:function(){he=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!s},{create:be,defineProperty:ge,defineProperties:ye,getOwnPropertyDescriptor:Se}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:we,getOwnPropertySymbols:_e}),r({target:"Object",stat:!0,forced:d((function(){I.f(1)}))},{getOwnPropertySymbols:function(e){return I.f(x(e))}}),re){var Ee=!f||d((function(){var e=Q();return"[null]"!=re([e])||"{}"!=re({a:e})||"{}"!=re(Object(e))}));r({target:"JSON",stat:!0,forced:Ee},{stringify:function(e,t,n){var r=D(arguments),o=t;if((m(t)||void 0!==e)&&!y(e))return h(t)||(t=function(e,t){if(v(o)&&(t=a(o,this,e,t)),!y(t))return t}),r[1]=t,c(re,null,r)}})}if(!ee[Y]){var ke=ee.valueOf;P(ee,Y,(function(e){return a(ke,this)}))}U(Q,K),B[W]=!0},4747:function(e,t,n){var r=n(7854),o=n(8324),i=n(8509),c=n(8533),a=n(8880),u=function(e){if(e&&e.forEach!==c)try{a(e,"forEach",c)}catch(t){e.forEach=c}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},3948:function(e,t,n){var r=n(7854),o=n(8324),i=n(8509),c=n(6992),a=n(8880),u=n(5112),l=u("iterator"),s=u("toStringTag"),f=c.values,d=function(e,t){if(e){if(e[l]!==f)try{a(e,l,f)}catch(r){e[l]=f}if(e[s]||a(e,s,t),o[t])for(var n in c)if(e[n]!==c[n])try{a(e,n,c[n])}catch(r){e[n]=c[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),c=new I(r||[]);return i._invoke=k(e,n,c),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function m(){}function g(){}function y(){}var b={};u(b,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(A([])));S&&S!==n&&r.call(S,i)&&(b=S);var w=y.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,c,a){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,c,a)}),(function(e){n("throw",e,c,a)})):t.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,a)}))}a(u.arg)}var o;function i(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function k(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}n.method=o,n.arg=i;while(1){var c=n.delegate;if(c){var a=C(c,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=s(e,t,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,c=function n(){while(++o<e.length)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return c.next=c}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,a,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(E.prototype),u(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var c=new E(l(t,n,r,o),i);return e.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},_(w),u(w,a,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=r.call(c,"catchLoc"),l=r.call(c,"finallyLoc");if(u&&l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=e,c.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},1474:function(e,t,n){"use strict"; +/**! + * Sortable 1.14.0 + * @author RubaXa <trash@rubaxa.org> + * @author owenm <owen23355@gmail.com> + * @license MIT + */ +function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function l(e,t){if(null==e)return{};var n,r,o=u(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e){return f(e)||d(e)||p(e)||v()}function f(e){if(Array.isArray(e))return h(e)}function d(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,{MultiDrag:function(){return Ut},Sortable:function(){return nt},Swap:function(){return Nt}});var m="1.14.0";function g(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var y=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),b=g(/Edge/i),x=g(/firefox/i),S=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),w=g(/iP(ad|od|hone)/i),_=g(/chrome/i)&&g(/android/i),E={capture:!1,passive:!1};function k(e,t,n){e.addEventListener(t,n,!y&&E)}function C(e,t,n){e.removeEventListener(t,n,!y&&E)}function O(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function T(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function I(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&O(e,t):O(e,t))||r&&e===n)return e;if(e===n)break}while(e=T(e))}return null}var A,N=/\s+/g;function M(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(N," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(N," ")}}function R(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function D(e,t){var n="";if("string"===typeof e)n=e;else do{var r=R(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function j(){var e=document.scrollingElement;return e||document.documentElement}function F(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,c,a,u,l,s,f;if(e!==window&&e.parentNode&&e!==j()?(i=e.getBoundingClientRect(),c=i.top,a=i.left,u=i.bottom,l=i.right,s=i.height,f=i.width):(c=0,a=0,u=window.innerHeight,l=window.innerWidth,s=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!y))do{if(o&&o.getBoundingClientRect&&("none"!==R(o,"transform")||n&&"static"!==R(o,"position"))){var d=o.getBoundingClientRect();c-=d.top+parseInt(R(o,"border-top-width")),a-=d.left+parseInt(R(o,"border-left-width")),u=c+i.height,l=a+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=D(o||e),h=p&&p.a,v=p&&p.d;p&&(c/=v,a/=h,f/=h,s/=v,u=c+s,l=a+f)}return{top:c,left:a,bottom:u,right:l,width:f,height:s}}}function B(e,t,n){var r=z(e,!0),o=F(e)[t];while(r){var i=F(r)[n],c=void 0;if(c="top"===n||"left"===n?o>=i:o<=i,!c)return r;if(r===j())break;r=z(r,!1)}return!1}function L(e,t,n,r){var o=0,i=0,c=e.children;while(i<c.length){if("none"!==c[i].style.display&&c[i]!==nt.ghost&&(r||c[i]!==nt.dragged)&&I(c[i],n.draggable,e,!1)){if(o===t)return c[i];o++}i++}return null}function V(e,t){var n=e.lastElementChild;while(n&&(n===nt.ghost||"none"===R(n,"display")||t&&!O(n,t)))n=n.previousElementSibling;return n||null}function $(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===nt.clone||t&&!O(e,t)||n++;return n}function H(e){var t=0,n=0,r=j();if(e)do{var o=D(e),i=o.a,c=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*c}while(e!==r&&(e=e.parentNode));return[t,n]}function U(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function z(e,t){if(!e||!e.getBoundingClientRect)return j();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=R(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return j();if(r||t)return n;r=!0}}}while(n=n.parentNode);return j()}function G(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function W(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function K(e,t){return function(){if(!A){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),A=setTimeout((function(){A=void 0}),t)}}}function J(){clearTimeout(A),A=void 0}function Y(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function X(e,t){R(e,"position","absolute"),R(e,"top",t.top),R(e,"left",t.left),R(e,"width",t.width),R(e,"height",t.height)}function Z(e){R(e,"position",""),R(e,"top",""),R(e,"left",""),R(e,"width",""),R(e,"height","")}var Q="Sortable"+(new Date).getTime();function ee(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==R(e,"display")&&e!==nt.ghost){t.push({target:e,rect:F(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=D(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(U(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,c=n.fromRect,a=F(n),u=n.prevFromRect,l=n.prevToRect,s=e.rect,f=D(n,!0);f&&(a.top-=f.f,a.left-=f.e),n.toRect=a,n.thisAnimationDuration&&W(u,a)&&!W(c,a)&&(s.top-a.top)/(s.left-a.left)===(c.top-a.top)/(c.left-a.left)&&(t=ne(s,u,l,r.options)),W(a,c)||(n.prevFromRect=c,n.prevToRect=a,t||(t=r.options.animation),r.animate(n,s,a,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){R(e,"transition",""),R(e,"transform","");var o=D(this.el),i=o&&o.a,c=o&&o.d,a=(t.left-n.left)/(i||1),u=(t.top-n.top)/(c||1);e.animatingX=!!a,e.animatingY=!!u,R(e,"transform","translate3d("+a+"px,"+u+"px,0)"),this.forRepaintDummy=te(e),R(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),R(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){R(e,"transition",""),R(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function te(e){return e.offsetWidth}function ne(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var re=[],oe={initializeByDefault:!0},ie={mount:function(e){for(var t in oe)oe.hasOwnProperty(t)&&!(t in e)&&(e[t]=oe[t]);re.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),re.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";re.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in re.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,a(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return re.forEach((function(r){"function"===typeof r.eventProperties&&a(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return re.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function ce(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,c=e.cloneEl,a=e.toEl,u=e.fromEl,l=e.oldIndex,s=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[Q],t){var m,g=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||y||b?(m=document.createEvent("Event"),m.initEvent(r,!0,!0)):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=u||n,m.item=i||n,m.clone=c,m.oldIndex=l,m.newIndex=s,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=h?h.lastPutMode:void 0;var S=o(o({},v),ie.getEventProperties(r,t));for(var w in S)m[w]=S[w];n&&n.dispatchEvent(m),g[x]&&g[x].call(t,m)}}var ae=["evt"],ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=l(n,ae);ie.pluginEvent.bind(nt)(e,t,o({dragEl:se,parentEl:fe,ghostEl:de,rootEl:pe,nextEl:he,lastDownEl:ve,cloneEl:me,cloneHidden:ge,dragStarted:Ae,putSortable:_e,activeSortable:nt.active,originalEvent:r,oldIndex:ye,oldDraggableIndex:xe,newIndex:be,newDraggableIndex:Se,hideGhostForTarget:Ze,unhideGhostForTarget:Qe,cloneNowHidden:function(){ge=!0},cloneNowShown:function(){ge=!1},dispatchSortableEvent:function(e){le({sortable:t,name:e,originalEvent:r})}},i))};function le(e){ce(o({putSortable:_e,cloneEl:me,targetEl:se,rootEl:pe,oldIndex:ye,oldDraggableIndex:xe,newIndex:be,newDraggableIndex:Se},e))}var se,fe,de,pe,he,ve,me,ge,ye,be,xe,Se,we,_e,Ee,ke,Ce,Oe,Te,Ie,Ae,Ne,Me,Re,De,Pe=!1,je=!1,Fe=[],Be=!1,Le=!1,Ve=[],$e=!1,He=[],Ue="undefined"!==typeof document,ze=w,Ge=b||y?"cssFloat":"float",We=Ue&&!_&&!w&&"draggable"in document.createElement("div"),Ke=function(){if(Ue){if(y)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Je=function(e,t){var n=R(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=L(e,0,t),i=L(e,1,t),c=o&&R(o),a=i&&R(i),u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(o).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+F(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&c["float"]&&"none"!==c["float"]){var s="left"===c["float"]?"left":"right";return!i||"both"!==a.clear&&a.clear!==s?"horizontal":"vertical"}return o&&("block"===c.display||"flex"===c.display||"table"===c.display||"grid"===c.display||u>=r&&"none"===n[Ge]||i&&"none"===n[Ge]&&u+l>r)?"vertical":"horizontal"},Ye=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,c=n?t.left:t.top,a=n?t.right:t.bottom,u=n?t.width:t.height;return r===c||o===a||r+i/2===c+u/2},qe=function(e,t){var n;return Fe.some((function(r){var o=r[Q].options.emptyInsertThreshold;if(o&&!V(r)){var i=F(r),c=e>=i.left-o&&e<=i.right+o,a=t>=i.top-o&&t<=i.bottom+o;return c&&a?n=r:void 0}})),n},Xe=function(e){function t(e,n){return function(r,o,i,c){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,o,i,c),n)(r,o,i,c);var u=(n?r:o).options.group.name;return!0===e||"string"===typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ze=function(){!Ke&&de&&R(de,"display","none")},Qe=function(){!Ke&&de&&R(de,"display","")};Ue&&document.addEventListener("click",(function(e){if(je)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),je=!1,!1}),!0);var et=function(e){if(se){e=e.touches?e.touches[0]:e;var t=qe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Q]._onDragOver(n)}}},tt=function(e){se&&se.parentNode[Q]._isOutsideThisEl(e.target)};function nt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[Q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Je(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==nt.supportPointer&&"PointerEvent"in window&&!S,emptyInsertThreshold:5};for(var r in ie.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Xe(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&We,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?k(e,"pointerdown",this._onTapStart):(k(e,"mousedown",this._onTapStart),k(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(k(e,"dragover",this),k(e,"dragenter",this)),Fe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,ee())}function rt(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ot(e,t,n,r,o,i,c,a){var u,l,s=e[Q],f=s.options.onMove;return!window.CustomEvent||y||b?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=i||F(t),u.willInsertAfter=a,u.originalEvent=c,e.dispatchEvent(u),f&&(l=f.call(s,u,c)),l}function it(e){e.draggable=!1}function ct(){$e=!1}function at(e,t,n){var r=F(L(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function ut(e,t,n){var r=F(V(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function lt(e,t,n,r,o,i,c,a){var u=r?e.clientY:e.clientX,l=r?n.height:n.width,s=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!c)if(a&&Re<l*o){if(!Be&&(1===Me?u>s+l*i/2:u<f-l*i/2)&&(Be=!0),Be)d=!0;else if(1===Me?u<s+Re:u>f-Re)return-Me}else if(u>s+l*(1-o)/2&&u<f-l*(1-o)/2)return st(t);return d=d||c,d&&(u<s+l*i/2||u>f-l*i/2)?u>s+l/2?1:-1:0}function st(e){return $(se)<$(e)?1:-1}function ft(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function dt(e){He.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&He.push(r)}}function pt(e){return setTimeout(e,0)}function ht(e){return clearTimeout(e)}nt.prototype={constructor:nt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ne=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,se):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,c=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(c||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,l=r.filter;if(dt(n),!se&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!S||!a||"SELECT"!==a.tagName.toUpperCase())&&(a=I(a,r.draggable,n,!1),(!a||!a.animated)&&ve!==a)){if(ye=$(a),xe=$(a,r.draggable),"function"===typeof l){if(l.call(this,e,a,this))return le({sortable:t,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),ue("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=I(u,r.trim(),n,!1),r)return le({sortable:t,rootEl:r,name:"filter",targetEl:a,fromEl:n,toEl:n}),ue("filter",t,{evt:e}),!0})),l))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!I(u,r.handle,n,!1)||this._prepareDragStart(e,c,a)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,c=o.options,a=i.ownerDocument;if(n&&!se&&n.parentNode===i){var u=F(n);if(pe=i,se=n,fe=se.parentNode,he=se.nextSibling,ve=n,we=c.group,nt.dragged=se,Ee={target:se,clientX:(t||e).clientX,clientY:(t||e).clientY},Te=Ee.clientX-u.left,Ie=Ee.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,se.style["will-change"]="all",r=function(){ue("delayEnded",o,{evt:e}),nt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!x&&o.nativeDraggable&&(se.draggable=!0),o._triggerDragStart(e,t),le({sortable:o,name:"choose",originalEvent:e}),M(se,c.chosenClass,!0))},c.ignore.split(",").forEach((function(e){P(se,e.trim(),it)})),k(a,"dragover",et),k(a,"mousemove",et),k(a,"touchmove",et),k(a,"mouseup",o._onDrop),k(a,"touchend",o._onDrop),k(a,"touchcancel",o._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,se.draggable=!0),ue("delayStart",this,{evt:e}),!c.delay||c.delayOnTouchOnly&&!t||this.nativeDraggable&&(b||y))r();else{if(nt.eventCanceled)return void this._onDrop();k(a,"mouseup",o._disableDelayedDrag),k(a,"touchend",o._disableDelayedDrag),k(a,"touchcancel",o._disableDelayedDrag),k(a,"mousemove",o._delayedDragTouchMoveHandler),k(a,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&k(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,c.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){se&&it(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?k(document,"pointermove",this._onTouchMove):k(document,t?"touchmove":"mousemove",this._onTouchMove):(k(se,"dragend",this),k(pe,"dragstart",this._onDragStart));try{document.selection?pt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Pe=!1,pe&&se){ue("dragStarted",this,{evt:t}),this.nativeDraggable&&k(document,"dragover",tt);var n=this.options;!e&&M(se,n.dragClass,!1),M(se,n.ghostClass,!0),nt.active=this,e&&this._appendGhost(),le({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ke){this._lastX=ke.clientX,this._lastY=ke.clientY,Ze();var e=document.elementFromPoint(ke.clientX,ke.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(ke.clientX,ke.clientY),e===t)break;t=e}if(se.parentNode[Q]._isOutsideThisEl(e),t)do{if(t[Q]){var n=void 0;if(n=t[Q]._onDragOver({clientX:ke.clientX,clientY:ke.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Qe()}},_onTouchMove:function(e){if(Ee){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=de&&D(de,!0),c=de&&i&&i.a,a=de&&i&&i.d,u=ze&&De&&H(De),l=(o.clientX-Ee.clientX+r.x)/(c||1)+(u?u[0]-Ve[0]:0)/(c||1),s=(o.clientY-Ee.clientY+r.y)/(a||1)+(u?u[1]-Ve[1]:0)/(a||1);if(!nt.active&&!Pe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(de){i?(i.e+=l-(Ce||0),i.f+=s-(Oe||0)):i={a:1,b:0,c:0,d:1,e:l,f:s};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");R(de,"webkitTransform",f),R(de,"mozTransform",f),R(de,"msTransform",f),R(de,"transform",f),Ce=l,Oe=s,ke=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!de){var e=this.options.fallbackOnBody?document.body:pe,t=F(se,!0,ze,!0,e),n=this.options;if(ze){De=e;while("static"===R(De,"position")&&"none"===R(De,"transform")&&De!==document)De=De.parentNode;De!==document.body&&De!==document.documentElement?(De===document&&(De=j()),t.top+=De.scrollTop,t.left+=De.scrollLeft):De=j(),Ve=H(De)}de=se.cloneNode(!0),M(de,n.ghostClass,!1),M(de,n.fallbackClass,!0),M(de,n.dragClass,!0),R(de,"transition",""),R(de,"transform",""),R(de,"box-sizing","border-box"),R(de,"margin",0),R(de,"top",t.top),R(de,"left",t.left),R(de,"width",t.width),R(de,"height",t.height),R(de,"opacity","0.8"),R(de,"position",ze?"absolute":"fixed"),R(de,"zIndex","100000"),R(de,"pointerEvents","none"),nt.ghost=de,e.appendChild(de),R(de,"transform-origin",Te/parseInt(de.style.width)*100+"% "+Ie/parseInt(de.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;ue("dragStart",this,{evt:e}),nt.eventCanceled?this._onDrop():(ue("setupClone",this),nt.eventCanceled||(me=q(se),me.draggable=!1,me.style["will-change"]="",this._hideClone(),M(me,this.options.chosenClass,!1),nt.clone=me),n.cloneId=pt((function(){ue("clone",n),nt.eventCanceled||(n.options.removeCloneOnHide||pe.insertBefore(me,se),n._hideClone(),le({sortable:n,name:"clone"}))})),!t&&M(se,o.dragClass,!0),t?(je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,se)),k(document,"drop",n),R(se,"transform","translateZ(0)")),Pe=!0,n._dragStartId=pt(n._dragStarted.bind(n,t,e)),k(document,"selectstart",n),Ae=!0,S&&R(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,c=this.el,a=e.target,u=this.options,l=u.group,s=nt.active,f=we===l,d=u.sort,p=_e||s,h=this,v=!1;if(!$e){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=I(a,u.draggable,c,!0),N("dragOver"),nt.eventCanceled)return v;if(se.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return P(!1);if(je=!1,s&&!u.disabled&&(f?d||(r=fe!==pe):_e===this||(this.lastPutMode=we.checkPull(this,s,se,e))&&l.checkPut(this,s,se,e))){if(i="vertical"===this._getDirection(e,a),t=F(se),N("dragOverValid"),nt.eventCanceled)return v;if(r)return fe=pe,D(),this._hideClone(),N("revert"),nt.eventCanceled||(he?pe.insertBefore(se,he):pe.appendChild(se)),P(!0);var m=V(c,u.draggable);if(!m||ut(e,i,this)&&!m.animated){if(m===se)return P(!1);if(m&&c===e.target&&(a=m),a&&(n=F(a)),!1!==ot(pe,c,se,t,a,n,e,!!a))return D(),c.appendChild(se),fe=c,j(),P(!0)}else if(m&&at(e,i,this)){var g=L(c,0,u,!0);if(g===se)return P(!1);if(a=g,n=F(a),!1!==ot(pe,c,se,t,a,n,e,!1))return D(),c.insertBefore(se,g),fe=c,j(),P(!0)}else if(a.parentNode===c){n=F(a);var y,b,x=0,S=se.parentNode!==c,w=!Ye(se.animated&&se.toRect||t,a.animated&&a.toRect||n,i),_=i?"top":"left",E=B(a,"top","top")||B(se,"top","top"),k=E?E.scrollTop:void 0;if(Ne!==a&&(y=n[_],Be=!1,Le=!w&&u.invertSwap||S),x=lt(e,a,n,i,w?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,Le,Ne===a),0!==x){var C=$(se);do{C-=x,b=fe.children[C]}while(b&&("none"===R(b,"display")||b===de))}if(0===x||b===a)return P(!1);Ne=a,Me=x;var O=a.nextElementSibling,T=!1;T=1===x;var A=ot(pe,c,se,t,a,n,e,T);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),$e=!0,setTimeout(ct,30),D(),T&&!O?c.appendChild(se):a.parentNode.insertBefore(se,T?O:a),E&&Y(E,0,k-E.scrollTop),fe=se.parentNode,void 0===y||Le||(Re=Math.abs(y-F(a)[_])),j(),P(!0)}if(c.contains(se))return P(!1)}return!1}function N(u,l){ue(u,h,o({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:p,target:a,completed:P,onMove:function(n,r){return ot(pe,c,se,t,n,F(n),e,r)},changed:j},l))}function D(){N("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function P(t){return N("dragOverCompleted",{insertion:t}),t&&(f?s._hideClone():s._showClone(h),h!==p&&(M(se,_e?_e.options.ghostClass:s.options.ghostClass,!1),M(se,u.ghostClass,!0)),_e!==h&&h!==nt.active?_e=h:h===nt.active&&_e&&(_e=null),p===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){N("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===se&&!se.animated||a===c&&!a.animated)&&(Ne=null),u.dragoverBubble||e.rootEl||a===document||(se.parentNode[Q]._isOutsideThisEl(e.target),!t&&et(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function j(){be=$(se),Se=$(se,u.draggable),le({sortable:h,name:"change",toEl:c,newIndex:be,newDraggableIndex:Se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",et),C(document,"mousemove",et),C(document,"touchmove",et)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;be=$(se),Se=$(se,n.draggable),ue("drop",this,{evt:e}),fe=se&&se.parentNode,be=$(se),Se=$(se,n.draggable),nt.eventCanceled||(Pe=!1,Le=!1,Be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ht(this.cloneId),ht(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),S&&R(document.body,"user-select",""),R(se,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),de&&de.parentNode&&de.parentNode.removeChild(de),(pe===fe||_e&&"clone"!==_e.lastPutMode)&&me&&me.parentNode&&me.parentNode.removeChild(me),se&&(this.nativeDraggable&&C(se,"dragend",this),it(se),se.style["will-change"]="",Ae&&!Pe&&M(se,_e?_e.options.ghostClass:this.options.ghostClass,!1),M(se,this.options.chosenClass,!1),le({sortable:this,name:"unchoose",toEl:fe,newIndex:null,newDraggableIndex:null,originalEvent:e}),pe!==fe?(be>=0&&(le({rootEl:fe,name:"add",toEl:fe,fromEl:pe,originalEvent:e}),le({sortable:this,name:"remove",toEl:fe,originalEvent:e}),le({rootEl:fe,name:"sort",toEl:fe,fromEl:pe,originalEvent:e}),le({sortable:this,name:"sort",toEl:fe,originalEvent:e})),_e&&_e.save()):be!==ye&&be>=0&&(le({sortable:this,name:"update",toEl:fe,originalEvent:e}),le({sortable:this,name:"sort",toEl:fe,originalEvent:e})),nt.active&&(null!=be&&-1!==be||(be=ye,Se=xe),le({sortable:this,name:"end",toEl:fe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ue("nulling",this),pe=se=fe=de=he=me=ve=ge=Ee=ke=Ae=be=Se=ye=xe=Ne=Me=_e=we=nt.dragged=nt.ghost=nt.clone=nt.active=null,He.forEach((function(e){e.checked=!0})),He.length=Ce=Oe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":se&&(this._onDragOver(e),rt(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)e=n[r],I(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||ft(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];I(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return I(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ie.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Xe(n)},destroy:function(){ue("destroy",this);var e=this.el;e[Q]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Fe.splice(Fe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ge){if(ue("hideClone",this),nt.eventCanceled)return;R(me,"display","none"),this.options.removeCloneOnHide&&me.parentNode&&me.parentNode.removeChild(me),ge=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ge){if(ue("showClone",this),nt.eventCanceled)return;se.parentNode!=pe||this.options.group.revertClone?he?pe.insertBefore(me,he):pe.appendChild(me):pe.insertBefore(me,se),this.options.group.revertClone&&this.animate(se,me),R(me,"display",""),ge=!1}}else this._hideClone()}},Ue&&k(document,"touchmove",(function(e){(nt.active||Pe)&&e.cancelable&&e.preventDefault()})),nt.utils={on:k,off:C,css:R,find:P,is:function(e,t){return!!I(e,t,e,!1)},extend:G,throttle:K,closest:I,toggleClass:M,clone:q,index:$,nextTick:pt,cancelNextTick:ht,detectDirection:Je,getChild:L},nt.get=function(e){return e[Q]},nt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(nt.utils=o(o({},nt.utils),e.utils)),ie.mount(e)}))},nt.create=function(e,t){return new nt(e,t)},nt.version=m;var vt,mt,gt,yt,bt,xt,St=[],wt=!1;function _t(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):this.options.supportPointer?k(document,"pointermove",this._handleFallbackAutoScroll):t.touches?k(document,"touchmove",this._handleFallbackAutoScroll):k(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),kt(),Et(),J()},nulling:function(){bt=mt=vt=wt=xt=gt=yt=null,St.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(bt=e,t||this.options.forceAutoScrollFallback||b||y||S){Ot(e,this.options,i,t);var c=z(i,!0);!wt||xt&&r===gt&&o===yt||(xt&&kt(),xt=setInterval((function(){var i=z(document.elementFromPoint(r,o),!0);i!==c&&(c=i,Et()),Ot(e,n.options,i,t)}),10),gt=r,yt=o)}else{if(!this.options.bubbleScroll||z(i,!0)===j())return void Et();Ot(e,this.options,z(i,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}function Et(){St.forEach((function(e){clearInterval(e.pid)})),St=[]}function kt(){clearInterval(xt)}var Ct,Ot=K((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,c=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,u=t.scrollSpeed,l=j(),s=!1;mt!==n&&(mt=n,Et(),vt=t.scroll,o=t.scrollFn,!0===vt&&(vt=z(n,!0)));var f=0,d=vt;do{var p=d,h=F(p),v=h.top,m=h.bottom,g=h.left,y=h.right,b=h.width,x=h.height,S=void 0,w=void 0,_=p.scrollWidth,E=p.scrollHeight,k=R(p),C=p.scrollLeft,O=p.scrollTop;p===l?(S=b<_&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),w=x<E&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(S=b<_&&("auto"===k.overflowX||"scroll"===k.overflowX),w=x<E&&("auto"===k.overflowY||"scroll"===k.overflowY));var T=S&&(Math.abs(y-i)<=a&&C+b<_)-(Math.abs(g-i)<=a&&!!C),I=w&&(Math.abs(m-c)<=a&&O+x<E)-(Math.abs(v-c)<=a&&!!O);if(!St[f])for(var A=0;A<=f;A++)St[A]||(St[A]={});St[f].vx==T&&St[f].vy==I&&St[f].el===p||(St[f].el=p,St[f].vx=T,St[f].vy=I,clearInterval(St[f].pid),0==T&&0==I||(s=!0,St[f].pid=setInterval(function(){r&&0===this.layer&&nt.active._onTouchMove(bt);var t=St[this.layer].vy?St[this.layer].vy*u:0,n=St[this.layer].vx?St[this.layer].vx*u:0;"function"===typeof o&&"continue"!==o.call(nt.dragged.parentNode[Q],n,t,e,bt,St[this.layer].el)||Y(St[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=z(d,!1)));wt=s}}),30),Tt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,c=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var u=n||o;c();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,s=document.elementFromPoint(l.clientX,l.clientY);a(),u&&!u.el.contains(s)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function It(){}function At(){}function Nt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Ct=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,c=e.cancel;if(o.options.swap){var a=this.sortable.el,u=this.options;if(n&&n!==a){var l=Ct;!1!==r(n)?(M(n,u.swapClass,!0),Ct=n):Ct=null,l&&l!==Ct&&M(l,u.swapClass,!1)}i(),t(!0),c()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,i=this.options;Ct&&M(Ct,i.swapClass,!1),Ct&&(i.swap||n&&n.options.swap)&&r!==Ct&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),Mt(r,Ct),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){Ct=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ct}}})}function Mt(e,t){var n,r,o=e.parentNode,i=t.parentNode;o&&i&&!o.isEqualNode(t)&&!i.isEqualNode(e)&&(n=$(e),r=$(t),o.isEqualNode(i)&&n<r&&r++,o.insertBefore(t,o.children[n]),i.insertBefore(e,i.children[r]))}It.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=L(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Tt},a(It,{pluginName:"revertOnSpill"}),At.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Tt},a(At,{pluginName:"removeOnSpill"});var Rt,Dt,Pt,jt,Ft,Bt=[],Lt=[],Vt=!1,$t=!1,Ht=!1;function Ut(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?k(document,"pointerup",this._deselectMultiDrag):(k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag)),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Bt.length&&Dt===e?Bt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Pt=t},delayEnded:function(){this.isMultiDrag=~Bt.indexOf(Pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Bt.length;r++)Lt.push(q(Bt[r])),Lt[r].sortableIndex=Bt[r].sortableIndex,Lt[r].draggable=!1,Lt[r].style["will-change"]="",M(Lt[r],this.options.selectedClass,!1),Bt[r]===Pt&&M(Lt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Bt.length&&Dt===t&&(Gt(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Gt(!1,n),Lt.forEach((function(e){R(e,"display","")})),t(),Ft=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Lt.forEach((function(e){R(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Ft=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Dt&&Dt.multiDrag._deselectMultiDrag(),Bt.forEach((function(e){e.sortableIndex=$(e)})),Bt=Bt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ht=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Bt.forEach((function(e){e!==Pt&&R(e,"position","absolute")}));var r=F(Pt,!1,!0,!0);Bt.forEach((function(e){e!==Pt&&X(e,r)})),$t=!0,Vt=!0}n.animateAll((function(){$t=!1,Vt=!1,t.options.animation&&Bt.forEach((function(e){Z(e)})),t.options.sort&&Wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;$t&&~Bt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;Bt.length>1&&(Bt.forEach((function(e){r.addAnimationState({target:e,rect:$t?F(e):o}),Z(e),e.fromRect=o,t.removeAnimationState(e)})),$t=!1,zt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,c=e.putSortable,a=this.options;if(r){if(n&&o._hideClone(),Vt=!1,a.animation&&Bt.length>1&&($t||!n&&!o.options.sort&&!c)){var u=F(Pt,!1,!0,!0);Bt.forEach((function(e){e!==Pt&&(X(e,u),i.appendChild(e))})),$t=!0}if(!n)if($t||Wt(),Bt.length>1){var l=Ft;o._showClone(t),o.options.animation&&!Ft&&l&&Lt.forEach((function(e){o.addAnimationState({target:e,rect:jt}),e.fromRect=jt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Bt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){jt=a({},t);var o=D(Pt,!0);jt.top-=o.f,jt.left-=o.e}},dragOverAnimationComplete:function(){$t&&($t=!1,Wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,c=e.oldIndex,a=e.putSortable,u=a||this.sortable;if(t){var l=this.options,s=r.children;if(!Ht)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(Pt,l.selectedClass,!~Bt.indexOf(Pt)),~Bt.indexOf(Pt))Bt.splice(Bt.indexOf(Pt),1),Rt=null,ce({sortable:o,rootEl:n,name:"deselect",targetEl:Pt,originalEvt:t});else{if(Bt.push(Pt),ce({sortable:o,rootEl:n,name:"select",targetEl:Pt,originalEvt:t}),t.shiftKey&&Rt&&o.el.contains(Rt)){var f,d,p=$(Rt),h=$(Pt);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d<f;d++)~Bt.indexOf(s[d])||(M(s[d],l.selectedClass,!0),Bt.push(s[d]),ce({sortable:o,rootEl:n,name:"select",targetEl:s[d],originalEvt:t}))}else Rt=Pt;Dt=u}if(Ht&&this.isMultiDrag){if($t=!1,(r[Q].options.sort||r!==n)&&Bt.length>1){var v=F(Pt),m=$(Pt,":not(."+this.options.selectedClass+")");if(!Vt&&l.animation&&(Pt.thisAnimationDuration=null),u.captureAnimationState(),!Vt&&(l.animation&&(Pt.fromRect=v,Bt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Pt){var t=$t?F(e):v;e.fromRect=t,u.addAnimationState({target:e,rect:t})}}))),Wt(),Bt.forEach((function(e){s[m]?r.insertBefore(e,s[m]):r.appendChild(e),m++})),c===$(Pt))){var g=!1;Bt.forEach((function(e){e.sortableIndex===$(e)||(g=!0)})),g&&i("update")}Bt.forEach((function(e){Z(e)})),u.animateAll()}Dt=u}(n===r||a&&"clone"!==a.lastPutMode)&&Lt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ht=!1,Lt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ht||!Ht)&&Dt===this.sortable&&(!e||!I(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Bt.length){var t=Bt[0];M(t,this.options.selectedClass,!1),Bt.shift(),ce({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Q];t&&t.options.multiDrag&&!~Bt.indexOf(e)&&(Dt&&Dt!==t&&(Dt.multiDrag._deselectMultiDrag(),Dt=t),M(e,t.options.selectedClass,!0),Bt.push(e))},deselect:function(e){var t=e.parentNode[Q],n=Bt.indexOf(e);t&&t.options.multiDrag&&~n&&(M(e,t.options.selectedClass,!1),Bt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Bt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=$t&&r!==Pt?-1:$t?$(r,":not(."+e.options.selectedClass+")"):$(r),n.push({multiDragElement:r,index:o})})),{items:s(Bt),clones:[].concat(Lt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function zt(e,t){Bt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Gt(e,t){Lt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Wt(){Bt.forEach((function(e){e!==Pt&&e.parentNode&&e.parentNode.removeChild(e)}))}nt.mount(new _t),nt.mount(At,It),t["default"]=nt},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},9179:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(4865);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}var l={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=(0,r.ref)(null);return(0,r.onMounted)((function(){e.autofocus&&n.value.focus()})),(0,r.onUpdated)((function(){e.autofocus&&n.value.focus()})),{handleInput:function(e){t.emit("input",e),t.emit("update:modelValue",e.target.value)},handleChange:function(e){t.emit("change",e),t.emit("update:modelValue",e.target.value)},handleFocus:function(e){t.emit("focus",e)},handleBlur:function(e){t.emit("blur",e)},input:n,handleEscape:function(e){n.value.blur(),t.emit("escape",e)}}}},s={class:"vue-input"},f=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];l.render=function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"prepend"),(0,r.createElementVNode)("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return o.handleInput&&o.handleInput.apply(o,arguments)}),onChange:t[1]||(t[1]=function(){return o.handleChange&&o.handleChange.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(){return o.handleBlur&&o.handleBlur.apply(o,arguments)}),onKeyup:t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((function(){return o.handleEscape&&o.handleEscape.apply(o,arguments)}),["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,f),(0,r.renderSlot)(e.$slots,"append")])},l.__file="src/components/input.vue";var d={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==o(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:(0,r.inject)("dataAttrs"),handleClick:function(e){t.emit("click",e)}}},render:function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",(0,r.mergeProps)({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=(0,r.withModifiers)((function(){}),["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return o.handleClick&&o.handleClick.apply(o,arguments)})},o.dataAttrs),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.modelValue,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t.key},[t.group?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:0,class:(0,r.normalizeClass)(["vue-tag",{selected:t.selected}])},[(0,r.renderSlot)(e.$slots,"default",{option:t},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.label),1)]}))],2))],64)})),128))],16)},__file:"src/components/tags.vue"},p={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==o(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:(0,r.inject)("dataAttrs"),handleClickItem:function(e,n){n.disabled||t.emit("click-item",e,n)},handleMouseenter:function(e,n){t.emit("mouseenter",e,n)}}}},h=["id","aria-multiselectable","aria-busy","aria-disabled"],v=["onClick","onMouseenter","id","aria-selected","aria-disabled"];p.render=function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",(0,r.mergeProps)({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=(0,r.withModifiers)((function(){}),["prevent"]))},o.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":o.dataAttrs["data-multiple"],"aria-busy":o.dataAttrs["data-loading"],"aria-disabled":o.dataAttrs["data-disabled"]}),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.modelValue,(function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t.key},[t.visible&&!1===t.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:0,onClick:function(e){return o.handleClickItem(e,t)},class:(0,r.normalizeClass)(["vue-dropdown-item",{selected:t.selected,disabled:t.disabled,highlighted:t.originalIndex===n.highlightedOriginalIndex,group:t.group}]),onMouseenter:function(e){return o.handleMouseenter(e,t)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(i),"aria-selected":!!t.selected||!!t.disabled&&void 0,"aria-disabled":t.disabled},[(0,r.renderSlot)(e.$slots,"default",{option:t},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.label),1)]}))],42,v)):(0,r.createCommentVNode)("v-if",!0)],64)})),128))],16,h)},p.__file="src/components/dropdown.vue";var m=function(e,t,n){var r=n.valueBy;return r(e)===r(t)},g=function(e,t,n){var r=n.valueBy;return e.some((function(e){return m(e,t,{valueBy:r})}))},y=function(e,t,n){var r=n.valueBy;return e.find((function(e){return r(e)===t}))},b=function(e,t,n){var r=n.max,o=n.valueBy;return g(e,t,{valueBy:o})||e.length>=r?e:e.concat(t)},x=function(e,t,n){var r=n.min,o=n.valueBy;return!1===g(e,t,{valueBy:o})||e.length<=r?e:e.filter((function(e){return!1===m(e,t,{valueBy:o})}))},S=function(e){return(0,r.computed)((function(){return"function"==typeof e.value?e.value:"string"==typeof e.value?function(t){return e.value.split(".").reduce((function(e,t){return e[t]}),t)}:function(e){return e}}))},w=function(e,t){var n=(0,r.computed)((function(){return e.value.reduce((function(e,t){return Object.assign(e,(n={},r=t.originalIndex,o=t,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})})),o=function(e){var r=n.value[e];return void 0!==r&&!1!==i(r)&&(t.value=e,!0)},i=function(e){return!e.disabled&&!e.hidden&&e.visible},c=(0,r.computed)((function(){return e.value.some((function(e){return i(e)}))}));return(0,r.watchEffect)((function(){if(!1===c.value&&(t.value=null),null!==t.value&&e.value.length<=t.value){var n,r=u(e.value.reverse());try{for(r.s();!(n=r.n()).done;){var a=n.value;if(o(a.originalIndex))break}}catch(e){r.e(e)}finally{r.f()}}if(null===t.value||!1===i(e.value[t.value])){var l,s=u(e.value);try{for(s.s();!(l=s.n()).done;){var f=l.value;if(o(f.originalIndex))break}}catch(e){s.e(e)}finally{s.f()}}})),{pointerForward:function(){if(!1!==c.value&&null!==t.value)for(var n=t.value+1,r=0;n!==t.value&&r++<e.value.length&&(e.value.length<=n&&(n=0),!o(n));)++n},pointerBackward:function(){if(!1!==c.value&&null!==t.value)for(var n=t.value-1,r=0;n!==t.value&&r++<e.value.length&&(n<0&&(n=e.value.length-1),!o(n));)--n},pointerSet:o}},_=(0,r.defineComponent)({name:"vue-select",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:"disabled",type:[String,Function]},groupBy:{default:"group",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:"Type to search",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:"off",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:"Select option",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return["top","bottom"].includes(e)}}},emits:["selected","removed","update:modelValue","focus","blur","toggle","opened","closed","search:input","search:change","search:focus","search:blur"],setup:function(e,t){var n=function(e){var t=(0,r.reactive)({}),n=S((0,r.toRef)(e,"labelBy"));(0,r.watchEffect)((function(){return t.labelBy=n.value}));var o=S((0,r.toRef)(e,"valueBy"));(0,r.watchEffect)((function(){return t.valueBy=o.value}));var i=S((0,r.toRef)(e,"disabledBy"));(0,r.watchEffect)((function(){return t.disabledBy=i.value}));var c=S((0,r.toRef)(e,"groupBy"));(0,r.watchEffect)((function(){return t.groupBy=c.value}));var a=(0,r.computed)((function(){return e.multiple?e.min:Math.min(1,e.min)}));(0,r.watchEffect)((function(){return t.min=a.value}));var u=(0,r.computed)((function(){return e.multiple?e.max:1}));return(0,r.watchEffect)((function(){return t.max=u.value})),(0,r.watchEffect)((function(){return t.options=e.options})),t}(e),o=(0,r.computed)((function(){var t;return null!==(t=e.emptyModelValue)&&void 0!==t?t:null})),c=(0,r.getCurrentInstance)(),a=(0,r.ref)(),l=(0,r.ref)(),s=(0,r.ref)(),f=(0,r.computed)((function(){var e;return null===(e=s.value)||void 0===e?void 0:e._.refs.input})),d=(0,r.ref)(!1);(0,r.watch)((function(){return d.value}),(function(){d.value?(t.emit("opened"),t.emit("focus"),e.searchable?(f.value!==document.activeElement&&f.value.focus(),t.emit("search:focus")):a.value.focus()):(e.searchable?(f.value===document.activeElement&&f.value.blur(),e.clearOnClose&&M(),t.emit("search:blur")):a.value.blur(),t.emit("closed"),t.emit("blur")),t.emit("toggle")}));var p=function(){e.disabled||(d.value=!0)},h=function(e){a.value.contains(null==e?void 0:e.relatedTarget)?setTimeout((function(){a.value.focus()})):d.value=!1};(0,r.watch)((function(){return e.disabled}),(function(){return h()}));var v=(0,r.ref)(""),m=(0,r.computed)((function(){return new RegExp(v.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")})),_=(0,r.computed)((function(){return v.value?n.options.filter((function(e){return m.value.test(n.labelBy(e))})):void 0})),E=(0,r.ref)([]),k=(0,r.computed)((function(){return new Set(E.value.map((function(e){return n.valueBy(e)})))})),C=function(){if(e.multiple){if(!1===Array.isArray(e.modelValue))return!1;if(E.value.length!==e.modelValue.length)return!1;if(Object.keys(E.value).some((function(t){return E.value[t]!==y(n.options,e.modelValue[t],{valueBy:n.valueBy})})))return!1}else{if(0===E.value.length&&e.modelValue!==o.value)return!1;if(1===E.value.length&&e.modelValue===o.value)return!1;if(E.value[0]!==y(n.options,e.modelValue,{valueBy:n.valueBy}))return!1}return!0},O=function(){if(!C()){E.value=[];var t,r=u(e.multiple?e.modelValue:e.modelValue===o.value?[]:[e.modelValue]);try{for(r.s();!(t=r.n()).done;){var i=t.value,c=y(n.options,i,{valueBy:n.valueBy});!1!==g(n.options,c,{valueBy:n.valueBy})&&(E.value=b(E.value,c,{max:1/0,valueBy:n.valueBy}))}}catch(t){r.e(t)}finally{r.f()}}};O(),(0,r.watch)((function(){return e.modelValue}),(function(){return O()}),{deep:!0}),(0,r.watch)((function(){return n.options}),(function(){E.value=n.options.filter((function(e){return k.value.has(n.valueBy(e))}))}),{deep:!0});var T,I=function(e,r){(r=r.originalOption).value.every((function(e){var t=y(n.options,e,{valueBy:n.valueBy});return g(E.value,t,{valueBy:n.valueBy})}))?r.value.forEach((function(e){var r=y(n.options,e,{valueBy:n.valueBy});E.value=x(E.value,r,{min:n.min,valueBy:n.valueBy}),t.emit("removed",r)})):r.value.forEach((function(e){var r=y(n.options,e,{valueBy:n.valueBy});g(E.value,r,{valueBy:n.valueBy})||(E.value=b(E.value,r,{max:n.max,valueBy:n.valueBy}),t.emit("selected",r))}))},A=function(r,o){if(o=o.originalOption,g(E.value,o,{valueBy:n.valueBy}))E.value=x(E.value,o,{min:n.min,valueBy:n.valueBy}),t.emit("removed",o);else{if(!e.multiple&&1===E.value.length){var i=E.value[0];E.value=x(E.value,E.value[0],{min:0,valueBy:n.valueBy}),t.emit("removed",i)}E.value=b(E.value,o,{max:n.max,valueBy:n.valueBy}),t.emit("selected",o)}},N=function(){if(!C()){var r=E.value.map((function(e){return n.valueBy(e)}));e.multiple?t.emit("update:modelValue",r):r.length?t.emit("update:modelValue",r[0]):t.emit("update:modelValue",o.value)}},M=function(){f.value.value="",f.value.dispatchEvent(new Event("input")),f.value.dispatchEvent(new Event("change"))},R=(0,r.computed)((function(){var t,r;return null!==(r=null!==(t=e.visibleOptions)&&void 0!==t?t:_.value)&&void 0!==r?r:n.options})),D=(0,r.ref)(0),P=(0,r.computed)((function(){var t,r=new Set(R.value.map((function(e){return n.valueBy(e)}))),o=n.options.map((function(t,o){var i,c={key:n.valueBy(t),label:n.labelBy(t),group:null!==(i=n.groupBy(t))&&void 0!==i&&i,originalIndex:o,originalOption:t};return c.selected=c.group?t.value.every((function(e){return k.value.has(e)})):k.value.has(n.valueBy(t)),c.disabled=c.group?n.disabledBy(t)||t.value.every((function(e){var t=y(n.options,e,{valueBy:n.valueBy});return n.disabledBy(t)})):n.disabledBy(t),c.visible=c.group?t.value.some((function(e){return r.has(e)})):r.has(n.valueBy(t)),c.hidden=!!e.hideSelected&&(c.group?t.value.every((function(e){return k.value.has(e)})):k.value.has(n.valueBy(t))),c})),i=u(o);try{for(i.s();!(t=i.n()).done;){var c=t.value;!1!==c.group&&c.disabled&&function(){var e=new Set(c.originalOption.value);o.filter((function(t){return e.has(n.valueBy(t.originalOption))})).forEach((function(e){return e.disabled=!0}))}()}}catch(t){i.e(t)}finally{i.f()}return o})),j=w(P,D),F=j.pointerForward,B=j.pointerBackward,L=j.pointerSet,V="",$=/^[\w]$/,H=(0,r.computed)((function(){var e=i(n.options.keys());return e.slice(D.value).concat(e.slice(0,D.value))})),U=function(){var e,t=null===(e=a.value)||void 0===e?void 0:e.querySelector(".highlighted");if(t&&l.value){var n,r=getComputedStyle(t);for(n=0;t.offsetTop+parseFloat(r.height)+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)>l.value.$el.clientHeight+l.value.$el.scrollTop&&n++<P.value.length;)l.value.$el.scrollTop=l.value.$el.scrollTop+parseFloat(r.height)+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);for(n=0;t.offsetTop<l.value.$el.scrollTop&&n++<P.value.length;)l.value.$el.scrollTop=l.value.$el.scrollTop-parseFloat(r.height)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)}};(0,r.watch)((function(){return[d.value,n.options,k.value]}),(function(e,t){!0!==(null==t?void 0:t[0])&&!1!==d.value&&0!==E.value.length&&(L(n.options.findIndex((function(e){return k.value.has(n.valueBy(e))}))),(0,r.nextTick)(U))}),{deep:!0,immediate:!0});var z=(0,r.computed)((function(){return{"data-is-focusing":d.value,"data-visible-length":P.value.filter((function(e){return e.visible&&!1===e.hidden})).length,"data-not-selected-length":n.options.length-P.value.filter((function(e){return e.selected})).length,"data-selected-length":P.value.filter((function(e){return e.selected})).length,"data-addable":P.value.filter((function(e){return e.selected})).length<n.max,"data-removable":P.value.filter((function(e){return e.selected})).length>n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}}));(0,r.provide)("dataAttrs",z);var G=(0,r.computed)((function(){return P.value.filter((function(e){return e.selected})).filter((function(e){return!e.group}))})),W=(0,r.computed)((function(){return e.multiple?0===G.value.length?e.placeholder:1===G.value.length?"1 option selected":G.value.length+" options selected":0===G.value.length?e.placeholder:G.value[0].label+""})),K=(0,r.computed)((function(){var t=G.value.map((function(e){return e.originalOption}));return e.multiple?t:t[0]||o.value})),J=(0,r.ref)();return(0,r.watch)((function(){return[e.openDirection,d.value]}),(function(){var t,n;J.value=null!==(n=null!==(t=e.openDirection)&&void 0!==t?t:function(){if(void 0!==a.value&&void 0!==window)return window.innerHeight-a.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())&&void 0!==n?n:"bottom"}),{immediate:!0}),{instance:c,isFocusing:d,wrapper:a,dropdown:l,input:s,focus:p,blur:h,toggle:function(){d.value?h():p()},searchingInputValue:v,handleInputForInput:function(e){t.emit("search:input",e)},handleChangeForInput:function(e){t.emit("search:change",e)},handleFocusForInput:function(e){p()},handleBlurForInput:function(e){h()},optionsWithInfo:P,addOrRemoveOption:function(t,n){e.disabled||(n.group&&e.multiple?I(t,n):A(t,n),N(),!0===e.closeOnSelect&&(d.value=!1),!0===e.clearOnSelect&&v.value&&M())},dataAttrs:z,innerPlaceholder:W,selected:K,highlightedOriginalIndex:D,pointerForward:function(){F(),(0,r.nextTick)(U)},pointerBackward:function(){B(),(0,r.nextTick)(U)},pointerFirst:function(){var e,t=u(n.options.keys());try{for(t.s();!(e=t.n()).done;){var o=e.value;if(L(o))break}}catch(e){t.e(e)}finally{t.f()}(0,r.nextTick)(U)},pointerLast:function(){var e,t=u(i(n.options.keys()).reverse());try{for(t.s();!(e=t.n()).done;){var o=e.value;if(L(o))break}}catch(e){t.e(e)}finally{t.f()}(0,r.nextTick)(U)},typeAhead:function(t){var r,o;if(!e.searchable){var i=!1;if($.test(t.key)?(V+=t.key.toLowerCase(),i=!0):"Space"===t.code&&(V+=" "),i){var c,a=u(H.value);try{for(a.s();!(c=a.n()).done;){var l=c.value;if(!0===(null===(o=null===(r=n.labelBy(n.options[l]))||void 0===r?void 0:r.toLowerCase())||void 0===o?void 0:o.startsWith(V))&&L(l))break}}catch(t){a.e(t)}finally{a.f()}clearTimeout(T),T=setTimeout((function(){V=""}),500)}}},pointerSet:L,direction:J}},components:{VInput:l,VTags:d,VDropdown:p}});_.__VERSION__="2.10.2";var E=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],k={ref:"header",class:"vue-select-header"},C={key:0,class:"vue-input"},O=["placeholder","autocomplete"],T=["onClick"],I=(0,r.createElementVNode)("span",{class:"icon loading"},[(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div")],-1),A={key:0,class:"vue-select-input-wrapper"},N=(0,r.createElementVNode)("span",{class:"icon loading"},[(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div")],-1);_.render=function(e,t,n,o,i,c){var a=(0,r.resolveComponent)("v-tags"),u=(0,r.resolveComponent)("v-input"),l=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(t){return!e.searchable&&e.blur(t)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=(0,r.withKeys)((0,r.withModifiers)((function(){return null!==e.highlightedOriginalIndex&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])}),["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)}),["prevent","exact"]),["down"])),t[13]||(t[13]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)}),["prevent","exact"]),["up"])),t[14]||(t[14]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)}),["prevent","exact"]),["home"])),t[15]||(t[15]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)}),["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":null===e.highlightedOriginalIndex?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[(0,r.createElementVNode)("div",k,[e.multiple&&e.taggable&&0===e.modelValue.length||!1===e.searchable&&!1===e.taggable?((0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.renderSlot)(e.$slots,"label",{selected:e.selected},(function(){return[(0,r.createElementVNode)("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,O)]}))])):(0,r.createCommentVNode)("v-if",!0),e.multiple&&e.taggable?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(a,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:(0,r.withCtx)((function(t){var n=t.option;return[(0,r.renderSlot)(e.$slots,"tag",{option:n.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,n)}},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1),(0,r.createElementVNode)("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:(0,r.withModifiers)((function(){return e.addOrRemoveOption(e.$event,n)}),["prevent","stop"])},null,8,T)]}))]})),_:3},8,["modelValue","collapse-tags","onClick"]),(0,r.renderSlot)(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=(0,r.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[e.searchable?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchingInputValue=t}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):(0,r.createCommentVNode)("v-if",!0),e.loading?(0,r.renderSlot)(e.$slots,"loading",{key:1},(function(){return[I]})):(0,r.renderSlot)(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=(0,r.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64))],512),e.multiple&&e.taggable&&e.searchable?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[(0,r.withDirectives)((0,r.createVNode)(u,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.searchingInputValue=t}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[r.vShow,e.isFocusing]]),e.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0},(function(){return[N]})):(0,r.createCommentVNode)("v-if",!0)])):(0,r.createCommentVNode)("v-if",!0),(0,r.createVNode)(l,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.optionsWithInfo=t}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(t,n){return e.pointerSet(n.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:(0,r.withCtx)((function(t){var n=t.option;return[(0,r.renderSlot)(e.$slots,"dropdown-item",{option:n.originalOption},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1)]}))]})),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,E)},_.__file="src/index.vue"},7197:function(e,t){"use strict"; +/*! + * vue-textarea-autosize v1.1.1 + * (c) 2019 Saymon + * Released under the MIT License. + */var n={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,t=this.isHeightImportant?"important":"";return this.height="auto".concat(t?" !important":""),this.$nextTick((function(){var n=e.$el.scrollHeight+1;e.minHeight&&(n=n<e.minHeight?e.minHeight:n),e.maxHeight&&(n>e.maxHeight?(n=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var r=n+"px";e.height="".concat(r).concat(t?" !important":"")})),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function r(e,t,n,r,o,i,c,a,u,l){"boolean"!==typeof c&&(u=a,a=c,c=!1);var s,f="function"===typeof n?n.options:n;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=s):t&&(s=c?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),s)if(f.functional){var d=f.render;f.render=function(e,t){return s.call(t),d(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,s):[s]}return n}var o=r;const i=n;var c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],style:e.computedStyles,domProps:{value:e.val},on:{focus:e.resize,input:function(t){t.target.composing||(e.val=t.target.value)}}})},a=[];const u=void 0,l=void 0,s=void 0,f=!1;var d=o({render:c,staticRenderFns:a},u,i,l,f,s,void 0,void 0),p="1.1.1",h=function(e){e.component("TextareaAutosize",d)},v={install:h,version:p};"undefined"!==typeof window&&window.Vue&&window.Vue.use(v),t["Z"]=v},4865:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseTransition:function(){return Wt},Comment:function(){return Br},EffectScope:function(){return a},Fragment:function(){return jr},KeepAlive:function(){return cn},ReactiveEffect:function(){return k},Static:function(){return Lr},Suspense:function(){return Nt},Teleport:function(){return Or},Text:function(){return Fr},Transition:function(){return Jc},TransitionGroup:function(){return ha},VueElement:function(){return $c},callWithAsyncErrorHandling:function(){return oi},callWithErrorHandling:function(){return ri},camelize:function(){return o._A},capitalize:function(){return o.kC},cloneVNode:function(){return co},compatUtils:function(){return ac},compile:function(){return Ad},computed:function(){return at},createApp:function(){return Ya},createBlock:function(){return Yr},createCommentVNode:function(){return lo},createElementBlock:function(){return Jr},createElementVNode:function(){return no},createHydrationRenderer:function(){return vr},createPropsRestProxy:function(){return Yi},createRenderer:function(){return hr},createSSRApp:function(){return qa},createSlots:function(){return go},createStaticVNode:function(){return uo},createTextVNode:function(){return ao},createVNode:function(){return ro},customRef:function(){return nt},defineAsyncComponent:function(){return tn},defineComponent:function(){return Qt},defineCustomElement:function(){return Bc},defineEmits:function(){return Hi},defineExpose:function(){return Ui},defineProps:function(){return $i},defineSSRCustomElement:function(){return Lc},devtools:function(){return ut},effect:function(){return O},effectScope:function(){return u},getCurrentInstance:function(){return Io},getCurrentScope:function(){return s},getTransitionRawChildren:function(){return Zt},guardReactiveProps:function(){return io},h:function(){return Xi},handleError:function(){return ii},hydrate:function(){return Ja},initCustomFormatter:function(){return ec},initDirectivesForSSR:function(){return Qa},inject:function(){return Ht},isMemoSame:function(){return nc},isProxy:function(){return Le},isReactive:function(){return Fe},isReadonly:function(){return Be},isRef:function(){return We},isRuntimeOnly:function(){return Vo},isVNode:function(){return qr},markRaw:function(){return $e},mergeDefaults:function(){return Ji},mergeProps:function(){return ho},nextTick:function(){return xi},normalizeClass:function(){return o.C_},normalizeProps:function(){return o.vs},normalizeStyle:function(){return o.j5},onActivated:function(){return un},onBeforeMount:function(){return mn},onBeforeUnmount:function(){return xn},onBeforeUpdate:function(){return yn},onDeactivated:function(){return ln},onErrorCaptured:function(){return kn},onMounted:function(){return gn},onRenderTracked:function(){return En},onRenderTriggered:function(){return _n},onScopeDispose:function(){return f},onServerPrefetch:function(){return wn},onUnmounted:function(){return Sn},onUpdated:function(){return bn},openBlock:function(){return Hr},popScopeId:function(){return bt},provide:function(){return $t},proxyRefs:function(){return et},pushScopeId:function(){return yt},queuePostFlushCb:function(){return Oi},reactive:function(){return Me},readonly:function(){return De},ref:function(){return Ke},registerRuntimeCompiler:function(){return Lo},render:function(){return Ka},renderList:function(){return mo},renderSlot:function(){return yo},resolveComponent:function(){return Ar},resolveDirective:function(){return Rr},resolveDynamicComponent:function(){return Mr},resolveFilter:function(){return cc},resolveTransitionHooks:function(){return Jt},setBlockTracking:function(){return Wr},setDevtoolsHook:function(){return ft},setTransitionHooks:function(){return Xt},shallowReactive:function(){return Re},shallowReadonly:function(){return Pe},shallowRef:function(){return Je},ssrContextKey:function(){return Zi},ssrUtils:function(){return ic},stop:function(){return T},toDisplayString:function(){return o.zw},toHandlerKey:function(){return o.hR},toHandlers:function(){return xo},toRaw:function(){return Ve},toRef:function(){return it},toRefs:function(){return rt},transformVNodeArgs:function(){return Zr},triggerRef:function(){return Xe},unref:function(){return Ze},useAttrs:function(){return Wi},useCssModule:function(){return Hc},useCssVars:function(){return Uc},useSSRContext:function(){return Qi},useSlots:function(){return Gi},useTransitionState:function(){return Ut},vModelCheckbox:function(){return Ea},vModelDynamic:function(){return Na},vModelRadio:function(){return Ca},vModelSelect:function(){return Oa},vModelText:function(){return _a},vShow:function(){return La},version:function(){return rc},warn:function(){return Xo},watch:function(){return ji},watchEffect:function(){return Mi},watchPostEffect:function(){return Ri},watchSyncEffect:function(){return Di},withAsyncContext:function(){return qi},withCtx:function(){return St},withDefaults:function(){return zi},withDirectives:function(){return nr},withKeys:function(){return Ba},withMemo:function(){return tc},withModifiers:function(){return ja},withScopeId:function(){return xt}});var r={};n.r(r),n.d(r,{BaseTransition:function(){return Wt},Comment:function(){return Br},EffectScope:function(){return a},Fragment:function(){return jr},KeepAlive:function(){return cn},ReactiveEffect:function(){return k},Static:function(){return Lr},Suspense:function(){return Nt},Teleport:function(){return Or},Text:function(){return Fr},Transition:function(){return Jc},TransitionGroup:function(){return ha},VueElement:function(){return $c},callWithAsyncErrorHandling:function(){return oi},callWithErrorHandling:function(){return ri},camelize:function(){return o._A},capitalize:function(){return o.kC},cloneVNode:function(){return co},compatUtils:function(){return ac},computed:function(){return at},createApp:function(){return Ya},createBlock:function(){return Yr},createCommentVNode:function(){return lo},createElementBlock:function(){return Jr},createElementVNode:function(){return no},createHydrationRenderer:function(){return vr},createPropsRestProxy:function(){return Yi},createRenderer:function(){return hr},createSSRApp:function(){return qa},createSlots:function(){return go},createStaticVNode:function(){return uo},createTextVNode:function(){return ao},createVNode:function(){return ro},customRef:function(){return nt},defineAsyncComponent:function(){return tn},defineComponent:function(){return Qt},defineCustomElement:function(){return Bc},defineEmits:function(){return Hi},defineExpose:function(){return Ui},defineProps:function(){return $i},defineSSRCustomElement:function(){return Lc},devtools:function(){return ut},effect:function(){return O},effectScope:function(){return u},getCurrentInstance:function(){return Io},getCurrentScope:function(){return s},getTransitionRawChildren:function(){return Zt},guardReactiveProps:function(){return io},h:function(){return Xi},handleError:function(){return ii},hydrate:function(){return Ja},initCustomFormatter:function(){return ec},initDirectivesForSSR:function(){return Qa},inject:function(){return Ht},isMemoSame:function(){return nc},isProxy:function(){return Le},isReactive:function(){return Fe},isReadonly:function(){return Be},isRef:function(){return We},isRuntimeOnly:function(){return Vo},isVNode:function(){return qr},markRaw:function(){return $e},mergeDefaults:function(){return Ji},mergeProps:function(){return ho},nextTick:function(){return xi},normalizeClass:function(){return o.C_},normalizeProps:function(){return o.vs},normalizeStyle:function(){return o.j5},onActivated:function(){return un},onBeforeMount:function(){return mn},onBeforeUnmount:function(){return xn},onBeforeUpdate:function(){return yn},onDeactivated:function(){return ln},onErrorCaptured:function(){return kn},onMounted:function(){return gn},onRenderTracked:function(){return En},onRenderTriggered:function(){return _n},onScopeDispose:function(){return f},onServerPrefetch:function(){return wn},onUnmounted:function(){return Sn},onUpdated:function(){return bn},openBlock:function(){return Hr},popScopeId:function(){return bt},provide:function(){return $t},proxyRefs:function(){return et},pushScopeId:function(){return yt},queuePostFlushCb:function(){return Oi},reactive:function(){return Me},readonly:function(){return De},ref:function(){return Ke},registerRuntimeCompiler:function(){return Lo},render:function(){return Ka},renderList:function(){return mo},renderSlot:function(){return yo},resolveComponent:function(){return Ar},resolveDirective:function(){return Rr},resolveDynamicComponent:function(){return Mr},resolveFilter:function(){return cc},resolveTransitionHooks:function(){return Jt},setBlockTracking:function(){return Wr},setDevtoolsHook:function(){return ft},setTransitionHooks:function(){return Xt},shallowReactive:function(){return Re},shallowReadonly:function(){return Pe},shallowRef:function(){return Je},ssrContextKey:function(){return Zi},ssrUtils:function(){return ic},stop:function(){return T},toDisplayString:function(){return o.zw},toHandlerKey:function(){return o.hR},toHandlers:function(){return xo},toRaw:function(){return Ve},toRef:function(){return it},toRefs:function(){return rt},transformVNodeArgs:function(){return Zr},triggerRef:function(){return Xe},unref:function(){return Ze},useAttrs:function(){return Wi},useCssModule:function(){return Hc},useCssVars:function(){return Uc},useSSRContext:function(){return Qi},useSlots:function(){return Gi},useTransitionState:function(){return Ut},vModelCheckbox:function(){return Ea},vModelDynamic:function(){return Na},vModelRadio:function(){return Ca},vModelSelect:function(){return Oa},vModelText:function(){return _a},vShow:function(){return La},version:function(){return rc},warn:function(){return Xo},watch:function(){return ji},watchEffect:function(){return Mi},watchPostEffect:function(){return Ri},watchSyncEffect:function(){return Di},withAsyncContext:function(){return qi},withCtx:function(){return St},withDefaults:function(){return zi},withDirectives:function(){return nr},withKeys:function(){return Ba},withMemo:function(){return tc},withModifiers:function(){return ja},withScopeId:function(){return xt}});var o=n(3577);let i;const c=[];class a{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&i&&(this.parent=i,this.index=(i.scopes||(i.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0}on(){this.active&&(c.push(this),i=this)}off(){this.active&&(c.pop(),i=c[c.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function u(e){return new a(e)}function l(e,t){t=t||i,t&&t.active&&t.effects.push(e)}function s(){return i}function f(e){i&&i.cleanups.push(e)}const d=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p=e=>(e.w&b)>0,h=e=>(e.n&b)>0,v=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=b},m=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p(o)&&!h(o)?o.delete(e):t[n++]=o,o.w&=~b,o.n&=~b}t.length=n}},g=new WeakMap;let y=0,b=1;const x=30,S=[];let w;const _=Symbol(""),E=Symbol("");class k{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],l(this,n)}run(){if(!this.active)return this.fn();if(!S.includes(this))try{return S.push(w=this),M(),b=1<<++y,y<=x?v(this):C(this),this.fn()}finally{y<=x&&m(this),b=1<<--y,R(),S.pop();const e=S.length;w=e>0?S[e-1]:void 0}}stop(){this.active&&(C(this),this.onStop&&this.onStop(),this.active=!1)}}function C(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function O(e,t){e.effect&&(e=e.effect.fn);const n=new k(e);t&&((0,o.l7)(n,t),t.scope&&l(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function T(e){e.effect.stop()}let I=!0;const A=[];function N(){A.push(I),I=!1}function M(){A.push(I),I=!0}function R(){const e=A.pop();I=void 0===e||e}function D(e,t,n){if(!P())return;let r=g.get(e);r||g.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=d());const i=void 0;j(o,i)}function P(){return I&&void 0!==w}function j(e,t){let n=!1;y<=x?h(e)||(e.n|=b,n=!p(e)):n=!e.has(w),n&&(e.add(w),w.deps.push(e))}function F(e,t,n,r,i,c){const a=g.get(e);if(!a)return;let u=[];if("clear"===t)u=[...a.values()];else if("length"===n&&(0,o.kJ)(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(a.get(n)),t){case"add":(0,o.kJ)(e)?(0,o.S0)(n)&&u.push(a.get("length")):(u.push(a.get(_)),(0,o._N)(e)&&u.push(a.get(E)));break;case"delete":(0,o.kJ)(e)||(u.push(a.get(_)),(0,o._N)(e)&&u.push(a.get(E)));break;case"set":(0,o._N)(e)&&u.push(a.get(_));break}if(1===u.length)u[0]&&B(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);B(d(e))}}function B(e,t){for(const n of(0,o.kJ)(e)?e:[...e])(n!==w||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const L=(0,o.fY)("__proto__,__v_isRef,__isVue"),V=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(o.yk)),$=K(),H=K(!1,!0),U=K(!0),z=K(!0,!0),G=W();function W(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ve(this);for(let t=0,o=this.length;t<o;t++)D(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ve)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){N();const n=Ve(this)[t].apply(this,e);return R(),n}})),e}function K(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?Ie:Te:t?Oe:Ce).get(n))return n;const c=(0,o.kJ)(n);if(!e&&c&&(0,o.RI)(G,r))return Reflect.get(G,r,i);const a=Reflect.get(n,r,i);if((0,o.yk)(r)?V.has(r):L(r))return a;if(e||D(n,"get",r),t)return a;if(We(a)){const e=!c||!(0,o.S0)(r);return e?a.value:a}return(0,o.Kn)(a)?e?De(a):Me(a):a}}const J=q(),Y=q(!0);function q(e=!1){return function(t,n,r,i){let c=t[n];if(!e&&!Be(r)&&(r=Ve(r),c=Ve(c),!(0,o.kJ)(t)&&We(c)&&!We(r)))return c.value=r,!0;const a=(0,o.kJ)(t)&&(0,o.S0)(n)?Number(n)<t.length:(0,o.RI)(t,n),u=Reflect.set(t,n,r,i);return t===Ve(i)&&(a?(0,o.aU)(r,c)&&F(t,"set",n,r,c):F(t,"add",n,r)),u}}function X(e,t){const n=(0,o.RI)(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&F(e,"delete",t,void 0,r),i}function Z(e,t){const n=Reflect.has(e,t);return(0,o.yk)(t)&&V.has(t)||D(e,"has",t),n}function Q(e){return D(e,"iterate",(0,o.kJ)(e)?"length":_),Reflect.ownKeys(e)}const ee={get:$,set:J,deleteProperty:X,has:Z,ownKeys:Q},te={get:U,set(e,t){return!0},deleteProperty(e,t){return!0}},ne=(0,o.l7)({},ee,{get:H,set:Y}),re=(0,o.l7)({},te,{get:z}),oe=e=>e,ie=e=>Reflect.getPrototypeOf(e);function ce(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Ve(e),i=Ve(t);t!==i&&!n&&D(o,"get",t),!n&&D(o,"get",i);const{has:c}=ie(o),a=r?oe:n?Ue:He;return c.call(o,t)?a(e.get(t)):c.call(o,i)?a(e.get(i)):void(e!==o&&e.get(t))}function ae(e,t=!1){const n=this["__v_raw"],r=Ve(n),o=Ve(e);return e!==o&&!t&&D(r,"has",e),!t&&D(r,"has",o),e===o?n.has(e):n.has(e)||n.has(o)}function ue(e,t=!1){return e=e["__v_raw"],!t&&D(Ve(e),"iterate",_),Reflect.get(e,"size",e)}function le(e){e=Ve(e);const t=Ve(this),n=ie(t),r=n.has.call(t,e);return r||(t.add(e),F(t,"add",e,e)),this}function se(e,t){t=Ve(t);const n=Ve(this),{has:r,get:i}=ie(n);let c=r.call(n,e);c||(e=Ve(e),c=r.call(n,e));const a=i.call(n,e);return n.set(e,t),c?(0,o.aU)(t,a)&&F(n,"set",e,t,a):F(n,"add",e,t),this}function fe(e){const t=Ve(this),{has:n,get:r}=ie(t);let o=n.call(t,e);o||(e=Ve(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,c=t.delete(e);return o&&F(t,"delete",e,void 0,i),c}function de(){const e=Ve(this),t=0!==e.size,n=void 0,r=e.clear();return t&&F(e,"clear",void 0,void 0,n),r}function pe(e,t){return function(n,r){const o=this,i=o["__v_raw"],c=Ve(i),a=t?oe:e?Ue:He;return!e&&D(c,"iterate",_),i.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function he(e,t,n){return function(...r){const i=this["__v_raw"],c=Ve(i),a=(0,o._N)(c),u="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,s=i[e](...r),f=n?oe:t?Ue:He;return!t&&D(c,"iterate",l?E:_),{next(){const{value:e,done:t}=s.next();return t?{value:e,done:t}:{value:u?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function ve(e){return function(...t){return"delete"!==e&&this}}function me(){const e={get(e){return ce(this,e)},get size(){return ue(this)},has:ae,add:le,set:se,delete:fe,clear:de,forEach:pe(!1,!1)},t={get(e){return ce(this,e,!1,!0)},get size(){return ue(this)},has:ae,add:le,set:se,delete:fe,clear:de,forEach:pe(!1,!0)},n={get(e){return ce(this,e,!0)},get size(){return ue(this,!0)},has(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:pe(!0,!1)},r={get(e){return ce(this,e,!0,!0)},get size(){return ue(this,!0)},has(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:pe(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=he(o,!1,!1),n[o]=he(o,!0,!1),t[o]=he(o,!1,!0),r[o]=he(o,!0,!0)})),[e,n,t,r]}const[ge,ye,be,xe]=me();function Se(e,t){const n=t?e?xe:be:e?ye:ge;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.RI)(n,r)&&r in t?n:t,r,i)}const we={get:Se(!1,!1)},_e={get:Se(!1,!0)},Ee={get:Se(!0,!1)},ke={get:Se(!0,!0)};const Ce=new WeakMap,Oe=new WeakMap,Te=new WeakMap,Ie=new WeakMap;function Ae(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ne(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Ae((0,o.W7)(e))}function Me(e){return e&&e["__v_isReadonly"]?e:je(e,!1,ee,we,Ce)}function Re(e){return je(e,!1,ne,_e,Oe)}function De(e){return je(e,!0,te,Ee,Te)}function Pe(e){return je(e,!0,re,ke,Ie)}function je(e,t,n,r,i){if(!(0,o.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const c=i.get(e);if(c)return c;const a=Ne(e);if(0===a)return e;const u=new Proxy(e,2===a?r:n);return i.set(e,u),u}function Fe(e){return Be(e)?Fe(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Be(e){return!(!e||!e["__v_isReadonly"])}function Le(e){return Fe(e)||Be(e)}function Ve(e){const t=e&&e["__v_raw"];return t?Ve(t):e}function $e(e){return(0,o.Nj)(e,"__v_skip",!0),e}const He=e=>(0,o.Kn)(e)?Me(e):e,Ue=e=>(0,o.Kn)(e)?De(e):e;function ze(e){P()&&(e=Ve(e),e.dep||(e.dep=d()),j(e.dep))}function Ge(e,t){e=Ve(e),e.dep&&B(e.dep)}function We(e){return Boolean(e&&!0===e.__v_isRef)}function Ke(e){return Ye(e,!1)}function Je(e){return Ye(e,!0)}function Ye(e,t){return We(e)?e:new qe(e,t)}class qe{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ve(e),this._value=t?e:He(e)}get value(){return ze(this),this._value}set value(e){e=this._shallow?e:Ve(e),(0,o.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:He(e),Ge(this,e))}}function Xe(e){Ge(e,void 0)}function Ze(e){return We(e)?e.value:e}const Qe={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return We(o)&&!We(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function et(e){return Fe(e)?e:new Proxy(e,Qe)}class tt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>ze(this)),(()=>Ge(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function nt(e){return new tt(e)}function rt(e){const t=(0,o.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=it(e,n);return t}class ot{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function it(e,t,n){const r=e[t];return We(r)?r:new ot(e,t,n)}class ct{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new k(e,(()=>{this._dirty||(this._dirty=!0,Ge(this))})),this["__v_isReadonly"]=n}get value(){const e=Ve(this);return ze(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function at(e,t){let n,r;const i=(0,o.mf)(e);i?(n=e,r=o.dG):(n=e.get,r=e.set);const c=new ct(n,r,i||!r);return c}Promise.resolve();new Set;new Map;let ut,lt=[],st=!1;function ft(e,t){var n,r;if(ut=e,ut)ut.enabled=!0,lt.forEach((({event:e,args:t})=>ut.emit(e,...t))),lt=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){const e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push((e=>{ft(e,t)})),setTimeout((()=>{ut||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,st=!0,lt=[])}),3e3)}else st=!0,lt=[]}function dt(e,t,...n){const r=e.vnode.props||o.kT;let i=n;const c=t.startsWith("update:"),a=c&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:c}=r[e]||o.kT;c?i=n.map((e=>e.trim())):t&&(i=n.map(o.He))}let u;let l=r[u=(0,o.hR)(t)]||r[u=(0,o.hR)((0,o._A)(t))];!l&&c&&(l=r[u=(0,o.hR)((0,o.rs)(t))]),l&&oi(l,e,6,i);const s=r[u+"Once"];if(s){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,oi(s,e,6,i)}}function pt(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const c=e.emits;let a={},u=!1;if(!(0,o.mf)(e)){const r=e=>{const n=pt(e,t,!0);n&&(u=!0,(0,o.l7)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return c||u?((0,o.kJ)(c)?c.forEach((e=>a[e]=null)):(0,o.l7)(a,c),r.set(e,a),a):(r.set(e,null),null)}function ht(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let vt=null,mt=null;function gt(e){const t=vt;return vt=e,mt=e&&e.type.__scopeId||null,t}function yt(e){mt=e}function bt(){mt=null}const xt=e=>St;function St(e,t=vt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Wr(-1);const o=gt(t),i=e(...n);return gt(o),r._d&&Wr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function wt(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:c,propsOptions:[a],slots:u,attrs:l,emit:s,render:f,renderCache:d,data:p,setupState:h,ctx:v,inheritAttrs:m}=e;let g,y;const b=gt(e);try{if(4&n.shapeFlag){const e=i||r;g=so(f.call(e,e,d,c,h,p,v)),y=l}else{const e=t;0,g=so(e.length>1?e(c,{attrs:l,slots:u,emit:s}):e(c,null)),y=t.props?l:Et(l)}}catch(S){Vr.length=0,ii(S,e,1),g=ro(Br)}let x=g;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=x;e.length&&7&t&&(a&&e.some(o.tR)&&(y=kt(y,a)),x=co(x,y))}return n.dirs&&(x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),g=x,gt(b),g}function _t(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!qr(r))return;if(r.type!==Br||"v-if"===r.children){if(t)return;t=r}}return t}const Et=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},kt=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Ct(e,t,n){const{props:r,children:o,component:i}=e,{props:c,children:a,patchFlag:u}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!o&&!a||a&&a.$stable)||r!==c&&(r?!c||Ot(r,c,l):!!c);if(1024&u)return!0;if(16&u)return r?Ot(r,c,l):!!c;if(8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(c[n]!==r[n]&&!ht(l,n))return!0}}return!1}function Ot(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!ht(n,i))return!0}return!1}function Tt({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const It=e=>e.__isSuspense,At={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,c,a,u,l){null==e?Rt(t,n,r,o,i,c,a,u,l):Dt(e,t,n,r,o,c,a,u,l)},hydrate:jt,create:Pt,normalize:Ft},Nt=At;function Mt(e,t){const n=e.props&&e.props[t];(0,o.mf)(n)&&n()}function Rt(e,t,n,r,o,i,c,a,u){const{p:l,o:{createElement:s}}=u,f=s("div"),d=e.suspense=Pt(e,o,r,t,f,n,i,c,a,u);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,c),d.deps>0?(Mt(e,"onPending"),Mt(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,c),Vt(d,e.ssFallback)):d.resolve()}function Dt(e,t,n,r,o,i,c,a,{p:u,um:l,o:{createElement:s}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:v,isInFallback:m,isHydrating:g}=f;if(v)f.pendingBranch=d,Xr(d,v)?(u(v,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0?f.resolve():m&&(u(h,p,n,r,o,null,i,c,a),Vt(f,p))):(f.pendingId++,g?(f.isHydrating=!1,f.activeBranch=v):l(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=s("div"),m?(u(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0?f.resolve():(u(h,p,n,r,o,null,i,c,a),Vt(f,p))):h&&Xr(d,h)?(u(h,d,n,r,o,f,i,c,a),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0&&f.resolve()));else if(h&&Xr(d,h))u(h,d,n,r,o,f,i,c,a),Vt(f,d);else if(Mt(t,"onPending"),f.pendingBranch=d,f.pendingId++,u(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}function Pt(e,t,n,r,i,c,a,u,l,s,f=!1){const{p:d,m:p,um:h,n:v,o:{parentNode:m,remove:g}}=s,y=(0,o.He)(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:i,anchor:c,deps:0,pendingId:0,timeout:"number"===typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:c,container:a}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===b.pendingId&&p(r,a,t,0)});let{anchor:t}=b;n&&(t=v(n),h(n,c,b,!0)),e||p(r,a,t,0)}Vt(b,r),b.pendingBranch=null,b.isInFallback=!1;let u=b.parent,l=!1;while(u){if(u.pendingBranch){u.effects.push(...i),l=!0;break}u=u.parent}l||Oi(i),b.effects=[],Mt(t,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=b;Mt(t,"onFallback");const c=v(n),a=()=>{b.isInFallback&&(d(null,e,o,c,r,null,i,u,l),Vt(b,e))},s=e.transition&&"out-in"===e.transition.mode;s&&(n.transition.afterLeave=a),b.isInFallback=!0,h(n,r,null,!0),s||a()},move(e,t,n){b.activeBranch&&p(b.activeBranch,e,t,n),b.container=e},next(){return b.activeBranch&&v(b.activeBranch)},registerDep(e,t){const n=!!b.pendingBranch;n&&b.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{ii(t,e,0)})).then((o=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Bo(e,o,!1),r&&(i.el=r);const c=!r&&e.subTree.el;t(e,i,m(r||e.subTree.el),r?null:v(e.subTree),b,a,l),c&&g(c),Tt(e,i.el),n&&0===--b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,e,t),b.pendingBranch&&h(b.pendingBranch,n,e,t)}};return b}function jt(e,t,n,r,o,i,c,a,u){const l=t.suspense=Pt(t,r,n,e.parentNode,document.createElement("div"),null,o,i,c,a,!0),s=u(e,l.pendingBranch=t.ssContent,n,l,i,c);return 0===l.deps&&l.resolve(),s}function Ft(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Bt(r?n.default:n),e.ssFallback=r?Bt(n.fallback):ro(Br)}function Bt(e){let t;if((0,o.mf)(e)){const n=Gr&&e._c;n&&(e._d=!1,Hr()),e=e(),n&&(e._d=!0,t=$r,Ur())}if((0,o.kJ)(e)){const t=_t(e);0,e=t}return e=so(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Lt(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):Oi(e)}function Vt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Tt(r,o))}function $t(e,t){if(To){let n=To.provides;const r=To.parent&&To.parent.provides;r===n&&(n=To.provides=Object.create(r)),n[e]=t}else 0}function Ht(e,t,n=!1){const r=To||vt;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function Ut(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gn((()=>{e.isMounted=!0})),xn((()=>{e.isUnmounting=!0})),e}const zt=[Function,Array],Gt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zt,onEnter:zt,onAfterEnter:zt,onEnterCancelled:zt,onBeforeLeave:zt,onLeave:zt,onAfterLeave:zt,onLeaveCancelled:zt,onBeforeAppear:zt,onAppear:zt,onAfterAppear:zt,onAppearCancelled:zt},setup(e,{slots:t}){const n=Io(),r=Ut();let o;return()=>{const i=t.default&&Zt(t.default(),!0);if(!i||!i.length)return;const c=Ve(e),{mode:a}=c;const u=i[0];if(r.isLeaving)return Yt(u);const l=qt(u);if(!l)return Yt(u);const s=Jt(l,c,r,n);Xt(l,s);const f=n.subTree,d=f&&qt(f);let p=!1;const{getTransitionKey:h}=l.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,p=!0)}if(d&&d.type!==Br&&(!Xr(l,d)||p)){const e=Jt(d,c,r,n);if(Xt(d,e),"out-in"===a)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},Yt(u);"in-out"===a&&l.type!==Br&&(e.delayLeave=(e,t,n)=>{const o=Kt(r,d);o[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete s.delayedLeave},s.delayedLeave=n})}return u}}},Wt=Gt;function Kt(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Jt(e,t,n,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:l,onEnterCancelled:s,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,b=String(e.key),x=Kt(n,e),S=(e,t)=>{e&&oi(e,r,9,t)},w={mode:i,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!o)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const i=x[b];i&&Xr(e,i)&&i.el._leaveCb&&i.el._leaveCb(),S(r,[t])},enter(e){let t=u,r=l,i=s;if(!n.isMounted){if(!o)return;t=m||u,r=g||l,i=y||s}let c=!1;const a=e._enterCb=t=>{c||(c=!0,S(t?i:r,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(f,[t]);let i=!1;const c=t._leaveCb=n=>{i||(i=!0,r(),S(n?h:p,[t]),t._leaveCb=void 0,x[o]===e&&delete x[o])};x[o]=e,d?(d(t,c),d.length<=1&&c()):c()},clone(e){return Jt(e,t,n,r)}};return w}function Yt(e){if(rn(e))return e=co(e),e.children=null,e}function qt(e){return rn(e)?e.children?e.children[0]:void 0:e}function Xt(e,t){6&e.shapeFlag&&e.component?Xt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zt(e,t=!1){let n=[],r=0;for(let o=0;o<e.length;o++){const i=e[o];i.type===jr?(128&i.patchFlag&&r++,n=n.concat(Zt(i.children,t))):(t||i.type!==Br)&&n.push(i)}if(r>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Qt(e){return(0,o.mf)(e)?{setup:e,name:e.name}:e}const en=e=>!!e.type.__asyncLoader;function tn(e){(0,o.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:c,suspensible:a=!0,onError:u}=e;let l,s=null,f=0;const d=()=>(f++,s=null,p()),p=()=>{let e;return s||(e=s=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise(((t,n)=>{const r=()=>t(d()),o=()=>n(e);u(e,r,o,f+1)}));throw e})).then((t=>e!==s&&s?s:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Qt({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return l},setup(){const e=To;if(l)return()=>nn(l,e);const t=t=>{s=null,ii(t,e,13,!r)};if(a&&e.suspense||Po)return p().then((t=>()=>nn(t,e))).catch((e=>(t(e),()=>r?ro(r,{error:e}):null)));const o=Ke(!1),u=Ke(),f=Ke(!!i);return i&&setTimeout((()=>{f.value=!1}),i),null!=c&&setTimeout((()=>{if(!o.value&&!u.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),u.value=e}}),c),p().then((()=>{o.value=!0,e.parent&&rn(e.parent.vnode)&&wi(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>o.value&&l?nn(l,e):u.value&&r?ro(r,{error:u.value}):n&&!f.value?ro(n):void 0}})}function nn(e,{vnode:{ref:t,props:n,children:r}}){const o=ro(e,n,r);return o.ref=t,o}const rn=e=>e.type.__isKeepAlive,on={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Io(),r=n.ctx;if(!r.renderer)return t.default;const i=new Map,c=new Set;let a=null;const u=n.suspense,{renderer:{p:l,m:s,um:f,o:{createElement:d}}}=r,p=d("div");function h(e){dn(e),f(e,n,u)}function v(e){i.forEach(((t,n)=>{const r=Ko(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=i.get(e);a&&t.type===a.type?a&&dn(a):h(t),i.delete(e),c.delete(e)}r.activate=(e,t,n,r,i)=>{const c=e.component;s(e,t,n,0,u),l(c.vnode,e,t,n,c,u,r,e.slotScopeIds,i),pr((()=>{c.isDeactivated=!1,c.a&&(0,o.ir)(c.a);const t=e.props&&e.props.onVnodeMounted;t&&vo(t,c.parent,e)}),u)},r.deactivate=e=>{const t=e.component;s(e,p,null,1,u),pr((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&vo(n,t.parent,e),t.isDeactivated=!0}),u)},ji((()=>[e.include,e.exclude]),(([e,t])=>{e&&v((t=>an(e,t))),t&&v((e=>!an(t,e)))}),{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&i.set(g,pn(n.subTree))};return gn(y),bn(y),xn((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=pn(t);if(e.type!==o.type)h(e);else{dn(o);const e=o.component.da;e&&pr(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!qr(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return a=null,r;let o=pn(r);const u=o.type,l=Ko(en(o)?o.type.__asyncResolved||{}:u),{include:s,exclude:f,max:d}=e;if(s&&(!l||!an(s,l))||f&&l&&an(f,l))return a=o,r;const p=null==o.key?u:o.key,h=i.get(p);return o.el&&(o=co(o),128&r.shapeFlag&&(r.ssContent=o)),g=p,h?(o.el=h.el,o.component=h.component,o.transition&&Xt(o,o.transition),o.shapeFlag|=512,c.delete(p),c.add(p)):(c.add(p),d&&c.size>parseInt(d,10)&&m(c.values().next().value)),o.shapeFlag|=256,a=o,r}}},cn=on;function an(e,t){return(0,o.kJ)(e)?e.some((e=>an(e,t))):(0,o.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function un(e,t){sn(e,"a",t)}function ln(e,t){sn(e,"da",t)}function sn(e,t,n=To){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(hn(t,r,n),n){let e=n.parent;while(e&&e.parent)rn(e.parent.vnode)&&fn(r,t,n,e),e=e.parent}}function fn(e,t,n,r){const i=hn(t,e,r,!0);Sn((()=>{(0,o.Od)(r[t],i)}),n)}function dn(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function pn(e){return 128&e.shapeFlag?e.ssContent:e}function hn(e,t,n=To,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;N(),Ao(n);const o=oi(t,n,e,r);return No(),R(),o});return r?o.unshift(i):o.push(i),i}}const vn=e=>(t,n=To)=>(!Po||"sp"===e)&&hn(e,t,n),mn=vn("bm"),gn=vn("m"),yn=vn("bu"),bn=vn("u"),xn=vn("bum"),Sn=vn("um"),wn=vn("sp"),_n=vn("rtg"),En=vn("rtc");function kn(e,t=To){hn("ec",e,t)}let Cn=!0;function On(e){const t=Nn(e),n=e.proxy,r=e.ctx;Cn=!1,t.beforeCreate&&In(t.beforeCreate,e,"bc");const{data:i,computed:c,methods:a,watch:u,provide:l,inject:s,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:v,activated:m,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:x,unmounted:S,render:w,renderTracked:_,renderTriggered:E,errorCaptured:k,serverPrefetch:C,expose:O,inheritAttrs:T,components:I,directives:A,filters:N}=t,M=null;if(s&&Tn(s,r,M,e.appContext.config.unwrapInjectedRef),a)for(const D in a){const e=a[D];(0,o.mf)(e)&&(r[D]=e.bind(n))}if(i){0;const t=i.call(n,n);0,(0,o.Kn)(t)&&(e.data=Me(t))}if(Cn=!0,c)for(const D in c){const e=c[D],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const i=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,a=at({get:t,set:i});Object.defineProperty(r,D,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(u)for(const o in u)An(u[o],r,n,o);if(l){const e=(0,o.mf)(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{$t(t,e[t])}))}function R(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&In(f,e,"c"),R(mn,d),R(gn,p),R(yn,h),R(bn,v),R(un,m),R(ln,g),R(kn,k),R(En,_),R(_n,E),R(xn,b),R(Sn,S),R(wn,C),(0,o.kJ)(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===o.dG&&(e.render=w),null!=T&&(e.inheritAttrs=T),I&&(e.components=I),A&&(e.directives=A)}function Tn(e,t,n=o.dG,r=!1){(0,o.kJ)(e)&&(e=jn(e));for(const i in e){const n=e[i];let c;c=(0,o.Kn)(n)?"default"in n?Ht(n.from||i,n.default,!0):Ht(n.from||i):Ht(n),We(c)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[i]=c}}function In(e,t,n){oi((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function An(e,t,n,r){const i=r.includes(".")?Li(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&ji(i,n)}else if((0,o.mf)(e))ji(i,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>An(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&ji(i,r,e)}else 0}function Nn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,a=i.get(t);let u;return a?u=a:o.length||n||r?(u={},o.length&&o.forEach((e=>Mn(u,e,c,!0))),Mn(u,t,c)):u=t,i.set(t,u),u}function Mn(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Mn(e,i,n,!0),o&&o.forEach((t=>Mn(e,t,n,!0)));for(const c in t)if(r&&"expose"===c);else{const r=Rn[c]||n&&n[c];e[c]=r?r(e[c],t[c]):t[c]}return e}const Rn={data:Dn,props:Bn,emits:Bn,methods:Bn,computed:Bn,beforeCreate:Fn,created:Fn,beforeMount:Fn,mounted:Fn,beforeUpdate:Fn,updated:Fn,beforeDestroy:Fn,beforeUnmount:Fn,destroyed:Fn,unmounted:Fn,activated:Fn,deactivated:Fn,errorCaptured:Fn,serverPrefetch:Fn,components:Bn,directives:Bn,watch:Ln,provide:Dn,inject:Pn};function Dn(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function Pn(e,t){return Bn(jn(e),jn(t))}function jn(e){if((0,o.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bn(e,t){return e?(0,o.l7)((0,o.l7)(Object.create(null),e),t):t}function Ln(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const r in t)n[r]=Fn(e[r],t[r]);return n}function Vn(e,t,n,r=!1){const i={},c={};(0,o.Nj)(c,Qr,1),e.propsDefaults=Object.create(null),Hn(e,t,i,c);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:Re(i):e.type.props?e.props=i:e.props=c,e.attrs=c}function $n(e,t,n,r){const{props:i,attrs:c,vnode:{patchFlag:a}}=e,u=Ve(i),[l]=e.propsOptions;let s=!1;if(!(r||a>0)||16&a){let r;Hn(e,t,i,c)&&(s=!0);for(const c in u)t&&((0,o.RI)(t,c)||(r=(0,o.rs)(c))!==c&&(0,o.RI)(t,r))||(l?!n||void 0===n[c]&&void 0===n[r]||(i[c]=Un(l,u,c,void 0,e,!0)):delete i[c]);if(c!==u)for(const e in c)t&&(0,o.RI)(t,e)||(delete c[e],s=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];const f=t[a];if(l)if((0,o.RI)(c,a))f!==c[a]&&(c[a]=f,s=!0);else{const t=(0,o._A)(a);i[t]=Un(l,u,t,f,e,!1)}else f!==c[a]&&(c[a]=f,s=!0)}}s&&F(e,"set","$attrs")}function Hn(e,t,n,r){const[i,c]=e.propsOptions;let a,u=!1;if(t)for(let l in t){if((0,o.Gg)(l))continue;const s=t[l];let f;i&&(0,o.RI)(i,f=(0,o._A)(l))?c&&c.includes(f)?(a||(a={}))[f]=s:n[f]=s:ht(e.emitsOptions,l)||l in r&&s===r[l]||(r[l]=s,u=!0)}if(c){const t=Ve(n),r=a||o.kT;for(let a=0;a<c.length;a++){const u=c[a];n[u]=Un(i,t,u,r[u],e,!(0,o.RI)(r,u))}}return u}function Un(e,t,n,r,i,c){const a=e[n];if(null!=a){const e=(0,o.RI)(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&(0,o.mf)(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Ao(i),r=o[n]=e.call(null,t),No())}else r=e}a[0]&&(c&&!e?r=!1:!a[1]||""!==r&&r!==(0,o.rs)(n)||(r=!0))}return r}function zn(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const c=e.props,a={},u=[];let l=!1;if(!(0,o.mf)(e)){const r=e=>{l=!0;const[n,r]=zn(e,t,!0);(0,o.l7)(a,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!c&&!l)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(c))for(let f=0;f<c.length;f++){0;const e=(0,o._A)(c[f]);Gn(e)&&(a[e]=o.kT)}else if(c){0;for(const e in c){const t=(0,o._A)(e);if(Gn(t)){const n=c[e],r=a[t]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:n;if(r){const e=Jn(Boolean,r.type),n=Jn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,o.RI)(r,"default"))&&u.push(t)}}}}const s=[a,u];return r.set(e,s),s}function Gn(e){return"$"!==e[0]}function Wn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Kn(e,t){return Wn(e)===Wn(t)}function Jn(e,t){return(0,o.kJ)(t)?t.findIndex((t=>Kn(t,e))):(0,o.mf)(t)&&Kn(t,e)?0:-1}const Yn=e=>"_"===e[0]||"$stable"===e,qn=e=>(0,o.kJ)(e)?e.map(so):[so(e)],Xn=(e,t,n)=>{const r=St(((...e)=>qn(t(...e))),n);return r._c=!1,r},Zn=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Yn(i))continue;const n=e[i];if((0,o.mf)(n))t[i]=Xn(i,n,r);else if(null!=n){0;const e=qn(n);t[i]=()=>e}}},Qn=(e,t)=>{const n=qn(t);e.slots.default=()=>n},er=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ve(t),(0,o.Nj)(t,"_",n)):Zn(t,e.slots={})}else e.slots={},t&&Qn(e,t);(0,o.Nj)(e.slots,Qr,1)},tr=(e,t,n)=>{const{vnode:r,slots:i}=e;let c=!0,a=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?c=!1:((0,o.l7)(i,t),n||1!==e||delete i._):(c=!t.$stable,Zn(t,i)),a=t}else t&&(Qn(e,t),a={default:1});if(c)for(const o in i)Yn(o)||o in a||delete i[o]};function nr(e,t){const n=vt;if(null===n)return e;const r=n.proxy,i=e.dirs||(e.dirs=[]);for(let c=0;c<t.length;c++){let[e,n,a,u=o.kT]=t[c];(0,o.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&Vi(n),i.push({dir:e,instance:r,value:n,oldValue:void 0,arg:a,modifiers:u})}return e}function rr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let c=0;c<o.length;c++){const a=o[c];i&&(a.oldValue=i[c].value);let u=a.dir[r];u&&(N(),oi(u,n,8,[e.el,a,e,t]),R())}}function or(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ir=0;function cr(e,t){return function(n,r=null){null==r||(0,o.Kn)(r)||(r=null);const i=or(),c=new Set;let a=!1;const u=i.app={_uid:ir++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:rc,get config(){return i.config},set config(e){0},use(e,...t){return c.has(e)||(e&&(0,o.mf)(e.install)?(c.add(e),e.install(u,...t)):(0,o.mf)(e)&&(c.add(e),e(u,...t))),u},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),u},component(e,t){return t?(i.components[e]=t,u):i.components[e]},directive(e,t){return t?(i.directives[e]=t,u):i.directives[e]},mount(o,c,l){if(!a){const s=ro(n,r);return s.appContext=i,c&&t?t(s,o):e(s,o,l),a=!0,u._container=o,o.__vue_app__=u,zo(s.component)||s.component.proxy}},unmount(){a&&(e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return i.provides[e]=t,u}};return u}}function ar(e,t,n,r,i=!1){if((0,o.kJ)(e))return void e.forEach(((e,c)=>ar(e,t&&((0,o.kJ)(t)?t[c]:t),n,r,i)));if(en(r)&&!i)return;const c=4&r.shapeFlag?zo(r.component)||r.component.proxy:r.el,a=i?null:c,{i:u,r:l}=e;const s=t&&t.r,f=u.refs===o.kT?u.refs={}:u.refs,d=u.setupState;if(null!=s&&s!==l&&((0,o.HD)(s)?(f[s]=null,(0,o.RI)(d,s)&&(d[s]=null)):We(s)&&(s.value=null)),(0,o.mf)(l))ri(l,u,12,[a,f]);else{const t=(0,o.HD)(l),r=We(l);if(t||r){const r=()=>{if(e.f){const n=t?f[l]:l.value;i?(0,o.kJ)(n)&&(0,o.Od)(n,c):(0,o.kJ)(n)?n.includes(c)||n.push(c):t?f[l]=[c]:(l.value=[c],e.k&&(f[e.k]=l.value))}else t?(f[l]=a,(0,o.RI)(d,l)&&(d[l]=a)):We(l)&&(l.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,pr(r,n)):r()}else 0}}let ur=!1;const lr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,sr=e=>8===e.nodeType;function fr(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:i,parentNode:c,remove:a,insert:u,createComment:l}}=e,s=(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void Ii();ur=!1,f(t.firstChild,e,null,null,null),Ii(),ur&&console.error("Hydration completed but contains mismatches.")},f=(n,r,o,a,u,l=!1)=>{const s=sr(n)&&"["===n.data,g=()=>v(n,r,o,a,u,s),{type:y,ref:b,shapeFlag:x}=r,S=n.nodeType;r.el=n;let w=null;switch(y){case Fr:3!==S?w=g():(n.data!==r.children&&(ur=!0,n.data=r.children),w=i(n));break;case Br:w=8!==S||s?g():i(n);break;case Lr:if(1===S){w=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=w.outerHTML),t===r.staticCount-1&&(r.anchor=w),w=i(w);return w}w=g();break;case jr:w=s?h(n,r,o,a,u,l):g();break;default:if(1&x)w=1!==S||r.type.toLowerCase()!==n.tagName.toLowerCase()?g():d(n,r,o,a,u,l);else if(6&x){r.slotScopeIds=u;const e=c(n);if(t(r,e,null,o,a,lr(e),l),w=s?m(n):i(n),en(r)){let t;s?(t=ro(jr),t.anchor=w?w.previousSibling:e.lastChild):t=3===n.nodeType?ao(""):ro("div"),t.el=n,r.component.subTree=t}}else 64&x?w=8!==S?g():r.type.hydrate(n,r,o,a,u,l,e,p):128&x&&(w=r.type.hydrate(n,r,o,a,lr(c(n)),u,l,e,f))}return null!=b&&ar(b,null,a,r),w},d=(e,t,n,i,c,u)=>{u=u||!!t.dynamicChildren;const{type:l,props:s,patchFlag:f,shapeFlag:d,dirs:h}=t,v="input"===l&&h||"option"===l;if(v||-1!==f){if(h&&rr(t,null,n,"created"),s)if(v||!u||48&f)for(const t in s)(v&&t.endsWith("value")||(0,o.F7)(t)&&!(0,o.Gg)(t))&&r(e,t,null,s[t],!1,void 0,n);else s.onClick&&r(e,"onClick",null,s.onClick,!1,void 0,n);let l;if((l=s&&s.onVnodeBeforeMount)&&vo(l,n,t),h&&rr(t,null,n,"beforeMount"),((l=s&&s.onVnodeMounted)||h)&&Lt((()=>{l&&vo(l,n,t),h&&rr(t,null,n,"mounted")}),i),16&d&&(!s||!s.innerHTML&&!s.textContent)){let r=p(e.firstChild,t,e,n,i,c,u);while(r){ur=!0;const e=r;r=r.nextSibling,a(e)}}else 8&d&&e.textContent!==t.children&&(ur=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,c,a)=>{a=a||!!t.dynamicChildren;const u=t.children,l=u.length;for(let s=0;s<l;s++){const t=a?u[s]:u[s]=so(u[s]);if(e)e=f(e,t,o,i,c,a);else{if(t.type===Fr&&!t.children)continue;ur=!0,n(null,t,r,null,o,i,lr(r),c)}}return e},h=(e,t,n,r,o,a)=>{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const f=c(e),d=p(i(e),t,f,n,r,o,a);return d&&sr(d)&&"]"===d.data?i(t.anchor=d):(ur=!0,u(t.anchor=l("]"),f,d),d)},v=(e,t,r,o,u,l)=>{if(ur=!0,t.el=null,l){const t=m(e);while(1){const n=i(e);if(!n||n===t)break;a(n)}}const s=i(e),f=c(e);return a(e),n(null,t,f,s,r,o,lr(f),u),s},m=e=>{let t=0;while(e)if(e=i(e),e&&sr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[s,f]}function dr(){}const pr=Lt;function hr(e){return mr(e)}function vr(e){return mr(e,fr)}function mr(e,t){dr();const n=(0,o.E9)();n.__VUE__=!0;const{insert:r,remove:i,patchProp:c,createElement:a,createText:u,createComment:l,setText:s,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=o.dG,cloneNode:v,insertStaticContent:m}=e,g=(e,t,n,r=null,o=null,i=null,c=!1,a=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!Xr(e,t)&&(r=J(e),U(e,o,i,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:l,ref:s,shapeFlag:f}=t;switch(l){case Fr:y(e,t,n,r);break;case Br:b(e,t,n,r);break;case Lr:null==e&&x(t,n,r,c);break;case jr:M(e,t,n,r,o,i,c,a,u);break;default:1&f?_(e,t,n,r,o,i,c,a,u):6&f?D(e,t,n,r,o,i,c,a,u):(64&f||128&f)&&l.process(e,t,n,r,o,i,c,a,u,q)}null!=s&&o&&ar(s,e&&e.ref,i,t||e,!t)},y=(e,t,n,o)=>{if(null==e)r(t.el=u(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&s(n,t.children)}},b=(e,t,n,o)=>{null==e?r(t.el=l(t.children||""),n,o):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r)},S=({el:e,anchor:t},n,o)=>{let i;while(e&&e!==t)i=p(e),r(e,n,o),e=i;r(t,n,o)},w=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=p(e),i(e),e=n;i(t)},_=(e,t,n,r,o,i,c,a,u)=>{c=c||"svg"===t.type,null==e?E(t,n,r,o,i,c,a,u):T(e,t,o,i,c,a,u)},E=(e,t,n,i,u,l,s,d)=>{let p,h;const{type:m,props:g,shapeFlag:y,transition:b,patchFlag:x,dirs:S}=e;if(e.el&&void 0!==v&&-1===x)p=e.el=v(e.el);else{if(p=e.el=a(e.type,l,g&&g.is,g),8&y?f(p,e.children):16&y&&O(e.children,p,null,i,u,l&&"foreignObject"!==m,s,d),S&&rr(e,null,i,"created"),g){for(const t in g)"value"===t||(0,o.Gg)(t)||c(p,t,null,g[t],l,e.children,i,u,K);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&vo(h,i,e)}C(p,e,e.scopeId,s,i)}S&&rr(e,null,i,"beforeMount");const w=(!u||u&&!u.pendingBranch)&&b&&!b.persisted;w&&b.beforeEnter(p),r(p,t,n),((h=g&&g.onVnodeMounted)||w||S)&&pr((()=>{h&&vo(h,i,e),w&&b.enter(p),S&&rr(e,null,i,"mounted")}),u)},C=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let i=0;i<r.length;i++)h(e,r[i]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;C(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},O=(e,t,n,r,o,i,c,a,u=0)=>{for(let l=u;l<e.length;l++){const u=e[l]=a?fo(e[l]):so(e[l]);g(null,u,t,n,r,o,i,c,a)}},T=(e,t,n,r,i,a,u)=>{const l=t.el=e.el;let{patchFlag:s,dynamicChildren:d,dirs:p}=t;s|=16&e.patchFlag;const h=e.props||o.kT,v=t.props||o.kT;let m;n&&gr(n,!1),(m=v.onVnodeBeforeUpdate)&&vo(m,n,t,e),p&&rr(t,e,n,"beforeUpdate"),n&&gr(n,!0);const g=i&&"foreignObject"!==t.type;if(d?I(e.dynamicChildren,d,l,n,r,g,a):u||L(e,t,l,null,n,r,g,a,!1),s>0){if(16&s)A(l,t,h,v,n,r,i);else if(2&s&&h.class!==v.class&&c(l,"class",null,v.class,i),4&s&&c(l,"style",h.style,v.style,i),8&s){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const a=o[t],u=h[a],s=v[a];s===u&&"value"!==a||c(l,a,u,s,i,e.children,n,r,K)}}1&s&&e.children!==t.children&&f(l,t.children)}else u||null!=d||A(l,t,h,v,n,r,i);((m=v.onVnodeUpdated)||p)&&pr((()=>{m&&vo(m,n,t,e),p&&rr(t,e,n,"updated")}),r)},I=(e,t,n,r,o,i,c)=>{for(let a=0;a<t.length;a++){const u=e[a],l=t[a],s=u.el&&(u.type===jr||!Xr(u,l)||70&u.shapeFlag)?d(u.el):n;g(u,l,s,null,r,o,i,c,!0)}},A=(e,t,n,r,i,a,u)=>{if(n!==r){for(const l in r){if((0,o.Gg)(l))continue;const s=r[l],f=n[l];s!==f&&"value"!==l&&c(e,l,f,s,u,t.children,i,a,K)}if(n!==o.kT)for(const l in n)(0,o.Gg)(l)||l in r||c(e,l,n[l],null,u,t.children,i,a,K);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,o,i,c,a,l,s)=>{const f=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;v&&(l=l?l.concat(v):v),null==e?(r(f,n,o),r(d,n,o),O(t.children,n,d,i,c,a,l,s)):p>0&&64&p&&h&&e.dynamicChildren?(I(e.dynamicChildren,h,n,i,c,a,l),(null!=t.key||i&&t===i.subTree)&&yr(e,t,!0)):L(e,t,n,d,i,c,a,l,s)},D=(e,t,n,r,o,i,c,a,u)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,c,u):P(t,n,r,o,i,c,u):j(e,t,u)},P=(e,t,n,r,o,i,c)=>{const a=e.component=Oo(e,r,o);if(rn(e)&&(a.ctx.renderer=q),jo(a),a.asyncDep){if(o&&o.registerDep(a,F),!e.el){const e=a.subTree=ro(Br);b(null,e,t,n)}}else F(a,e,t,n,o,i,c)},j=(e,t,n)=>{const r=t.component=e.component;if(Ct(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void B(r,t,n);r.next=t,Ei(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},F=(e,t,n,r,i,c,a)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:r,u:u,parent:l,vnode:s}=e,f=n;0,gr(e,!1),n?(n.el=s.el,B(e,n,a)):n=s,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&vo(t,l,n,s),gr(e,!0);const p=wt(e);0;const h=e.subTree;e.subTree=p,g(h,p,d(h.el),J(h),e,i,c),n.el=p.el,null===f&&Tt(e,p.el),u&&pr(u,i),(t=n.props&&n.props.onVnodeUpdated)&&pr((()=>vo(t,l,n,s)),i)}else{let a;const{el:u,props:l}=t,{bm:s,m:f,parent:d}=e,p=en(t);if(gr(e,!1),s&&(0,o.ir)(s),!p&&(a=l&&l.onVnodeBeforeMount)&&vo(a,d,t),gr(e,!0),u&&Z){const n=()=>{e.subTree=wt(e),Z(u,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const o=e.subTree=wt(e);0,g(null,o,n,r,e,i,c),t.el=o.el}if(f&&pr(f,i),!p&&(a=l&&l.onVnodeMounted)){const e=t;pr((()=>vo(a,d,e)),i)}256&t.shapeFlag&&e.a&&pr(e.a,i),e.isMounted=!0,t=n=r=null}},l=e.effect=new k(u,(()=>wi(e.update)),e.scope),s=e.update=l.run.bind(l);s.id=e.uid,gr(e,!0),s()},B=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,$n(e,t.props,r,n),tr(e,t.children,n),N(),Ti(void 0,e.update),R()},L=(e,t,n,r,o,i,c,a,u=!1)=>{const l=e&&e.children,s=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void $(l,d,n,r,o,i,c,a,u);if(256&p)return void V(l,d,n,r,o,i,c,a,u)}8&h?(16&s&&K(l,o,i),d!==l&&f(n,d)):16&s?16&h?$(l,d,n,r,o,i,c,a,u):K(l,o,i,!0):(8&s&&f(n,""),16&h&&O(d,n,r,o,i,c,a,u))},V=(e,t,n,r,i,c,a,u,l)=>{e=e||o.Z6,t=t||o.Z6;const s=e.length,f=t.length,d=Math.min(s,f);let p;for(p=0;p<d;p++){const r=t[p]=l?fo(t[p]):so(t[p]);g(e[p],r,n,null,i,c,a,u,l)}s>f?K(e,i,c,!0,!1,d):O(t,n,r,i,c,a,u,l,d)},$=(e,t,n,r,i,c,a,u,l)=>{let s=0;const f=t.length;let d=e.length-1,p=f-1;while(s<=d&&s<=p){const r=e[s],o=t[s]=l?fo(t[s]):so(t[s]);if(!Xr(r,o))break;g(r,o,n,null,i,c,a,u,l),s++}while(s<=d&&s<=p){const r=e[d],o=t[p]=l?fo(t[p]):so(t[p]);if(!Xr(r,o))break;g(r,o,n,null,i,c,a,u,l),d--,p--}if(s>d){if(s<=p){const e=p+1,o=e<f?t[e].el:r;while(s<=p)g(null,t[s]=l?fo(t[s]):so(t[s]),n,o,i,c,a,u,l),s++}}else if(s>p)while(s<=d)U(e[s],i,c,!0),s++;else{const h=s,v=s,m=new Map;for(s=v;s<=p;s++){const e=t[s]=l?fo(t[s]):so(t[s]);null!=e.key&&m.set(e.key,s)}let y,b=0;const x=p-v+1;let S=!1,w=0;const _=new Array(x);for(s=0;s<x;s++)_[s]=0;for(s=h;s<=d;s++){const r=e[s];if(b>=x){U(r,i,c,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(y=v;y<=p;y++)if(0===_[y-v]&&Xr(r,t[y])){o=y;break}void 0===o?U(r,i,c,!0):(_[o-v]=s+1,o>=w?w=o:S=!0,g(r,t[o],n,null,i,c,a,u,l),b++)}const E=S?br(_):o.Z6;for(y=E.length-1,s=x-1;s>=0;s--){const e=v+s,o=t[e],d=e+1<f?t[e+1].el:r;0===_[s]?g(null,o,n,d,i,c,a,u,l):S&&(y<0||s!==E[y]?H(o,n,d,2):y--)}}},H=(e,t,n,o,i=null)=>{const{el:c,type:a,transition:u,children:l,shapeFlag:s}=e;if(6&s)return void H(e.component.subTree,t,n,o);if(128&s)return void e.suspense.move(t,n,o);if(64&s)return void a.move(e,t,n,q);if(a===jr){r(c,t,n);for(let e=0;e<l.length;e++)H(l[e],t,n,o);return void r(e.anchor,t,n)}if(a===Lr)return void S(e,t,n);const f=2!==o&&1&s&&u;if(f)if(0===o)u.beforeEnter(c),r(c,t,n),pr((()=>u.enter(c)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=u,a=()=>r(c,t,n),l=()=>{e(c,(()=>{a(),i&&i()}))};o?o(c,a,l):l()}else r(c,t,n)},U=(e,t,n,r=!1,o=!1)=>{const{type:i,props:c,ref:a,children:u,dynamicChildren:l,shapeFlag:s,patchFlag:f,dirs:d}=e;if(null!=a&&ar(a,null,n,e,!0),256&s)return void t.ctx.deactivate(e);const p=1&s&&d,h=!en(e);let v;if(h&&(v=c&&c.onVnodeBeforeUnmount)&&vo(v,t,e),6&s)W(e.component,n,r);else{if(128&s)return void e.suspense.unmount(n,r);p&&rr(e,null,t,"beforeUnmount"),64&s?e.type.remove(e,t,n,o,q,r):l&&(i!==jr||f>0&&64&f)?K(l,t,n,!1,!0):(i===jr&&384&f||!o&&16&s)&&K(u,t,n),r&&z(e)}(h&&(v=c&&c.onVnodeUnmounted)||p)&&pr((()=>{v&&vo(v,t,e),p&&rr(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===jr)return void G(n,r);if(t===Lr)return void w(e);const c=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,c);r?r(e.el,c,i):i()}else c()},G=(e,t)=>{let n;while(e!==t)n=p(e),i(e),e=n;i(t)},W=(e,t,n)=>{const{bum:r,scope:i,update:c,subTree:a,um:u}=e;r&&(0,o.ir)(r),i.stop(),c&&(c.active=!1,U(a,e,t,n)),u&&pr(u,t),pr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,r=!1,o=!1,i=0)=>{for(let c=i;c<e.length;c++)U(e[c],t,n,r,o)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Ii(),t._vnode=e},q={p:g,um:U,m:H,r:z,mt:P,mc:O,pc:L,pbc:I,n:J,o:e};let X,Z;return t&&([X,Z]=t(q)),{render:Y,hydrate:X,createApp:cr(Y,X)}}function gr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yr(e,t,n=!1){const r=e.children,i=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let o=0;o<r.length;o++){const e=r[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=fo(i[o]),t.el=e.el),n||yr(e,t))}}function br(e){const t=e.slice(),n=[0];let r,o,i,c,a;const u=e.length;for(r=0;r<u;r++){const u=e[r];if(0!==u){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}i=0,c=n.length-1;while(i<c)a=i+c>>1,e[n[a]]<u?i=a+1:c=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,c=n[i-1];while(i-- >0)n[i]=c,c=t[c];return n}const xr=e=>e.__isTeleport,Sr=e=>e&&(e.disabled||""===e.disabled),wr=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,_r=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n},Er={__isTeleport:!0,process(e,t,n,r,o,i,c,a,u,l){const{mc:s,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:v,createComment:m}}=l,g=Sr(t.props);let{shapeFlag:y,children:b,dynamicChildren:x}=t;if(null==e){const e=t.el=v(""),l=t.anchor=v("");p(e,n,r),p(l,n,r);const f=t.target=_r(t.props,h),d=t.targetAnchor=v("");f&&(p(d,f),c=c||wr(f));const m=(e,t)=>{16&y&&s(b,e,t,o,i,c,a,u)};g?m(n,l):f&&m(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,s=t.target=e.target,p=t.targetAnchor=e.targetAnchor,v=Sr(e.props),m=v?n:s,y=v?r:p;if(c=c||wr(s),x?(d(e.dynamicChildren,x,m,o,i,c,a),yr(e,t,!0)):u||f(e,t,m,y,o,i,c,a,!1),g)v||kr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=_r(t.props,h);e&&kr(t,e,null,l,0)}else v&&kr(t,s,p,l,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},c){const{shapeFlag:a,children:u,anchor:l,targetAnchor:s,target:f,props:d}=e;if(f&&i(s),(c||!Sr(d))&&(i(l),16&a))for(let p=0;p<u.length;p++){const e=u[p];o(e,t,n,!0,!!e.dynamicChildren)}},move:kr,hydrate:Cr};function kr(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:c,anchor:a,shapeFlag:u,children:l,props:s}=e,f=2===i;if(f&&r(c,t,n),(!f||Sr(s))&&16&u)for(let d=0;d<l.length;d++)o(l[d],t,n,2);f&&r(a,t,n)}function Cr(e,t,n,r,o,i,{o:{nextSibling:c,parentNode:a,querySelector:u}},l){const s=t.target=_r(t.props,u);if(s){const u=s._lpa||s.firstChild;16&t.shapeFlag&&(Sr(t.props)?(t.anchor=l(c(e),t,a(e),n,r,o,i),t.targetAnchor=u):(t.anchor=c(e),t.targetAnchor=l(u,t,s,n,r,o,i)),s._lpa=t.targetAnchor&&c(t.targetAnchor))}return t.anchor&&c(t.anchor)}const Or=Er,Tr="components",Ir="directives";function Ar(e,t){return Dr(Tr,e,!0,t)||e}const Nr=Symbol();function Mr(e){return(0,o.HD)(e)?Dr(Tr,e,!1)||e:e||Nr}function Rr(e){return Dr(Ir,e)}function Dr(e,t,n=!0,r=!1){const i=vt||To;if(i){const n=i.type;if(e===Tr){const e=Ko(n);if(e&&(e===t||e===(0,o._A)(t)||e===(0,o.kC)((0,o._A)(t))))return n}const c=Pr(i[e]||n[e],t)||Pr(i.appContext[e],t);return!c&&r?n:c}}function Pr(e,t){return e&&(e[t]||e[(0,o._A)(t)]||e[(0,o.kC)((0,o._A)(t))])}const jr=Symbol(void 0),Fr=Symbol(void 0),Br=Symbol(void 0),Lr=Symbol(void 0),Vr=[];let $r=null;function Hr(e=!1){Vr.push($r=e?null:[])}function Ur(){Vr.pop(),$r=Vr[Vr.length-1]||null}let zr,Gr=1;function Wr(e){Gr+=e}function Kr(e){return e.dynamicChildren=Gr>0?$r||o.Z6:null,Ur(),Gr>0&&$r&&$r.push(e),e}function Jr(e,t,n,r,o,i){return Kr(no(e,t,n,r,o,i,!0))}function Yr(e,t,n,r,o){return Kr(ro(e,t,n,r,o,!0))}function qr(e){return!!e&&!0===e.__v_isVNode}function Xr(e,t){return e.type===t.type&&e.key===t.key}function Zr(e){zr=e}const Qr="__vInternal",eo=({key:e})=>null!=e?e:null,to=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||We(e)||(0,o.mf)(e)?{i:vt,r:e,k:t,f:!!n}:e:null;function no(e,t=null,n=null,r=0,i=null,c=(e===jr?0:1),a=!1,u=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eo(t),ref:t&&to(t),scopeId:mt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return u?(po(l,n),128&c&&e.normalize(l)):n&&(l.shapeFlag|=(0,o.HD)(n)?8:16),Gr>0&&!a&&$r&&(l.patchFlag>0||6&c)&&32!==l.patchFlag&&$r.push(l),l}const ro=oo;function oo(e,t=null,n=null,r=0,i=null,c=!1){if(e&&e!==Nr||(e=Br),qr(e)){const r=co(e,t,!0);return n&&po(r,n),r}if(Yo(e)&&(e=e.__vccOpts),t){t=io(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&(Le(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const a=(0,o.HD)(e)?1:It(e)?128:xr(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return no(e,t,n,r,i,a,c,!0)}function io(e){return e?Le(e)||Qr in e?(0,o.l7)({},e):e:null}function co(e,t,n=!1){const{props:r,ref:i,patchFlag:c,children:a}=e,u=t?ho(r||{},t):r,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&eo(u),ref:t&&t.ref?n&&i?(0,o.kJ)(i)?i.concat(to(t)):[i,to(t)]:to(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==jr?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&co(e.ssContent),ssFallback:e.ssFallback&&co(e.ssFallback),el:e.el,anchor:e.anchor};return l}function ao(e=" ",t=0){return ro(Fr,null,e,t)}function uo(e,t){const n=ro(Lr,null,e);return n.staticCount=t,n}function lo(e="",t=!1){return t?(Hr(),Yr(Br,null,e)):ro(Br,null,e)}function so(e){return null==e||"boolean"===typeof e?ro(Br):(0,o.kJ)(e)?ro(jr,null,e.slice()):"object"===typeof e?fo(e):ro(Fr,null,String(e))}function fo(e){return null===e.el||e.memo?e:co(e)}function po(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Qr in t?3===r&&vt&&(1===vt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=vt}}else(0,o.mf)(t)?(t={default:t,_ctx:vt},n=32):(t=String(t),64&r?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function ho(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.C_)([t.class,r.class]));else if("style"===e)t.style=(0,o.j5)([t.style,r.style]);else if((0,o.F7)(e)){const n=t[e],i=r[e];n===i||(0,o.kJ)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function vo(e,t,n,r=null){oi(e,t,7,[n,r])}function mo(e,t,n,r){let i;const c=n&&n[r];if((0,o.kJ)(e)||(0,o.HD)(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,c&&c[n])}else if("number"===typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,c&&c[n])}else if((0,o.Kn)(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,c&&c[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,c&&c[r])}}else i=[];return n&&(n[r]=i),i}function go(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.kJ)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e}function yo(e,t,n={},r,o){if(vt.isCE)return ro("slot","default"===t?null:{name:t},r&&r());let i=e[t];i&&i._c&&(i._d=!1),Hr();const c=i&&bo(i(n)),a=Yr(jr,{key:n.key||`_${t}`},c||(r?r():[]),c&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function bo(e){return e.some((e=>!qr(e)||e.type!==Br&&!(e.type===jr&&!bo(e.children))))?e:null}function xo(e){const t={};for(const n in e)t[(0,o.hR)(n)]=e[n];return t}const So=e=>e?Mo(e)?zo(e)||e.proxy:So(e.parent):null,wo=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>Nn(e),$forceUpdate:e=>()=>wi(e.update),$nextTick:e=>xi.bind(e.proxy),$watch:e=>Bi.bind(e)}),_o={get({_:e},t){const{ctx:n,setupState:r,data:i,props:c,accessCache:a,type:u,appContext:l}=e;let s;if("$"!==t[0]){const u=a[t];if(void 0!==u)switch(u){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return c[t]}else{if(r!==o.kT&&(0,o.RI)(r,t))return a[t]=1,r[t];if(i!==o.kT&&(0,o.RI)(i,t))return a[t]=2,i[t];if((s=e.propsOptions[0])&&(0,o.RI)(s,t))return a[t]=3,c[t];if(n!==o.kT&&(0,o.RI)(n,t))return a[t]=4,n[t];Cn&&(a[t]=0)}}const f=wo[t];let d,p;return f?("$attrs"===t&&D(e,"get",t),f(e)):(d=u.__cssModules)&&(d=d[t])?d:n!==o.kT&&(0,o.RI)(n,t)?(a[t]=4,n[t]):(p=l.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:c}=e;if(i!==o.kT&&(0,o.RI)(i,t))i[t]=n;else if(r!==o.kT&&(0,o.RI)(r,t))r[t]=n;else if((0,o.RI)(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(c[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:c}},a){let u;return!!n[a]||e!==o.kT&&(0,o.RI)(e,a)||t!==o.kT&&(0,o.RI)(t,a)||(u=c[0])&&(0,o.RI)(u,a)||(0,o.RI)(r,a)||(0,o.RI)(wo,a)||(0,o.RI)(i.config.globalProperties,a)}};const Eo=(0,o.l7)({},_o,{get(e,t){if(t!==Symbol.unscopables)return _o.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!(0,o.e1)(t);return n}});const ko=or();let Co=0;function Oo(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ko,c={uid:Co++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new a(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zn(r,i),emitsOptions:pt(r,i),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:r.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=dt.bind(null,c),e.ce&&e.ce(c),c}let To=null;const Io=()=>To||vt,Ao=e=>{To=e,e.scope.on()},No=()=>{To&&To.scope.off(),To=null};function Mo(e){return 4&e.vnode.shapeFlag}let Ro,Do,Po=!1;function jo(e,t=!1){Po=t;const{props:n,children:r}=e.vnode,o=Mo(e);Vn(e,n,o,t),er(e,r);const i=o?Fo(e,t):void 0;return Po=!1,i}function Fo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$e(new Proxy(e.ctx,_o));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Uo(e):null;Ao(e),N();const i=ri(r,e,0,[e.props,n]);if(R(),No(),(0,o.tI)(i)){if(i.then(No,No),t)return i.then((n=>{Bo(e,n,t)})).catch((t=>{ii(t,e,0)}));e.asyncDep=i}else Bo(e,i,t)}else $o(e,t)}function Bo(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=et(t)),$o(e,n)}function Lo(e){Ro=e,Do=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eo))}}const Vo=()=>!Ro;function $o(e,t,n){const r=e.type;if(!e.render){if(!t&&Ro&&!r.render){const t=r.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:a}=r,u=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:c},i),a);r.render=Ro(t,u)}}e.render=r.render||o.dG,Do&&Do(e)}Ao(e),N(),On(e),R(),No()}function Ho(e){return new Proxy(e.attrs,{get(t,n){return D(e,"get","$attrs"),t[n]}})}function Uo(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Ho(e))},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(et($e(e.exposed)),{get(t,n){return n in t?t[n]:n in wo?wo[n](e):void 0}}))}const Go=/(?:^|[-_])(\w)/g,Wo=e=>e.replace(Go,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Ko(e){return(0,o.mf)(e)&&e.displayName||e.name}function Jo(e,t,n=!1){let r=Ko(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Wo(r):n?"App":"Anonymous"}function Yo(e){return(0,o.mf)(e)&&"__vccOpts"in e}const qo=[];function Xo(e,...t){N();const n=qo.length?qo[qo.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Zo();if(r)ri(r,n,11,[e+t.join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Jo(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...Qo(o)),console.warn(...n)}R()}function Zo(){let e=qo[qo.length-1];if(!e)return[];const t=[];while(e){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Qo(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...ei(e))})),t}function ei({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Jo(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...ti(e.props),i]:[o+i]}function ti(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...ni(n,e[n]))})),n.length>3&&t.push(" ..."),t}function ni(e,t,n){return(0,o.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"===typeof t||"boolean"===typeof t||null==t?n?t:[`${e}=${t}`]:We(t)?(t=ni(e,Ve(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ve(t),n?t:[`${e}=`,t])}function ri(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){ii(i,t,n)}return o}function oi(e,t,n,r){if((0,o.mf)(e)){const i=ri(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{ii(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(oi(e[o],t,n,r));return i}function ii(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const c=t.appContext.config.errorHandler;if(c)return void ri(c,null,10,[e,o,i])}ci(e,n,o,r)}function ci(e,t,n,r=!0){console.error(e)}let ai=!1,ui=!1;const li=[];let si=0;const fi=[];let di=null,pi=0;const hi=[];let vi=null,mi=0;const gi=Promise.resolve();let yi=null,bi=null;function xi(e){const t=yi||gi;return e?t.then(this?e.bind(this):e):t}function Si(e){let t=si+1,n=li.length;while(t<n){const r=t+n>>>1,o=Ai(li[r]);o<e?t=r+1:n=r}return t}function wi(e){li.length&&li.includes(e,ai&&e.allowRecurse?si+1:si)||e===bi||(null==e.id?li.push(e):li.splice(Si(e.id),0,e),_i())}function _i(){ai||ui||(ui=!0,yi=gi.then(Ni))}function Ei(e){const t=li.indexOf(e);t>si&&li.splice(t,1)}function ki(e,t,n,r){(0,o.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),_i()}function Ci(e){ki(e,di,fi,pi)}function Oi(e){ki(e,vi,hi,mi)}function Ti(e,t=null){if(fi.length){for(bi=t,di=[...new Set(fi)],fi.length=0,pi=0;pi<di.length;pi++)di[pi]();di=null,pi=0,bi=null,Ti(e,t)}}function Ii(e){if(hi.length){const e=[...new Set(hi)];if(hi.length=0,vi)return void vi.push(...e);for(vi=e,vi.sort(((e,t)=>Ai(e)-Ai(t))),mi=0;mi<vi.length;mi++)vi[mi]();vi=null,mi=0}}const Ai=e=>null==e.id?1/0:e.id;function Ni(e){ui=!1,ai=!0,Ti(e),li.sort(((e,t)=>Ai(e)-Ai(t)));o.dG;try{for(si=0;si<li.length;si++){const e=li[si];e&&!1!==e.active&&ri(e,null,14)}}finally{si=0,li.length=0,Ii(e),ai=!1,yi=null,(li.length||fi.length||hi.length)&&Ni(e)}}function Mi(e,t){return Fi(e,null,t)}function Ri(e,t){return Fi(e,null,{flush:"post"})}function Di(e,t){return Fi(e,null,{flush:"sync"})}const Pi={};function ji(e,t,n){return Fi(e,t,n)}function Fi(e,t,{immediate:n,deep:r,flush:i,onTrack:c,onTrigger:a}=o.kT){const u=To;let l,s,f=!1,d=!1;if(We(e)?(l=()=>e.value,f=!!e._shallow):Fe(e)?(l=()=>e,r=!0):(0,o.kJ)(e)?(d=!0,f=e.some(Fe),l=()=>e.map((e=>We(e)?e.value:Fe(e)?Vi(e):(0,o.mf)(e)?ri(e,u,2):void 0))):l=(0,o.mf)(e)?t?()=>ri(e,u,2):()=>{if(!u||!u.isUnmounted)return s&&s(),oi(e,u,3,[p])}:o.dG,t&&r){const e=l;l=()=>Vi(e())}let p=e=>{s=g.onStop=()=>{ri(e,u,4)}};if(Po)return p=o.dG,t?n&&oi(t,u,3,[l(),d?[]:void 0,p]):l(),o.dG;let h=d?[]:Pi;const v=()=>{if(g.active)if(t){const e=g.run();(r||f||(d?e.some(((e,t)=>(0,o.aU)(e,h[t]))):(0,o.aU)(e,h)))&&(s&&s(),oi(t,u,3,[e,h===Pi?void 0:h,p]),h=e)}else g.run()};let m;v.allowRecurse=!!t,m="sync"===i?v:"post"===i?()=>pr(v,u&&u.suspense):()=>{!u||u.isMounted?Ci(v):v()};const g=new k(l,m);return t?n?v():h=g.run():"post"===i?pr(g.run.bind(g),u&&u.suspense):g.run(),()=>{g.stop(),u&&u.scope&&(0,o.Od)(u.scope.effects,g)}}function Bi(e,t,n){const r=this.proxy,i=(0,o.HD)(e)?e.includes(".")?Li(r,e):()=>r[e]:e.bind(r,r);let c;(0,o.mf)(t)?c=t:(c=t.handler,n=t);const a=To;Ao(this);const u=Fi(i,c.bind(r),n);return a?Ao(a):No(),u}function Li(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Vi(e,t){if(!(0,o.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),We(e))Vi(e.value,t);else if((0,o.kJ)(e))for(let n=0;n<e.length;n++)Vi(e[n],t);else if((0,o.DM)(e)||(0,o._N)(e))e.forEach((e=>{Vi(e,t)}));else if((0,o.PO)(e))for(const n in e)Vi(e[n],t);return e}function $i(){return null}function Hi(){return null}function Ui(e){0}function zi(e,t){return null}function Gi(){return Ki().slots}function Wi(){return Ki().attrs}function Ki(){const e=Io();return e.setupContext||(e.setupContext=Uo(e))}function Ji(e,t){const n=(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const r in t){const e=n[r];e?(0,o.kJ)(e)||(0,o.mf)(e)?n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(n[r]={default:t[r]})}return n}function Yi(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qi(e){const t=Io();let n=e();return No(),(0,o.tI)(n)&&(n=n.catch((e=>{throw Ao(t),e}))),[n,()=>Ao(t)]}function Xi(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?qr(t)?ro(e,null,[t]):ro(e,t):ro(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&qr(n)&&(n=[n]),ro(e,t,n))}const Zi=Symbol(""),Qi=()=>{{const e=Ht(Zi);return e||Xo("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ec(){return void 0}function tc(e,t,n,r){const o=n[r];if(o&&nc(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function nc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==t[r])return!1;return Gr>0&&$r&&$r.push(e),!0}const rc="3.2.26",oc={createComponentInstance:Oo,setupComponent:jo,renderComponentRoot:wt,setCurrentRenderingInstance:gt,isVNode:qr,normalizeVNode:so},ic=oc,cc=null,ac=null,uc="http://www.w3.org/2000/svg",lc="undefined"!==typeof document?document:null,sc=new Map,fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?lc.createElementNS(uc,e):lc.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>lc.createTextNode(e),createComment:e=>lc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const o=n?n.previousSibling:t.lastChild;let i=sc.get(e);if(!i){const t=lc.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,i=t.content,r){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}sc.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function dc(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function pc(e,t,n){const r=e.style,i=(0,o.HD)(n);if(n&&!i){for(const e in n)vc(r,e,n[e]);if(t&&!(0,o.HD)(t))for(const e in t)null==n[e]&&vc(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const hc=/\s*!important$/;function vc(e,t,n){if((0,o.kJ)(n))n.forEach((n=>vc(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=yc(e,t);hc.test(n)?e.setProperty((0,o.rs)(r),n.replace(hc,""),"important"):e[r]=n}}const mc=["Webkit","Moz","ms"],gc={};function yc(e,t){const n=gc[t];if(n)return n;let r=(0,o._A)(t);if("filter"!==r&&r in e)return gc[t]=r;r=(0,o.kC)(r);for(let o=0;o<mc.length;o++){const n=mc[o]+r;if(n in e)return gc[t]=n}return t}const bc="http://www.w3.org/1999/xlink";function xc(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(bc,t.slice(6,t.length)):e.setAttributeNS(bc,t,n);else{const r=(0,o.Pq)(t);null==n||r&&!(0,o.yA)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Sc(e,t,n,r,i,c,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,c),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=(0,o.yA)(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(u){}return void e.removeAttribute(t)}}try{e[t]=n}catch(l){0}}let wc=Date.now,_c=!1;if("undefined"!==typeof window){wc()>document.createEvent("Event").timeStamp&&(wc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);_c=!!(e&&Number(e[1])<=53)}let Ec=0;const kc=Promise.resolve(),Cc=()=>{Ec=0},Oc=()=>Ec||(kc.then(Cc),Ec=wc());function Tc(e,t,n,r){e.addEventListener(t,n,r)}function Ic(e,t,n,r){e.removeEventListener(t,n,r)}function Ac(e,t,n,r,o=null){const i=e._vei||(e._vei={}),c=i[t];if(r&&c)c.value=r;else{const[n,a]=Mc(t);if(r){const c=i[t]=Rc(r,o);Tc(e,n,c,a)}else c&&(Ic(e,n,c,a),i[t]=void 0)}}const Nc=/(?:Once|Passive|Capture)$/;function Mc(e){let t;if(Nc.test(e)){let n;t={};while(n=e.match(Nc))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,o.rs)(e.slice(2)),t]}function Rc(e,t){const n=e=>{const r=e.timeStamp||wc();(_c||r>=n.attached-1)&&oi(Dc(e,n.value),t,5,[e])};return n.value=e,n.attached=Oc(),n}function Dc(e,t){if((0,o.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}const Pc=/^on[a-z]/,jc=(e,t,n,r,i=!1,c,a,u,l)=>{"class"===t?dc(e,r,i):"style"===t?pc(e,n,r):(0,o.F7)(t)?(0,o.tR)(t)||Ac(e,t,n,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Fc(e,t,r,i))?Sc(e,t,r,c,a,u,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),xc(e,t,r,i))};function Fc(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Pc.test(t)&&(0,o.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Pc.test(t)||!(0,o.HD)(n))&&t in e))))}function Bc(e,t){const n=Qt(e);class r extends $c{constructor(e){super(n,e,t)}}return r.def=n,r}const Lc=e=>Bc(e,Ja),Vc="undefined"!==typeof HTMLElement?HTMLElement:class{};class $c extends Vc{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,xi((()=>{this._connected||(Ka(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,r=!(0,o.kJ)(t),i=t?r?Object.keys(t):t:[];let c;if(r)for(const a in this._props){const e=t[a];(e===Number||e&&e.type===Number)&&(this._props[a]=(0,o.He)(this._props[a]),(c||(c=Object.create(null)))[a]=!0)}this._numberProps=c;for(const o of Object.keys(this))"_"!==o[0]&&this._setProp(o,this[o],!0,!1);for(const a of i.map(o._A))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,o.He)(t)),this._setProp((0,o._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,o.rs)(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute((0,o.rs)(e),t+""):t||this.removeAttribute((0,o.rs)(e))))}_update(){Ka(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ro(this._def,(0,o.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;while(t=t&&(t.parentNode||t.host))if(t instanceof $c){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Hc(e="$style"){{const t=Io();if(!t)return o.kT;const n=t.type.__cssModules;if(!n)return o.kT;const r=n[e];return r||o.kT}}function Uc(e){const t=Io();if(!t)return;const n=()=>zc(t.subTree,e(t.proxy));Ri(n),gn((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Sn((()=>e.disconnect()))}))}function zc(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{zc(n.activeBranch,t)}))}while(e.component)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Gc(e.el,t);else if(e.type===jr)e.children.forEach((e=>zc(e,t)));else if(e.type===Lr){let{el:n,anchor:r}=e;while(n){if(Gc(n,t),n===r)break;n=n.nextSibling}}}function Gc(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Wc="transition",Kc="animation",Jc=(e,{slots:t})=>Xi(Wt,Qc(e),t);Jc.displayName="Transition";const Yc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qc=Jc.props=(0,o.l7)({},Wt.props,Yc),Xc=(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},Zc=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function Qc(e){const t={};for(const o in e)o in Yc||(t[o]=e[o]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:c=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:l=c,appearActiveClass:s=a,appearToClass:f=u,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=ea(i),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:S,onLeaveCancelled:w,onBeforeAppear:_=y,onAppear:E=b,onAppearCancelled:k=x}=t,C=(e,t,n)=>{ra(e,t?f:u),ra(e,t?s:a),n&&n()},O=(e,t)=>{ra(e,h),ra(e,p),t&&t()},T=e=>(t,n)=>{const o=e?E:b,i=()=>C(t,e,n);Xc(o,[t,i]),oa((()=>{ra(t,e?l:c),na(t,e?f:u),Zc(o)||ca(t,r,m,i)}))};return(0,o.l7)(t,{onBeforeEnter(e){Xc(y,[e]),na(e,c),na(e,a)},onBeforeAppear(e){Xc(_,[e]),na(e,l),na(e,s)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){const n=()=>O(e,t);na(e,d),sa(),na(e,p),oa((()=>{ra(e,d),na(e,h),Zc(S)||ca(e,r,g,n)})),Xc(S,[e,n])},onEnterCancelled(e){C(e,!1),Xc(x,[e])},onAppearCancelled(e){C(e,!0),Xc(k,[e])},onLeaveCancelled(e){O(e),Xc(w,[e])}})}function ea(e){if(null==e)return null;if((0,o.Kn)(e))return[ta(e.enter),ta(e.leave)];{const t=ta(e);return[t,t]}}function ta(e){const t=(0,o.He)(e);return t}function na(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function ra(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function oa(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ia=0;function ca(e,t,n,r){const o=e._endId=++ia,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:c,timeout:a,propCount:u}=aa(e,t);if(!c)return r();const l=c+"end";let s=0;const f=()=>{e.removeEventListener(l,d),i()},d=t=>{t.target===e&&++s>=u&&f()};setTimeout((()=>{s<u&&f()}),a+1),e.addEventListener(l,d)}function aa(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(Wc+"Delay"),i=r(Wc+"Duration"),c=ua(o,i),a=r(Kc+"Delay"),u=r(Kc+"Duration"),l=ua(a,u);let s=null,f=0,d=0;t===Wc?c>0&&(s=Wc,f=c,d=i.length):t===Kc?l>0&&(s=Kc,f=l,d=u.length):(f=Math.max(c,l),s=f>0?c>l?Wc:Kc:null,d=s?s===Wc?i.length:u.length:0);const p=s===Wc&&/\b(transform|all)(,|$)/.test(n[Wc+"Property"]);return{type:s,timeout:f,propCount:d,hasTransform:p}}function ua(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>la(t)+la(e[n]))))}function la(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function sa(){return document.body.offsetHeight}const fa=new WeakMap,da=new WeakMap,pa={name:"TransitionGroup",props:(0,o.l7)({},qc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Io(),r=Ut();let o,i;return bn((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!ya(o[0].el,n.vnode.el,t))return;o.forEach(va),o.forEach(ma);const r=o.filter(ga);sa(),r.forEach((e=>{const n=e.el,r=n.style;na(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,ra(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const c=Ve(e),a=Qc(c);let u=c.tag||jr;o=i,i=t.default?Zt(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&Xt(t,Jt(t,a,r,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];Xt(t,Jt(t,a,r,n)),fa.set(t,t.el.getBoundingClientRect())}return ro(u,null,i)}}},ha=pa;function va(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ma(e){da.set(e,e.el.getBoundingClientRect())}function ga(e){const t=fa.get(e),n=da.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}function ya(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=aa(r);return o.removeChild(r),i}const ba=e=>{const t=e.props["onUpdate:modelValue"];return(0,o.kJ)(t)?e=>(0,o.ir)(t,e):t};function xa(e){e.target.composing=!0}function Sa(e){const t=e.target;t.composing&&(t.composing=!1,wa(t,"input"))}function wa(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const _a={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=ba(i);const c=r||i.props&&"number"===i.props.type;Tc(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():c&&(r=(0,o.He)(r)),e._assign(r)})),n&&Tc(e,"change",(()=>{e.value=e.value.trim()})),t||(Tc(e,"compositionstart",xa),Tc(e,"compositionend",Sa),Tc(e,"change",Sa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},c){if(e._assign=ba(c),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&(0,o.He)(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Ea={deep:!0,created(e,t,n){e._assign=ba(n),Tc(e,"change",(()=>{const t=e._modelValue,n=Ia(e),r=e.checked,i=e._assign;if((0,o.kJ)(t)){const e=(0,o.hq)(t,n),c=-1!==e;if(r&&!c)i(t.concat(n));else if(!r&&c){const n=[...t];n.splice(e,1),i(n)}}else if((0,o.DM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Aa(e,r))}))},mounted:ka,beforeUpdate(e,t,n){e._assign=ba(n),ka(e,t,n)}};function ka(e,{value:t,oldValue:n},r){e._modelValue=t,(0,o.kJ)(t)?e.checked=(0,o.hq)(t,r.props.value)>-1:(0,o.DM)(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=(0,o.WV)(t,Aa(e,!0)))}const Ca={created(e,{value:t},n){e.checked=(0,o.WV)(t,n.props.value),e._assign=ba(n),Tc(e,"change",(()=>{e._assign(Ia(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ba(r),t!==n&&(e.checked=(0,o.WV)(t,r.props.value))}},Oa={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=(0,o.DM)(t);Tc(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,o.He)(Ia(e)):Ia(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=ba(r)},mounted(e,{value:t}){Ta(e,t)},beforeUpdate(e,t,n){e._assign=ba(n)},updated(e,{value:t}){Ta(e,t)}};function Ta(e,t){const n=e.multiple;if(!n||(0,o.kJ)(t)||(0,o.DM)(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],c=Ia(i);if(n)(0,o.kJ)(t)?i.selected=(0,o.hq)(t,c)>-1:i.selected=t.has(c);else if((0,o.WV)(Ia(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ia(e){return"_value"in e?e._value:e.value}function Aa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Na={created(e,t,n){Ma(e,t,n,null,"created")},mounted(e,t,n){Ma(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ma(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ma(e,t,n,r,"updated")}};function Ma(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=Oa;break;case"TEXTAREA":i=_a;break;default:switch(n.props&&n.props.type){case"checkbox":i=Ea;break;case"radio":i=Ca;break;default:i=_a}}const c=i[o];c&&c(e,t,n,r)}function Ra(){_a.getSSRProps=({value:e})=>({value:e}),Ca.getSSRProps=({value:e},t)=>{if(t.props&&(0,o.WV)(t.props.value,e))return{checked:!0}},Ea.getSSRProps=({value:e},t)=>{if((0,o.kJ)(e)){if(t.props&&(0,o.hq)(e,t.props.value)>-1)return{checked:!0}}else if((0,o.DM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}}}const Da=["ctrl","shift","alt","meta"],Pa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Da.some((n=>e[`${n}Key`]&&!t.includes(n)))},ja=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Pa[t[e]];if(r&&r(n,t))return}return e(n,...r)},Fa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ba=(e,t)=>n=>{if(!("key"in n))return;const r=(0,o.rs)(n.key);return t.some((e=>e===r||Fa[e]===r))?e(n):void 0},La={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Va(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),Va(e,!0),r.enter(e)):r.leave(e,(()=>{Va(e,!1)})):Va(e,t))},beforeUnmount(e,{value:t}){Va(e,t)}};function Va(e,t){e.style.display=t?e._vod:"none"}function $a(){La.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ha=(0,o.l7)({patchProp:jc},fc);let Ua,za=!1;function Ga(){return Ua||(Ua=hr(Ha))}function Wa(){return Ua=za?Ua:vr(Ha),za=!0,Ua}const Ka=(...e)=>{Ga().render(...e)},Ja=(...e)=>{Wa().hydrate(...e)},Ya=(...e)=>{const t=Ga().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Xa(e);if(!r)return;const i=t._component;(0,o.mf)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const c=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),c},t},qa=(...e)=>{const t=Wa().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Xa(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Xa(e){if((0,o.HD)(e)){const t=document.querySelector(e);return t}return e}let Za=!1;const Qa=()=>{Za||(Za=!0,Ra(),$a())};function eu(e){throw e}function tu(e){}function nu(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const ru=Symbol(""),ou=Symbol(""),iu=Symbol(""),cu=Symbol(""),au=Symbol(""),uu=Symbol(""),lu=Symbol(""),su=Symbol(""),fu=Symbol(""),du=Symbol(""),pu=Symbol(""),hu=Symbol(""),vu=Symbol(""),mu=Symbol(""),gu=Symbol(""),yu=Symbol(""),bu=Symbol(""),xu=Symbol(""),Su=Symbol(""),wu=Symbol(""),_u=Symbol(""),Eu=Symbol(""),ku=Symbol(""),Cu=Symbol(""),Ou=Symbol(""),Tu=Symbol(""),Iu=Symbol(""),Au=Symbol(""),Nu=Symbol(""),Mu=Symbol(""),Ru=Symbol(""),Du=Symbol(""),Pu=Symbol(""),ju=Symbol(""),Fu=Symbol(""),Bu=Symbol(""),Lu=Symbol(""),Vu=Symbol(""),$u=Symbol(""),Hu={[ru]:"Fragment",[ou]:"Teleport",[iu]:"Suspense",[cu]:"KeepAlive",[au]:"BaseTransition",[uu]:"openBlock",[lu]:"createBlock",[su]:"createElementBlock",[fu]:"createVNode",[du]:"createElementVNode",[pu]:"createCommentVNode",[hu]:"createTextVNode",[vu]:"createStaticVNode",[mu]:"resolveComponent",[gu]:"resolveDynamicComponent",[yu]:"resolveDirective",[bu]:"resolveFilter",[xu]:"withDirectives",[Su]:"renderList",[wu]:"renderSlot",[_u]:"createSlots",[Eu]:"toDisplayString",[ku]:"mergeProps",[Cu]:"normalizeClass",[Ou]:"normalizeStyle",[Tu]:"normalizeProps",[Iu]:"guardReactiveProps",[Au]:"toHandlers",[Nu]:"camelize",[Mu]:"capitalize",[Ru]:"toHandlerKey",[Du]:"setBlockTracking",[Pu]:"pushScopeId",[ju]:"popScopeId",[Fu]:"withCtx",[Bu]:"unref",[Lu]:"isRef",[Vu]:"withMemo",[$u]:"isMemoSame"};function Uu(e){Object.getOwnPropertySymbols(e).forEach((t=>{Hu[t]=e[t]}))}const zu={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Gu(e,t=zu){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function Wu(e,t,n,r,o,i,c,a=!1,u=!1,l=!1,s=zu){return e&&(a?(e.helper(uu),e.helper(kl(e.inSSR,l))):e.helper(El(e.inSSR,l)),c&&e.helper(xu)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:c,isBlock:a,disableTracking:u,isComponent:l,loc:s}}function Ku(e,t=zu){return{type:17,loc:t,elements:e}}function Ju(e,t=zu){return{type:15,loc:t,properties:e}}function Yu(e,t){return{type:16,loc:zu,key:(0,o.HD)(e)?qu(e,!0):e,value:t}}function qu(e,t=!1,n=zu,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Xu(e,t=zu){return{type:8,loc:t,children:e}}function Zu(e,t=[],n=zu){return{type:14,loc:n,callee:e,arguments:t}}function Qu(e,t,n=!1,r=!1,o=zu){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function el(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:zu}}function tl(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:zu}}function nl(e){return{type:21,body:e,loc:zu}}const rl=e=>4===e.type&&e.isStatic,ol=(e,t)=>e===t||e===(0,o.rs)(t);function il(e){return ol(e,"Teleport")?ou:ol(e,"Suspense")?iu:ol(e,"KeepAlive")?cu:ol(e,"BaseTransition")?au:void 0}const cl=/^\d|[^\$\w]/,al=e=>!cl.test(e),ul=/[A-Za-z_$\xA0-\uFFFF]/,ll=/[\.\?\w$\xA0-\uFFFF]/,sl=/\s+[.[]\s*|\s*[.[]\s+/g,fl=e=>{e=e.trim().replace(sl,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let c=0;c<e.length;c++){const a=e.charAt(c);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,o++;else if(!(0===c?ul:ll).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,i=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,i=a;else if("("===a)o++;else if(")"===a){if(c===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},dl=fl;function pl(e,t,n){const r=e.source.slice(t,t+n),o={source:r,start:hl(e.start,e.source,t),end:e.end};return null!=n&&(o.end=hl(e.start,e.source,t+n)),o}function hl(e,t,n=t.length){return vl((0,o.l7)({},e),t,n)}function vl(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)10===t.charCodeAt(i)&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function ml(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&((0,o.HD)(t)?i.name===t:t.test(i.name)))return i}}function gl(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&yl(i.arg,t))return i}}function yl(e,t){return!(!e||!rl(e)||e.content!==t)}function bl(e){return e.props.some((e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic)))}function xl(e){return 5===e.type||2===e.type}function Sl(e){return 7===e.type&&"slot"===e.name}function wl(e){return 1===e.type&&3===e.tagType}function _l(e){return 1===e.type&&2===e.tagType}function El(e,t){return e||t?fu:du}function kl(e,t){return e||t?lu:su}const Cl=new Set([Tu,Iu]);function Ol(e,t=[]){if(e&&!(0,o.HD)(e)&&14===e.type){const n=e.callee;if(!(0,o.HD)(n)&&Cl.has(n))return Ol(e.arguments[0],t.concat(e))}return[e,t]}function Tl(e,t,n){let r,i,c=13===e.type?e.props:e.arguments[2],a=[];if(c&&!(0,o.HD)(c)&&14===c.type){const e=Ol(c);c=e[0],a=e[1],i=a[a.length-1]}if(null==c||(0,o.HD)(c))r=Ju([t]);else if(14===c.type){const e=c.arguments[0];(0,o.HD)(e)||15!==e.type?c.callee===Au?r=Zu(n.helper(ku),[Ju([t]),c]):c.arguments.unshift(Ju([t])):e.properties.unshift(t),!r&&(r=c)}else if(15===c.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=c.properties.some((e=>4===e.key.type&&e.key.content===n))}e||c.properties.unshift(t),r=c}else r=Zu(n.helper(ku),[Ju([t]),c]),i&&i.callee===Iu&&(i=a[a.length-2]);13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function Il(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Al(e){return 14===e.type&&e.callee===Vu?e.arguments[1].returns:e}function Nl(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(El(r,e.isComponent)),t(uu),t(kl(r,e.isComponent)))}function Ml(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function Rl(e,t){const n=Ml("MODE",t),r=Ml(e,t);return 3===n?!0===r:!1!==r}function Dl(e,t,n,...r){const o=Rl(e,t);return o}const Pl=/&(gt|lt|amp|apos|quot);/g,jl={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Fl={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:o.NO,isPreTag:o.NO,isCustomElement:o.NO,decodeEntities:e=>e.replace(Pl,((e,t)=>jl[t])),onError:eu,onWarn:tu,comments:!1};function Bl(e,t={}){const n=Ll(e,t),r=ts(n);return Gu(Vl(n,0,[]),ns(n,r))}function Ll(e,t){const n=(0,o.l7)({},Fl);let r;for(r in t)n[r]=void 0===t[r]?Fl[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Vl(e,t,n){const r=rs(n),i=r?r.ns:0,c=[];while(!ls(e,t,n)){const a=e.source;let u;if(0===t||1===t)if(!e.inVPre&&os(a,e.options.delimiters[0]))u=Zl(e,t);else if(0===t&&"<"===a[0])if(1===a.length)us(e,5,1);else if("!"===a[1])os(a,"\x3c!--")?u=Ul(e):os(a,"<!DOCTYPE")?u=zl(e):os(a,"<![CDATA[")?0!==i?u=Hl(e,n):(us(e,1),u=zl(e)):(us(e,11),u=zl(e));else if("/"===a[1])if(2===a.length)us(e,5,2);else{if(">"===a[2]){us(e,14,2),is(e,3);continue}if(/[a-z]/i.test(a[2])){us(e,23),Kl(e,1,r);continue}us(e,12,2),u=zl(e)}else/[a-z]/i.test(a[1])?(u=Gl(e,n),Rl("COMPILER_NATIVE_TEMPLATE",e)&&u&&"template"===u.tag&&!u.props.some((e=>7===e.type&&Wl(e.name)))&&(u=u.children)):"?"===a[1]?(us(e,21,1),u=zl(e)):us(e,12,1);if(u||(u=Ql(e,t)),(0,o.kJ)(u))for(let e=0;e<u.length;e++)$l(c,u[e]);else $l(c,u)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<c.length;n++){const r=c[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(a=!0,c[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=c[n-1],o=c[n+1];!e||!o||t&&(3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(r.content))?(a=!0,c[n]=null):r.content=" "}}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=c[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?c.filter(Boolean):c}function $l(e,t){if(2===t.type){const n=rs(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Hl(e,t){is(e,9);const n=Vl(e,3,t);return 0===e.source.length?us(e,6):is(e,3),n}function Ul(e){const t=ts(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&us(e,0),r[1]&&us(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let o=1,i=0;while(-1!==(i=t.indexOf("\x3c!--",o)))is(e,i-o+1),i+4<t.length&&us(e,16),o=i+1;is(e,r.index+r[0].length-o+1)}else n=e.source.slice(4),is(e,e.source.length),us(e,7);return{type:3,content:n,loc:ns(e,t)}}function zl(e){const t=ts(e),n="?"===e.source[1]?1:2;let r;const o=e.source.indexOf(">");return-1===o?(r=e.source.slice(n),is(e,e.source.length)):(r=e.source.slice(n,o),is(e,o+1)),{type:3,content:r,loc:ns(e,t)}}function Gl(e,t){const n=e.inPre,r=e.inVPre,o=rs(t),i=Kl(e,0,o),c=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return c&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const u=e.options.getTextMode(i,o),l=Vl(e,u,t);t.pop();{const t=i.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&Dl("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=ns(e,i.loc.end);t.value={type:2,content:n.source,loc:n}}}if(i.children=l,ss(e.source,i.tag))Kl(e,1,o);else if(us(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=l[0];t&&os(t.loc.source,"\x3c!--")&&us(e,8)}return i.loc=ns(e,i.loc.start),c&&(e.inPre=!1),a&&(e.inVPre=!1),i}const Wl=(0,o.fY)("if,else,else-if,for,slot");function Kl(e,t,n){const r=ts(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),c=i[1],a=e.options.getNamespace(c,n);is(e,i[0].length),cs(e);const u=ts(e),l=e.source;e.options.isPreTag(c)&&(e.inPre=!0);let s=Yl(e,t);0===t&&!e.inVPre&&s.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,(0,o.l7)(e,u),e.source=l,s=Yl(e,t).filter((e=>"v-pre"!==e.name)));let f=!1;if(0===e.source.length?us(e,9):(f=os(e.source,"/>"),1===t&&f&&us(e,4),is(e,f?2:1)),1===t)return;let d=0;return e.inVPre||("slot"===c?d=2:"template"===c?s.some((e=>7===e.type&&Wl(e.name)))&&(d=3):Jl(c,s,e)&&(d=1)),{type:1,ns:a,tag:c,tagType:d,props:s,isSelfClosing:f,children:[],loc:ns(e,r),codegenNode:void 0}}function Jl(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||il(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const e=t[o];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if(Dl("COMPILER_IS_ON_ELEMENT",n,e.loc))return!0}}else{if("is"===e.name)return!0;if("bind"===e.name&&yl(e.arg,"is")&&Dl("COMPILER_IS_ON_ELEMENT",n,e.loc))return!0}}}function Yl(e,t){const n=[],r=new Set;while(e.source.length>0&&!os(e.source,">")&&!os(e.source,"/>")){if(os(e.source,"/")){us(e,22),is(e,1),cs(e);continue}1===t&&us(e,3);const o=ql(e,r);6===o.type&&o.value&&"class"===o.name&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&us(e,15),cs(e)}return n}function ql(e,t){const n=ts(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source),o=r[0];t.has(o)&&us(e,2),t.add(o),"="===o[0]&&us(e,19);{const t=/["'<]/g;let n;while(n=t.exec(o))us(e,17,n.index)}let i;is(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(cs(e),is(e,1),cs(e),i=Xl(e),i||us(e,13));const c=ns(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let r,a=os(o,"."),u=t[1]||(a||os(o,":")?"bind":os(o,"@")?"on":"slot");if(t[2]){const i="slot"===u,c=o.lastIndexOf(t[2]),a=ns(e,as(e,n,c),as(e,n,c+t[2].length+(i&&t[3]||"").length));let l=t[2],s=!0;l.startsWith("[")?(s=!1,l.endsWith("]")?l=l.slice(1,l.length-1):(us(e,27),l=l.slice(1))):i&&(l+=t[3]||""),r={type:4,content:l,isStatic:s,constType:s?3:0,loc:a}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=hl(e.start,i.content),e.source=e.source.slice(1,-1)}const l=t[3]?t[3].slice(1).split("."):[];return a&&l.push("prop"),"bind"===u&&r&&l.includes("sync")&&Dl("COMPILER_V_BIND_SYNC",e,c,r.loc.source)&&(u="model",l.splice(l.indexOf("sync"),1)),{type:7,name:u,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:r,modifiers:l,loc:c}}return!e.inVPre&&os(o,"v-")&&us(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:c}}function Xl(e){const t=ts(e);let n;const r=e.source[0],o='"'===r||"'"===r;if(o){is(e,1);const t=e.source.indexOf(r);-1===t?n=es(e,e.source.length,4):(n=es(e,t,4),is(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let o;while(o=r.exec(t[0]))us(e,18,o.index);n=es(e,t[0].length,4)}return{content:n,isQuoted:o,loc:ns(e,t)}}function Zl(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(-1===o)return void us(e,25);const i=ts(e);is(e,n.length);const c=ts(e),a=ts(e),u=o-n.length,l=e.source.slice(0,u),s=es(e,u,t),f=s.trim(),d=s.indexOf(f);d>0&&vl(c,l,d);const p=u-(s.length-f.length-d);return vl(a,l,p),is(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:ns(e,c,a)},loc:ns(e,i)}}function Ql(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let c=0;c<n.length;c++){const t=e.source.indexOf(n[c],1);-1!==t&&r>t&&(r=t)}const o=ts(e),i=es(e,r,t);return{type:2,content:i,loc:ns(e,o)}}function es(e,t,n){const r=e.source.slice(0,t);return is(e,t),2===n||3===n||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===n)}function ts(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function ns(e,t,n){return n=n||ts(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function rs(e){return e[e.length-1]}function os(e,t){return e.startsWith(t)}function is(e,t){const{source:n}=e;vl(e,n,t),e.source=n.slice(t)}function cs(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&is(e,t[0].length)}function as(e,t,n){return hl(t,e.originalSource.slice(t.offset,n),n)}function us(e,t,n,r=ts(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(nu(t,{start:r,end:r,source:""}))}function ls(e,t,n){const r=e.source;switch(t){case 0:if(os(r,"</"))for(let e=n.length-1;e>=0;--e)if(ss(r,n[e].tag))return!0;break;case 1:case 2:{const e=rs(n);if(e&&ss(r,e.tag))return!0;break}case 3:if(os(r,"]]>"))return!0;break}return!r}function ss(e,t){return os(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function fs(e,t){ps(e,t,ds(e,e.children[0]))}function ds(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!_l(t)}function ps(e,t,n=!1){const{children:r}=e,i=r.length;let c=0;for(let o=0;o<r.length;o++){const e=r[o];if(1===e.type&&0===e.tagType){const r=n?0:hs(e,t);if(r>0){if(r>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),c++;continue}}else{const n=e.codegenNode;if(13===n.type){const r=bs(n);if((!r||512===r||1===r)&&gs(e,t)>=2){const r=ys(e);r&&(n.props=t.hoist(r))}n.dynamicProps&&(n.dynamicProps=t.hoist(n.dynamicProps))}}}else 12===e.type&&hs(e.content,t)>=2&&(e.codegenNode=t.hoist(e.codegenNode),c++);if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,ps(e,t),n&&t.scopes.vSlot--}else if(11===e.type)ps(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)ps(e.branches[n],t,1===e.branches[n].children.length)}c&&t.transformHoist&&t.transformHoist(r,t,e),c&&c===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,o.kJ)(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ku(e.codegenNode.children)))}function hs(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;const c=bs(i);if(c)return n.set(e,0),0;{let r=3;const o=gs(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=hs(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=hs(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}return i.isBlock&&(t.removeHelper(uu),t.removeHelper(kl(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(El(t.inSSR,i.isComponent))),n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return hs(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if((0,o.HD)(r)||(0,o.yk)(r))continue;const i=hs(r,t);if(0===i)return 0;i<a&&(a=i)}return a;default:return 0}}const vs=new Set([Cu,Ou,Tu,Iu]);function ms(e,t){if(14===e.type&&!(0,o.HD)(e.callee)&&vs.has(e.callee)){const n=e.arguments[0];if(4===n.type)return hs(n,t);if(14===n.type)return ms(n,t)}return 0}function gs(e,t){let n=3;const r=ys(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],c=hs(o,t);if(0===c)return c;let a;if(c<n&&(n=c),a=4===i.type?hs(i,t):14===i.type?ms(i,t):0,0===a)return a;a<n&&(n=a)}}return n}function ys(e){const t=e.codegenNode;if(13===t.type)return t.props}function bs(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function xs(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:c=[],directiveTransforms:a={},transformHoist:u=null,isBuiltInComponent:l=o.dG,isCustomElement:s=o.dG,expressionPlugins:f=[],scopeId:d=null,slotted:p=!0,ssr:h=!1,inSSR:v=!1,ssrCssVars:m="",bindingMetadata:g=o.kT,inline:y=!1,isTS:b=!1,onError:x=eu,onWarn:S=tu,compatConfig:w}){const _=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={selfName:_&&(0,o.kC)((0,o._A)(_[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:c,directiveTransforms:a,transformHoist:u,isBuiltInComponent:l,isCustomElement:s,expressionPlugins:f,scopeId:d,slotted:p,ssr:h,inSSR:v,ssrCssVars:m,bindingMetadata:g,inline:y,isTS:b,onError:x,onWarn:S,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){const t=E.helpers.get(e);if(t){const n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString(e){return`_${Hu[E.helper(e)]}`},replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,o.HD)(e)&&(e=qu(e)),E.hoists.push(e);const t=qu(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return tl(E.cached++,e,t)}};return E.filters=new Set,E}function Ss(e,t){const n=xs(e,t);Es(e,n),t.hoistStatic&&fs(e,n),t.ssr||ws(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function ws(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(ds(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Nl(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;o.m[64];0,e.codegenNode=Wu(t,n(ru),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}function _s(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];(0,o.HD)(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Es(i,t))}}function Es(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let c=0;c<n.length;c++){const i=n[c](e,t);if(i&&((0,o.kJ)(i)?r.push(...i):r.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(pu);break;case 5:t.ssr||t.helper(Eu);break;case 9:for(let n=0;n<e.branches.length;n++)Es(e.branches[n],t);break;case 10:case 11:case 1:case 0:_s(e,t);break}t.currentNode=e;let i=r.length;while(i--)r[i]()}function ks(e,t){const n=(0,o.HD)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(Sl))return;const i=[];for(let c=0;c<o.length;c++){const a=o[c];if(7===a.type&&n(a.name)){o.splice(c,1),c--;const n=t(e,a,r);n&&i.push(n)}}return i}}}const Cs="/*#__PURE__*/";function Os(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:c=!1,runtimeGlobalName:a="Vue",runtimeModuleName:u="vue",ssrRuntimeModuleName:l="vue/server-renderer",ssr:s=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:c,runtimeGlobalName:a,runtimeModuleName:u,ssrRuntimeModuleName:l,ssr:s,isTS:f,inSSR:d,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Hu[e]}`},push(e,t){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e))}return p}function Ts(e,t={}){const n=Os(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:c,deindent:a,newline:u,scopeId:l,ssr:s}=n,f=e.helpers.length>0,d=!i&&"module"!==r,p=n;Is(e,p);const h=s?"ssrRender":"render",v=s?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],m=v.join(", ");if(o(`function ${h}(${m}) {`),c(),d&&(o("with (_ctx) {"),c(),f&&(o(`const { ${e.helpers.map((e=>`${Hu[e]}: _${Hu[e]}`)).join(", ")} } = _Vue`),o("\n"),u())),e.components.length&&(As(e.components,"component",n),(e.directives.length||e.temps>0)&&u()),e.directives.length&&(As(e.directives,"directive",n),e.temps>0&&u()),e.filters&&e.filters.length&&(u(),As(e.filters,"filter",n),u()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n"),u()),s||o("return "),e.codegenNode?Ds(e.codegenNode,n):o("null"),d&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Is(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:c,runtimeGlobalName:a,ssrRuntimeModuleName:u}=t,l=a,s=e=>`${Hu[e]}: _${Hu[e]}`;if(e.helpers.length>0&&(o(`const _Vue = ${l}\n`),e.hoists.length)){const t=[fu,du,pu,hu,vu].filter((t=>e.helpers.includes(t))).map(s).join(", ");o(`const { ${t} } = _Vue\n`)}Ns(e.hoists,t),i(),o("return ")}function As(e,t,{helper:n,push:r,newline:o,isTS:i}){const c=n("filter"===t?bu:"component"===t?mu:yu);for(let a=0;a<e.length;a++){let n=e[a];const u=n.endsWith("__self");u&&(n=n.slice(0,-6)),r(`const ${Il(n,t)} = ${c}(${JSON.stringify(n)}${u?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function Ns(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:c}=t;r();for(let a=0;a<e.length;a++){const o=e[a];o&&(n(`const _hoisted_${a+1} = `),Ds(o,t),r())}t.pure=!1}function Ms(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Rs(e,t,n),n&&t.deindent(),t.push("]")}function Rs(e,t,n=!1,r=!0){const{push:i,newline:c}=t;for(let a=0;a<e.length;a++){const u=e[a];(0,o.HD)(u)?i(u):(0,o.kJ)(u)?Ms(u,t):Ds(u,t),a<e.length-1&&(n?(r&&i(","),c()):r&&i(", "))}}function Ds(e,t){if((0,o.HD)(e))t.push(e);else if((0,o.yk)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Ds(e.codegenNode,t);break;case 2:Ps(e,t);break;case 4:js(e,t);break;case 5:Fs(e,t);break;case 12:Ds(e.codegenNode,t);break;case 8:Bs(e,t);break;case 3:Vs(e,t);break;case 13:$s(e,t);break;case 14:Us(e,t);break;case 15:zs(e,t);break;case 17:Gs(e,t);break;case 18:Ws(e,t);break;case 19:Ks(e,t);break;case 20:Js(e,t);break;case 21:Rs(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:0}}function Ps(e,t){t.push(JSON.stringify(e.content),e)}function js(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Fs(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Cs),n(`${r(Eu)}(`),Ds(e.content,t),n(")")}function Bs(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];(0,o.HD)(r)?t.push(r):Ds(r,t)}}function Ls(e,t){const{push:n}=t;if(8===e.type)n("["),Bs(e,t),n("]");else if(e.isStatic){const t=al(e.content)?e.content:JSON.stringify(e.content);n(t,e)}else n(`[${e.content}]`,e)}function Vs(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Cs),n(`${r(pu)}(${JSON.stringify(e.content)})`,e)}function $s(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:c,children:a,patchFlag:u,dynamicProps:l,directives:s,isBlock:f,disableTracking:d,isComponent:p}=e;s&&n(r(xu)+"("),f&&n(`(${r(uu)}(${d?"true":""}), `),o&&n(Cs);const h=f?kl(t.inSSR,p):El(t.inSSR,p);n(r(h)+"(",e),Rs(Hs([i,c,a,u,l]),t),n(")"),f&&n(")"),s&&(n(", "),Ds(s,t),n(")"))}function Hs(e){let t=e.length;while(t--)if(null!=e[t])break;return e.slice(0,t+1).map((e=>e||"null"))}function Us(e,t){const{push:n,helper:r,pure:i}=t,c=(0,o.HD)(e.callee)?e.callee:r(e.callee);i&&n(Cs),n(c+"(",e),Rs(e.arguments,t),n(")")}function zs(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const a=c.length>1||!1;n(a?"{":"{ "),a&&r();for(let u=0;u<c.length;u++){const{key:e,value:r}=c[u];Ls(e,t),n(": "),Ds(r,t),u<c.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Gs(e,t){Ms(e.elements,t)}function Ws(e,t){const{push:n,indent:r,deindent:i}=t,{params:c,returns:a,body:u,newline:l,isSlot:s}=e;s&&n(`_${Hu[Fu]}(`),n("(",e),(0,o.kJ)(c)?Rs(c,t):c&&Ds(c,t),n(") => "),(l||u)&&(n("{"),r()),a?(l&&n("return "),(0,o.kJ)(a)?Ms(a,t):Ds(a,t)):u&&Ds(u,t),(l||u)&&(i(),n("}")),s&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Ks(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:c,indent:a,deindent:u,newline:l}=t;if(4===n.type){const e=!al(n.content);e&&c("("),js(n,t),e&&c(")")}else c("("),Ds(n,t),c(")");i&&a(),t.indentLevel++,i||c(" "),c("? "),Ds(r,t),t.indentLevel--,i&&l(),i||c(" "),c(": ");const s=19===o.type;s||t.indentLevel++,Ds(o,t),s||t.indentLevel--,i&&u(!0)}function Js(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Du)}(-1),`),c()),n(`_cache[${e.index}] = `),Ds(e.value,t),e.isVNode&&(n(","),c(),n(`${r(Du)}(1),`),c(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const Ys=ks(/^(if|else|else-if)$/,((e,t,n)=>qs(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),c=0;while(i-- >=0){const e=o[i];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(r)e.codegenNode=Zs(t,c,n);else{const r=ef(e.codegenNode);r.alternate=Zs(t,c+e.branches.length-1,n)}}}))));function qs(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(nu(28,t.loc)),t.exp=qu("true",!1,r)}if("if"===t.name){const o=Xs(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);while(i-- >=-1){const c=o[i];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){"else-if"===t.name&&void 0===c.branches[c.branches.length-1].condition&&n.onError(nu(30,e.loc)),n.removeNode();const o=Xs(e,t);0,c.branches.push(o);const i=r&&r(c,o,!1);Es(o,n),i&&i(),n.currentNode=null}else n.onError(nu(30,e.loc));break}n.removeNode(c)}}}function Xs(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||ml(e,"for")?[e]:e.children,userKey:gl(e,"key")}}function Zs(e,t,n){return e.condition?el(e.condition,Qs(e,t,n),Zu(n.helper(pu),['""',"true"])):Qs(e,t,n)}function Qs(e,t,n){const{helper:r}=n,i=Yu("key",qu(`${t}`,!1,zu,2)),{children:c}=e,a=c[0],u=1!==c.length||1!==a.type;if(u){if(1===c.length&&11===a.type){const e=a.codegenNode;return Tl(e,i,n),e}{let t=64;o.m[64];return Wu(n,r(ru),Ju([i]),c,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=Al(e);return 13===t.type&&Nl(t,n),Tl(t,i,n),e}}function ef(e){while(1)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}const tf=ks("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return nf(e,t,n,(t=>{const i=Zu(r(Su),[t.source]),c=ml(e,"memo"),a=gl(e,"key"),u=a&&(6===a.type?qu(a.value.content,!0):a.exp),l=a?Yu("key",u):null,s=4===t.source.type&&t.source.constType>0,f=s?64:a?128:256;return t.codegenNode=Wu(n,r(ru),void 0,i,f+"",void 0,void 0,!0,!s,!1,e.loc),()=>{let a;const f=wl(e),{children:d}=t;const p=1!==d.length||1!==d[0].type,h=_l(e)?e:f&&1===e.children.length&&_l(e.children[0])?e.children[0]:null;if(h?(a=h.codegenNode,f&&l&&Tl(a,l,n)):p?a=Wu(n,r(ru),l?Ju([l]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(a=d[0].codegenNode,f&&l&&Tl(a,l,n),a.isBlock!==!s&&(a.isBlock?(o(uu),o(kl(n.inSSR,a.isComponent))):o(El(n.inSSR,a.isComponent))),a.isBlock=!s,a.isBlock?(r(uu),r(kl(n.inSSR,a.isComponent))):r(El(n.inSSR,a.isComponent))),c){const e=Qu(lf(t.parseResult,[qu("_cached")]));e.body=nl([Xu(["const _memo = (",c.exp,")"]),Xu(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString($u)}(_cached, _memo)) return _cached`]),Xu(["const _item = ",a]),qu("_item.memo = _memo"),qu("return _item")]),i.arguments.push(e,qu("_cache"),qu(String(n.cached++)))}else i.arguments.push(Qu(lf(t.parseResult),a,!0))}}))}));function nf(e,t,n,r){if(!t.exp)return void n.onError(nu(31,t.loc));const o=af(t.exp,n);if(!o)return void n.onError(nu(32,t.loc));const{addIdentifiers:i,removeIdentifiers:c,scopes:a}=n,{source:u,value:l,key:s,index:f}=o,d={type:11,loc:t.loc,source:u,valueAlias:l,keyAlias:s,objectIndexAlias:f,parseResult:o,children:wl(e)?e.children:[e]};n.replaceNode(d),a.vFor++;const p=r&&r(d);return()=>{a.vFor--,p&&p()}}const rf=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,of=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,cf=/^\(|\)$/g;function af(e,t){const n=e.loc,r=e.content,o=r.match(rf);if(!o)return;const[,i,c]=o,a={source:uf(n,c.trim(),r.indexOf(c,i.length)),value:void 0,key:void 0,index:void 0};let u=i.trim().replace(cf,"").trim();const l=i.indexOf(u),s=u.match(of);if(s){u=u.replace(of,"").trim();const e=s[1].trim();let t;if(e&&(t=r.indexOf(e,l+u.length),a.key=uf(n,e,t)),s[2]){const o=s[2].trim();o&&(a.index=uf(n,o,r.indexOf(o,a.key?t+e.length:l+u.length)))}}return u&&(a.value=uf(n,u,l)),a}function uf(e,t,n){return qu(t,!1,pl(e,n,t.length))}function lf({value:e,key:t,index:n},r=[]){return sf([e,t,n,...r])}function sf(e){let t=e.length;while(t--)if(e[t])break;return e.slice(0,t+1).map(((e,t)=>e||qu("_".repeat(t+1),!1)))}const ff=qu("undefined",!1),df=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ml(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},pf=(e,t,n)=>Qu(e,t,!1,!0,t.length?t[0].loc:n);function hf(e,t,n=pf){t.helper(Fu);const{children:r,loc:o}=e,i=[],c=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const u=ml(e,"slot",!0);if(u){const{arg:e,exp:t}=u;e&&!rl(e)&&(a=!0),i.push(Yu(e||qu("default",!0),n(t,r,o)))}let l=!1,s=!1;const f=[],d=new Set;for(let v=0;v<r.length;v++){const e=r[v];let o;if(!wl(e)||!(o=ml(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(u){t.onError(nu(37,o.loc));break}l=!0;const{children:p,loc:h}=e,{arg:m=qu("default",!0),exp:g,loc:y}=o;let b;rl(m)?b=m?m.content:"default":a=!0;const x=n(g,p,h);let S,w,_;if(S=ml(e,"if"))a=!0,c.push(el(S.exp,vf(m,x),ff));else if(w=ml(e,/^else(-if)?$/,!0)){let e,n=v;while(n--)if(e=r[n],3!==e.type)break;if(e&&wl(e)&&ml(e,"if")){r.splice(v,1),v--;let e=c[c.length-1];while(19===e.alternate.type)e=e.alternate;e.alternate=w.exp?el(w.exp,vf(m,x),ff):vf(m,x)}else t.onError(nu(30,w.loc))}else if(_=ml(e,"for")){a=!0;const e=_.parseResult||af(_.exp,t);e?c.push(Zu(t.helper(Su),[e.source,Qu(lf(e),vf(m,x),!0)])):t.onError(nu(32,_.loc))}else{if(b){if(d.has(b)){t.onError(nu(38,y));continue}d.add(b),"default"===b&&(s=!0)}i.push(Yu(m,x))}}if(!u){const e=(e,r)=>{const i=n(e,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),Yu("default",i)};l?f.length&&f.some((e=>gf(e)))&&(s?t.onError(nu(39,f[0].loc)):i.push(e(void 0,f))):i.push(e(void 0,r))}const p=a?2:mf(e.children)?3:1;let h=Ju(i.concat(Yu("_",qu(p+"",!1))),o);return c.length&&(h=Zu(t.helper(_u),[h,Ku(c)])),{slots:h,hasDynamicSlots:a}}function vf(e,t){return Ju([Yu("name",e),Yu("fn",t)])}function mf(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||mf(n.children))return!0;break;case 9:if(mf(n.branches))return!0;break;case 10:case 11:if(mf(n.children))return!0;break}}return!1}function gf(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():gf(e.content))}const yf=new WeakMap,bf=(e,t)=>function(){if(e=t.currentNode,1!==e.type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let c=i?xf(e,t):`"${n}"`;const a=(0,o.Kn)(c)&&c.callee===gu;let u,l,s,f,d,p,h=0,v=a||c===ou||c===iu||!i&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=Sf(e,t);u=n.props,h=n.patchFlag,d=n.dynamicPropNames;const r=n.directives;p=r&&r.length?Ku(r.map((e=>Ef(e,t)))):void 0,n.shouldUseBlock&&(v=!0)}if(e.children.length>0){c===cu&&(v=!0,h|=1024);const n=i&&c!==ou&&c!==cu;if(n){const{slots:n,hasDynamicSlots:r}=hf(e,t);l=n,r&&(h|=1024)}else if(1===e.children.length&&c!==ou){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===hs(n,t)&&(h|=1),l=o||2===r?n:e.children}else l=e.children}0!==h&&(s=String(h),d&&d.length&&(f=kf(d))),e.codegenNode=Wu(t,c,u,l,s,f,p,!!v,!1,i,e.loc)};function xf(e,t,n=!1){let{tag:r}=e;const o=Cf(r),i=gl(e,"is");if(i)if(o||Rl("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&qu(i.value.content,!0):i.exp;if(e)return Zu(t.helper(gu),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const c=!o&&ml(e,"is");if(c&&c.exp)return Zu(t.helper(gu),[c.exp]);const a=il(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(mu),t.components.add(r),Il(r,"component"))}function Sf(e,t,n=e.props,r=!1){const{tag:i,loc:c,children:a}=e,u=1===e.tagType;let l=[];const s=[],f=[],d=a.length>0;let p=!1,h=0,v=!1,m=!1,g=!1,y=!1,b=!1,x=!1;const S=[],w=({key:e,value:n})=>{if(rl(e)){const r=e.content,i=(0,o.F7)(r);if(u||!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||(0,o.Gg)(r)||(y=!0),i&&(0,o.Gg)(r)&&(x=!0),20===n.type||(4===n.type||8===n.type)&&hs(n,t)>0)return;"ref"===r?v=!0:"class"===r?m=!0:"style"===r?g=!0:"key"===r||S.includes(r)||S.push(r),!u||"class"!==r&&"style"!==r||S.includes(r)||S.push(r)}else b=!0};for(let E=0;E<n.length;E++){const a=n[E];if(6===a.type){const{loc:e,name:n,value:r}=a;let o=!0;if("ref"===n&&(v=!0,t.scopes.vFor>0&&l.push(Yu(qu("ref_for",!0),qu("true")))),"is"===n&&(Cf(i)||r&&r.content.startsWith("vue:")||Rl("COMPILER_IS_ON_ELEMENT",t)))continue;l.push(Yu(qu(n,!0,pl(e,0,n.length)),qu(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:h,exp:v,loc:m}=a,g="bind"===n,y="on"===n;if("slot"===n){u||t.onError(nu(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&yl(h,"is")&&(Cf(i)||Rl("COMPILER_IS_ON_ELEMENT",t)))continue;if(y&&r)continue;if((g&&yl(h,"key")||y&&d&&yl(h,"vue:before-update"))&&(p=!0),g&&yl(h,"ref")&&t.scopes.vFor>0&&l.push(Yu(qu("ref_for",!0),qu("true"))),!h&&(g||y)){if(b=!0,v)if(l.length&&(s.push(Ju(wf(l),c)),l=[]),g){if(Rl("COMPILER_V_BIND_OBJECT_ORDER",t)){s.unshift(v);continue}s.push(v)}else s.push({type:14,loc:m,callee:t.helper(Au),arguments:[v]});else t.onError(nu(g?34:35,m));continue}const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:i}=x(a,e,t);!r&&n.forEach(w),l.push(...n),i&&(f.push(a),(0,o.yk)(i)&&yf.set(a,i))}else f.push(a),d&&(p=!0)}}let _;if(s.length?(l.length&&s.push(Ju(wf(l),c)),_=s.length>1?Zu(t.helper(ku),s,c):s[0]):l.length&&(_=Ju(wf(l),c)),b?h|=16:(m&&!u&&(h|=2),g&&!u&&(h|=4),S.length&&(h|=8),y&&(h|=32)),p||0!==h&&32!==h||!(v||x||f.length>0)||(h|=512),!t.inSSR&&_)switch(_.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<_.properties.length;t++){const o=_.properties[t].key;rl(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=_.properties[e],i=_.properties[n];r?_=Zu(t.helper(Tu),[_]):(o&&!rl(o.value)&&(o.value=Zu(t.helper(Cu),[o.value])),!i||rl(i.value)||!g&&17!==i.value.type||(i.value=Zu(t.helper(Ou),[i.value])));break;case 14:break;default:_=Zu(t.helper(Tu),[Zu(t.helper(Iu),[_])]);break}return{props:_,directives:f,patchFlag:h,dynamicPropNames:S,shouldUseBlock:p}}function wf(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const c=i.key.content,a=t.get(c);a?("style"===c||"class"===c||(0,o.F7)(c))&&_f(a,i):(t.set(c,i),n.push(i))}return n}function _f(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Ku([e.value,t.value],e.loc)}function Ef(e,t){const n=[],r=yf.get(e);r?n.push(t.helperString(r)):(t.helper(yu),t.directives.add(e.name),n.push(Il(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=qu("true",!1,o);n.push(Ju(e.modifiers.map((e=>Yu(e,t))),o))}return Ku(n,e.loc)}function kf(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Cf(e){return"component"===e||"Component"===e}const Of=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},Tf=/-(\w)/g,If=Of((e=>e.replace(Tf,((e,t)=>t?t.toUpperCase():"")))),Af=(e,t)=>{if(_l(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=Nf(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(c[2]=i,a=3),n.length&&(c[3]=Qu([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),c.splice(a),e.codegenNode=Zu(t.helper(wu),c,r)}};function Nf(e,t){let n,r='"default"';const o=[];for(let i=0;i<e.props.length;i++){const t=e.props[i];6===t.type?t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=If(t.name),o.push(t))):"bind"===t.name&&yl(t.arg,"name")?t.exp&&(r=t.exp):("bind"===t.name&&t.arg&&rl(t.arg)&&(t.arg.content=If(t.arg.content)),o.push(t))}if(o.length>0){const{props:r,directives:i}=Sf(e,t,o);n=r,i.length&&t.onError(nu(36,i[0].loc))}return{slotName:r,slotProps:n}}const Mf=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Rf=(e,t,n,r)=>{const{loc:i,modifiers:c,arg:a}=e;let u;if(e.exp||c.length||n.onError(nu(35,i)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),u=qu((0,o.hR)((0,o._A)(e)),!0,a.loc)}else u=Xu([`${n.helperString(Ru)}(`,a,")"]);else u=a,u.children.unshift(`${n.helperString(Ru)}(`),u.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let s=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=dl(l.content),t=!(e||Mf.test(l.content)),n=l.content.includes(";");0,(t||s&&e)&&(l=Xu([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let f={props:[Yu(u,l||qu("() => {}",!1,i))]};return r&&(f=r(f)),s&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach((e=>e.key.isHandlerKey=!0)),f},Df=(e,t,n)=>{const{exp:r,modifiers:i,loc:c}=e,a=e.arg;return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),i.includes("camel")&&(4===a.type?a.isStatic?a.content=(0,o._A)(a.content):a.content=`${n.helperString(Nu)}(${a.content})`:(a.children.unshift(`${n.helperString(Nu)}(`),a.children.push(")"))),n.inSSR||(i.includes("prop")&&Pf(a,"."),i.includes("attr")&&Pf(a,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(nu(34,c)),{props:[Yu(a,qu("",!0,c))]}):{props:[Yu(a,r)]}},Pf=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},jf=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(xl(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!xl(i)){r=void 0;break}r||(r=n[e]={type:8,loc:t.loc,children:[t]}),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(xl(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==hs(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Zu(t.helper(hu),o)}}}}},Ff=new WeakSet,Bf=(e,t)=>{if(1===e.type&&ml(e,"once",!0)){if(Ff.has(e)||t.inVOnce)return;return Ff.add(e),t.inVOnce=!0,t.helper(Du),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Lf=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(nu(41,e.loc)),Vf();const i=r.loc.source,c=4===r.type?r.content:i;n.bindingMetadata[i];const a=!1;if(!c.trim()||!dl(c)&&!a)return n.onError(nu(42,r.loc)),Vf();const u=o||qu("modelValue",!0),l=o?rl(o)?`onUpdate:${o.content}`:Xu(['"onUpdate:" + ',o]):"onUpdate:modelValue";let s;const f=n.isTS?"($event: any)":"$event";s=Xu([`${f} => ((`,r,") = $event)"]);const d=[Yu(u,e.exp),Yu(l,s)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(al(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?rl(o)?`${o.content}Modifiers`:Xu([o,' + "Modifiers"']):"modelModifiers";d.push(Yu(n,qu(`{ ${t} }`,!1,e.loc,2)))}return Vf(d)};function Vf(e=[]){return{props:e}}const $f=/[\w).+\-_$\]]/,Hf=(e,t)=>{Rl("COMPILER_FILTER",t)&&(5===e.type&&Uf(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Uf(e.exp,t)})))};function Uf(e,t){if(4===e.type)zf(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"===typeof r&&(4===r.type?zf(r,t):8===r.type?Uf(e,t):5===r.type&&Uf(r.content,t))}}function zf(e,t){const n=e.content;let r,o,i,c,a=!1,u=!1,l=!1,s=!1,f=0,d=0,p=0,h=0,v=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),a)39===r&&92!==o&&(a=!1);else if(u)34===r&&92!==o&&(u=!1);else if(l)96===r&&92!==o&&(l=!1);else if(s)47===r&&92!==o&&(s=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||f||d||p){switch(r){case 34:u=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--;break}if(47===r){let e,t=i-1;for(;t>=0;t--)if(e=n.charAt(t)," "!==e)break;e&&$f.test(e)||(s=!0)}}else void 0===c?(h=i+1,c=n.slice(0,i).trim()):m();function m(){v.push(n.slice(h,i).trim()),h=i+1}if(void 0===c?c=n.slice(0,i).trim():0!==h&&m(),v.length){for(i=0;i<v.length;i++)c=Gf(c,v[i],t);e.content=c}}function Gf(e,t,n){n.helper(bu);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Il(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Il(o,"filter")}(${e}${")"!==i?","+i:i}`}}const Wf=new WeakSet,Kf=(e,t)=>{if(1===e.type){const n=ml(e,"memo");if(!n||Wf.has(e))return;return Wf.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Nl(r,t),e.codegenNode=Zu(t.helper(Vu),[n.exp,Qu(void 0,r),"_cache",String(t.cached++)]))}}};function Jf(e){return[[Bf,Ys,Kf,tf,Hf,Af,bf,df,jf],{on:Rf,bind:Df,model:Lf}]}function Yf(e,t={}){const n=t.onError||eu,r="module"===t.mode;!0===t.prefixIdentifiers?n(nu(46)):r&&n(nu(47));const i=!1;t.cacheHandlers&&n(nu(48)),t.scopeId&&!r&&n(nu(49));const c=(0,o.HD)(e)?Bl(e,t):e,[a,u]=Jf();return Ss(c,(0,o.l7)({},t,{prefixIdentifiers:i,nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},u,t.directiveTransforms||{})})),Ts(c,(0,o.l7)({},t,{prefixIdentifiers:i}))}const qf=()=>({props:[]}),Xf=Symbol(""),Zf=Symbol(""),Qf=Symbol(""),ed=Symbol(""),td=Symbol(""),nd=Symbol(""),rd=Symbol(""),od=Symbol(""),id=Symbol(""),cd=Symbol("");let ad;function ud(e,t=!1){return ad||(ad=document.createElement("div")),t?(ad.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ad.children[0].getAttribute("foo")):(ad.innerHTML=e,ad.textContent)}Uu({[Xf]:"vModelRadio",[Zf]:"vModelCheckbox",[Qf]:"vModelText",[ed]:"vModelSelect",[td]:"vModelDynamic",[nd]:"withModifiers",[rd]:"withKeys",[od]:"vShow",[id]:"Transition",[cd]:"TransitionGroup"});const ld=(0,o.fY)("style,iframe,script,noscript",!0),sd={isVoidTag:o.WB,isNativeTag:e=>(0,o.eS)(e)||(0,o.aN)(e),isPreTag:e=>"pre"===e,decodeEntities:ud,isBuiltInComponent:e=>ol(e,"Transition")?id:ol(e,"TransitionGroup")?cd:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(ld(e))return 2}return 0}},fd=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:qu("style",!0,t.loc),exp:dd(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},dd=(e,t)=>{const n=(0,o.yL)(e);return qu(JSON.stringify(n),!1,t,3)};function pd(e,t){return nu(e,t,void 0)}const hd=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(50,o)),t.children.length&&(n.onError(pd(51,o)),t.children.length=0),{props:[Yu(qu("innerHTML",!0,o),r||qu("",!0))]}},vd=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(52,o)),t.children.length&&(n.onError(pd(53,o)),t.children.length=0),{props:[Yu(qu("textContent",!0),r?Zu(n.helperString(Eu),[r],o):qu("",!0))]}},md=(e,t,n)=>{const r=Lf(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(pd(55,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let c=Qf,a=!1;if("input"===o||i){const r=gl(t,"type");if(r){if(7===r.type)c=td;else if(r.value)switch(r.value.content){case"radio":c=Xf;break;case"checkbox":c=Zf;break;case"file":a=!0,n.onError(pd(56,e.loc));break;default:break}}else bl(t)&&(c=td)}else"select"===o&&(c=ed);a||(r.needRuntime=n.helper(c))}else n.onError(pd(54,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},gd=(0,o.fY)("passive,once,capture"),yd=(0,o.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),bd=(0,o.fY)("left,right"),xd=(0,o.fY)("onkeyup,onkeydown,onkeypress",!0),Sd=(e,t,n,r)=>{const o=[],i=[],c=[];for(let a=0;a<t.length;a++){const u=t[a];"native"===u&&Dl("COMPILER_V_ON_NATIVE",n,r)||gd(u)?c.push(u):bd(u)?rl(e)?xd(e.content)?o.push(u):i.push(u):(o.push(u),i.push(u)):yd(u)?i.push(u):o.push(u)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:c}},wd=(e,t)=>{const n=rl(e)&&"onclick"===e.content.toLowerCase();return n?qu(t,!0):4!==e.type?Xu(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e},_d=(e,t,n)=>Rf(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:c}=t.props[0];const{keyModifiers:a,nonKeyModifiers:u,eventOptionModifiers:l}=Sd(i,r,n,e.loc);if(u.includes("right")&&(i=wd(i,"onContextmenu")),u.includes("middle")&&(i=wd(i,"onMouseup")),u.length&&(c=Zu(n.helper(nd),[c,JSON.stringify(u)])),!a.length||rl(i)&&!xd(i.content)||(c=Zu(n.helper(rd),[c,JSON.stringify(a)])),l.length){const e=l.map(o.kC).join("");i=rl(i)?qu(`${i.content}${e}`,!0):Xu(["(",i,`) + "${e}"`])}return{props:[Yu(i,c)]}})),Ed=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(58,o)),{props:[],needRuntime:n.helper(od)}};const kd=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(pd(60,e.loc)),t.removeNode())},Cd=[fd],Od={cloak:qf,html:hd,text:vd,model:md,on:_d,show:Ed};function Td(e,t={}){return Yf(e,(0,o.l7)({},sd,t,{nodeTransforms:[kd,...Cd,...t.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},Od,t.directiveTransforms||{}),transformHoist:null}))}const Id=Object.create(null);function Ad(e,t){if(!(0,o.HD)(e)){if(!e.nodeType)return o.dG;e=e.innerHTML}const n=e,i=Id[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const{code:c}=Td(e,(0,o.l7)({hoistStatic:!0,onError:void 0,onWarn:o.dG},t));const a=new Function("Vue",c)(r);return a._rc=!0,Id[n]=a}Lo(Ad)},9980:function(e,t,n){(function(t,r){e.exports=r(n(4865),n(1474))})("undefined"!==typeof self&&self,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return c.slice()}};e.exports.f=function(e){return c&&"[object Window]"==i.call(e)?a(e):o(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),c=n("fc6a"),a=n("c04e"),u=n("5135"),l=n("0cfb"),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=c(e),t=a(t,!0),l)try{return s(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),c=n("ae40"),a=i("reduce"),u=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!a||!u},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),c=n("9112");for(var a in o){var u=r[a],l=u&&u.prototype;if(l&&l.forEach!==i)try{c(l,"forEach",i)}catch(s){l.forEach=i}}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),c=o("forEach"),a=i("forEach");e.exports=c&&a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),o=r("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),c=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[],n=t.constructor={};return n[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),c=n("6eeb"),a=n("ce4e"),u=n("e893"),l=n("94ca");e.exports=function(e,t){var n,s,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(s=m?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,s)for(f in t){if(p=t[f],e.noTargetGet?(h=o(s,f),d=h&&h.value):d=s[f],n=l(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),c(s,f,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),c=n("ad6d"),a="toString",u=RegExp.prototype,l=u[a],s=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=a;(s||f)&&r(RegExp.prototype,a,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?c.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),c=n("5a34"),a=n("1d80"),u=n("ab13"),l=n("c430"),s="".startsWith,f=Math.min,d=u("startsWith"),p=!l&&!d&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{startsWith:function(e){var t=String(a(this));c(e);var n=i(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,o,i=n("da84"),c=n("342f"),a=i.process,u=a&&a.versions,l=u&&u.v8;l?(r=l.split("."),o=r[0]+r[1]):c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),c=i("iterator");e.exports=function(e){if(void 0!=e)return e[c]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),c=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);var n,r=c(t),a=r.length,u=0;while(a>u)o.f(e,n=r[u++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),c="String Iterator",a=o.set,u=o.getterFor(c);i(String,"String",(function(e){a(this,{type:c,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),c=r("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),e.exports=function(e){a[c][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),c=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),c=function(e){return function(t,n,c){var a,u=r(t),l=o(u.length),s=i(c,l);if(e&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),c=n("ae40"),a=i("filter"),u=c("filter");r({target:"Array",proto:!0,forced:!a||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),c=n("e95a"),a=n("50c4"),u=n("8418"),l=n("35a1");e.exports=function(e){var t,n,s,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=l(h),x=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(t=a(h.length),n=new v(t);t>x;x++)p=y?g(h[x],x):h[x],u(n,x,p);else for(f=b.call(h),d=f.next,n=new v;!(s=d.call(f)).done;x++)p=y?i(f,g,[s.value,x],!0):s.value,u(n,x,p);return n.length=x,n}},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),c=n("50c4"),a=n("a691"),u=n("1d80"),l=n("8aa5"),s=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=u(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var u=o(e),p=String(this),h="function"===typeof r;h||(r=String(r));var v=u.global;if(v){var S=u.unicode;u.lastIndex=0}var w=[];while(1){var _=s(u,p);if(null===_)break;if(w.push(_),!v)break;var E=String(_[0]);""===E&&(u.lastIndex=l(p,c(u.lastIndex),S))}for(var k="",C=0,O=0;O<w.length;O++){_=w[O];for(var T=String(_[0]),I=f(d(a(_.index),p.length),0),A=[],N=1;N<_.length;N++)A.push(m(_[N]));var M=_.groups;if(h){var R=[T].concat(A,I,p);void 0!==M&&R.push(M);var D=String(r.apply(void 0,R))}else D=x(T,p,I,A,M,r);I>=C&&(k+=p.slice(C,I)+D,C=I+T.length)}return k+p.slice(C)}];function x(e,n,r,o,c,a){var u=r+e.length,l=o.length,s=v;return void 0!==c&&(c=i(c),s=h),t.call(a,s,(function(t,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":a=c[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>l){var f=p(s/10);return 0===f?t:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}a=o[s-1]}return void 0===a?"":a}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),c=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(c(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){"use strict";var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),c=n("50c4"),a=n("1c0b"),u=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=c(n.length);return a(e),t=u(n,0),t.length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,c,a=String(o(t)),u=r(n),l=a.length;return u<0||u>=l?e?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===l||(c=a.charCodeAt(u+1))<56320||c>57343?e?a.charAt(u):i:e?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),c=i("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[c],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,i,c=n("7f9a"),a=n("da84"),u=n("861d"),l=n("9112"),s=n("5135"),f=n("f772"),d=n("d012"),p=a.WeakMap,h=function(e){return i(e)?o(e):r(e,{})},v=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(c){var m=new p,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},i=function(e){return y.call(m,e)}}else{var x=f("state");d[x]=!0,r=function(e,t){return l(e,x,t),t},o=function(e){return s(e,x)?e[x]:{}},i=function(e){return s(e,x)}}e.exports={set:r,get:o,has:i,enforce:h,getterFor:v}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=n("5135"),c=n("ce4e"),a=n("8925"),u=n("69f3"),l=u.get,s=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,a){var u=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),c=n("d1e7").f,a=function(e){return function(t){var n,a=i(t),u=o(a),l=u.length,s=0,f=[];while(l>s)n=u[s++],r&&!c.call(a,n)||f.push(e?[n,a[n]]:a[n]);return f}};e.exports={entries:a(!0),values:a(!1)}},"73d9":function(e,t,n){var r=n("44d2");r("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),c=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||c(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),c=n("7839"),a=n("d012"),u=n("1be4"),l=n("cc12"),s=n("f772"),f=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),m=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?y(r):b();var e=c.length;while(e--)delete x[p][c[e]];return x()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=x(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),c=n("d2bb"),a=n("d44e"),u=n("9112"),l=n("6eeb"),s=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=s("iterator"),g="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,n,s,p,S,w){o(n,t,s);var _,E,k,C=function(e){if(e===p&&N)return N;if(!v&&e in I)return I[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",T=!1,I=e.prototype,A=I[m]||I["@@iterator"]||p&&I[p],N=!v&&A||C(p),M="Array"==t&&I.entries||A;if(M&&(_=i(M.call(new e)),h!==Object.prototype&&_.next&&(f||i(_)===h||(c?c(_,h):"function"!=typeof _[m]&&u(_,m,x)),a(_,O,!0,!0),f&&(d[O]=x))),p==y&&A&&A.name!==y&&(T=!0,N=function(){return A.call(this)}),f&&!w||I[m]===N||u(I,m,N),d[t]=N,p)if(E={values:C(y),keys:S?N:C(g),entries:C(b)},w)for(k in E)(v||T||!(k in I))&&l(I,k,E[k]);else r({target:t,proto:!0,forced:v||T},E);return E}},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var c=r(t);c in e?o.f(e,c,i(0,n)):e[c]=n}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var r,o,i;(function(n,c){o=[],r=c,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(p.stack)||c.exec(p.stack),u=a&&a[1]||!1,l=a&&a[2]||!1,s=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");u===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===u)return f[d];if(u===s&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=RegExp.prototype.exec,c=String.prototype.replace,a=i,u=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=o.UNSUPPORTED_Y||o.BROKEN_CARET,s=void 0!==/()??/.exec("")[1],f=u||s||l;f&&(a=function(e){var t,n,o,a,f=this,d=l&&f.sticky,p=r.call(f),h=f.source,v=0,m=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),s&&(n=new RegExp("^"+h+"$(?!\\s)",p)),u&&(t=f.lastIndex),o=i.call(d?n:f,m),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:u&&o&&(f.lastIndex=f.global?o.index+o[0].length:t),s&&o&&o.length>1&&c.call(o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),e.exports=a},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,i=function(e,t){var n=a[c(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},c=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},"99af":function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),c=n("861d"),a=n("7b0b"),u=n("50c4"),l=n("8418"),s=n("65f0"),f=n("1dde"),d=n("b622"),p=n("2d00"),h=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!c(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)},x=!g||!y;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,o,i,c=a(this),f=s(c,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],b(i)){if(o=u(i.length),d+o>v)throw TypeError(m);for(n=0;n<o;n++,d++)n in i&&l(f,d,i[n])}else{if(d>=v)throw TypeError(m);l(f,d++,i)}return f.length=d,f}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(c){var i=e["return"];throw void 0!==i&&r(i.call(e)),c}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),c=n("c04e"),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(i(e),t=c(t,!0),i(n),o)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),c=n("d44e"),a=n("3f8c"),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),c(e,l,!1,!0),a[l]=u,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,n){"use strict";var r=n("e8b5"),o=n("50c4"),i=n("0366"),c=function(e,t,n,a,u,l,s,f){var d,p=u,h=0,v=!!s&&i(s,f,3);while(h<a){if(h in n){if(d=v?v(n[h],h,t):n[h],l>0&&r(d))p=c(e,t,d,o(d.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=c},a352:function(e,n){e.exports=t},a434:function(e,t,n){"use strict";var r=n("23e7"),o=n("23cb"),i=n("a691"),c=n("50c4"),a=n("7b0b"),u=n("65f0"),l=n("8418"),s=n("1dde"),f=n("ae40"),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,s,f,d,p,y=a(this),b=c(y.length),x=o(e,b),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=b-x):(n=S-2,r=v(h(i(t),0),b-x)),b+n-r>m)throw TypeError(g);for(s=u(y,r),f=0;f<r;f++)d=x+f,d in y&&l(s,f,y[d]);if(s.length=r,n<r){for(f=x;f<b-r;f++)d=f+r,p=f+n,d in y?y[p]=y[d]:delete y[p];for(f=b;f>b-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>x;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f<n;f++)y[f+x]=arguments[f+2];return y.length=b-r+n,s}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),c=n("c430"),a=n("83ab"),u=n("4930"),l=n("fdbf"),s=n("d039"),f=n("5135"),d=n("e8b5"),p=n("861d"),h=n("825a"),v=n("7b0b"),m=n("fc6a"),g=n("c04e"),y=n("5c6c"),b=n("7c73"),x=n("df75"),S=n("241c"),w=n("057f"),_=n("7418"),E=n("06cf"),k=n("9bf2"),C=n("d1e7"),O=n("9112"),T=n("6eeb"),I=n("5692"),A=n("f772"),N=n("d012"),M=n("90e3"),R=n("b622"),D=n("e538"),P=n("746f"),j=n("d44e"),F=n("69f3"),B=n("b727").forEach,L=A("hidden"),V="Symbol",$="prototype",H=R("toPrimitive"),U=F.set,z=F.getterFor(V),G=Object[$],W=o.Symbol,K=i("JSON","stringify"),J=E.f,Y=k.f,q=w.f,X=C.f,Z=I("symbols"),Q=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=o.QObject,oe=!re||!re[$]||!re[$].findChild,ie=a&&s((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=J(G,t);r&&delete G[t],Y(e,t,n),r&&e!==G&&Y(G,t,r)}:Y,ce=function(e,t){var n=Z[e]=b(W[$]);return U(n,{type:V,tag:e,description:t}),a||(n.description=t),n},ae=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ue=function(e,t,n){e===G&&ue(Q,t,n),h(e);var r=g(t,!0);return h(n),f(Z,r)?(n.enumerable?(f(e,L)&&e[L][r]&&(e[L][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,L)||Y(e,L,y(1,{})),e[L][r]=!0),ie(e,r,n)):Y(e,r,n)},le=function(e,t){h(e);var n=m(t),r=x(n).concat(he(n));return B(r,(function(t){a&&!fe.call(n,t)||ue(e,t,n[t])})),e},se=function(e,t){return void 0===t?b(e):le(b(e),t)},fe=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===G&&f(Z,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(Z,t)||f(this,L)&&this[L][t])||n)},de=function(e,t){var n=m(e),r=g(t,!0);if(n!==G||!f(Z,r)||f(Q,r)){var o=J(n,r);return!o||!f(Z,r)||f(n,L)&&n[L][r]||(o.enumerable=!0),o}},pe=function(e){var t=q(m(e)),n=[];return B(t,(function(e){f(Z,e)||f(N,e)||n.push(e)})),n},he=function(e){var t=e===G,n=q(t?Q:m(e)),r=[];return B(n,(function(e){!f(Z,e)||t&&!f(G,e)||r.push(Z[e])})),r};if(u||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===G&&n.call(Q,e),f(this,L)&&f(this[L],t)&&(this[L][t]=!1),ie(this,t,y(1,e))};return a&&oe&&ie(G,t,{configurable:!0,set:n}),ce(t,e)},T(W[$],"toString",(function(){return z(this).tag})),T(W,"withoutSetter",(function(e){return ce(M(e),e)})),C.f=fe,k.f=ue,E.f=de,S.f=w.f=pe,_.f=he,D.f=function(e){return ce(R(e),e)},a&&(Y(W[$],"description",{configurable:!0,get:function(){return z(this).description}}),c||T(G,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),B(x(ne),(function(e){P(e)})),r({target:V,stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!a},{create:se,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:s((function(){_.f(1)}))},{getOwnPropertySymbols:function(e){return _.f(v(e))}}),K){var ve=!u||s((function(){var e=W();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}));r({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var r,o=[e],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,K.apply(null,o)}})}W[$][H]||O(W[$],H,W[$].valueOf),j(W,V),N[L]=!0},a630:function(e,t,n){var r=n("23e7"),o=n("4df4"),i=n("1c7e"),c=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:c},{from:o})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n("b622"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("5135"),c=Object.defineProperty,a={},u=function(e){throw e};e.exports=function(e,t){if(i(a,e))return a[e];t||(t={});var n=[][e],l=!!i(t,"ACCESSORS")&&t.ACCESSORS,s=i(t,0)?t[0]:u,f=i(t,1)?t[1]:void 0;return a[e]=!!n&&!o((function(){if(l&&!r)return!0;var e={length:-1};l?c(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,s,f)}))}},ae93:function(e,t,n){"use strict";var r,o,i,c=n("e163"),a=n("9112"),u=n("5135"),l=n("b622"),s=n("c430"),f=l("iterator"),d=!1,p=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=c(c(i)),o!==Object.prototype&&(r=o)):d=!0),void 0==r&&(r={}),s||u(r,f)||a(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(e,t,n){"use strict";var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),o=n("5692"),i=n("5135"),c=n("90e3"),a=n("4930"),u=n("fdbf"),l=o("wks"),s=r.Symbol,f=u?s:s&&s.withoutSetter||c;e.exports=function(e){return i(l,e)||(a&&i(s,e)?l[e]=s[e]:l[e]=f("Symbol."+e)),l[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),i=n("df75"),c=n("d039"),a=c((function(){i(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(e){return i(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),c=n("50c4"),a=n("65f0"),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=i(p),x=o(b),S=r(h,v,3),w=c(x.length),_=0,E=m||a,k=t?E(p,w):n?E(p,0):void 0;w>_;_++)if((d||_ in x)&&(g=x[_],y=S(g,_,b),e))if(t)k[_]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:u.call(k,g)}else if(s)return!1;return f?-1:l||s?s:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});e.exports=c},c740:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),c=n("ae40"),a="findIndex",u=!0,l=c(a);a in[]&&Array(1)[a]((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),c=n("ae40"),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),s=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!l||!s},{indexOf:function(e){return u?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,c=n("d012");e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)!r(c,n)&&r(a,n)&&l.push(n);while(t.length>u)r(a,n=t[u++])&&(~i(l,n)||l.push(n));return l}},caad:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2"),c=n("ae40"),a=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!a},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),i=r.document,c=o(i)&&o(i.createElement);e.exports=function(e){return c?i.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),o=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),c=i("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,c)&&r(e,c,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),c=n("50c4"),a=function(e){return function(t,n,a,u){r(n);var l=o(t),s=i(l),f=c(l.length),d=e?f-1:0,p=e?-1:1;if(a<2)while(1){if(d in s){u=s[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in s&&(u=n(u,s[d],d,l));return u}};e.exports={left:a(!1),right:a(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),c=n("9263"),a=n("9112"),u=i("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),s=function(){return"$0"==="a".replace(/./,"$0")}(),f=i("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=i(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!l||!s||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===c?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),c=n("ae40"),a=i("map"),u=c("map");r({target:"Array",proto:!0,forced:!a||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),c=n("fc6a"),a=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=c(e),o=a.f,l=i(r),s={},f=0;while(l.length>f)n=o(r,t=l[f++]),void 0!==n&&u(s,t,n);return s}})},dbf1:function(e,t,n){"use strict";(function(e){function r(){return"undefined"!==typeof window?window.console:e.console}n.d(t,"a",(function(){return o}));var o=r()}).call(this,n("c8ba"))},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),c=n("9112"),a=n("b622"),u=a("iterator"),l=a("toStringTag"),s=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==s)try{c(p,u,s)}catch(v){p[u]=s}if(p[l]||c(p,l,f),o[f])for(var h in i)if(p[h]!==i[h])try{c(p,h,i[h])}catch(v){p[h]=i[h]}}}},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),c=n("5135"),a=n("861d"),u=n("9bf2").f,l=n("e893"),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new s(e):void 0===e?s():s(e);return""===e&&(f[t]=!0),t};l(d,s);var p=d.prototype=s.prototype;p.constructor=d;var h=p.toString,v="Symbol(test)"==String(s("test")),m=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(c(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),c=n("e177"),a=i("IE_PROTO"),u=Object.prototype;e.exports=c?Object.getPrototypeOf:function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),c=n("69f3"),a=n("7dd0"),u="Array Iterator",l=c.set,s=c.getterFor(u);e.exports=a(Array,"Array",(function(e,t){l(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),c=n("06cf").f,a=n("83ab"),u=o((function(){c(1)})),l=!a||u;r({target:"Object",stat:!0,forced:l,sham:!a},{getOwnPropertyDescriptor:function(e,t){return c(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),c=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=c.f,u=i.f,l=0;l<n.length;l++){var s=n[l];r(e,s)||a(e,s,u(t,s))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),c=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||c[i]===e)}},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),c))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){if(Array.isArray(e))return e}n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function s(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done);r=!0)if(n.push(c.value),t&&n.length===t)break}catch(u){o=!0,i=u}finally{try{r||null==a["return"]||a["return"]()}finally{if(o)throw i}}return n}}n("a630"),n("fb6a"),n("b0c0"),n("25f0");function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return l(e)||s(e,t)||d(e,t)||p()}function v(e){if(Array.isArray(e))return f(e)}function m(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return v(e)||m(e)||d(e)||g()}var b=n("a352"),x=n.n(b);function S(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function w(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var _=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");function E(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var k=/-(\w)/g,C=E((function(e){return e.replace(k,(function(e,t){return t.toUpperCase()}))})),O=(n("5db7"),n("73d9"),["Start","Add","Remove","Update","End"]),T=["Choose","Unchoose","Sort","Filter","Clone"],I=["Move"],A=[I,O,T].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),N={manage:I,manageAndEmit:O,emit:T};function M(e){return-1!==A.indexOf(e)}n("caad"),n("2ca0");var R=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function D(e){return R.includes(e)}function P(e){return["transition-group","TransitionGroup"].includes(e)}function j(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function F(e){return e.reduce((function(e,t){var n=h(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}function B(e){var t=e.$attrs,n=e.componentData,r=void 0===n?{}:n,o=F(Object.entries(t).filter((function(e){var t=h(e,2),n=t[0];t[1];return j(n)})));return u(u({},o),r)}function L(e){var t=e.$attrs,n=e.callBackBuilder,r=F(V(t));Object.entries(n).forEach((function(e){var t=h(e,2),n=t[0],o=t[1];N[n].forEach((function(e){r["on".concat(e)]=o(e)}))}));var o="[data-draggable]".concat(r.draggable||"");return u(u({},r),{},{draggable:o})}function V(e){return Object.entries(e).filter((function(e){var t=h(e,2),n=t[0];t[1];return!j(n)})).map((function(e){var t=h(e,2),n=t[0],r=t[1];return[C(n),r]})).filter((function(e){var t=h(e,2),n=t[0];t[1];return!M(n)}))}n("c740");function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&H(e.prototype,t),n&&H(e,n),e}var z=function(e){var t=e.el;return t},G=function(e,t){return e.__draggable_context=t},W=function(e){return e.__draggable_context},K=function(){function e(t){var n=t.nodes,r=n.header,o=n.default,i=n.footer,c=t.root,a=t.realList;$(this,e),this.defaultNodes=o,this.children=[].concat(y(r),y(o),y(i)),this.externalComponent=c.externalComponent,this.rootTransition=c.transition,this.tag=c.tag,this.realList=a}return U(e,[{key:"render",value:function(e,t){var n=this.tag,r=this.children,o=this._isRootComponent,i=o?{default:function(){return r}}:r;return e(n,t,i)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,n){G(z(e),{element:t[n],index:n})}))}},{key:"getUnderlyingVm",value:function(e){return W(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,r=n.length,o=t.children,i=o.item(e);if(null===i)return r;var c=W(i);if(c)return c.index;if(0===r)return 0;var a=z(n[0]),u=y(o).findIndex((function(e){return e===a}));return e<u?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),J=n("8bbf");function Y(e,t){var n=e[t];return n?n():[]}function q(e){var t=e.$slots,n=e.realList,r=e.getKey,o=n||[],i=["header","footer"].map((function(e){return Y(t,e)})),c=h(i,2),a=c[0],l=c[1],s=t.item;if(!s)throw new Error("draggable element must have an item slot");var f=o.flatMap((function(e,t){return s({element:e,index:t}).map((function(t){return t.key=r(e),t.props=u(u({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(f.length!==o.length)throw new Error("Item slot must have only one child");return{header:a,footer:l,default:f}}function X(e){var t=P(e),n=!D(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(J["resolveComponent"])(e):t?J["TransitionGroup"]:e}}function Z(e){var t=e.$slots,n=e.tag,r=e.realList,o=e.getKey,i=q({$slots:t,realList:r,getKey:o}),c=X(n);return new K({nodes:i,root:c,realList:r})}function Q(e,t){var n=this;Object(J["nextTick"])((function(){return n.$emit(e.toLowerCase(),t)}))}function ee(e){var t=this;return function(n,r){if(null!==t.realList)return t["onDrag".concat(e)](n,r)}}function te(e){var t=this,n=ee.call(this,e);return function(r,o){n.call(t,r,o),Q.call(t,e,r)}}var ne=null,re={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},oe=["update:modelValue","change"].concat(y([].concat(y(N.manageAndEmit),y(N.emit)).map((function(e){return e.toLowerCase()})))),ie=Object(J["defineComponent"])({name:"draggable",inheritAttrs:!1,props:re,emits:oe,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,o=this.realList,i=this.getKey,c=Z({$slots:e,tag:n,realList:o,getKey:i});this.componentStructure=c;var a=B({$attrs:t,componentData:r});return c.render(J["h"],a)}catch(u){return this.error=!0,Object(J["h"])("pre",{style:{color:"red"}},u.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&_["a"].error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el,r=this.componentStructure;r.updated();var o=L({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return te.call(e,t)},emit:function(t){return Q.bind(e,t)},manage:function(t){return ee.call(e,t)}}}),i=1===n.nodeType?n:n.parentElement;this._sortable=new x.a(i,o),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"===typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&V(e).forEach((function(e){var n=h(e,2),r=n[0],o=n[1];t.option(r,o)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(J["nextTick"])((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=y(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,y(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};if(t!==n&&o){var c=r.getUnderlyingVm(n)||{};return u(u({},c),i)}return i},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),ne=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){S(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(w(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var o={element:r,oldIndex:n};this.emitChanges({removed:o})}else S(e.clone)},onDragUpdate:function(e){S(e.item),w(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=y(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r),i=-1!==n.indexOf(ne);return i||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var o=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(o,e),c=u(u({},this.context),{},{futureIndex:i}),a=u(u({},e),{},{relatedContext:o,draggedContext:c});return n(a,t)},onDragEnd:function(){ne=null}}}),ce=ie;t["default"]=ce},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),c=n("23cb"),a=n("50c4"),u=n("fc6a"),l=n("8418"),s=n("b622"),f=n("1dde"),d=n("ae40"),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),m=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,s,f=u(this),d=a(f.length),p=c(e,d),h=c(void 0===t?d:t,d);if(i(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(g(h-p,0)),s=0;p<h;p++,s++)p in f&&l(r,s,f[p]);return r.length=s,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}))},8111:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=()=>({events:{},emit(e,...t){(this.events[e]||[]).forEach((e=>e(...t)))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter((e=>e!==t))}})},9227:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});n(2526),n(1817),n(1539),n(2165),n(8783),n(3948);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(function(){return void 0!==t&&null!==t&&t[Symbol.for("==")]?t[Symbol.for("==")](null):null==t}()||function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](e.length):t>e.length}())&&(t=e.length);for(var n=0,o=new Array(t);function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](t):n<t}();function(){return void 0!==n&&null!==n&&"object"===r(n)&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++}())o[n]=e[n];return o}},8534:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});n(1539);function r(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,u,"next",e)}function u(e){r(c,o,i,a,u,"throw",e)}a(void 0)}))}}},3087:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});n(2526),n(1817),n(1539),n(1703);function r(e,t){if(function(){return e instanceof t!==void 0&&e instanceof t!==null&&(e instanceof t)[Symbol.for("!")]?(e instanceof t)[Symbol.for("!")]():!(e instanceof t)}())throw new TypeError("Cannot call a class as a function")}},2833:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(2526),n(1817),n(1539),n(2165),n(8783),n(3948);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](t.length):n<t.length}();function(){return void 0!==n&&null!==n&&"object"===r(n)&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++}()){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,function(){return"value"[Symbol.for("in")]?"value"[Symbol.for("in")](o):"value"in o}()&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},2482:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});n(2526),n(1817),n(1539);function r(e,t,n){return!function(){return void 0!==t&&null!==t&&t[Symbol.for("in")]?t[Symbol.for("in")](e):t in e}()?e[t]=n:Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e}},5082:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});n(7941),n(2526),n(7327),n(1539),n(5003),n(1817),n(4747),n(9337),n(2165),n(8783),n(3948);var r=n(2482);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=arguments,n=1;function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](t.length):n<t.length}();function(){return void 0!==n&&null!==n&&"object"===o(n)&&n[Symbol.for("postfix-increment")]?n[Symbol.for("postfix-increment")]():n++}()){var c=function(){return null!=t[n]}()?arguments[n]:{};!function(){return void 0!==n&&null!==n&&n[Symbol.for("%")]?n[Symbol.for("%")](2):n%2}()?Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(c)):i(Object(c)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(c,t))})):i(Object(c),function(){return!(0)[Symbol.for("!")]||(0)[Symbol.for("!")]()}()).forEach((function(t){(0,r.Z)(e,t,c[t])}))}return e}},6084:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return u}});n(2526),n(1817),n(1539),n(2165),n(8783),n(3948);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?null:function(){return void 0!==("undefined"===typeof Symbol?"undefined":o(Symbol))&&null!==typeof Symbol&&("undefined"===typeof Symbol?"undefined":o(Symbol))[Symbol.for("!==")]?("undefined"===typeof Symbol?"undefined":o(Symbol))[Symbol.for("!==")]("undefined"):"undefined"!==typeof Symbol}()&&e[Symbol.iterator]||e["@@iterator"];if(!function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()){var r,i,c=[],a=!0,u=!1;try{for(n=n.call(e);function(){return void 0!==(a=(r=n.next()).done)&&null!==(a=(r=n.next()).done)&&(a=(r=n.next()).done)[Symbol.for("!")]?(a=(r=n.next()).done)[Symbol.for("!")]():!(a=(r=n.next()).done)}();a=!0)if(c.push(r.value),t&&c.length===t)break}catch(l){u=!0,i=l}finally{try{(function(){return void 0!==a&&null!==a&&a[Symbol.for("!")]?a[Symbol.for("!")]():!a})()&&function(){return void 0!==n["return"]&&null!==n["return"]&&n["return"][Symbol.for("!=")]?n["return"][Symbol.for("!=")](null):null!=n["return"]}()&&n["return"]()}finally{if(u)throw i}}return c}}var c=n(2780);n(1703);function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return r(e)||i(e,t)||(0,c.Z)(e,t)||a()}},9584:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(9227);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}n(2526),n(1817),n(1539),n(2165),n(8783),n(3948),n(1038);function i(e){return i=function(){return"function"[Symbol.for("==")]?"function"[Symbol.for("==")](typeof Symbol):"function"==typeof Symbol}()&&function(){return"symbol"[Symbol.for("==")]?"symbol"[Symbol.for("==")](typeof Symbol.iterator):"symbol"==typeof Symbol.iterator}()?function(e){return typeof e}:function(e){return e&&function(){return"function"[Symbol.for("==")]?"function"[Symbol.for("==")](typeof Symbol):"function"==typeof Symbol}()&&e.constructor===Symbol&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](Symbol.prototype):e!==Symbol.prototype}()?"symbol":typeof e},i(e)}function c(e){if(function(){return void 0!==("undefined"===typeof Symbol?"undefined":i(Symbol))&&null!==typeof Symbol&&("undefined"===typeof Symbol?"undefined":i(Symbol))[Symbol.for("!==")]?("undefined"===typeof Symbol?"undefined":i(Symbol))[Symbol.for("!==")]("undefined"):"undefined"!==typeof Symbol}()&&function(){return void 0!==e[Symbol.iterator]&&null!==e[Symbol.iterator]&&e[Symbol.iterator][Symbol.for("!=")]?e[Symbol.iterator][Symbol.for("!=")](null):null!=e[Symbol.iterator]}()||function(){return void 0!==e["@@iterator"]&&null!==e["@@iterator"]&&e["@@iterator"][Symbol.for("!=")]?e["@@iterator"][Symbol.for("!=")](null):null!=e["@@iterator"]}())return Array.from(e)}var a=n(2780);n(1703);function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return o(e)||c(e)||(0,a.Z)(e)||u()}},3336:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});n(2526),n(1817),n(1539),n(2165),n(8783),n(3948);function r(e){return r=function(){return"function"[Symbol.for("==")]?"function"[Symbol.for("==")](typeof Symbol):"function"==typeof Symbol}()&&function(){return"symbol"[Symbol.for("==")]?"symbol"[Symbol.for("==")](typeof Symbol.iterator):"symbol"==typeof Symbol.iterator}()?function(e){return typeof e}:function(e){return e&&function(){return"function"[Symbol.for("==")]?"function"[Symbol.for("==")](typeof Symbol):"function"==typeof Symbol}()&&e.constructor===Symbol&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](Symbol.prototype):e!==Symbol.prototype}()?"symbol":typeof e},r(e)}},2780:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});n(2526),n(1817),n(1539),n(7042),n(8309),n(1038),n(8783),n(4916),n(7601);var r=n(9227);function o(e,t){if(!function(){return void 0!==e&&null!==e&&e[Symbol.for("!")]?e[Symbol.for("!")]():!e}()){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}());return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}}]); +//# sourceMappingURL=chunk-vendors-legacy.fc4e402a.js.map \ No newline at end of file diff --git a/js/chunk-vendors-legacy.fc4e402a.js.map b/js/chunk-vendors-legacy.fc4e402a.js.map new file mode 100644 index 0000000..a933183 --- /dev/null +++ b/js/chunk-vendors-legacy.fc4e402a.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/chunk-vendors-legacy.fc4e402a.js","mappings":"iHAOA,SAASA,EAAQC,EAAKC,GAClB,MAAMC,EAAMC,OAAOC,OAAO,MACpBC,EAAOL,EAAIM,MAAM,KACvB,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC7BL,EAAIG,EAAKE,KAAM,EAEnB,OAAON,EAAmBQ,KAASP,EAAIO,EAAIC,eAAiBD,KAASP,EAAIO,G,kmCAM7E,MAAME,EAAiB,CACnB,CAAC,GAAe,OAChB,CAAC,GAAgB,QACjB,CAAC,GAAgB,QACjB,CAAC,GAAgB,QACjB,CAAC,IAAsB,aACvB,CAAC,IAA0B,iBAC3B,CAAC,IAA2B,kBAC5B,CAAC,KAA2B,iBAC5B,CAAC,KAA6B,mBAC9B,CAAC,KAAuB,aACxB,CAAC,MAA2B,gBAC5B,CAAC,MAA+B,oBAChC,EAAE,GAAkB,UACpB,EAAE,GAAe,QAYfC,EAAuB,mMAGvBC,EAAsCd,EAAQa,GAE9CE,EAAQ,EACd,SAASC,EAAkBC,EAAQC,EAAQ,EAAGC,EAAMF,EAAOR,QAKvD,IAAIW,EAAQH,EAAOV,MAAM,WAEzB,MAAMc,EAAmBD,EAAME,QAAO,CAACC,E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BAAKA,EAAL,oBAAKA,EAAL,IACA,GAAiB,kBAANA,EAAgB,OAAO8pF,EAAAA,EAAAA,GAAiB9pF,EAAGC,GACtD,IAAIv8B,EAAI7J,OAAOoH,UAAU9B,SAASgC,KAAK6+B,GAAGp+B,MAAM,EAAxC,kBAA4C,EAA5C,qBAA4C,EAA5C,wBAA4C,EAA5C,IAER,MADU,WAAN8B,GAAkBs8B,EAAEh3B,cAAatF,EAAIs8B,EAAEh3B,YAAY5L,MAC7C,QAANsG,GAAqB,QAANA,EAAoBtC,MAAM6I,KAAK+1B,GACxC,cAANt8B,GAAqB,2CAA2ClD,KAAKkD,IAAWomH,EAAAA,EAAAA,GAAiB9pF,EAAGC,QAAxG","sources":["webpack://profectus/./node_modules/@vue/shared/dist/shared.esm-bundler.js","webpack://profectus/./node_modules/core-js/internals/a-callable.js","webpack://profectus/./node_modules/core-js/internals/a-constructor.js","webpack://profectus/./node_modules/core-js/internals/a-possible-prototype.js","webpack://profectus/./node_modules/core-js/internals/add-to-unscopables.js","webpack://profectus/./node_modules/core-js/internals/advance-string-index.js","webpack://profectus/./node_modules/core-js/internals/an-instance.js","webpack://profectus/./node_modules/core-js/internals/an-object.js","webpack://profectus/./node_modules/core-js/internals/array-for-each.js","webpack://profectus/./node_modules/core-js/internals/array-from.js","webpack://profectus/./node_modules/core-js/internals/array-includes.js","webpack://profectus/./node_modules/core-js/internals/array-iteration.js","webpack://profectus/./node_modules/core-js/internals/array-method-has-species-support.js","webpack://profectus/./node_modules/core-js/internals/array-method-is-strict.js","webpack://profectus/./node_modules/core-js/internals/array-slice-simple.js","webpack://profectus/./node_modules/core-js/internals/array-slice.js","webpack://profectus/./node_modules/core-js/internals/array-species-constructor.js","webpack://profectus/./node_modules/core-js/internals/array-species-create.js","webpack://profectus/./node_modules/core-js/internals/call-with-safe-iteration-closing.js","webpack://profectus/./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack://profectus/./node_modules/core-js/internals/classof-raw.js","webpack://profectus/./node_modules/core-js/internals/classof.js","webpack://profectus/./node_modules/core-js/internals/clear-error-stack.js","webpack://profectus/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://profectus/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://profectus/./node_modules/core-js/internals/correct-prototype-getter.js","webpack://profectus/./node_modules/core-js/internals/create-html.js","webpack://profectus/./node_modules/core-js/internals/create-iterator-constructor.js","webpack://profectus/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://profectus/./node_modules/core-js/internals/create-property-descriptor.js","webpack://profectus/./node_modules/core-js/internals/create-property.js","webpack://profectus/./node_modules/core-js/internals/define-iterator.js","webpack://profectus/./node_modules/core-js/internals/define-well-known-symbol.js","webpack://profectus/./node_modules/core-js/internals/descriptors.js","webpack://profectus/./node_modules/core-js/internals/document-create-element.js","webpack://profectus/./node_modules/core-js/internals/dom-iterables.js","webpack://profectus/./node_modules/core-js/internals/dom-token-list-prototype.js","webpack://profectus/./node_modules/core-js/internals/engine-is-browser.js","webpack://profectus/./node_modules/core-js/internals/engine-is-ios-pebble.js","webpack://profectus/./node_modules/core-js/internals/engine-is-ios.js","webpack://profectus/./node_modules/core-js/internals/engine-is-node.js","webpack://profectus/./node_modules/core-js/internals/engine-is-webos-webkit.js","webpack://profectus/./node_modules/core-js/internals/engine-user-agent.js","webpack://profectus/./node_modules/core-js/internals/engine-v8-version.js","webpack://profectus/./node_modules/core-js/internals/enum-bug-keys.js","webpack://profectus/./node_modules/core-js/internals/error-stack-installable.js","webpack://profectus/./node_modules/core-js/internals/export.js","webpack://profectus/./node_modules/core-js/internals/fails.js","webpack://profectus/./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js","webpack://profectus/./node_modules/core-js/internals/function-apply.js","webpack://profectus/./node_modules/core-js/internals/function-bind-context.js","webpack://profectus/./node_modules/core-js/internals/function-call.js","webpack://profectus/./node_modules/core-js/internals/function-name.js","webpack://profectus/./node_modules/core-js/internals/function-uncurry-this.js","webpack://profectus/./node_modules/core-js/internals/get-built-in.js","webpack://profectus/./node_modules/core-js/internals/get-iterator-method.js","webpack://profectus/./node_modules/core-js/internals/get-iterator.js","webpack://profectus/./node_modules/core-js/internals/get-method.js","webpack://profectus/./node_modules/core-js/internals/get-substitution.js","webpack://profectus/./node_modules/core-js/internals/global.js","webpack://profectus/./node_modules/core-js/internals/has-own-property.js","webpack://profectus/./node_modules/core-js/internals/hidden-keys.js","webpack://profectus/./node_modules/core-js/internals/host-report-errors.js","webpack://profectus/./node_modules/core-js/internals/html.js","webpack://profectus/./node_modules/core-js/internals/ie8-dom-define.js","webpack://profectus/./node_modules/core-js/internals/indexed-object.js","webpack://profectus/./node_modules/core-js/internals/inherit-if-required.js","webpack://profectus/./node_modules/core-js/internals/inspect-source.js","webpack://profectus/./node_modules/core-js/internals/install-error-cause.js","webpack://profectus/./node_modules/core-js/internals/internal-state.js","webpack://profectus/./node_modules/core-js/internals/is-array-iterator-method.js","webpack://profectus/./node_modules/core-js/internals/is-array.js","webpack://profectus/./node_modules/core-js/internals/is-callable.js","webpack://profectus/./node_modules/core-js/internals/is-constructor.js","webpack://profectus/./node_modules/core-js/internals/is-forced.js","webpack://profectus/./node_modules/core-js/internals/is-object.js","webpack://profectus/./node_modules/core-js/internals/is-pure.js","webpack://profectus/./node_modules/core-js/internals/is-regexp.js","webpack://profectus/./node_modules/core-js/internals/is-symbol.js","webpack://profectus/./node_modules/core-js/internals/iterate.js","webpack://profectus/./node_modules/core-js/internals/iterator-close.js","webpack://profectus/./node_modules/core-js/internals/iterators-core.js","webpack://profectus/./node_modules/core-js/internals/iterators.js","webpack://profectus/./node_modules/core-js/internals/length-of-array-like.js","webpack://profectus/./node_modules/core-js/internals/math-log10.js","webpack://profectus/./node_modules/core-js/internals/math-sign.js","webpack://profectus/./node_modules/core-js/internals/microtask.js","webpack://profectus/./node_modules/core-js/internals/native-promise-constructor.js","webpack://profectus/./node_modules/core-js/internals/native-symbol.js","webpack://profectus/./node_modules/core-js/internals/native-weak-map.js","webpack://profectus/./node_modules/core-js/internals/new-promise-capability.js","webpack://profectus/./node_modules/core-js/internals/normalize-string-argument.js","webpack://profectus/./node_modules/core-js/internals/not-a-regexp.js","webpack://profectus/./node_modules/core-js/internals/number-is-finite.js","webpack://profectus/./node_modules/core-js/internals/object-assign.js","webpack://profectus/./node_modules/core-js/internals/object-create.js","webpack://profectus/./node_modules/core-js/internals/object-define-properties.js","webpack://profectus/./node_modules/core-js/internals/object-define-property.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-names-external.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://profectus/./node_modules/core-js/internals/object-get-prototype-of.js","webpack://profectus/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://profectus/./node_modules/core-js/internals/object-keys-internal.js","webpack://profectus/./node_modules/core-js/internals/object-keys.js","webpack://profectus/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://profectus/./node_modules/core-js/internals/object-set-prototype-of.js","webpack://profectus/./node_modules/core-js/internals/object-to-array.js","webpack://profectus/./node_modules/core-js/internals/object-to-string.js","webpack://profectus/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://profectus/./node_modules/core-js/internals/own-keys.js","webpack://profectus/./node_modules/core-js/internals/path.js","webpack://profectus/./node_modules/core-js/internals/perform.js","webpack://profectus/./node_modules/core-js/internals/promise-resolve.js","webpack://profectus/./node_modules/core-js/internals/queue.js","webpack://profectus/./node_modules/core-js/internals/redefine-all.js","webpack://profectus/./node_modules/core-js/internals/redefine.js","webpack://profectus/./node_modules/core-js/internals/regexp-exec-abstract.js","webpack://profectus/./node_modules/core-js/internals/regexp-exec.js","webpack://profectus/./node_modules/core-js/internals/regexp-flags.js","webpack://profectus/./node_modules/core-js/internals/regexp-sticky-helpers.js","webpack://profectus/./node_modules/core-js/internals/regexp-unsupported-dot-all.js","webpack://profectus/./node_modules/core-js/internals/regexp-unsupported-ncg.js","webpack://profectus/./node_modules/core-js/internals/require-object-coercible.js","webpack://profectus/./node_modules/core-js/internals/set-global.js","webpack://profectus/./node_modules/core-js/internals/set-species.js","webpack://profectus/./node_modules/core-js/internals/set-to-string-tag.js","webpack://profectus/./node_modules/core-js/internals/shared-key.js","webpack://profectus/./node_modules/core-js/internals/shared-store.js","webpack://profectus/./node_modules/core-js/internals/shared.js","webpack://profectus/./node_modules/core-js/internals/species-constructor.js","webpack://profectus/./node_modules/core-js/internals/string-html-forced.js","webpack://profectus/./node_modules/core-js/internals/string-multibyte.js","webpack://profectus/./node_modules/core-js/internals/string-repeat.js","webpack://profectus/./node_modules/core-js/internals/string-trim-forced.js","webpack://profectus/./node_modules/core-js/internals/string-trim.js","webpack://profectus/./node_modules/core-js/internals/task.js","webpack://profectus/./node_modules/core-js/internals/this-number-value.js","webpack://profectus/./node_modules/core-js/internals/to-absolute-index.js","webpack://profectus/./node_modules/core-js/internals/to-indexed-object.js","webpack://profectus/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://profectus/./node_modules/core-js/internals/to-length.js","webpack://profectus/./node_modules/core-js/internals/to-object.js","webpack://profectus/./node_modules/core-js/internals/to-primitive.js","webpack://profectus/./node_modules/core-js/internals/to-property-key.js","webpack://profectus/./node_modules/core-js/internals/to-string-tag-support.js","webpack://profectus/./node_modules/core-js/internals/to-string.js","webpack://profectus/./node_modules/core-js/internals/try-to-string.js","webpack://profectus/./node_modules/core-js/internals/uid.js","webpack://profectus/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://profectus/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://profectus/./node_modules/core-js/internals/well-known-symbol-wrapped.js","webpack://profectus/./node_modules/core-js/internals/well-known-symbol.js","webpack://profectus/./node_modules/core-js/internals/whitespaces.js","webpack://profectus/./node_modules/core-js/internals/wrap-error-constructor-with-cause.js","webpack://profectus/./node_modules/core-js/modules/es.array.concat.js","webpack://profectus/./node_modules/core-js/modules/es.array.filter.js","webpack://profectus/./node_modules/core-js/modules/es.array.find-index.js","webpack://profectus/./node_modules/core-js/modules/es.array.find.js","webpack://profectus/./node_modules/core-js/modules/es.array.from.js","webpack://profectus/./node_modules/core-js/modules/es.array.includes.js","webpack://profectus/./node_modules/core-js/modules/es.array.iterator.js","webpack://profectus/./node_modules/core-js/modules/es.array.join.js","webpack://profectus/./node_modules/core-js/modules/es.array.map.js","webpack://profectus/./node_modules/core-js/modules/es.array.slice.js","webpack://profectus/./node_modules/core-js/modules/es.array.splice.js","webpack://profectus/./node_modules/core-js/modules/es.error.cause.js","webpack://profectus/./node_modules/core-js/modules/es.function.name.js","webpack://profectus/./node_modules/core-js/modules/es.json.stringify.js","webpack://profectus/./node_modules/core-js/modules/es.math.log10.js","webpack://profectus/./node_modules/core-js/modules/es.math.log2.js","webpack://profectus/./node_modules/core-js/modules/es.math.sign.js","webpack://profectus/./node_modules/core-js/modules/es.math.trunc.js","webpack://profectus/./node_modules/core-js/modules/es.number.constructor.js","webpack://profectus/./node_modules/core-js/modules/es.number.is-finite.js","webpack://profectus/./node_modules/core-js/modules/es.number.to-exponential.js","webpack://profectus/./node_modules/core-js/modules/es.number.to-fixed.js","webpack://profectus/./node_modules/core-js/modules/es.object.assign.js","webpack://profectus/./node_modules/core-js/modules/es.object.get-own-property-descriptor.js","webpack://profectus/./node_modules/core-js/modules/es.object.get-own-property-descriptors.js","webpack://profectus/./node_modules/core-js/modules/es.object.keys.js","webpack://profectus/./node_modules/core-js/modules/es.object.to-string.js","webpack://profectus/./node_modules/core-js/modules/es.object.values.js","webpack://profectus/./node_modules/core-js/modules/es.promise.finally.js","webpack://profectus/./node_modules/core-js/modules/es.promise.js","webpack://profectus/./node_modules/core-js/modules/es.reflect.has.js","webpack://profectus/./node_modules/core-js/modules/es.reflect.own-keys.js","webpack://profectus/./node_modules/core-js/modules/es.reflect.to-string-tag.js","webpack://profectus/./node_modules/core-js/modules/es.regexp.exec.js","webpack://profectus/./node_modules/core-js/modules/es.regexp.test.js","webpack://profectus/./node_modules/core-js/modules/es.regexp.to-string.js","webpack://profectus/./node_modules/core-js/modules/es.string.includes.js","webpack://profectus/./node_modules/core-js/modules/es.string.iterator.js","webpack://profectus/./node_modules/core-js/modules/es.string.link.js","webpack://profectus/./node_modules/core-js/modules/es.string.repeat.js","webpack://profectus/./node_modules/core-js/modules/es.string.replace.js","webpack://profectus/./node_modules/core-js/modules/es.string.small.js","webpack://profectus/./node_modules/core-js/modules/es.string.split.js","webpack://profectus/./node_modules/core-js/modules/es.string.sub.js","webpack://profectus/./node_modules/core-js/modules/es.string.trim.js","webpack://profectus/./node_modules/core-js/modules/es.symbol.description.js","webpack://profectus/./node_modules/core-js/modules/es.symbol.iterator.js","webpack://profectus/./node_modules/core-js/modules/es.symbol.js","webpack://profectus/./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack://profectus/./node_modules/core-js/modules/web.dom-collections.iterator.js","webpack://profectus/./node_modules/regenerator-runtime/runtime.js","webpack://profectus/./node_modules/sortablejs/modular/sortable.esm.js","webpack://profectus/./node_modules/vue-loader/dist/exportHelper.js","webpack://profectus/./node_modules/vue-next-select/dist/vue-next-select.es.prod.js","webpack://profectus/./node_modules/vue-textarea-autosize/dist/vue-textarea-autosize.esm.js","webpack://profectus/./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","webpack://profectus/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","webpack://profectus/./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","webpack://profectus/./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js","webpack://profectus/./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js","webpack://profectus/./node_modules/vue/dist/vue.esm-bundler.js","webpack://profectus/./node_modules/vuedraggable/dist/vuedraggable.umd.js","webpack://profectus/./node_modules/nanoevents/index.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["/**\r\n * Make a map and return a function for checking if a key\r\n * is in that map.\r\n * IMPORTANT: all calls of this function must be prefixed with\r\n * \\/\\*#\\_\\_PURE\\_\\_\\*\\/\r\n * So that rollup can tree-shake them if necessary.\r\n */\r\nfunction makeMap(str, expectsLowerCase) {\r\n const map = Object.create(null);\r\n const list = str.split(',');\r\n for (let i = 0; i < list.length; i++) {\r\n map[list[i]] = true;\r\n }\r\n return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];\r\n}\n\n/**\r\n * dev only flag -> name mapping\r\n */\r\nconst PatchFlagNames = {\r\n [1 /* TEXT */]: `TEXT`,\r\n [2 /* CLASS */]: `CLASS`,\r\n [4 /* STYLE */]: `STYLE`,\r\n [8 /* PROPS */]: `PROPS`,\r\n [16 /* FULL_PROPS */]: `FULL_PROPS`,\r\n [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,\r\n [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,\r\n [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,\r\n [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,\r\n [512 /* NEED_PATCH */]: `NEED_PATCH`,\r\n [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,\r\n [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,\r\n [-1 /* HOISTED */]: `HOISTED`,\r\n [-2 /* BAIL */]: `BAIL`\r\n};\n\n/**\r\n * Dev only\r\n */\r\nconst slotFlagsText = {\r\n [1 /* STABLE */]: 'STABLE',\r\n [2 /* DYNAMIC */]: 'DYNAMIC',\r\n [3 /* FORWARDED */]: 'FORWARDED'\r\n};\n\nconst GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +\r\n 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +\r\n 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';\r\nconst isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);\n\nconst range = 2;\r\nfunction generateCodeFrame(source, start = 0, end = source.length) {\r\n // Split the content into individual lines but capture the newline sequence\r\n // that separated each line. This is important because the actual sequence is\r\n // needed to properly take into account the full line length for offset\r\n // comparison\r\n let lines = source.split(/(\\r?\\n)/);\r\n // Separate the lines and newline sequences into separate arrays for easier referencing\r\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\r\n lines = lines.filter((_, idx) => idx % 2 === 0);\r\n let count = 0;\r\n const res = [];\r\n for (let i = 0; i < lines.length; i++) {\r\n count +=\r\n lines[i].length +\r\n ((newlineSequences[i] && newlineSequences[i].length) || 0);\r\n if (count >= start) {\r\n for (let j = i - range; j <= i + range || end > count; j++) {\r\n if (j < 0 || j >= lines.length)\r\n continue;\r\n const line = j + 1;\r\n res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);\r\n const lineLength = lines[j].length;\r\n const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;\r\n if (j === i) {\r\n // push underline\r\n const pad = start - (count - (lineLength + newLineSeqLength));\r\n const length = Math.max(1, end > count ? lineLength - pad : end - start);\r\n res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));\r\n }\r\n else if (j > i) {\r\n if (end > count) {\r\n const length = Math.max(Math.min(end - count, lineLength), 1);\r\n res.push(` | ` + '^'.repeat(length));\r\n }\r\n count += lineLength + newLineSeqLength;\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n return res.join('\\n');\r\n}\n\n/**\r\n * On the client we only need to offer special cases for boolean attributes that\r\n * have different names from their corresponding dom properties:\r\n * - itemscope -> N/A\r\n * - allowfullscreen -> allowFullscreen\r\n * - formnovalidate -> formNoValidate\r\n * - ismap -> isMap\r\n * - nomodule -> noModule\r\n * - novalidate -> noValidate\r\n * - readonly -> readOnly\r\n */\r\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\r\nconst isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);\r\n/**\r\n * The full list is needed during SSR to produce the correct initial markup.\r\n */\r\nconst isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +\r\n `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +\r\n `loop,open,required,reversed,scoped,seamless,` +\r\n `checked,muted,multiple,selected`);\r\n/**\r\n * Boolean attributes should be included if the value is truthy or ''.\r\n * e.g. `<select multiple>` compiles to `{ multiple: '' }`\r\n */\r\nfunction includeBooleanAttr(value) {\r\n return !!value || value === '';\r\n}\r\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\r\nconst attrValidationCache = {};\r\nfunction isSSRSafeAttrName(name) {\r\n if (attrValidationCache.hasOwnProperty(name)) {\r\n return attrValidationCache[name];\r\n }\r\n const isUnsafe = unsafeAttrCharRE.test(name);\r\n if (isUnsafe) {\r\n console.error(`unsafe attribute name: ${name}`);\r\n }\r\n return (attrValidationCache[name] = !isUnsafe);\r\n}\r\nconst propsToAttrMap = {\r\n acceptCharset: 'accept-charset',\r\n className: 'class',\r\n htmlFor: 'for',\r\n httpEquiv: 'http-equiv'\r\n};\r\n/**\r\n * CSS properties that accept plain numbers\r\n */\r\nconst isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +\r\n `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +\r\n `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +\r\n `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +\r\n `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +\r\n `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +\r\n // SVG\r\n `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +\r\n `stroke-miterlimit,stroke-opacity,stroke-width`);\r\n/**\r\n * Known attributes, this is used for stringification of runtime static nodes\r\n * so that we don't stringify bindings that cannot be set from HTML.\r\n * Don't also forget to allow `data-*` and `aria-*`!\r\n * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes\r\n */\r\nconst isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +\r\n `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +\r\n `border,buffered,capture,challenge,charset,checked,cite,class,code,` +\r\n `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +\r\n `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +\r\n `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +\r\n `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +\r\n `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +\r\n `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +\r\n `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +\r\n `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +\r\n `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +\r\n `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +\r\n `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +\r\n `value,width,wrap`);\r\n/**\r\n * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute\r\n */\r\nconst isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +\r\n `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +\r\n `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +\r\n `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +\r\n `color-interpolation-filters,color-profile,color-rendering,` +\r\n `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +\r\n `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +\r\n `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +\r\n `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +\r\n `font-family,font-size,font-size-adjust,font-stretch,font-style,` +\r\n `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +\r\n `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +\r\n `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +\r\n `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +\r\n `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +\r\n `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +\r\n `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +\r\n `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +\r\n `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +\r\n `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +\r\n `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +\r\n `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +\r\n `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +\r\n `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +\r\n `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +\r\n `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +\r\n `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +\r\n `strikethrough-position,strikethrough-thickness,string,stroke,` +\r\n `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +\r\n `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +\r\n `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +\r\n `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +\r\n `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +\r\n `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +\r\n `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +\r\n `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +\r\n `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +\r\n `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +\r\n `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);\n\nfunction normalizeStyle(value) {\r\n if (isArray(value)) {\r\n const res = {};\r\n for (let i = 0; i < value.length; i++) {\r\n const item = value[i];\r\n const normalized = isString(item)\r\n ? parseStringStyle(item)\r\n : normalizeStyle(item);\r\n if (normalized) {\r\n for (const key in normalized) {\r\n res[key] = normalized[key];\r\n }\r\n }\r\n }\r\n return res;\r\n }\r\n else if (isString(value)) {\r\n return value;\r\n }\r\n else if (isObject(value)) {\r\n return value;\r\n }\r\n}\r\nconst listDelimiterRE = /;(?![^(]*\\))/g;\r\nconst propertyDelimiterRE = /:(.+)/;\r\nfunction parseStringStyle(cssText) {\r\n const ret = {};\r\n cssText.split(listDelimiterRE).forEach(item => {\r\n if (item) {\r\n const tmp = item.split(propertyDelimiterRE);\r\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\r\n }\r\n });\r\n return ret;\r\n}\r\nfunction stringifyStyle(styles) {\r\n let ret = '';\r\n if (!styles || isString(styles)) {\r\n return ret;\r\n }\r\n for (const key in styles) {\r\n const value = styles[key];\r\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\r\n if (isString(value) ||\r\n (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {\r\n // only render valid values\r\n ret += `${normalizedKey}:${value};`;\r\n }\r\n }\r\n return ret;\r\n}\r\nfunction normalizeClass(value) {\r\n let res = '';\r\n if (isString(value)) {\r\n res = value;\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const normalized = normalizeClass(value[i]);\r\n if (normalized) {\r\n res += normalized + ' ';\r\n }\r\n }\r\n }\r\n else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n res += name + ' ';\r\n }\r\n }\r\n }\r\n return res.trim();\r\n}\r\nfunction normalizeProps(props) {\r\n if (!props)\r\n return null;\r\n let { class: klass, style } = props;\r\n if (klass && !isString(klass)) {\r\n props.class = normalizeClass(klass);\r\n }\r\n if (style) {\r\n props.style = normalizeStyle(style);\r\n }\r\n return props;\r\n}\n\n// These tag configs are shared between compiler-dom and runtime-dom, so they\r\n// https://developer.mozilla.org/en-US/docs/Web/HTML/Element\r\nconst HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +\r\n 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +\r\n 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +\r\n 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +\r\n 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +\r\n 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +\r\n 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +\r\n 'option,output,progress,select,textarea,details,dialog,menu,' +\r\n 'summary,template,blockquote,iframe,tfoot';\r\n// https://developer.mozilla.org/en-US/docs/Web/SVG/Element\r\nconst SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +\r\n 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +\r\n 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +\r\n 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +\r\n 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +\r\n 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +\r\n 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +\r\n 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +\r\n 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +\r\n 'text,textPath,title,tspan,unknown,use,view';\r\nconst VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';\r\nconst isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);\r\nconst isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);\r\nconst isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);\n\nconst escapeRE = /[\"'&<>]/;\r\nfunction escapeHtml(string) {\r\n const str = '' + string;\r\n const match = escapeRE.exec(str);\r\n if (!match) {\r\n return str;\r\n }\r\n let html = '';\r\n let escaped;\r\n let index;\r\n let lastIndex = 0;\r\n for (index = match.index; index < str.length; index++) {\r\n switch (str.charCodeAt(index)) {\r\n case 34: // \"\r\n escaped = '"';\r\n break;\r\n case 38: // &\r\n escaped = '&';\r\n break;\r\n case 39: // '\r\n escaped = ''';\r\n break;\r\n case 60: // <\r\n escaped = '<';\r\n break;\r\n case 62: // >\r\n escaped = '>';\r\n break;\r\n default:\r\n continue;\r\n }\r\n if (lastIndex !== index) {\r\n html += str.slice(lastIndex, index);\r\n }\r\n lastIndex = index + 1;\r\n html += escaped;\r\n }\r\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\r\n}\r\n// https://www.w3.org/TR/html52/syntax.html#comments\r\nconst commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;\r\nfunction escapeHtmlComment(src) {\r\n return src.replace(commentStripRE, '');\r\n}\n\nfunction looseCompareArrays(a, b) {\r\n if (a.length !== b.length)\r\n return false;\r\n let equal = true;\r\n for (let i = 0; equal && i < a.length; i++) {\r\n equal = looseEqual(a[i], b[i]);\r\n }\r\n return equal;\r\n}\r\nfunction looseEqual(a, b) {\r\n if (a === b)\r\n return true;\r\n let aValidType = isDate(a);\r\n let bValidType = isDate(b);\r\n if (aValidType || bValidType) {\r\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\r\n }\r\n aValidType = isArray(a);\r\n bValidType = isArray(b);\r\n if (aValidType || bValidType) {\r\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\r\n }\r\n aValidType = isObject(a);\r\n bValidType = isObject(b);\r\n if (aValidType || bValidType) {\r\n /* istanbul ignore if: this if will probably never be called */\r\n if (!aValidType || !bValidType) {\r\n return false;\r\n }\r\n const aKeysCount = Object.keys(a).length;\r\n const bKeysCount = Object.keys(b).length;\r\n if (aKeysCount !== bKeysCount) {\r\n return false;\r\n }\r\n for (const key in a) {\r\n const aHasKey = a.hasOwnProperty(key);\r\n const bHasKey = b.hasOwnProperty(key);\r\n if ((aHasKey && !bHasKey) ||\r\n (!aHasKey && bHasKey) ||\r\n !looseEqual(a[key], b[key])) {\r\n return false;\r\n }\r\n }\r\n }\r\n return String(a) === String(b);\r\n}\r\nfunction looseIndexOf(arr, val) {\r\n return arr.findIndex(item => looseEqual(item, val));\r\n}\n\n/**\r\n * For converting {{ interpolation }} values to displayed strings.\r\n * @private\r\n */\r\nconst toDisplayString = (val) => {\r\n return val == null\r\n ? ''\r\n : isArray(val) ||\r\n (isObject(val) &&\r\n (val.toString === objectToString || !isFunction(val.toString)))\r\n ? JSON.stringify(val, replacer, 2)\r\n : String(val);\r\n};\r\nconst replacer = (_key, val) => {\r\n // can't use isRef here since @vue/shared has no deps\r\n if (val && val.__v_isRef) {\r\n return replacer(_key, val.value);\r\n }\r\n else if (isMap(val)) {\r\n return {\r\n [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {\r\n entries[`${key} =>`] = val;\r\n return entries;\r\n }, {})\r\n };\r\n }\r\n else if (isSet(val)) {\r\n return {\r\n [`Set(${val.size})`]: [...val.values()]\r\n };\r\n }\r\n else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\r\n return String(val);\r\n }\r\n return val;\r\n};\n\nconst EMPTY_OBJ = (process.env.NODE_ENV !== 'production')\r\n ? Object.freeze({})\r\n : {};\r\nconst EMPTY_ARR = (process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];\r\nconst NOOP = () => { };\r\n/**\r\n * Always return false.\r\n */\r\nconst NO = () => false;\r\nconst onRE = /^on[^a-z]/;\r\nconst isOn = (key) => onRE.test(key);\r\nconst isModelListener = (key) => key.startsWith('onUpdate:');\r\nconst extend = Object.assign;\r\nconst remove = (arr, el) => {\r\n const i = arr.indexOf(el);\r\n if (i > -1) {\r\n arr.splice(i, 1);\r\n }\r\n};\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\r\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\r\nconst isArray = Array.isArray;\r\nconst isMap = (val) => toTypeString(val) === '[object Map]';\r\nconst isSet = (val) => toTypeString(val) === '[object Set]';\r\nconst isDate = (val) => val instanceof Date;\r\nconst isFunction = (val) => typeof val === 'function';\r\nconst isString = (val) => typeof val === 'string';\r\nconst isSymbol = (val) => typeof val === 'symbol';\r\nconst isObject = (val) => val !== null && typeof val === 'object';\r\nconst isPromise = (val) => {\r\n return isObject(val) && isFunction(val.then) && isFunction(val.catch);\r\n};\r\nconst objectToString = Object.prototype.toString;\r\nconst toTypeString = (value) => objectToString.call(value);\r\nconst toRawType = (value) => {\r\n // extract \"RawType\" from strings like \"[object RawType]\"\r\n return toTypeString(value).slice(8, -1);\r\n};\r\nconst isPlainObject = (val) => toTypeString(val) === '[object Object]';\r\nconst isIntegerKey = (key) => isString(key) &&\r\n key !== 'NaN' &&\r\n key[0] !== '-' &&\r\n '' + parseInt(key, 10) === key;\r\nconst isReservedProp = /*#__PURE__*/ makeMap(\r\n// the leading comma is intentional so empty string \"\" is also included\r\n',key,ref,ref_for,ref_key,' +\r\n 'onVnodeBeforeMount,onVnodeMounted,' +\r\n 'onVnodeBeforeUpdate,onVnodeUpdated,' +\r\n 'onVnodeBeforeUnmount,onVnodeUnmounted');\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null);\r\n return ((str) => {\r\n const hit = cache[str];\r\n return hit || (cache[str] = fn(str));\r\n });\r\n};\r\nconst camelizeRE = /-(\\w)/g;\r\n/**\r\n * @private\r\n */\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\r\n});\r\nconst hyphenateRE = /\\B([A-Z])/g;\r\n/**\r\n * @private\r\n */\r\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());\r\n/**\r\n * @private\r\n */\r\nconst capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\r\n/**\r\n * @private\r\n */\r\nconst toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\r\n// compare whether a value has changed, accounting for NaN.\r\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\r\nconst invokeArrayFns = (fns, arg) => {\r\n for (let i = 0; i < fns.length; i++) {\r\n fns[i](arg);\r\n }\r\n};\r\nconst def = (obj, key, value) => {\r\n Object.defineProperty(obj, key, {\r\n configurable: true,\r\n enumerable: false,\r\n value\r\n });\r\n};\r\nconst toNumber = (val) => {\r\n const n = parseFloat(val);\r\n return isNaN(n) ? val : n;\r\n};\r\nlet _globalThis;\r\nconst getGlobalThis = () => {\r\n return (_globalThis ||\r\n (_globalThis =\r\n typeof globalThis !== 'undefined'\r\n ? globalThis\r\n : typeof self !== 'undefined'\r\n ? self\r\n : typeof window !== 'undefined'\r\n ? window\r\n : typeof global !== 'undefined'\r\n ? global\r\n : {}));\r\n};\n\nexport { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var global = require('../internals/global');\nvar isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw TypeError(\"Can't set \" + String(argument) + ' as a prototype');\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.es/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? charAt(S, index).length : 1);\n};\n","var global = require('../internals/global');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw TypeError('Incorrect invocation');\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","'use strict';\nvar global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar isConstructor = require('../internals/is-constructor');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar Array = global.Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var IS_CONSTRUCTOR = isConstructor(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = getIterator(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = lengthOfArrayLike(O);\n result = IS_CONSTRUCTOR ? new this(length) : Array(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var global = require('../internals/global');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar Array = global.Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var global = require('../internals/global');\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar Array = global.Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string') {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\nvar replace = uncurryThis(''.replace);\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + replace(toString(value), quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n redefine(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","var path = require('../internals/path');\nvar hasOwn = require('../internals/has-own-property');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","module.exports = typeof window == 'object';\n","var userAgent = require('../internals/engine-user-agent');\nvar global = require('../internals/global');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar redefine = require('../internals/redefine');\nvar regexpExec = require('../internals/regexp-exec');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar SPECIES = wellKnownSymbol('species');\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (KEY, exec, FORCED, SHAM) {\n var SYMBOL = wellKnownSymbol(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n\n if (KEY === 'split') {\n // We can't use real regex here since it causes deoptimization\n // and serious performance degradation in V8\n // https://github.com/zloirock/core-js/issues/306\n re = {};\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n re.flags = '';\n re[SYMBOL] = /./[SYMBOL];\n }\n\n re.exec = function () { execCalled = true; return null; };\n\n re[SYMBOL]('');\n return !execCalled;\n });\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n FORCED\n ) {\n var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n var uncurriedNativeMethod = uncurryThis(nativeMethod);\n var $exec = regexp.exec;\n if ($exec === regexpExec || $exec === RegExpPrototype.exec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };\n }\n return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };\n }\n return { done: false };\n });\n\n redefine(String.prototype, KEY, methods[0]);\n redefine(RegExpPrototype, SYMBOL, methods[1]);\n }\n\n if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);\n};\n","var FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : bind ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var call = Function.prototype.call;\n\nmodule.exports = call.bind ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = bind && bind.bind(call, call);\n\nmodule.exports = bind ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw TypeError(tryToString(argument) + ' is not iterable');\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var global = require('../internals/global');\n\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : Object(it);\n} : Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TypeError = global.TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n redefine(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var log = Math.log;\nvar LOG10E = Math.LOG10E;\n\n// eslint-disable-next-line es/no-math-log10 -- safe\nmodule.exports = Math.log10 || function log10(x) {\n return log(x) * LOG10E;\n};\n","// `Math.sign` method implementation\n// https://tc39.es/ecma262/#sec-math.sign\n// eslint-disable-next-line es/no-math-sign -- safe\nmodule.exports = Math.sign || function sign(x) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n // strange IE + webpack dev server bug - use .bind(global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var global = require('../internals/global');\nvar isRegExp = require('../internals/is-regexp');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var global = require('../internals/global');\n\nvar globalIsFinite = global.isFinite;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n// eslint-disable-next-line es/no-number-isfinite -- safe\nmodule.exports = Number.isFinite || function isFinite(it) {\n return typeof it == 'number' && globalIsFinite(it);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar TypeError = global.TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var global = require('../internals/global');\nvar hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar Object = global.Object;\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof Object ? ObjectPrototype : null;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n if (this.head) this.tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n this.head = entry.next;\n if (this.tail === entry) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var name = options && options.name !== undefined ? options.name : key;\n var state;\n if (isCallable(value)) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n createNonEnumerableProperty(value, 'name', name);\n }\n state = enforceInternalState(value);\n if (!state.source) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n }\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n});\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar regexpExec = require('../internals/regexp-exec');\n\nvar TypeError = global.TypeError;\n\n// `RegExpExec` abstract operation\n// https://tc39.es/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (isCallable(exec)) {\n var result = call(exec, R, S);\n if (result !== null) anObject(result);\n return result;\n }\n if (classof(R) === 'RegExp') return call(regexpExec, R, S);\n throw TypeError('RegExp#exec called on incompatible receiver');\n};\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n call(nativeExec, re1, 'a');\n call(nativeExec, re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n patchedExec = function exec(string) {\n var re = this;\n var state = getInternalState(re);\n var str = toString(string);\n var raw = state.raw;\n var result, reCopy, lastIndex, match, i, object, group;\n\n if (raw) {\n raw.lastIndex = re.lastIndex;\n result = call(patchedExec, raw, str);\n re.lastIndex = raw.lastIndex;\n return result;\n }\n\n var groups = state.groups;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = call(regexpFlags, re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = replace(flags, 'y', '');\n if (indexOf(flags, 'g') === -1) {\n flags += 'g';\n }\n\n strCopy = stringSlice(str, re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = stringSlice(match.input, charsAdded);\n match[0] = stringSlice(match[0], charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n call(nativeReplace, match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n if (match && groups) {\n match.groups = object = create(null);\n for (i = 0; i < groups.length; i++) {\n group = groups[i];\n object[group[0]] = match[group[1]];\n }\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n var re = $RegExp('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = $RegExp('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\nmodule.exports = {\n BROKEN_CARET: BROKEN_CARET,\n MISSED_STICKY: MISSED_STICKY,\n UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('.', 's');\n return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?<a>b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$<a>c') !== 'bc';\n});\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.20.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2022 Denis Pushkarev (zloirock.ru)'\n});\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);\n};\n","var fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar global = require('../internals/global');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar RangeError = global.RangeError;\n\n// `String.prototype.repeat` method implementation\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\nmodule.exports = function repeat(count) {\n var str = toString(requireObjectCoercible(this));\n var result = '';\n var n = toIntegerOrInfinity(count);\n if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;\n return result;\n};\n","var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n location = global.location;\n} catch (error) { /* empty */ }\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(isCallable(fn) ? fn : Function(fn), undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n location && location.protocol !== 'file:' &&\n !fails(post)\n ) {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- safe\n return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar clearErrorStack = require('../internals/clear-error-stack');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\nvar TypeError = global.TypeError;\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $findIndex = require('../internals/array-iteration').findIndex;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.es/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/define-iterator');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar un$Join = uncurryThis([].join);\n\nvar ES3_STRINGS = IndexedObject != Object;\nvar STRICT_METHOD = arrayMethodIsStrict('join', ',');\n\n// `Array.prototype.join` method\n// https://tc39.es/ecma262/#sec-array.prototype.join\n$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {\n join: function join(separator) {\n return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar un$Slice = require('../internals/array-slice');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\n\nvar SPECIES = wellKnownSymbol('species');\nvar Array = global.Array;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return un$Slice(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\nvar TypeError = global.TypeError;\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O);\n }\n};\n\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar functionToString = uncurryThis(FunctionPrototype.toString);\nvar nameRE = /function\\b(?:\\s|\\/\\*[\\S\\s]*?\\*\\/|\\/\\/[^\\n\\r]*[\\n\\r]+)*([^\\s(/]*)/;\nvar regExpExec = uncurryThis(nameRE.exec);\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return regExpExec(nameRE, functionToString(this))[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\n\nvar Array = global.Array;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];\n var result = apply($stringify, null, args);\n return typeof result == 'string' ? replace(result, tester, fix) : result;\n }\n });\n}\n","var $ = require('../internals/export');\nvar log10 = require('../internals/math-log10');\n\n// `Math.log10` method\n// https://tc39.es/ecma262/#sec-math.log10\n$({ target: 'Math', stat: true }, {\n log10: log10\n});\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\n// `Math.log2` method\n// https://tc39.es/ecma262/#sec-math.log2\n$({ target: 'Math', stat: true }, {\n log2: function log2(x) {\n return log(x) / LN2;\n }\n});\n","var $ = require('../internals/export');\nvar sign = require('../internals/math-sign');\n\n// `Math.sign` method\n// https://tc39.es/ecma262/#sec-math.sign\n$({ target: 'Math', stat: true }, {\n sign: sign\n});\n","var $ = require('../internals/export');\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n$({ target: 'Math', stat: true }, {\n trunc: function trunc(it) {\n return (it > 0 ? floor : ceil)(it);\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar arraySlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = arraySlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n var dummy = this;\n // check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })\n ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n","var $ = require('../internals/export');\nvar numberIsFinite = require('../internals/number-is-finite');\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n$({ target: 'Number', stat: true }, { isFinite: numberIsFinite });\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar thisNumberValue = require('../internals/this-number-value');\nvar $repeat = require('../internals/string-repeat');\nvar log10 = require('../internals/math-log10');\nvar fails = require('../internals/fails');\n\nvar RangeError = global.RangeError;\nvar String = global.String;\nvar isFinite = global.isFinite;\nvar abs = Math.abs;\nvar floor = Math.floor;\nvar pow = Math.pow;\nvar round = Math.round;\nvar un$ToExponential = uncurryThis(1.0.toExponential);\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\n\n// Edge 17-\nvar ROUNDS_PROPERLY = un$ToExponential(-6.9e-11, 4) === '-6.9000e-11'\n // IE11- && Edge 14-\n && un$ToExponential(1.255, 2) === '1.25e+0'\n // FF86-, V8 ~ Chrome 49-50\n && un$ToExponential(12345, 3) === '1.235e+4'\n // FF86-, V8 ~ Chrome 49-50\n && un$ToExponential(25, 0) === '3e+1';\n\n// IE8-\nvar THROWS_ON_INFINITY_FRACTION = fails(function () {\n un$ToExponential(1, Infinity);\n}) && fails(function () {\n un$ToExponential(1, -Infinity);\n});\n\n// Safari <11 && FF <50\nvar PROPER_NON_FINITE_THIS_CHECK = !fails(function () {\n un$ToExponential(Infinity, Infinity);\n}) && !fails(function () {\n un$ToExponential(NaN, Infinity);\n});\n\nvar FORCED = !ROUNDS_PROPERLY || !THROWS_ON_INFINITY_FRACTION || !PROPER_NON_FINITE_THIS_CHECK;\n\n// `Number.prototype.toExponential` method\n// https://tc39.es/ecma262/#sec-number.prototype.toexponential\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toExponential: function toExponential(fractionDigits) {\n var x = thisNumberValue(this);\n if (fractionDigits === undefined) return un$ToExponential(x);\n var f = toIntegerOrInfinity(fractionDigits);\n if (!isFinite(x)) return String(x);\n // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation\n if (f < 0 || f > 20) throw RangeError('Incorrect fraction digits');\n if (ROUNDS_PROPERLY) return un$ToExponential(x, f);\n var s = '';\n var m = '';\n var e = 0;\n var c = '';\n var d = '';\n if (x < 0) {\n s = '-';\n x = -x;\n }\n if (x === 0) {\n e = 0;\n m = repeat('0', f + 1);\n } else {\n // this block is based on https://gist.github.com/SheetJSDev/1100ad56b9f856c95299ed0e068eea08\n // TODO: improve accuracy with big fraction digits\n var l = log10(x);\n e = floor(l);\n var n = 0;\n var w = pow(10, e - f);\n n = round(x / w);\n if (2 * x >= (2 * n + 1) * w) {\n n += 1;\n }\n if (n >= pow(10, f + 1)) {\n n /= 10;\n e += 1;\n }\n m = String(n);\n }\n if (f !== 0) {\n m = stringSlice(m, 0, 1) + '.' + stringSlice(m, 1);\n }\n if (e === 0) {\n c = '+';\n d = '0';\n } else {\n c = e > 0 ? '+' : '-';\n d = String(abs(e));\n }\n m += 'e' + c + d;\n return s + m;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar thisNumberValue = require('../internals/this-number-value');\nvar $repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar RangeError = global.RangeError;\nvar String = global.String;\nvar floor = Math.floor;\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\nvar un$ToFixed = uncurryThis(1.0.toFixed);\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = fails(function () {\n return un$ToFixed(0.00008, 3) !== '0.000' ||\n un$ToFixed(0.9, 0) !== '1' ||\n un$ToFixed(1.255, 2) !== '1.25' ||\n un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128';\n}) || !fails(function () {\n // V8 ~ Android 4.3-\n un$ToFixed({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toIntegerOrInfinity(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat('0', fractDigits - k) + result\n : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {\n assign: assign\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar ownKeys = require('../internals/own-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar createProperty = require('../internals/create-property');\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n});\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar redefine = require('../internals/redefine');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromise)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromise.prototype['finally'] !== method) {\n redefine(NativePromise.prototype, 'finally', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar call = require('../internals/function-call');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_NODE = require('../internals/engine-is-node');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\n\nvar getInternalState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar NativePromisePrototype = NativePromise && NativePromise.prototype;\nvar PromiseConstructor = NativePromise;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar SUBCLASSING = false;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromisePrototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = new PromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;\n});\n\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n PromisePrototype = PromiseConstructor.prototype;\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromisePrototype, {\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n // eslint-disable-next-line unicorn/no-thenable -- safe\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.es/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n\n // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\n redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, wrap: true, forced: FORCED }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({ target: PROMISE, stat: true, forced: FORCED }, {\n // `Promise.reject` method\n // https://tc39.es/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n\n$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {\n // `Promise.resolve` method\n // https://tc39.es/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n\n$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {\n // `Promise.all` method\n // https://tc39.es/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.es/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","var $ = require('../internals/export');\n\n// `Reflect.has` method\n// https://tc39.es/ecma262/#sec-reflect.has\n$({ target: 'Reflect', stat: true }, {\n has: function has(target, propertyKey) {\n return propertyKey in target;\n }\n});\n","var $ = require('../internals/export');\nvar ownKeys = require('../internals/own-keys');\n\n// `Reflect.ownKeys` method\n// https://tc39.es/ecma262/#sec-reflect.ownkeys\n$({ target: 'Reflect', stat: true }, {\n ownKeys: ownKeys\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n$({ global: true }, { Reflect: {} });\n\n// Reflect[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-reflect-@@tostringtag\nsetToStringTag(global.Reflect, 'Reflect', true);\n","'use strict';\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n\n// `RegExp.prototype.exec` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.exec\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n","'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar Error = global.Error;\nvar un$Test = uncurryThis(/./.test);\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (str) {\n var exec = this.exec;\n if (!isCallable(exec)) return un$Test(this, str);\n var result = call(exec, this, str);\n if (result !== null && !isObject(result)) {\n throw new Error('RegExp exec method returned something other than an Object or null');\n }\n return !!result;\n }\n});\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar redefine = require('../internals/redefine');\nvar anObject = require('../internals/an-object');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar n$ToString = RegExpPrototype[TO_STRING];\nvar getFlags = uncurryThis(regExpFlags);\n\nvar NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = $toString(R.source);\n var rf = R.flags;\n var f = $toString(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);\n return '/' + p + '/' + f;\n }, { unsafe: true });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\nvar stringIndexOf = uncurryThis(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString(requireObjectCoercible(this)),\n toString(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.link` method\n// https://tc39.es/ecma262/#sec-string.prototype.link\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {\n link: function link(url) {\n return createHTML(this, 'a', 'href', url);\n }\n});\n","var $ = require('../internals/export');\nvar repeat = require('../internals/string-repeat');\n\n// `String.prototype.repeat` method\n// https://tc39.es/ecma262/#sec-string.prototype.repeat\n$({ target: 'String', proto: true }, {\n repeat: repeat\n});\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar fails = require('../internals/fails');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar getMethod = require('../internals/get-method');\nvar getSubstitution = require('../internals/get-substitution');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar max = Math.max;\nvar min = Math.min;\nvar concat = uncurryThis([].concat);\nvar push = uncurryThis([].push);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive\n return ''.replace(re, '$<a>') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n var replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.small` method\n// https://tc39.es/ecma262/#sec-string.prototype.small\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('small') }, {\n small: function small() {\n return createHTML(this, 'small', '', '');\n }\n});\n","'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar isRegExp = require('../internals/is-regexp');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar arraySlice = require('../internals/array-slice-simple');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar MAX_UINT32 = 0xFFFFFFFF;\nvar min = Math.min;\nvar $push = [].push;\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis($push);\nvar stringSlice = uncurryThis(''.slice);\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'.split(/(b)*/)[1] == 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length != 4 ||\n 'ab'.split(/(?:ab)*/).length != 2 ||\n '.'.split(/(.?)(.?)/).length != 4 ||\n // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = toString(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return call(nativeSplit, string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = call(regexpExec, separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n push(output, stringSlice(string, lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !exec(separatorCopy, '')) push(output, '');\n } else push(output, stringSlice(string, lastLastIndex));\n return output.length > lim ? arraySlice(output, 0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);\n return splitter\n ? call(splitter, separator, O, limit)\n : call(internalSplit, toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n\n if (res.done) return res.value;\n\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n push(A, stringSlice(S, p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n push(A, z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n push(A, stringSlice(S, p));\n return A;\n }\n ];\n}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.sub` method\n// https://tc39.es/ecma262/#sec-string.prototype.sub\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sub') }, {\n sub: function sub() {\n return createHTML(this, 'sub', '', '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","// `Symbol.prototype.description` getter\n// https://tc39.es/ecma262/#sec-symbol.prototype.description\n'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar toString = require('../internals/to-string');\nvar defineProperty = require('../internals/object-define-property').f;\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\n\nvar NativeSymbol = global.Symbol;\nvar SymbolPrototype = NativeSymbol && NativeSymbol.prototype;\n\nif (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||\n // Safari 12 bug\n NativeSymbol().description !== undefined\n)) {\n var EmptyStringDescriptionStore = {};\n // wrap Symbol constructor for correct work with undefined description\n var SymbolWrapper = function Symbol() {\n var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);\n var result = isPrototypeOf(SymbolPrototype, this)\n ? new NativeSymbol(description)\n // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'\n : description === undefined ? NativeSymbol() : NativeSymbol(description);\n if (description === '') EmptyStringDescriptionStore[result] = true;\n return result;\n };\n\n copyConstructorProperties(SymbolWrapper, NativeSymbol);\n SymbolWrapper.prototype = SymbolPrototype;\n SymbolPrototype.constructor = SymbolWrapper;\n\n var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';\n var symbolToString = uncurryThis(SymbolPrototype.toString);\n var symbolValueOf = uncurryThis(SymbolPrototype.valueOf);\n var regexp = /^Symbol\\((.*)\\)[^)]+$/;\n var replace = uncurryThis(''.replace);\n var stringSlice = uncurryThis(''.slice);\n\n defineProperty(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n var symbol = symbolValueOf(this);\n var string = symbolToString(symbol);\n if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';\n var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');\n return desc === '' ? undefined : desc;\n }\n });\n\n $({ global: true, forced: true }, {\n Symbol: SymbolWrapper\n });\n}\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar fails = require('../internals/fails');\nvar hasOwn = require('../internals/has-own-property');\nvar isArray = require('../internals/is-array');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar $toString = require('../internals/to-string');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar arraySlice = require('../internals/array-slice');\nvar redefine = require('../internals/redefine');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\n\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\nvar TypeError = global.TypeError;\nvar QObject = global.QObject;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar push = uncurryThis([].push);\n\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPropertyKey(P);\n anObject(Attributes);\n if (hasOwn(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {\n push(result, AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);\n if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n redefine(SymbolPrototype, 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n // `Symbol.for` method\n // https://tc39.es/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = $toString(key);\n if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.es/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.es/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n\n $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice(arguments);\n var $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (isCallable($replacer)) value = call($replacer, this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return apply($stringify, null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!SymbolPrototype[TO_PRIMITIVE]) {\n var valueOf = SymbolPrototype.valueOf;\n // eslint-disable-next-line no-unused-vars -- required for .length\n redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n // TODO: improve hint logic\n return call(valueOf, this);\n });\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\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\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","/**!\n * Sortable 1.14.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\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\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\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\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\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\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\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.14.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\n * @param {Number} x X position\n * @param {Number} y Y position\n * @return {HTMLElement} Element of the first found nearest Sortable\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\n * @class Sortable\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n el.appendChild(dragEl);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\n * Serializes the item into an array of string.\n * @returns {String[]}\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\n * Sorts the elements according to the array.\n * @param {String[]} order order of the items\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\n * Save the current sorting\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\n * @param {HTMLElement} el\n * @param {String} [selector] default: `options.draggable`\n * @returns {HTMLElement|null}\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\n * Set/get option\n * @param {string} name\n * @param {*} [value]\n * @returns {*}\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\n * Destroy\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\n * Gets the direction dragEl must be swapped relative to target in order to make it\n * seem that dragEl has been \"inserted\" into that element's position\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\n * @return {Number} Direction dragEl must be swapped\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\n * Generate id\n * @param {HTMLElement} el\n * @returns {String}\n * @private\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\n * Get the Sortable instance of an element\n * @param {HTMLElement} element The element\n * @return {Sortable|undefined} The instance of Sortable\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\n * Mount a plugin to Sortable\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\n * Create sortable instance\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvt: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvt: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvt: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvt: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\n * Selects the provided multi-drag item\n * @param {HTMLElement} el The element to be selected\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\n * Deselects the provided multi-drag item\n * @param {HTMLElement} el The element to be deselected\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\n * Insert multi-drag clones\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\n * @param {HTMLElement} rootEl\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","import{ref as e,onMounted as n,onUpdated as t,openBlock as a,createElementBlock as l,renderSlot as o,createElementVNode as u,withKeys as i,withModifiers as r,inject as c,mergeProps as d,Fragment as s,renderList as p,normalizeClass as v,toDisplayString as f,createCommentVNode as g,reactive as y,toRef as m,computed as h,watchEffect as b,defineComponent as B,getCurrentInstance as I,watch as x,nextTick as w,provide as M,resolveComponent as k,createVNode as O,withCtx as F,createBlock as V,withDirectives as S,vShow as A}from\"vue\";function T(e){return(T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function C(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,n){if(e){if(\"string\"==typeof e)return N(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N(e,n):void 0}}function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function E(e,n){var t=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!t){if(Array.isArray(e)||(t=D(e))||n&&e&&\"number\"==typeof e.length){t&&(e=t);var a=0,l=function(){};return{s:l,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:l}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,u=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){i=!0,o=e},f:function(){try{u||null==t.return||t.return()}finally{if(i)throw o}}}}var L={inheritAttrs:!1,name:\"vue-input\",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:[\"update:modelValue\",\"input\",\"change\",\"focus\",\"blur\",\"escape\"],setup:function(a,l){var o=e(null);return n((function(){a.autofocus&&o.value.focus()})),t((function(){a.autofocus&&o.value.focus()})),{handleInput:function(e){l.emit(\"input\",e),l.emit(\"update:modelValue\",e.target.value)},handleChange:function(e){l.emit(\"change\",e),l.emit(\"update:modelValue\",e.target.value)},handleFocus:function(e){l.emit(\"focus\",e)},handleBlur:function(e){l.emit(\"blur\",e)},input:o,handleEscape:function(e){o.value.blur(),l.emit(\"escape\",e)}}}},j={class:\"vue-input\"},$=[\"autocomplete\",\"modelValue\",\"placeholder\",\"disabled\",\"tabindex\",\"autofocus\",\"aria-controls\",\"aria-labelledby\"];L.render=function(e,n,t,c,d,s){return a(),l(\"div\",j,[o(e.$slots,\"prepend\"),u(\"input\",{ref:\"input\",autocomplete:t.autocomplete,modelValue:t.modelValue,placeholder:t.placeholder,disabled:t.disabled,onInput:n[0]||(n[0]=function(){return c.handleInput&&c.handleInput.apply(c,arguments)}),onChange:n[1]||(n[1]=function(){return c.handleChange&&c.handleChange.apply(c,arguments)}),onFocus:n[2]||(n[2]=function(){return c.handleFocus&&c.handleFocus.apply(c,arguments)}),onBlur:n[3]||(n[3]=function(){return c.handleBlur&&c.handleBlur.apply(c,arguments)}),onKeyup:n[4]||(n[4]=i(r((function(){return c.handleEscape&&c.handleEscape.apply(c,arguments)}),[\"exact\"]),[\"esc\"])),tabindex:t.tabindex,autofocus:t.autofocus,\"aria-autocomplete\":\"list\",\"aria-controls\":\"vs\".concat(t.comboboxUid,\"-listbox\"),\"aria-labelledby\":\"vs\".concat(t.comboboxUid,\"-combobox\")},null,40,$),o(e.$slots,\"append\")])},L.__file=\"src/components/input.vue\";var U={inheritAttrs:!1,name:\"vue-tags\",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&\"boolean\"==typeof e.selected}))}},collapseTags:{type:Boolean}},emits:[\"click\"],setup:function(e,n){return{dataAttrs:c(\"dataAttrs\"),handleClick:function(e){n.emit(\"click\",e)}}}};U.render=function(e,n,t,i,c,y){return a(),l(\"ul\",d({class:[\"vue-tags\",{collapsed:t.collapseTags}],onMousedown:n[0]||(n[0]=r((function(){}),[\"prevent\"])),tabindex:\"-1\",onClick:n[1]||(n[1]=function(){return i.handleClick&&i.handleClick.apply(i,arguments)})},i.dataAttrs),[(a(!0),l(s,null,p(t.modelValue,(function(n){return a(),l(s,{key:n.key},[n.group?g(\"v-if\",!0):(a(),l(\"li\",{key:0,class:v([\"vue-tag\",{selected:n.selected}])},[o(e.$slots,\"default\",{option:n},(function(){return[u(\"span\",null,f(n.label),1)]}))],2))],64)})),128))],16)},U.__file=\"src/components/tags.vue\";var z={inheritAttrs:!1,name:\"vue-dropdown\",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&\"boolean\"==typeof e.selected}))}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:[\"click-item\",\"mouseenter\"],setup:function(e,n){return{dataAttrs:c(\"dataAttrs\"),handleClickItem:function(e,t){t.disabled||n.emit(\"click-item\",e,t)},handleMouseenter:function(e,t){n.emit(\"mouseenter\",e,t)}}}},P=[\"id\",\"aria-multiselectable\",\"aria-busy\",\"aria-disabled\"],q=[\"onClick\",\"onMouseenter\",\"id\",\"aria-selected\",\"aria-disabled\"];z.render=function(e,n,t,i,c,y){return a(),l(\"ul\",d({class:\"vue-dropdown\",style:{maxHeight:t.maxHeight+\"px\"},onMousedown:n[0]||(n[0]=r((function(){}),[\"prevent\"]))},i.dataAttrs,{role:\"listbox\",id:\"vs\".concat(t.comboboxUid,\"-listbox\"),\"aria-multiselectable\":i.dataAttrs[\"data-multiple\"],\"aria-busy\":i.dataAttrs[\"data-loading\"],\"aria-disabled\":i.dataAttrs[\"data-disabled\"]}),[(a(!0),l(s,null,p(t.modelValue,(function(n,r){return a(),l(s,{key:n.key},[n.visible&&!1===n.hidden?(a(),l(\"li\",{key:0,onClick:function(e){return i.handleClickItem(e,n)},class:v([\"vue-dropdown-item\",{selected:n.selected,disabled:n.disabled,highlighted:n.originalIndex===t.highlightedOriginalIndex,group:n.group}]),onMouseenter:function(e){return i.handleMouseenter(e,n)},role:\"option\",id:\"vs\".concat(t.comboboxUid,\"-option-\").concat(r),\"aria-selected\":!!n.selected||!!n.disabled&&void 0,\"aria-disabled\":n.disabled},[o(e.$slots,\"default\",{option:n},(function(){return[u(\"span\",null,f(n.label),1)]}))],42,q)):g(\"v-if\",!0)],64)})),128))],16,P)},z.__file=\"src/components/dropdown.vue\";var H=function(e,n,t){var a=t.valueBy;return a(e)===a(n)},_=function(e,n,t){var a=t.valueBy;return e.some((function(e){return H(e,n,{valueBy:a})}))},W=function(e,n,t){var a=t.valueBy;return e.find((function(e){return a(e)===n}))},Z=function(e,n,t){var a=t.max,l=t.valueBy;return _(e,n,{valueBy:l})||e.length>=a?e:e.concat(n)},R=function(e,n,t){var a=t.min,l=t.valueBy;return!1===_(e,n,{valueBy:l})||e.length<=a?e:e.filter((function(e){return!1===H(e,n,{valueBy:l})}))},G=function(e){return h((function(){return\"function\"==typeof e.value?e.value:\"string\"==typeof e.value?function(n){return e.value.split(\".\").reduce((function(e,n){return e[n]}),n)}:function(e){return e}}))},Q=function(e,n){var t=h((function(){return e.value.reduce((function(e,n){return Object.assign(e,(t={},a=n.originalIndex,l=n,a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t));var t,a,l}),{})})),a=function(e){var a=t.value[e];return void 0!==a&&(!1!==l(a)&&(n.value=e,!0))},l=function(e){return!e.disabled&&!e.hidden&&e.visible},o=h((function(){return e.value.some((function(e){return l(e)}))}));return b((function(){if(!1===o.value&&(n.value=null),null!==n.value&&e.value.length<=n.value){var t,u=E(e.value.reverse());try{for(u.s();!(t=u.n()).done;){var i=t.value;if(a(i.originalIndex))break}}catch(e){u.e(e)}finally{u.f()}}if(null===n.value||!1===l(e.value[n.value])){var r,c=E(e.value);try{for(c.s();!(r=c.n()).done;){var d=r.value;if(a(d.originalIndex))break}}catch(e){c.e(e)}finally{c.f()}}})),{pointerForward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value+1,l=0;t!==n.value&&l++<e.value.length&&(e.value.length<=t&&(t=0),!a(t));)++t},pointerBackward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value-1,l=0;t!==n.value&&l++<e.value.length&&(t<0&&(t=e.value.length-1),!a(t));)--t},pointerSet:a}};var Y=B({name:\"vue-select\",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:\"disabled\",type:[String,Function]},groupBy:{default:\"group\",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:\"Type to search\",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:\"off\",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:\"Select option\",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return[\"top\",\"bottom\"].includes(e)}}},emits:[\"selected\",\"removed\",\"update:modelValue\",\"focus\",\"blur\",\"toggle\",\"opened\",\"closed\",\"search:input\",\"search:change\",\"search:focus\",\"search:blur\"],setup:function(n,t){var a=function(e){var n=y({}),t=G(m(e,\"labelBy\"));b((function(){return n.labelBy=t.value}));var a=G(m(e,\"valueBy\"));b((function(){return n.valueBy=a.value}));var l=G(m(e,\"disabledBy\"));b((function(){return n.disabledBy=l.value}));var o=G(m(e,\"groupBy\"));b((function(){return n.groupBy=o.value}));var u=h((function(){return e.multiple?e.min:Math.min(1,e.min)}));b((function(){return n.min=u.value}));var i=h((function(){return e.multiple?e.max:1}));return b((function(){return n.max=i.value})),b((function(){return n.options=e.options})),n}(n),l=h((function(){var e;return null!==(e=n.emptyModelValue)&&void 0!==e?e:null})),o=I(),u=e(),i=e(),r=e(),c=h((function(){var e;return null===(e=r.value)||void 0===e?void 0:e._.refs.input})),d=e(!1);x((function(){return d.value}),(function(){d.value?(t.emit(\"opened\"),t.emit(\"focus\"),n.searchable?(c.value!==document.activeElement&&c.value.focus(),t.emit(\"search:focus\")):u.value.focus()):(n.searchable?(c.value===document.activeElement&&c.value.blur(),n.clearOnClose&&D(),t.emit(\"search:blur\")):u.value.blur(),t.emit(\"closed\"),t.emit(\"blur\")),t.emit(\"toggle\")}));var s=function(){n.disabled||(d.value=!0)},p=function(e){u.value.contains(null==e?void 0:e.relatedTarget)?setTimeout((function(){u.value.focus()})):d.value=!1};x((function(){return n.disabled}),(function(){return p()}));var v=e(\"\"),f=h((function(){return new RegExp(v.value.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),\"i\")})),g=h((function(){return v.value?a.options.filter((function(e){return f.value.test(a.labelBy(e))})):void 0})),B=e([]),k=h((function(){return new Set(B.value.map((function(e){return a.valueBy(e)})))})),O=function(){if(n.multiple){if(!1===Array.isArray(n.modelValue))return!1;if(B.value.length!==n.modelValue.length)return!1;if(Object.keys(B.value).some((function(e){return B.value[e]!==W(a.options,n.modelValue[e],{valueBy:a.valueBy})})))return!1}else{if(0===B.value.length&&n.modelValue!==l.value)return!1;if(1===B.value.length&&n.modelValue===l.value)return!1;if(B.value[0]!==W(a.options,n.modelValue,{valueBy:a.valueBy}))return!1}return!0},F=function(){if(!O()){B.value=[];var e,t=E(n.multiple?n.modelValue:n.modelValue===l.value?[]:[n.modelValue]);try{for(t.s();!(e=t.n()).done;){var o=e.value,u=W(a.options,o,{valueBy:a.valueBy});!1!==_(a.options,u,{valueBy:a.valueBy})&&(B.value=Z(B.value,u,{max:1/0,valueBy:a.valueBy}))}}catch(e){t.e(e)}finally{t.f()}}};F(),x((function(){return n.modelValue}),(function(){return F()}),{deep:!0}),x((function(){return a.options}),(function(){B.value=a.options.filter((function(e){return k.value.has(a.valueBy(e))}))}),{deep:!0});var V,S=function(e,n){(n=n.originalOption).value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return _(B.value,n,{valueBy:a.valueBy})}))?n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});B.value=R(B.value,n,{min:a.min,valueBy:a.valueBy}),t.emit(\"removed\",n)})):n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});_(B.value,n,{valueBy:a.valueBy})||(B.value=Z(B.value,n,{max:a.max,valueBy:a.valueBy}),t.emit(\"selected\",n))}))},A=function(e,l){if(l=l.originalOption,_(B.value,l,{valueBy:a.valueBy}))B.value=R(B.value,l,{min:a.min,valueBy:a.valueBy}),t.emit(\"removed\",l);else{if(!n.multiple&&1===B.value.length){var o=B.value[0];B.value=R(B.value,B.value[0],{min:0,valueBy:a.valueBy}),t.emit(\"removed\",o)}B.value=Z(B.value,l,{max:a.max,valueBy:a.valueBy}),t.emit(\"selected\",l)}},T=function(){if(!O()){var e=B.value.map((function(e){return a.valueBy(e)}));n.multiple?t.emit(\"update:modelValue\",e):e.length?t.emit(\"update:modelValue\",e[0]):t.emit(\"update:modelValue\",l.value)}},D=function(){c.value.value=\"\",c.value.dispatchEvent(new Event(\"input\")),c.value.dispatchEvent(new Event(\"change\"))},N=h((function(){var e,t;return null!==(t=null!==(e=n.visibleOptions)&&void 0!==e?e:g.value)&&void 0!==t?t:a.options})),L=e(0),j=h((function(){var e,t=new Set(N.value.map((function(e){return a.valueBy(e)}))),l=a.options.map((function(e,l){var o,u={key:a.valueBy(e),label:a.labelBy(e),group:null!==(o=a.groupBy(e))&&void 0!==o&&o,originalIndex:l,originalOption:e};return u.selected=u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e)),u.disabled=u.group?a.disabledBy(e)||e.value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return a.disabledBy(n)})):a.disabledBy(e),u.visible=u.group?e.value.some((function(e){return t.has(e)})):t.has(a.valueBy(e)),u.hidden=!!n.hideSelected&&(u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e))),u})),o=E(l);try{for(o.s();!(e=o.n()).done;){var u=e.value;!1!==u.group&&(u.disabled&&function(){var e=new Set(u.originalOption.value);l.filter((function(n){return e.has(a.valueBy(n.originalOption))})).forEach((function(e){return e.disabled=!0}))}())}}catch(e){o.e(e)}finally{o.f()}return l})),$=Q(j,L),U=$.pointerForward,z=$.pointerBackward,P=$.pointerSet,q=\"\",H=/^[\\w]$/,Y=h((function(){var e=C(a.options.keys());return e.slice(L.value).concat(e.slice(0,L.value))})),K=function(){var e,n=null===(e=u.value)||void 0===e?void 0:e.querySelector(\".highlighted\");if(n&&i.value){var t,a=getComputedStyle(n);for(t=0;n.offsetTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)>i.value.$el.clientHeight+i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);for(t=0;n.offsetTop<i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop-parseFloat(a.height)-parseFloat(a.paddingTop)-parseFloat(a.paddingBottom)}};x((function(){return[d.value,a.options,k.value]}),(function(e,n){!0!==(null==n?void 0:n[0])&&!1!==d.value&&0!==B.value.length&&(P(a.options.findIndex((function(e){return k.value.has(a.valueBy(e))}))),w(K))}),{deep:!0,immediate:!0});var J=h((function(){return{\"data-is-focusing\":d.value,\"data-visible-length\":j.value.filter((function(e){return e.visible&&!1===e.hidden})).length,\"data-not-selected-length\":a.options.length-j.value.filter((function(e){return e.selected})).length,\"data-selected-length\":j.value.filter((function(e){return e.selected})).length,\"data-addable\":j.value.filter((function(e){return e.selected})).length<a.max,\"data-removable\":j.value.filter((function(e){return e.selected})).length>a.min,\"data-total-length\":a.options.length,\"data-multiple\":n.multiple,\"data-loading\":n.loading,\"data-disabled\":n.disabled}}));M(\"dataAttrs\",J);var X=h((function(){return j.value.filter((function(e){return e.selected})).filter((function(e){return!e.group}))})),ee=h((function(){return n.multiple?0===X.value.length?n.placeholder:1===X.value.length?\"1 option selected\":X.value.length+\" options selected\":0===X.value.length?n.placeholder:X.value[0].label+\"\"})),ne=h((function(){var e=X.value.map((function(e){return e.originalOption}));return n.multiple?e:e[0]||l.value})),te=e();return x((function(){return[n.openDirection,d.value]}),(function(){var e,t;te.value=null!==(t=null!==(e=n.openDirection)&&void 0!==e?e:function(){if(void 0===u.value)return;if(void 0===window)return;return window.innerHeight-u.value.getBoundingClientRect().bottom>=n.maxHeight?\"bottom\":\"top\"}())&&void 0!==t?t:\"bottom\"}),{immediate:!0}),{instance:o,isFocusing:d,wrapper:u,dropdown:i,input:r,focus:s,blur:p,toggle:function(){d.value?p():s()},searchingInputValue:v,handleInputForInput:function(e){t.emit(\"search:input\",e)},handleChangeForInput:function(e){t.emit(\"search:change\",e)},handleFocusForInput:function(e){s()},handleBlurForInput:function(e){p()},optionsWithInfo:j,addOrRemoveOption:function(e,t){n.disabled||(t.group&&n.multiple?S(e,t):A(e,t),T(),!0===n.closeOnSelect&&(d.value=!1),!0===n.clearOnSelect&&v.value&&D())},dataAttrs:J,innerPlaceholder:ee,selected:ne,highlightedOriginalIndex:L,pointerForward:function(){U(),w(K)},pointerBackward:function(){z(),w(K)},pointerFirst:function(){var e,n=E(a.options.keys());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}w(K)},pointerLast:function(){var e,n=E(C(a.options.keys()).reverse());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}w(K)},typeAhead:function(e){var t,l;if(!n.searchable){var o=!1;if(H.test(e.key)?(q+=e.key.toLowerCase(),o=!0):\"Space\"===e.code&&(q+=\" \"),o){var u,i=E(Y.value);try{for(i.s();!(u=i.n()).done;){var r=u.value;if(!0===(null===(l=null===(t=a.labelBy(a.options[r]))||void 0===t?void 0:t.toLowerCase())||void 0===l?void 0:l.startsWith(q))&&P(r))break}}catch(e){i.e(e)}finally{i.f()}clearTimeout(V),V=setTimeout((function(){q=\"\"}),500)}}},pointerSet:P,direction:te}},components:{VInput:L,VTags:U,VDropdown:z}});Y.__VERSION__=\"2.10.2\";var K=[\"tabindex\",\"id\",\"role\",\"aria-expanded\",\"aria-owns\",\"aria-activedescendant\",\"aria-busy\",\"aria-disabled\"],J={ref:\"header\",class:\"vue-select-header\"},X={key:0,class:\"vue-input\"},ee=[\"placeholder\",\"autocomplete\"],ne=[\"onClick\"],te=u(\"span\",{class:\"icon loading\"},[u(\"div\"),u(\"div\"),u(\"div\")],-1),ae={key:0,class:\"vue-select-input-wrapper\"},le=u(\"span\",{class:\"icon loading\"},[u(\"div\"),u(\"div\"),u(\"div\")],-1);Y.render=function(e,n,t,c,p,y){var m=k(\"v-tags\"),h=k(\"v-input\"),b=k(\"v-dropdown\");return a(),l(\"div\",d({ref:\"wrapper\",class:[\"vue-select\",[\"direction-\".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:n[9]||(n[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:n[10]||(n[10]=function(n){return!e.searchable&&e.blur(n)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:n[11]||(n[11]=i(r((function(){return null!==e.highlightedOriginalIndex&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])}),[\"prevent\",\"exact\"]),[\"enter\"])),onKeydown:[n[12]||(n[12]=i(r((function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"down\"])),n[13]||(n[13]=i(r((function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"up\"])),n[14]||(n[14]=i(r((function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"home\"])),n[15]||(n[15]=i(r((function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"end\"])),n[16]||(n[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:\"vs\".concat(e.instance.uid,\"-combobox\"),role:e.searchable?\"combobox\":null,\"aria-expanded\":e.isFocusing,\"aria-haspopup\":\"listbox\",\"aria-owns\":\"vs\".concat(e.instance.uid,\"-listbox\"),\"aria-activedescendant\":null===e.highlightedOriginalIndex?null:\"vs\".concat(e.instance.uid,\"-option-\").concat(e.highlightedOriginalIndex),\"aria-busy\":e.loading,\"aria-disabled\":e.disabled}),[u(\"div\",J,[e.multiple&&e.taggable&&0===e.modelValue.length||!1===e.searchable&&!1===e.taggable?(a(),l(\"div\",X,[o(e.$slots,\"label\",{selected:e.selected},(function(){return[u(\"input\",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:\"\",onClick:n[0]||(n[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,ee)]}))])):g(\"v-if\",!0),e.multiple&&e.taggable?(a(),l(s,{key:1},[O(m,{modelValue:e.optionsWithInfo,\"collapse-tags\":e.collapseTags,tabindex:\"-1\",onClick:e.focus},{default:F((function(n){var t=n.option;return[o(e.$slots,\"tag\",{option:t.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,t)}},(function(){return[u(\"span\",null,f(t.label),1),u(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==\",alt:\"delete tag\",class:\"icon delete\",onClick:r((function(){return e.addOrRemoveOption(e.$event,t)}),[\"prevent\",\"stop\"])},null,8,ne)]}))]})),_:3},8,[\"modelValue\",\"collapse-tags\",\"onClick\"]),o(e.$slots,\"toggle\",{isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[u(\"span\",{class:v([\"icon arrow-downward\",{active:e.isFocusing}]),onClick:n[1]||(n[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[2]||(n[2]=r((function(){}),[\"prevent\",\"stop\"]))},null,34)]}))],64)):(a(),l(s,{key:2},[e.searchable?(a(),V(h,{key:0,ref:\"input\",modelValue:e.searchingInputValue,\"onUpdate:modelValue\":n[3]||(n[3]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,[\"modelValue\",\"disabled\",\"autocomplete\",\"placeholder\",\"onInput\",\"onChange\",\"onFocus\",\"onBlur\",\"onEscape\",\"autofocus\",\"tabindex\",\"comboboxUid\"])):g(\"v-if\",!0),e.loading?o(e.$slots,\"loading\",{key:1},(function(){return[te]})):o(e.$slots,\"toggle\",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[u(\"span\",{class:v([\"icon arrow-downward\",{active:e.isFocusing}]),onClick:n[4]||(n[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[5]||(n[5]=r((function(){}),[\"prevent\",\"stop\"]))},null,34)]}))],64))],512),e.multiple&&e.taggable&&e.searchable?(a(),l(\"div\",ae,[S(O(h,{ref:\"input\",modelValue:e.searchingInputValue,\"onUpdate:modelValue\":n[6]||(n[6]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,[\"modelValue\",\"disabled\",\"autocomplete\",\"placeholder\",\"onInput\",\"onChange\",\"onFocus\",\"onBlur\",\"onEscape\",\"autofocus\",\"tabindex\",\"comboboxUid\"]),[[A,e.isFocusing]]),e.loading?o(e.$slots,\"loading\",{key:0},(function(){return[le]})):g(\"v-if\",!0)])):g(\"v-if\",!0),O(b,{ref:\"dropdown\",modelValue:e.optionsWithInfo,\"onUpdate:modelValue\":n[7]||(n[7]=function(n){return e.optionsWithInfo=n}),onClickItem:e.addOrRemoveOption,onMouseenter:n[8]||(n[8]=function(n,t){return e.pointerSet(t.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:F((function(n){var t=n.option;return[o(e.$slots,\"dropdown-item\",{option:t.originalOption},(function(){return[u(\"span\",null,f(t.label),1)]}))]})),_:3},8,[\"modelValue\",\"onClickItem\",\"comboboxUid\",\"maxHeight\",\"highlightedOriginalIndex\"])],16,K)},Y.__file=\"src/index.vue\";export{Y as default};\n","/*!\n * vue-textarea-autosize v1.1.1 \n * (c) 2019 Saymon\n * Released under the MIT License.\n */\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'TextareaAutosize',\n props: {\n value: {\n type: [String, Number],\n default: ''\n },\n autosize: {\n type: Boolean,\n default: true\n },\n minHeight: {\n type: [Number],\n 'default': null\n },\n maxHeight: {\n type: [Number],\n 'default': null\n },\n\n /*\n * Force !important for style properties\n */\n important: {\n type: [Boolean, Array],\n default: false\n }\n },\n data: function data() {\n return {\n // data property for v-model binding with real textarea tag\n val: null,\n // works when content height becomes more then value of the maxHeight property\n maxHeightScroll: false,\n height: 'auto'\n };\n },\n computed: {\n computedStyles: function computedStyles() {\n if (!this.autosize) return {};\n return {\n resize: !this.isResizeImportant ? 'none' : 'none !important',\n height: this.height,\n overflow: this.maxHeightScroll ? 'auto' : !this.isOverflowImportant ? 'hidden' : 'hidden !important'\n };\n },\n isResizeImportant: function isResizeImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('resize');\n },\n isOverflowImportant: function isOverflowImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('overflow');\n },\n isHeightImportant: function isHeightImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('height');\n }\n },\n watch: {\n value: function value(val) {\n this.val = val;\n },\n val: function val(_val) {\n this.$nextTick(this.resize);\n this.$emit('input', _val);\n },\n minHeight: function minHeight() {\n this.$nextTick(this.resize);\n },\n maxHeight: function maxHeight() {\n this.$nextTick(this.resize);\n },\n autosize: function autosize(val) {\n if (val) this.resize();\n }\n },\n methods: {\n resize: function resize() {\n var _this = this;\n\n var important = this.isHeightImportant ? 'important' : '';\n this.height = \"auto\".concat(important ? ' !important' : '');\n this.$nextTick(function () {\n var contentHeight = _this.$el.scrollHeight + 1;\n\n if (_this.minHeight) {\n contentHeight = contentHeight < _this.minHeight ? _this.minHeight : contentHeight;\n }\n\n if (_this.maxHeight) {\n if (contentHeight > _this.maxHeight) {\n contentHeight = _this.maxHeight;\n _this.maxHeightScroll = true;\n } else {\n _this.maxHeightScroll = false;\n }\n }\n\n var heightVal = contentHeight + 'px';\n _this.height = \"\".concat(heightVal).concat(important ? ' !important' : '');\n });\n return this;\n }\n },\n created: function created() {\n this.val = this.value;\n },\n mounted: function mounted() {\n this.resize();\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.val),expression:\"val\"}],style:(_vm.computedStyles),domProps:{\"value\":(_vm.val)},on:{\"focus\":_vm.resize,\"input\":function($event){if($event.target.composing){ return; }_vm.val=$event.target.value;}}})};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var TextareaAutosize = normalizeComponent_1(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar version = '1.1.1';\n\nvar install = function install(Vue) {\n Vue.component('TextareaAutosize', TextareaAutosize);\n};\n\nvar plugin = {\n install: install,\n version: version\n};\n\nif (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(plugin);\n}\n\nexport default plugin;\n","import { extend, isArray, isMap, isIntegerKey, isSymbol, hasOwn, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\r\n console.warn(`[Vue warn] ${msg}`, ...args);\r\n}\n\nlet activeEffectScope;\r\nconst effectScopeStack = [];\r\nclass EffectScope {\r\n constructor(detached = false) {\r\n this.active = true;\r\n this.effects = [];\r\n this.cleanups = [];\r\n if (!detached && activeEffectScope) {\r\n this.parent = activeEffectScope;\r\n this.index =\r\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\r\n }\r\n }\r\n run(fn) {\r\n if (this.active) {\r\n try {\r\n this.on();\r\n return fn();\r\n }\r\n finally {\r\n this.off();\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`cannot run an inactive effect scope.`);\r\n }\r\n }\r\n on() {\r\n if (this.active) {\r\n effectScopeStack.push(this);\r\n activeEffectScope = this;\r\n }\r\n }\r\n off() {\r\n if (this.active) {\r\n effectScopeStack.pop();\r\n activeEffectScope = effectScopeStack[effectScopeStack.length - 1];\r\n }\r\n }\r\n stop(fromParent) {\r\n if (this.active) {\r\n this.effects.forEach(e => e.stop());\r\n this.cleanups.forEach(cleanup => cleanup());\r\n if (this.scopes) {\r\n this.scopes.forEach(e => e.stop(true));\r\n }\r\n // nested scope, dereference from parent to avoid memory leaks\r\n if (this.parent && !fromParent) {\r\n // optimized O(1) removal\r\n const last = this.parent.scopes.pop();\r\n if (last && last !== this) {\r\n this.parent.scopes[this.index] = last;\r\n last.index = this.index;\r\n }\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction effectScope(detached) {\r\n return new EffectScope(detached);\r\n}\r\nfunction recordEffectScope(effect, scope) {\r\n scope = scope || activeEffectScope;\r\n if (scope && scope.active) {\r\n scope.effects.push(effect);\r\n }\r\n}\r\nfunction getCurrentScope() {\r\n return activeEffectScope;\r\n}\r\nfunction onScopeDispose(fn) {\r\n if (activeEffectScope) {\r\n activeEffectScope.cleanups.push(fn);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`onScopeDispose() is called when there is no active effect scope` +\r\n ` to be associated with.`);\r\n }\r\n}\n\nconst createDep = (effects) => {\r\n const dep = new Set(effects);\r\n dep.w = 0;\r\n dep.n = 0;\r\n return dep;\r\n};\r\nconst wasTracked = (dep) => (dep.w & trackOpBit) > 0;\r\nconst newTracked = (dep) => (dep.n & trackOpBit) > 0;\r\nconst initDepMarkers = ({ deps }) => {\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].w |= trackOpBit; // set was tracked\r\n }\r\n }\r\n};\r\nconst finalizeDepMarkers = (effect) => {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n let ptr = 0;\r\n for (let i = 0; i < deps.length; i++) {\r\n const dep = deps[i];\r\n if (wasTracked(dep) && !newTracked(dep)) {\r\n dep.delete(effect);\r\n }\r\n else {\r\n deps[ptr++] = dep;\r\n }\r\n // clear bits\r\n dep.w &= ~trackOpBit;\r\n dep.n &= ~trackOpBit;\r\n }\r\n deps.length = ptr;\r\n }\r\n};\n\nconst targetMap = new WeakMap();\r\n// The number of effects currently being tracked recursively.\r\nlet effectTrackDepth = 0;\r\nlet trackOpBit = 1;\r\n/**\r\n * The bitwise track markers support at most 30 levels of recursion.\r\n * This value is chosen to enable modern JS engines to use a SMI on all platforms.\r\n * When recursion depth is greater, fall back to using a full cleanup.\r\n */\r\nconst maxMarkerBits = 30;\r\nconst effectStack = [];\r\nlet activeEffect;\r\nconst ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : '');\r\nconst MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : '');\r\nclass ReactiveEffect {\r\n constructor(fn, scheduler = null, scope) {\r\n this.fn = fn;\r\n this.scheduler = scheduler;\r\n this.active = true;\r\n this.deps = [];\r\n recordEffectScope(this, scope);\r\n }\r\n run() {\r\n if (!this.active) {\r\n return this.fn();\r\n }\r\n if (!effectStack.includes(this)) {\r\n try {\r\n effectStack.push((activeEffect = this));\r\n enableTracking();\r\n trackOpBit = 1 << ++effectTrackDepth;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n initDepMarkers(this);\r\n }\r\n else {\r\n cleanupEffect(this);\r\n }\r\n return this.fn();\r\n }\r\n finally {\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n finalizeDepMarkers(this);\r\n }\r\n trackOpBit = 1 << --effectTrackDepth;\r\n resetTracking();\r\n effectStack.pop();\r\n const n = effectStack.length;\r\n activeEffect = n > 0 ? effectStack[n - 1] : undefined;\r\n }\r\n }\r\n }\r\n stop() {\r\n if (this.active) {\r\n cleanupEffect(this);\r\n if (this.onStop) {\r\n this.onStop();\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction cleanupEffect(effect) {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].delete(effect);\r\n }\r\n deps.length = 0;\r\n }\r\n}\r\nfunction effect(fn, options) {\r\n if (fn.effect) {\r\n fn = fn.effect.fn;\r\n }\r\n const _effect = new ReactiveEffect(fn);\r\n if (options) {\r\n extend(_effect, options);\r\n if (options.scope)\r\n recordEffectScope(_effect, options.scope);\r\n }\r\n if (!options || !options.lazy) {\r\n _effect.run();\r\n }\r\n const runner = _effect.run.bind(_effect);\r\n runner.effect = _effect;\r\n return runner;\r\n}\r\nfunction stop(runner) {\r\n runner.effect.stop();\r\n}\r\nlet shouldTrack = true;\r\nconst trackStack = [];\r\nfunction pauseTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = false;\r\n}\r\nfunction enableTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = true;\r\n}\r\nfunction resetTracking() {\r\n const last = trackStack.pop();\r\n shouldTrack = last === undefined ? true : last;\r\n}\r\nfunction track(target, type, key) {\r\n if (!isTracking()) {\r\n return;\r\n }\r\n let depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n targetMap.set(target, (depsMap = new Map()));\r\n }\r\n let dep = depsMap.get(key);\r\n if (!dep) {\r\n depsMap.set(key, (dep = createDep()));\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { effect: activeEffect, target, type, key }\r\n : undefined;\r\n trackEffects(dep, eventInfo);\r\n}\r\nfunction isTracking() {\r\n return shouldTrack && activeEffect !== undefined;\r\n}\r\nfunction trackEffects(dep, debuggerEventExtraInfo) {\r\n let shouldTrack = false;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n if (!newTracked(dep)) {\r\n dep.n |= trackOpBit; // set newly tracked\r\n shouldTrack = !wasTracked(dep);\r\n }\r\n }\r\n else {\r\n // Full cleanup mode.\r\n shouldTrack = !dep.has(activeEffect);\r\n }\r\n if (shouldTrack) {\r\n dep.add(activeEffect);\r\n activeEffect.deps.push(dep);\r\n if ((process.env.NODE_ENV !== 'production') && activeEffect.onTrack) {\r\n activeEffect.onTrack(Object.assign({\r\n effect: activeEffect\r\n }, debuggerEventExtraInfo));\r\n }\r\n }\r\n}\r\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\r\n const depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n // never been tracked\r\n return;\r\n }\r\n let deps = [];\r\n if (type === \"clear\" /* CLEAR */) {\r\n // collection being cleared\r\n // trigger all effects for target\r\n deps = [...depsMap.values()];\r\n }\r\n else if (key === 'length' && isArray(target)) {\r\n depsMap.forEach((dep, key) => {\r\n if (key === 'length' || key >= newValue) {\r\n deps.push(dep);\r\n }\r\n });\r\n }\r\n else {\r\n // schedule runs for SET | ADD | DELETE\r\n if (key !== void 0) {\r\n deps.push(depsMap.get(key));\r\n }\r\n // also run for iteration key on ADD | DELETE | Map.SET\r\n switch (type) {\r\n case \"add\" /* ADD */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n else if (isIntegerKey(key)) {\r\n // new index added to array -> length changes\r\n deps.push(depsMap.get('length'));\r\n }\r\n break;\r\n case \"delete\" /* DELETE */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n break;\r\n case \"set\" /* SET */:\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n }\r\n break;\r\n }\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { target, type, key, newValue, oldValue, oldTarget }\r\n : undefined;\r\n if (deps.length === 1) {\r\n if (deps[0]) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(deps[0], eventInfo);\r\n }\r\n else {\r\n triggerEffects(deps[0]);\r\n }\r\n }\r\n }\r\n else {\r\n const effects = [];\r\n for (const dep of deps) {\r\n if (dep) {\r\n effects.push(...dep);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(createDep(effects), eventInfo);\r\n }\r\n else {\r\n triggerEffects(createDep(effects));\r\n }\r\n }\r\n}\r\nfunction triggerEffects(dep, debuggerEventExtraInfo) {\r\n // spread into array for stabilization\r\n for (const effect of isArray(dep) ? dep : [...dep]) {\r\n if (effect !== activeEffect || effect.allowRecurse) {\r\n if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {\r\n effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));\r\n }\r\n if (effect.scheduler) {\r\n effect.scheduler();\r\n }\r\n else {\r\n effect.run();\r\n }\r\n }\r\n }\r\n}\n\nconst isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);\r\nconst builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol)\r\n .map(key => Symbol[key])\r\n .filter(isSymbol));\r\nconst get = /*#__PURE__*/ createGetter();\r\nconst shallowGet = /*#__PURE__*/ createGetter(false, true);\r\nconst readonlyGet = /*#__PURE__*/ createGetter(true);\r\nconst shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);\r\nconst arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();\r\nfunction createArrayInstrumentations() {\r\n const instrumentations = {};\r\n ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n const arr = toRaw(this);\r\n for (let i = 0, l = this.length; i < l; i++) {\r\n track(arr, \"get\" /* GET */, i + '');\r\n }\r\n // we run the method using the original args first (which may be reactive)\r\n const res = arr[key](...args);\r\n if (res === -1 || res === false) {\r\n // if that didn't work, run it again using raw values.\r\n return arr[key](...args.map(toRaw));\r\n }\r\n else {\r\n return res;\r\n }\r\n };\r\n });\r\n ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n pauseTracking();\r\n const res = toRaw(this)[key].apply(this, args);\r\n resetTracking();\r\n return res;\r\n };\r\n });\r\n return instrumentations;\r\n}\r\nfunction createGetter(isReadonly = false, shallow = false) {\r\n return function get(target, key, receiver) {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */ &&\r\n receiver ===\r\n (isReadonly\r\n ? shallow\r\n ? shallowReadonlyMap\r\n : readonlyMap\r\n : shallow\r\n ? shallowReactiveMap\r\n : reactiveMap).get(target)) {\r\n return target;\r\n }\r\n const targetIsArray = isArray(target);\r\n if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\r\n return Reflect.get(arrayInstrumentations, key, receiver);\r\n }\r\n const res = Reflect.get(target, key, receiver);\r\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\r\n return res;\r\n }\r\n if (!isReadonly) {\r\n track(target, \"get\" /* GET */, key);\r\n }\r\n if (shallow) {\r\n return res;\r\n }\r\n if (isRef(res)) {\r\n // ref unwrapping - does not apply for Array + integer key.\r\n const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\r\n return shouldUnwrap ? res.value : res;\r\n }\r\n if (isObject(res)) {\r\n // Convert returned value into a proxy as well. we do the isObject check\r\n // here to avoid invalid value warning. Also need to lazy access readonly\r\n // and reactive here to avoid circular dependency.\r\n return isReadonly ? readonly(res) : reactive(res);\r\n }\r\n return res;\r\n };\r\n}\r\nconst set = /*#__PURE__*/ createSetter();\r\nconst shallowSet = /*#__PURE__*/ createSetter(true);\r\nfunction createSetter(shallow = false) {\r\n return function set(target, key, value, receiver) {\r\n let oldValue = target[key];\r\n if (!shallow && !isReadonly(value)) {\r\n value = toRaw(value);\r\n oldValue = toRaw(oldValue);\r\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n }\r\n const hadKey = isArray(target) && isIntegerKey(key)\r\n ? Number(key) < target.length\r\n : hasOwn(target, key);\r\n const result = Reflect.set(target, key, value, receiver);\r\n // don't trigger if target is something up in the prototype chain of original\r\n if (target === toRaw(receiver)) {\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n }\r\n return result;\r\n };\r\n}\r\nfunction deleteProperty(target, key) {\r\n const hadKey = hasOwn(target, key);\r\n const oldValue = target[key];\r\n const result = Reflect.deleteProperty(target, key);\r\n if (result && hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction has(target, key) {\r\n const result = Reflect.has(target, key);\r\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\r\n track(target, \"has\" /* HAS */, key);\r\n }\r\n return result;\r\n}\r\nfunction ownKeys(target) {\r\n track(target, \"iterate\" /* ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);\r\n return Reflect.ownKeys(target);\r\n}\r\nconst mutableHandlers = {\r\n get,\r\n set,\r\n deleteProperty,\r\n has,\r\n ownKeys\r\n};\r\nconst readonlyHandlers = {\r\n get: readonlyGet,\r\n set(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n },\r\n deleteProperty(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n }\r\n};\r\nconst shallowReactiveHandlers = /*#__PURE__*/ extend({}, mutableHandlers, {\r\n get: shallowGet,\r\n set: shallowSet\r\n});\r\n// Props handlers are special in the sense that it should not unwrap top-level\r\n// refs (in order to allow refs to be explicitly passed down), but should\r\n// retain the reactivity of the normal readonly object.\r\nconst shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {\r\n get: shallowReadonlyGet\r\n});\n\nconst toShallow = (value) => value;\r\nconst getProto = (v) => Reflect.getPrototypeOf(v);\r\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\r\n // #1772: readonly(reactive(Map)) should return readonly + reactive version\r\n // of the value\r\n target = target[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (key !== rawKey) {\r\n !isReadonly && track(rawTarget, \"get\" /* GET */, key);\r\n }\r\n !isReadonly && track(rawTarget, \"get\" /* GET */, rawKey);\r\n const { has } = getProto(rawTarget);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n if (has.call(rawTarget, key)) {\r\n return wrap(target.get(key));\r\n }\r\n else if (has.call(rawTarget, rawKey)) {\r\n return wrap(target.get(rawKey));\r\n }\r\n else if (target !== rawTarget) {\r\n // #3602 readonly(reactive(Map))\r\n // ensure that the nested reactive `Map` can do tracking for itself\r\n target.get(key);\r\n }\r\n}\r\nfunction has$1(key, isReadonly = false) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (key !== rawKey) {\r\n !isReadonly && track(rawTarget, \"has\" /* HAS */, key);\r\n }\r\n !isReadonly && track(rawTarget, \"has\" /* HAS */, rawKey);\r\n return key === rawKey\r\n ? target.has(key)\r\n : target.has(key) || target.has(rawKey);\r\n}\r\nfunction size(target, isReadonly = false) {\r\n target = target[\"__v_raw\" /* RAW */];\r\n !isReadonly && track(toRaw(target), \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return Reflect.get(target, 'size', target);\r\n}\r\nfunction add(value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const proto = getProto(target);\r\n const hadKey = proto.has.call(target, value);\r\n if (!hadKey) {\r\n target.add(value);\r\n trigger(target, \"add\" /* ADD */, value, value);\r\n }\r\n return this;\r\n}\r\nfunction set$1(key, value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get.call(target, key);\r\n target.set(key, value);\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n return this;\r\n}\r\nfunction deleteEntry(key) {\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get ? get.call(target, key) : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.delete(key);\r\n if (hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction clear() {\r\n const target = toRaw(this);\r\n const hadItems = target.size !== 0;\r\n const oldTarget = (process.env.NODE_ENV !== 'production')\r\n ? isMap(target)\r\n ? new Map(target)\r\n : new Set(target)\r\n : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.clear();\r\n if (hadItems) {\r\n trigger(target, \"clear\" /* CLEAR */, undefined, undefined, oldTarget);\r\n }\r\n return result;\r\n}\r\nfunction createForEach(isReadonly, isShallow) {\r\n return function forEach(callback, thisArg) {\r\n const observed = this;\r\n const target = observed[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly && track(rawTarget, \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return target.forEach((value, key) => {\r\n // important: make sure the callback is\r\n // 1. invoked with the reactive map as `this` and 3rd arg\r\n // 2. the value received should be a corresponding reactive/readonly.\r\n return callback.call(thisArg, wrap(value), wrap(key), observed);\r\n });\r\n };\r\n}\r\nfunction createIterableMethod(method, isReadonly, isShallow) {\r\n return function (...args) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const targetIsMap = isMap(rawTarget);\r\n const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);\r\n const isKeyOnly = method === 'keys' && targetIsMap;\r\n const innerIterator = target[method](...args);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly &&\r\n track(rawTarget, \"iterate\" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\r\n // return a wrapped iterator which returns observed versions of the\r\n // values emitted from the real iterator\r\n return {\r\n // iterator protocol\r\n next() {\r\n const { value, done } = innerIterator.next();\r\n return done\r\n ? { value, done }\r\n : {\r\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\r\n done\r\n };\r\n },\r\n // iterable protocol\r\n [Symbol.iterator]() {\r\n return this;\r\n }\r\n };\r\n };\r\n}\r\nfunction createReadonlyMethod(type) {\r\n return function (...args) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\r\n console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\r\n }\r\n return type === \"delete\" /* DELETE */ ? false : this;\r\n };\r\n}\r\nfunction createInstrumentations() {\r\n const mutableInstrumentations = {\r\n get(key) {\r\n return get$1(this, key);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, false)\r\n };\r\n const shallowInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, false, true);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, true)\r\n };\r\n const readonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, false)\r\n };\r\n const shallowReadonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, true)\r\n };\r\n const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];\r\n iteratorMethods.forEach(method => {\r\n mutableInstrumentations[method] = createIterableMethod(method, false, false);\r\n readonlyInstrumentations[method] = createIterableMethod(method, true, false);\r\n shallowInstrumentations[method] = createIterableMethod(method, false, true);\r\n shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);\r\n });\r\n return [\r\n mutableInstrumentations,\r\n readonlyInstrumentations,\r\n shallowInstrumentations,\r\n shallowReadonlyInstrumentations\r\n ];\r\n}\r\nconst [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();\r\nfunction createInstrumentationGetter(isReadonly, shallow) {\r\n const instrumentations = shallow\r\n ? isReadonly\r\n ? shallowReadonlyInstrumentations\r\n : shallowInstrumentations\r\n : isReadonly\r\n ? readonlyInstrumentations\r\n : mutableInstrumentations;\r\n return (target, key, receiver) => {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */) {\r\n return target;\r\n }\r\n return Reflect.get(hasOwn(instrumentations, key) && key in target\r\n ? instrumentations\r\n : target, key, receiver);\r\n };\r\n}\r\nconst mutableCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, false)\r\n};\r\nconst shallowCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, true)\r\n};\r\nconst readonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, false)\r\n};\r\nconst shallowReadonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, true)\r\n};\r\nfunction checkIdentityKeys(target, has, key) {\r\n const rawKey = toRaw(key);\r\n if (rawKey !== key && has.call(target, rawKey)) {\r\n const type = toRawType(target);\r\n console.warn(`Reactive ${type} contains both the raw and reactive ` +\r\n `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +\r\n `which can lead to inconsistencies. ` +\r\n `Avoid differentiating between the raw and reactive versions ` +\r\n `of an object and only use the reactive version if possible.`);\r\n }\r\n}\n\nconst reactiveMap = new WeakMap();\r\nconst shallowReactiveMap = new WeakMap();\r\nconst readonlyMap = new WeakMap();\r\nconst shallowReadonlyMap = new WeakMap();\r\nfunction targetTypeMap(rawType) {\r\n switch (rawType) {\r\n case 'Object':\r\n case 'Array':\r\n return 1 /* COMMON */;\r\n case 'Map':\r\n case 'Set':\r\n case 'WeakMap':\r\n case 'WeakSet':\r\n return 2 /* COLLECTION */;\r\n default:\r\n return 0 /* INVALID */;\r\n }\r\n}\r\nfunction getTargetType(value) {\r\n return value[\"__v_skip\" /* SKIP */] || !Object.isExtensible(value)\r\n ? 0 /* INVALID */\r\n : targetTypeMap(toRawType(value));\r\n}\r\nfunction reactive(target) {\r\n // if trying to observe a readonly proxy, return the readonly version.\r\n if (target && target[\"__v_isReadonly\" /* IS_READONLY */]) {\r\n return target;\r\n }\r\n return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\r\n}\r\n/**\r\n * Return a shallowly-reactive copy of the original object, where only the root\r\n * level properties are reactive. It also does not auto-unwrap refs (even at the\r\n * root level).\r\n */\r\nfunction shallowReactive(target) {\r\n return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);\r\n}\r\n/**\r\n * Creates a readonly copy of the original object. Note the returned copy is not\r\n * made reactive, but `readonly` can be called on an already reactive object.\r\n */\r\nfunction readonly(target) {\r\n return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\r\n}\r\n/**\r\n * Returns a reactive-copy of the original object, where only the root level\r\n * properties are readonly, and does NOT unwrap refs nor recursively convert\r\n * returned properties.\r\n * This is used for creating the props proxy object for stateful components.\r\n */\r\nfunction shallowReadonly(target) {\r\n return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);\r\n}\r\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\r\n if (!isObject(target)) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`value cannot be made reactive: ${String(target)}`);\r\n }\r\n return target;\r\n }\r\n // target is already a Proxy, return it.\r\n // exception: calling readonly() on a reactive object\r\n if (target[\"__v_raw\" /* RAW */] &&\r\n !(isReadonly && target[\"__v_isReactive\" /* IS_REACTIVE */])) {\r\n return target;\r\n }\r\n // target already has corresponding Proxy\r\n const existingProxy = proxyMap.get(target);\r\n if (existingProxy) {\r\n return existingProxy;\r\n }\r\n // only a whitelist of value types can be observed.\r\n const targetType = getTargetType(target);\r\n if (targetType === 0 /* INVALID */) {\r\n return target;\r\n }\r\n const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);\r\n proxyMap.set(target, proxy);\r\n return proxy;\r\n}\r\nfunction isReactive(value) {\r\n if (isReadonly(value)) {\r\n return isReactive(value[\"__v_raw\" /* RAW */]);\r\n }\r\n return !!(value && value[\"__v_isReactive\" /* IS_REACTIVE */]);\r\n}\r\nfunction isReadonly(value) {\r\n return !!(value && value[\"__v_isReadonly\" /* IS_READONLY */]);\r\n}\r\nfunction isProxy(value) {\r\n return isReactive(value) || isReadonly(value);\r\n}\r\nfunction toRaw(observed) {\r\n const raw = observed && observed[\"__v_raw\" /* RAW */];\r\n return raw ? toRaw(raw) : observed;\r\n}\r\nfunction markRaw(value) {\r\n def(value, \"__v_skip\" /* SKIP */, true);\r\n return value;\r\n}\r\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\r\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction trackRefValue(ref) {\r\n if (isTracking()) {\r\n ref = toRaw(ref);\r\n if (!ref.dep) {\r\n ref.dep = createDep();\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n trackEffects(ref.dep, {\r\n target: ref,\r\n type: \"get\" /* GET */,\r\n key: 'value'\r\n });\r\n }\r\n else {\r\n trackEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction triggerRefValue(ref, newVal) {\r\n ref = toRaw(ref);\r\n if (ref.dep) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(ref.dep, {\r\n target: ref,\r\n type: \"set\" /* SET */,\r\n key: 'value',\r\n newValue: newVal\r\n });\r\n }\r\n else {\r\n triggerEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction isRef(r) {\r\n return Boolean(r && r.__v_isRef === true);\r\n}\r\nfunction ref(value) {\r\n return createRef(value, false);\r\n}\r\nfunction shallowRef(value) {\r\n return createRef(value, true);\r\n}\r\nfunction createRef(rawValue, shallow) {\r\n if (isRef(rawValue)) {\r\n return rawValue;\r\n }\r\n return new RefImpl(rawValue, shallow);\r\n}\r\nclass RefImpl {\r\n constructor(value, _shallow) {\r\n this._shallow = _shallow;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this._rawValue = _shallow ? value : toRaw(value);\r\n this._value = _shallow ? value : toReactive(value);\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n return this._value;\r\n }\r\n set value(newVal) {\r\n newVal = this._shallow ? newVal : toRaw(newVal);\r\n if (hasChanged(newVal, this._rawValue)) {\r\n this._rawValue = newVal;\r\n this._value = this._shallow ? newVal : toReactive(newVal);\r\n triggerRefValue(this, newVal);\r\n }\r\n }\r\n}\r\nfunction triggerRef(ref) {\r\n triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);\r\n}\r\nfunction unref(ref) {\r\n return isRef(ref) ? ref.value : ref;\r\n}\r\nconst shallowUnwrapHandlers = {\r\n get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),\r\n set: (target, key, value, receiver) => {\r\n const oldValue = target[key];\r\n if (isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n else {\r\n return Reflect.set(target, key, value, receiver);\r\n }\r\n }\r\n};\r\nfunction proxyRefs(objectWithRefs) {\r\n return isReactive(objectWithRefs)\r\n ? objectWithRefs\r\n : new Proxy(objectWithRefs, shallowUnwrapHandlers);\r\n}\r\nclass CustomRefImpl {\r\n constructor(factory) {\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));\r\n this._get = get;\r\n this._set = set;\r\n }\r\n get value() {\r\n return this._get();\r\n }\r\n set value(newVal) {\r\n this._set(newVal);\r\n }\r\n}\r\nfunction customRef(factory) {\r\n return new CustomRefImpl(factory);\r\n}\r\nfunction toRefs(object) {\r\n if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) {\r\n console.warn(`toRefs() expects a reactive object but received a plain one.`);\r\n }\r\n const ret = isArray(object) ? new Array(object.length) : {};\r\n for (const key in object) {\r\n ret[key] = toRef(object, key);\r\n }\r\n return ret;\r\n}\r\nclass ObjectRefImpl {\r\n constructor(_object, _key, _defaultValue) {\r\n this._object = _object;\r\n this._key = _key;\r\n this._defaultValue = _defaultValue;\r\n this.__v_isRef = true;\r\n }\r\n get value() {\r\n const val = this._object[this._key];\r\n return val === undefined ? this._defaultValue : val;\r\n }\r\n set value(newVal) {\r\n this._object[this._key] = newVal;\r\n }\r\n}\r\nfunction toRef(object, key, defaultValue) {\r\n const val = object[key];\r\n return isRef(val)\r\n ? val\r\n : new ObjectRefImpl(object, key, defaultValue);\r\n}\n\nclass ComputedRefImpl {\r\n constructor(getter, _setter, isReadonly) {\r\n this._setter = _setter;\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this.effect = new ReactiveEffect(getter, () => {\r\n if (!this._dirty) {\r\n this._dirty = true;\r\n triggerRefValue(this);\r\n }\r\n });\r\n this[\"__v_isReadonly\" /* IS_READONLY */] = isReadonly;\r\n }\r\n get value() {\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n const self = toRaw(this);\r\n trackRefValue(self);\r\n if (self._dirty) {\r\n self._dirty = false;\r\n self._value = self.effect.run();\r\n }\r\n return self._value;\r\n }\r\n set value(newValue) {\r\n this._setter(newValue);\r\n }\r\n}\r\nfunction computed(getterOrOptions, debugOptions) {\r\n let getter;\r\n let setter;\r\n const onlyGetter = isFunction(getterOrOptions);\r\n if (onlyGetter) {\r\n getter = getterOrOptions;\r\n setter = (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n console.warn('Write operation failed: computed value is readonly');\r\n }\r\n : NOOP;\r\n }\r\n else {\r\n getter = getterOrOptions.get;\r\n setter = getterOrOptions.set;\r\n }\r\n const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter);\r\n if ((process.env.NODE_ENV !== 'production') && debugOptions) {\r\n cRef.effect.onTrack = debugOptions.onTrack;\r\n cRef.effect.onTrigger = debugOptions.onTrigger;\r\n }\r\n return cRef;\r\n}\n\nvar _a;\r\nconst tick = Promise.resolve();\r\nconst queue = [];\r\nlet queued = false;\r\nconst scheduler = (fn) => {\r\n queue.push(fn);\r\n if (!queued) {\r\n queued = true;\r\n tick.then(flush);\r\n }\r\n};\r\nconst flush = () => {\r\n for (let i = 0; i < queue.length; i++) {\r\n queue[i]();\r\n }\r\n queue.length = 0;\r\n queued = false;\r\n};\r\nclass DeferredComputedRefImpl {\r\n constructor(getter) {\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this[_a] = true;\r\n let compareTarget;\r\n let hasCompareTarget = false;\r\n let scheduled = false;\r\n this.effect = new ReactiveEffect(getter, (computedTrigger) => {\r\n if (this.dep) {\r\n if (computedTrigger) {\r\n compareTarget = this._value;\r\n hasCompareTarget = true;\r\n }\r\n else if (!scheduled) {\r\n const valueToCompare = hasCompareTarget ? compareTarget : this._value;\r\n scheduled = true;\r\n hasCompareTarget = false;\r\n scheduler(() => {\r\n if (this.effect.active && this._get() !== valueToCompare) {\r\n triggerRefValue(this);\r\n }\r\n scheduled = false;\r\n });\r\n }\r\n // chained upstream computeds are notified synchronously to ensure\r\n // value invalidation in case of sync access; normal effects are\r\n // deferred to be triggered in scheduler.\r\n for (const e of this.dep) {\r\n if (e.computed) {\r\n e.scheduler(true /* computedTrigger */);\r\n }\r\n }\r\n }\r\n this._dirty = true;\r\n });\r\n this.effect.computed = true;\r\n }\r\n _get() {\r\n if (this._dirty) {\r\n this._dirty = false;\r\n return (this._value = this.effect.run());\r\n }\r\n return this._value;\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n return toRaw(this)._get();\r\n }\r\n}\r\n_a = \"__v_isReadonly\" /* IS_READONLY */;\r\nfunction deferredComputed(getter) {\r\n return new DeferredComputedRefImpl(getter);\r\n}\n\nexport { EffectScope, ITERATE_KEY, ReactiveEffect, computed, customRef, deferredComputed, effect, effectScope, enableTracking, getCurrentScope, isProxy, isReactive, isReadonly, isRef, markRaw, onScopeDispose, pauseTracking, proxyRefs, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref };\n","import { toRaw, ref, pauseTracking, resetTracking, reactive, computed, isRef, shallowReactive, trigger, ReactiveEffect, isProxy, shallowReadonly, track, EffectScope, markRaw, proxyRefs, isReactive, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, computed, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';\nimport { getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, isFunction, toNumber, hyphenate, camelize, isArray, isOn, hasOwn, isModelListener, isObject, remove, isString, invokeArrayFns, isPromise, NOOP, def, isReservedProp, EMPTY_ARR, capitalize, toRawType, makeMap, NO, normalizeClass, normalizeStyle, isGloballyWhitelisted, hasChanged, isSet, isMap, isPlainObject } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\n/* eslint-disable no-restricted-globals */\r\nlet isHmrUpdating = false;\r\nconst hmrDirtyComponents = new Set();\r\n// Expose the HMR runtime on the global object\r\n// This makes it entirely tree-shakable without polluting the exports and makes\r\n// it easier to be used in toolings like vue-loader\r\n// Note: for a component to be eligible for HMR it also needs the __hmrId option\r\n// to be set so that its instances can be registered / removed.\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\r\n createRecord: tryWrap(createRecord),\r\n rerender: tryWrap(rerender),\r\n reload: tryWrap(reload)\r\n };\r\n}\r\nconst map = new Map();\r\nfunction registerHMR(instance) {\r\n const id = instance.type.__hmrId;\r\n let record = map.get(id);\r\n if (!record) {\r\n createRecord(id, instance.type);\r\n record = map.get(id);\r\n }\r\n record.instances.add(instance);\r\n}\r\nfunction unregisterHMR(instance) {\r\n map.get(instance.type.__hmrId).instances.delete(instance);\r\n}\r\nfunction createRecord(id, initialDef) {\r\n if (map.has(id)) {\r\n return false;\r\n }\r\n map.set(id, {\r\n initialDef: normalizeClassComponent(initialDef),\r\n instances: new Set()\r\n });\r\n return true;\r\n}\r\nfunction normalizeClassComponent(component) {\r\n return isClassComponent(component) ? component.__vccOpts : component;\r\n}\r\nfunction rerender(id, newRender) {\r\n const record = map.get(id);\r\n if (!record) {\r\n return;\r\n }\r\n // update initial record (for not-yet-rendered component)\r\n record.initialDef.render = newRender;\r\n [...record.instances].forEach(instance => {\r\n if (newRender) {\r\n instance.render = newRender;\r\n normalizeClassComponent(instance.type).render = newRender;\r\n }\r\n instance.renderCache = [];\r\n // this flag forces child components with slot content to update\r\n isHmrUpdating = true;\r\n instance.update();\r\n isHmrUpdating = false;\r\n });\r\n}\r\nfunction reload(id, newComp) {\r\n const record = map.get(id);\r\n if (!record)\r\n return;\r\n newComp = normalizeClassComponent(newComp);\r\n // update initial def (for not-yet-rendered components)\r\n updateComponentDef(record.initialDef, newComp);\r\n // create a snapshot which avoids the set being mutated during updates\r\n const instances = [...record.instances];\r\n for (const instance of instances) {\r\n const oldComp = normalizeClassComponent(instance.type);\r\n if (!hmrDirtyComponents.has(oldComp)) {\r\n // 1. Update existing comp definition to match new one\r\n if (oldComp !== record.initialDef) {\r\n updateComponentDef(oldComp, newComp);\r\n }\r\n // 2. mark definition dirty. This forces the renderer to replace the\r\n // component on patch.\r\n hmrDirtyComponents.add(oldComp);\r\n }\r\n // 3. invalidate options resolution cache\r\n instance.appContext.optionsCache.delete(instance.type);\r\n // 4. actually update\r\n if (instance.ceReload) {\r\n // custom element\r\n hmrDirtyComponents.add(oldComp);\r\n instance.ceReload(newComp.styles);\r\n hmrDirtyComponents.delete(oldComp);\r\n }\r\n else if (instance.parent) {\r\n // 4. Force the parent instance to re-render. This will cause all updated\r\n // components to be unmounted and re-mounted. Queue the update so that we\r\n // don't end up forcing the same parent to re-render multiple times.\r\n queueJob(instance.parent.update);\r\n // instance is the inner component of an async custom element\r\n // invoke to reset styles\r\n if (instance.parent.type.__asyncLoader &&\r\n instance.parent.ceReload) {\r\n instance.parent.ceReload(newComp.styles);\r\n }\r\n }\r\n else if (instance.appContext.reload) {\r\n // root instance mounted via createApp() has a reload method\r\n instance.appContext.reload();\r\n }\r\n else if (typeof window !== 'undefined') {\r\n // root instance inside tree created via raw render(). Force reload.\r\n window.location.reload();\r\n }\r\n else {\r\n console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');\r\n }\r\n }\r\n // 5. make sure to cleanup dirty hmr components after update\r\n queuePostFlushCb(() => {\r\n for (const instance of instances) {\r\n hmrDirtyComponents.delete(normalizeClassComponent(instance.type));\r\n }\r\n });\r\n}\r\nfunction updateComponentDef(oldComp, newComp) {\r\n extend(oldComp, newComp);\r\n for (const key in oldComp) {\r\n if (key !== '__file' && !(key in newComp)) {\r\n delete oldComp[key];\r\n }\r\n }\r\n}\r\nfunction tryWrap(fn) {\r\n return (id, arg) => {\r\n try {\r\n return fn(id, arg);\r\n }\r\n catch (e) {\r\n console.error(e);\r\n console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +\r\n `Full reload required.`);\r\n }\r\n };\r\n}\n\nlet devtools;\r\nlet buffer = [];\r\nlet devtoolsNotInstalled = false;\r\nfunction emit(event, ...args) {\r\n if (devtools) {\r\n devtools.emit(event, ...args);\r\n }\r\n else if (!devtoolsNotInstalled) {\r\n buffer.push({ event, args });\r\n }\r\n}\r\nfunction setDevtoolsHook(hook, target) {\r\n var _a, _b;\r\n devtools = hook;\r\n if (devtools) {\r\n devtools.enabled = true;\r\n buffer.forEach(({ event, args }) => devtools.emit(event, ...args));\r\n buffer = [];\r\n }\r\n else if (\r\n // handle late devtools injection - only do this if we are in an actual\r\n // browser environment to avoid the timer handle stalling test runner exit\r\n // (#4815)\r\n // eslint-disable-next-line no-restricted-globals\r\n typeof window !== 'undefined' &&\r\n // some envs mock window but not fully\r\n window.HTMLElement &&\r\n // also exclude jsdom\r\n !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {\r\n const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);\r\n replay.push((newHook) => {\r\n setDevtoolsHook(newHook, target);\r\n });\r\n // clear buffer after 3s - the user probably doesn't have devtools installed\r\n // at all, and keeping the buffer will cause memory leaks (#4738)\r\n setTimeout(() => {\r\n if (!devtools) {\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n }, 3000);\r\n }\r\n else {\r\n // non-browser env, assume not installed\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n}\r\nfunction devtoolsInitApp(app, version) {\r\n emit(\"app:init\" /* APP_INIT */, app, version, {\r\n Fragment,\r\n Text,\r\n Comment,\r\n Static\r\n });\r\n}\r\nfunction devtoolsUnmountApp(app) {\r\n emit(\"app:unmount\" /* APP_UNMOUNT */, app);\r\n}\r\nconst devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\r\nconst devtoolsComponentUpdated = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\r\nconst devtoolsComponentRemoved = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:removed\" /* COMPONENT_REMOVED */);\r\nfunction createDevtoolsComponentHook(hook) {\r\n return (component) => {\r\n emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);\r\n };\r\n}\r\nconst devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\r\nconst devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\r\nfunction createDevtoolsPerformanceHook(hook) {\r\n return (component, type, time) => {\r\n emit(hook, component.appContext.app, component.uid, component, type, time);\r\n };\r\n}\r\nfunction devtoolsComponentEmit(component, event, params) {\r\n emit(\"component:emit\" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);\r\n}\n\nfunction emit$1(instance, event, ...rawArgs) {\r\n const props = instance.vnode.props || EMPTY_OBJ;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const { emitsOptions, propsOptions: [propsOptions] } = instance;\r\n if (emitsOptions) {\r\n if (!(event in emitsOptions) &&\r\n !(false )) {\r\n if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {\r\n warn(`Component emitted event \"${event}\" but it is neither declared in ` +\r\n `the emits option nor as an \"${toHandlerKey(event)}\" prop.`);\r\n }\r\n }\r\n else {\r\n const validator = emitsOptions[event];\r\n if (isFunction(validator)) {\r\n const isValid = validator(...rawArgs);\r\n if (!isValid) {\r\n warn(`Invalid event arguments: event validation failed for event \"${event}\".`);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n let args = rawArgs;\r\n const isModelListener = event.startsWith('update:');\r\n // for v-model update:xxx events, apply modifiers on args\r\n const modelArg = isModelListener && event.slice(7);\r\n if (modelArg && modelArg in props) {\r\n const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;\r\n const { number, trim } = props[modifiersKey] || EMPTY_OBJ;\r\n if (trim) {\r\n args = rawArgs.map(a => a.trim());\r\n }\r\n else if (number) {\r\n args = rawArgs.map(toNumber);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentEmit(instance, event, args);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const lowerCaseEvent = event.toLowerCase();\r\n if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {\r\n warn(`Event \"${lowerCaseEvent}\" is emitted in component ` +\r\n `${formatComponentName(instance, instance.type)} but the handler is registered for \"${event}\". ` +\r\n `Note that HTML attributes are case-insensitive and you cannot use ` +\r\n `v-on to listen to camelCase events when using in-DOM templates. ` +\r\n `You should probably use \"${hyphenate(event)}\" instead of \"${event}\".`);\r\n }\r\n }\r\n let handlerName;\r\n let handler = props[(handlerName = toHandlerKey(event))] ||\r\n // also try camelCase event handler (#2249)\r\n props[(handlerName = toHandlerKey(camelize(event)))];\r\n // for v-model update:xxx events, also trigger kebab-case equivalent\r\n // for props passed via kebab-case\r\n if (!handler && isModelListener) {\r\n handler = props[(handlerName = toHandlerKey(hyphenate(event)))];\r\n }\r\n if (handler) {\r\n callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n const onceHandler = props[handlerName + `Once`];\r\n if (onceHandler) {\r\n if (!instance.emitted) {\r\n instance.emitted = {};\r\n }\r\n else if (instance.emitted[handlerName]) {\r\n return;\r\n }\r\n instance.emitted[handlerName] = true;\r\n callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n}\r\nfunction normalizeEmitsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.emitsCache;\r\n const cached = cache.get(comp);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const raw = comp.emits;\r\n let normalized = {};\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendEmits = (raw) => {\r\n const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);\r\n if (normalizedFromExtend) {\r\n hasExtends = true;\r\n extend(normalized, normalizedFromExtend);\r\n }\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendEmits);\r\n }\r\n if (comp.extends) {\r\n extendEmits(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendEmits);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n cache.set(comp, null);\r\n return null;\r\n }\r\n if (isArray(raw)) {\r\n raw.forEach(key => (normalized[key] = null));\r\n }\r\n else {\r\n extend(normalized, raw);\r\n }\r\n cache.set(comp, normalized);\r\n return normalized;\r\n}\r\n// Check if an incoming prop key is a declared emit event listener.\r\n// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are\r\n// both considered matched listeners.\r\nfunction isEmitListener(options, key) {\r\n if (!options || !isOn(key)) {\r\n return false;\r\n }\r\n key = key.slice(2).replace(/Once$/, '');\r\n return (hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||\r\n hasOwn(options, hyphenate(key)) ||\r\n hasOwn(options, key));\r\n}\n\n/**\r\n * mark the current rendering instance for asset resolution (e.g.\r\n * resolveComponent, resolveDirective) during render\r\n */\r\nlet currentRenderingInstance = null;\r\nlet currentScopeId = null;\r\n/**\r\n * Note: rendering calls maybe nested. The function returns the parent rendering\r\n * instance if present, which should be restored after the render is done:\r\n *\r\n * ```js\r\n * const prev = setCurrentRenderingInstance(i)\r\n * // ...render\r\n * setCurrentRenderingInstance(prev)\r\n * ```\r\n */\r\nfunction setCurrentRenderingInstance(instance) {\r\n const prev = currentRenderingInstance;\r\n currentRenderingInstance = instance;\r\n currentScopeId = (instance && instance.type.__scopeId) || null;\r\n return prev;\r\n}\r\n/**\r\n * Set scope id when creating hoisted vnodes.\r\n * @private compiler helper\r\n */\r\nfunction pushScopeId(id) {\r\n currentScopeId = id;\r\n}\r\n/**\r\n * Technically we no longer need this after 3.0.8 but we need to keep the same\r\n * API for backwards compat w/ code generated by compilers.\r\n * @private\r\n */\r\nfunction popScopeId() {\r\n currentScopeId = null;\r\n}\r\n/**\r\n * Only for backwards compat\r\n * @private\r\n */\r\nconst withScopeId = (_id) => withCtx;\r\n/**\r\n * Wrap a slot function to memoize current rendering instance\r\n * @private compiler helper\r\n */\r\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only\r\n) {\r\n if (!ctx)\r\n return fn;\r\n // already normalized\r\n if (fn._n) {\r\n return fn;\r\n }\r\n const renderFnWithContext = (...args) => {\r\n // If a user calls a compiled slot inside a template expression (#1745), it\r\n // can mess up block tracking, so by default we disable block tracking and\r\n // force bail out when invoking a compiled slot (indicated by the ._d flag).\r\n // This isn't necessary if rendering a compiled `<slot>`, so we flip the\r\n // ._d flag off when invoking the wrapped fn inside `renderSlot`.\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(-1);\r\n }\r\n const prevInstance = setCurrentRenderingInstance(ctx);\r\n const res = fn(...args);\r\n setCurrentRenderingInstance(prevInstance);\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(ctx);\r\n }\r\n return res;\r\n };\r\n // mark normalized to avoid duplicated wrapping\r\n renderFnWithContext._n = true;\r\n // mark this as compiled by default\r\n // this is used in vnode.ts -> normalizeChildren() to set the slot\r\n // rendering flag.\r\n renderFnWithContext._c = true;\r\n // disable block tracking by default\r\n renderFnWithContext._d = true;\r\n return renderFnWithContext;\r\n}\n\n/**\r\n * dev only flag to track whether $attrs was used during render.\r\n * If $attrs was used during render then the warning for failed attrs\r\n * fallthrough can be suppressed.\r\n */\r\nlet accessedAttrs = false;\r\nfunction markAttrsAccessed() {\r\n accessedAttrs = true;\r\n}\r\nfunction renderComponentRoot(instance) {\r\n const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;\r\n let result;\r\n let fallthroughAttrs;\r\n const prev = setCurrentRenderingInstance(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n accessedAttrs = false;\r\n }\r\n try {\r\n if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {\r\n // withProxy is a proxy with a different `has` trap only for\r\n // runtime-compiled render functions using `with` block.\r\n const proxyToUse = withProxy || proxy;\r\n result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));\r\n fallthroughAttrs = attrs;\r\n }\r\n else {\r\n // functional\r\n const render = Component;\r\n // in dev, mark attrs accessed if optional props (attrs === props)\r\n if ((process.env.NODE_ENV !== 'production') && attrs === props) {\r\n markAttrsAccessed();\r\n }\r\n result = normalizeVNode(render.length > 1\r\n ? render(props, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get attrs() {\r\n markAttrsAccessed();\r\n return attrs;\r\n },\r\n slots,\r\n emit\r\n }\r\n : { attrs, slots, emit })\r\n : render(props, null /* we know it doesn't need it */));\r\n fallthroughAttrs = Component.props\r\n ? attrs\r\n : getFunctionalFallthrough(attrs);\r\n }\r\n }\r\n catch (err) {\r\n blockStack.length = 0;\r\n handleError(err, instance, 1 /* RENDER_FUNCTION */);\r\n result = createVNode(Comment);\r\n }\r\n // attr merging\r\n // in dev mode, comments are preserved, and it's possible for a template\r\n // to have comments along side the root element which makes it a fragment\r\n let root = result;\r\n let setRoot = undefined;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n result.patchFlag > 0 &&\r\n result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {\r\n [root, setRoot] = getChildRoot(result);\r\n }\r\n if (fallthroughAttrs && inheritAttrs !== false) {\r\n const keys = Object.keys(fallthroughAttrs);\r\n const { shapeFlag } = root;\r\n if (keys.length) {\r\n if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {\r\n if (propsOptions && keys.some(isModelListener)) {\r\n // If a v-model listener (onUpdate:xxx) has a corresponding declared\r\n // prop, it indicates this component expects to handle v-model and\r\n // it should not fallthrough.\r\n // related: #1543, #1643, #1989\r\n fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);\r\n }\r\n root = cloneVNode(root, fallthroughAttrs);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !accessedAttrs && root.type !== Comment) {\r\n const allAttrs = Object.keys(attrs);\r\n const eventAttrs = [];\r\n const extraAttrs = [];\r\n for (let i = 0, l = allAttrs.length; i < l; i++) {\r\n const key = allAttrs[i];\r\n if (isOn(key)) {\r\n // ignore v-model handlers when they fail to fallthrough\r\n if (!isModelListener(key)) {\r\n // remove `on`, lowercase first letter to reflect event casing\r\n // accurately\r\n eventAttrs.push(key[2].toLowerCase() + key.slice(3));\r\n }\r\n }\r\n else {\r\n extraAttrs.push(key);\r\n }\r\n }\r\n if (extraAttrs.length) {\r\n warn(`Extraneous non-props attributes (` +\r\n `${extraAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes.`);\r\n }\r\n if (eventAttrs.length) {\r\n warn(`Extraneous non-emits event listeners (` +\r\n `${eventAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes. ` +\r\n `If the listener is intended to be a component custom event listener only, ` +\r\n `declare it using the \"emits\" option.`);\r\n }\r\n }\r\n }\r\n }\r\n // inherit directives\r\n if (vnode.dirs) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Runtime directive used on component with non-element root node. ` +\r\n `The directives will not function as intended.`);\r\n }\r\n root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;\r\n }\r\n // inherit transition data\r\n if (vnode.transition) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Component inside <Transition> renders non-element root node ` +\r\n `that cannot be animated.`);\r\n }\r\n root.transition = vnode.transition;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && setRoot) {\r\n setRoot(root);\r\n }\r\n else {\r\n result = root;\r\n }\r\n setCurrentRenderingInstance(prev);\r\n return result;\r\n}\r\n/**\r\n * dev only\r\n * In dev mode, template root level comments are rendered, which turns the\r\n * template into a fragment root, but we need to locate the single element\r\n * root for attrs and scope id processing.\r\n */\r\nconst getChildRoot = (vnode) => {\r\n const rawChildren = vnode.children;\r\n const dynamicChildren = vnode.dynamicChildren;\r\n const childRoot = filterSingleRoot(rawChildren);\r\n if (!childRoot) {\r\n return [vnode, undefined];\r\n }\r\n const index = rawChildren.indexOf(childRoot);\r\n const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;\r\n const setRoot = (updatedRoot) => {\r\n rawChildren[index] = updatedRoot;\r\n if (dynamicChildren) {\r\n if (dynamicIndex > -1) {\r\n dynamicChildren[dynamicIndex] = updatedRoot;\r\n }\r\n else if (updatedRoot.patchFlag > 0) {\r\n vnode.dynamicChildren = [...dynamicChildren, updatedRoot];\r\n }\r\n }\r\n };\r\n return [normalizeVNode(childRoot), setRoot];\r\n};\r\nfunction filterSingleRoot(children) {\r\n let singleRoot;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isVNode(child)) {\r\n // ignore user comment\r\n if (child.type !== Comment || child.children === 'v-if') {\r\n if (singleRoot) {\r\n // has more than 1 non-comment child, return now\r\n return;\r\n }\r\n else {\r\n singleRoot = child;\r\n }\r\n }\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n return singleRoot;\r\n}\r\nconst getFunctionalFallthrough = (attrs) => {\r\n let res;\r\n for (const key in attrs) {\r\n if (key === 'class' || key === 'style' || isOn(key)) {\r\n (res || (res = {}))[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst filterModelListeners = (attrs, props) => {\r\n const res = {};\r\n for (const key in attrs) {\r\n if (!isModelListener(key) || !(key.slice(9) in props)) {\r\n res[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst isElementRoot = (vnode) => {\r\n return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||\r\n vnode.type === Comment // potential v-if branch switch\r\n );\r\n};\r\nfunction shouldUpdateComponent(prevVNode, nextVNode, optimized) {\r\n const { props: prevProps, children: prevChildren, component } = prevVNode;\r\n const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;\r\n const emits = component.emitsOptions;\r\n // Parent component's render function was hot-updated. Since this may have\r\n // caused the child component's slots content to have changed, we need to\r\n // force the child to update as well.\r\n if ((process.env.NODE_ENV !== 'production') && (prevChildren || nextChildren) && isHmrUpdating) {\r\n return true;\r\n }\r\n // force child update for runtime directive or transition on component vnode.\r\n if (nextVNode.dirs || nextVNode.transition) {\r\n return true;\r\n }\r\n if (optimized && patchFlag >= 0) {\r\n if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {\r\n // slot content that references values that might have changed,\r\n // e.g. in a v-for\r\n return true;\r\n }\r\n if (patchFlag & 16 /* FULL_PROPS */) {\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n // presence of this flag indicates props are always non-null\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n else if (patchFlag & 8 /* PROPS */) {\r\n const dynamicProps = nextVNode.dynamicProps;\r\n for (let i = 0; i < dynamicProps.length; i++) {\r\n const key = dynamicProps[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emits, key)) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // this path is only taken by manually written render functions\r\n // so presence of any children leads to a forced update\r\n if (prevChildren || nextChildren) {\r\n if (!nextChildren || !nextChildren.$stable) {\r\n return true;\r\n }\r\n }\r\n if (prevProps === nextProps) {\r\n return false;\r\n }\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n if (!nextProps) {\r\n return true;\r\n }\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n return false;\r\n}\r\nfunction hasPropsChanged(prevProps, nextProps, emitsOptions) {\r\n const nextKeys = Object.keys(nextProps);\r\n if (nextKeys.length !== Object.keys(prevProps).length) {\r\n return true;\r\n }\r\n for (let i = 0; i < nextKeys.length; i++) {\r\n const key = nextKeys[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emitsOptions, key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction updateHOCHostEl({ vnode, parent }, el // HostNode\r\n) {\r\n while (parent && parent.subTree === vnode) {\r\n (vnode = parent.vnode).el = el;\r\n parent = parent.parent;\r\n }\r\n}\n\nconst isSuspense = (type) => type.__isSuspense;\r\n// Suspense exposes a component-like API, and is treated like a component\r\n// in the compiler, but internally it's a special built-in type that hooks\r\n// directly into the renderer.\r\nconst SuspenseImpl = {\r\n name: 'Suspense',\r\n // In order to make Suspense tree-shakable, we need to avoid importing it\r\n // directly in the renderer. The renderer checks for the __isSuspense flag\r\n // on a vnode's type and calls the `process` method, passing in renderer\r\n // internals.\r\n __isSuspense: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, \r\n // platform-specific impl passed from renderer\r\n rendererInternals) {\r\n if (n1 == null) {\r\n mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n else {\r\n patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n },\r\n hydrate: hydrateSuspense,\r\n create: createSuspenseBoundary,\r\n normalize: normalizeSuspenseChildren\r\n};\r\n// Force-casted public typing for h and TSX props inference\r\nconst Suspense = (SuspenseImpl );\r\nfunction triggerEvent(vnode, name) {\r\n const eventListener = vnode.props && vnode.props[name];\r\n if (isFunction(eventListener)) {\r\n eventListener();\r\n }\r\n}\r\nfunction mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {\r\n const { p: patch, o: { createElement } } = rendererInternals;\r\n const hiddenContainer = createElement('div');\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));\r\n // start mounting the content subtree in an off-dom container\r\n patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);\r\n // now check if we have encountered any async deps\r\n if (suspense.deps > 0) {\r\n // has async\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onPending');\r\n triggerEvent(vnode, 'onFallback');\r\n // mount the fallback tree\r\n patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds);\r\n setActiveBranch(suspense, vnode.ssFallback);\r\n }\r\n else {\r\n // Suspense has no async deps. Just resolve.\r\n suspense.resolve();\r\n }\r\n}\r\nfunction patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {\r\n const suspense = (n2.suspense = n1.suspense);\r\n suspense.vnode = n2;\r\n n2.el = n1.el;\r\n const newBranch = n2.ssContent;\r\n const newFallback = n2.ssFallback;\r\n const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;\r\n if (pendingBranch) {\r\n suspense.pendingBranch = newBranch;\r\n if (isSameVNodeType(newBranch, pendingBranch)) {\r\n // same root type but content may have changed.\r\n patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else if (isInFallback) {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else {\r\n // toggled before pending tree is resolved\r\n suspense.pendingId++;\r\n if (isHydrating) {\r\n // if toggled before hydration is finished, the current DOM tree is\r\n // no longer valid. set it as the active branch so it will be unmounted\r\n // when resolved\r\n suspense.isHydrating = false;\r\n suspense.activeBranch = pendingBranch;\r\n }\r\n else {\r\n unmount(pendingBranch, parentComponent, suspense);\r\n }\r\n // increment pending ID. this is used to invalidate async callbacks\r\n // reset suspense state\r\n suspense.deps = 0;\r\n // discard effects from pending branch\r\n suspense.effects.length = 0;\r\n // discard previous container\r\n suspense.hiddenContainer = createElement('div');\r\n if (isInFallback) {\r\n // already in fallback state\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // toggled \"back\" to current active branch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n // force resolve\r\n suspense.resolve(true);\r\n }\r\n else {\r\n // switched to a 3rd branch\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // root did not change, just normal patch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newBranch);\r\n }\r\n else {\r\n // root node toggled\r\n // invoke @pending event\r\n triggerEvent(n2, 'onPending');\r\n // mount pending branch in off-dom container\r\n suspense.pendingBranch = newBranch;\r\n suspense.pendingId++;\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n // incoming branch has no async deps, resolve now.\r\n suspense.resolve();\r\n }\r\n else {\r\n const { timeout, pendingId } = suspense;\r\n if (timeout > 0) {\r\n setTimeout(() => {\r\n if (suspense.pendingId === pendingId) {\r\n suspense.fallback(newFallback);\r\n }\r\n }, timeout);\r\n }\r\n else if (timeout === 0) {\r\n suspense.fallback(newFallback);\r\n }\r\n }\r\n }\r\n }\r\n}\r\nlet hasWarned = false;\r\nfunction createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && !false && !hasWarned) {\r\n hasWarned = true;\r\n // @ts-ignore `console.info` cannot be null error\r\n console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);\r\n }\r\n const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;\r\n const timeout = toNumber(vnode.props && vnode.props.timeout);\r\n const suspense = {\r\n vnode,\r\n parent,\r\n parentComponent,\r\n isSVG,\r\n container,\r\n hiddenContainer,\r\n anchor,\r\n deps: 0,\r\n pendingId: 0,\r\n timeout: typeof timeout === 'number' ? timeout : -1,\r\n activeBranch: null,\r\n pendingBranch: null,\r\n isInFallback: true,\r\n isHydrating,\r\n isUnmounted: false,\r\n effects: [],\r\n resolve(resume = false) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!resume && !suspense.pendingBranch) {\r\n throw new Error(`suspense.resolve() is called without a pending branch.`);\r\n }\r\n if (suspense.isUnmounted) {\r\n throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);\r\n }\r\n }\r\n const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;\r\n if (suspense.isHydrating) {\r\n suspense.isHydrating = false;\r\n }\r\n else if (!resume) {\r\n const delayEnter = activeBranch &&\r\n pendingBranch.transition &&\r\n pendingBranch.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = () => {\r\n if (pendingId === suspense.pendingId) {\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n };\r\n }\r\n // this is initial anchor on mount\r\n let { anchor } = suspense;\r\n // unmount current active tree\r\n if (activeBranch) {\r\n // if the fallback tree was mounted, it may have been moved\r\n // as part of a parent suspense. get the latest anchor for insertion\r\n anchor = next(activeBranch);\r\n unmount(activeBranch, parentComponent, suspense, true);\r\n }\r\n if (!delayEnter) {\r\n // move content from off-dom container to actual container\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n }\r\n setActiveBranch(suspense, pendingBranch);\r\n suspense.pendingBranch = null;\r\n suspense.isInFallback = false;\r\n // flush buffered effects\r\n // check if there is a pending parent suspense\r\n let parent = suspense.parent;\r\n let hasUnresolvedAncestor = false;\r\n while (parent) {\r\n if (parent.pendingBranch) {\r\n // found a pending parent suspense, merge buffered post jobs\r\n // into that parent\r\n parent.effects.push(...effects);\r\n hasUnresolvedAncestor = true;\r\n break;\r\n }\r\n parent = parent.parent;\r\n }\r\n // no pending parent suspense, flush all jobs\r\n if (!hasUnresolvedAncestor) {\r\n queuePostFlushCb(effects);\r\n }\r\n suspense.effects = [];\r\n // invoke @resolve event\r\n triggerEvent(vnode, 'onResolve');\r\n },\r\n fallback(fallbackVNode) {\r\n if (!suspense.pendingBranch) {\r\n return;\r\n }\r\n const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onFallback');\r\n const anchor = next(activeBranch);\r\n const mountFallback = () => {\r\n if (!suspense.isInFallback) {\r\n return;\r\n }\r\n // mount the fallback tree\r\n patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, fallbackVNode);\r\n };\r\n const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = mountFallback;\r\n }\r\n suspense.isInFallback = true;\r\n // unmount current active branch\r\n unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now\r\n true // shouldRemove\r\n );\r\n if (!delayEnter) {\r\n mountFallback();\r\n }\r\n },\r\n move(container, anchor, type) {\r\n suspense.activeBranch &&\r\n move(suspense.activeBranch, container, anchor, type);\r\n suspense.container = container;\r\n },\r\n next() {\r\n return suspense.activeBranch && next(suspense.activeBranch);\r\n },\r\n registerDep(instance, setupRenderEffect) {\r\n const isInPendingSuspense = !!suspense.pendingBranch;\r\n if (isInPendingSuspense) {\r\n suspense.deps++;\r\n }\r\n const hydratedEl = instance.vnode.el;\r\n instance\r\n .asyncDep.catch(err => {\r\n handleError(err, instance, 0 /* SETUP_FUNCTION */);\r\n })\r\n .then(asyncSetupResult => {\r\n // retry when the setup() promise resolves.\r\n // component may have been unmounted before resolve.\r\n if (instance.isUnmounted ||\r\n suspense.isUnmounted ||\r\n suspense.pendingId !== instance.suspenseId) {\r\n return;\r\n }\r\n // retry from this component\r\n instance.asyncResolved = true;\r\n const { vnode } = instance;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(vnode);\r\n }\r\n handleSetupResult(instance, asyncSetupResult, false);\r\n if (hydratedEl) {\r\n // vnode may have been replaced if an update happened before the\r\n // async dep is resolved.\r\n vnode.el = hydratedEl;\r\n }\r\n const placeholder = !hydratedEl && instance.subTree.el;\r\n setupRenderEffect(instance, vnode, \r\n // component may have been moved before resolve.\r\n // if this is not a hydration, instance.subTree will be the comment\r\n // placeholder.\r\n parentNode(hydratedEl || instance.subTree.el), \r\n // anchor will not be used if this is hydration, so only need to\r\n // consider the comment placeholder case.\r\n hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);\r\n if (placeholder) {\r\n remove(placeholder);\r\n }\r\n updateHOCHostEl(instance, vnode.el);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n // only decrease deps count if suspense is not already resolved\r\n if (isInPendingSuspense && --suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n });\r\n },\r\n unmount(parentSuspense, doRemove) {\r\n suspense.isUnmounted = true;\r\n if (suspense.activeBranch) {\r\n unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n if (suspense.pendingBranch) {\r\n unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n }\r\n };\r\n return suspense;\r\n}\r\nfunction hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {\r\n /* eslint-disable no-restricted-globals */\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));\r\n // there are two possible scenarios for server-rendered suspense:\r\n // - success: ssr content should be fully resolved\r\n // - failure: ssr content should be the fallback branch.\r\n // however, on the client we don't really know if it has failed or not\r\n // attempt to hydrate the DOM assuming it has succeeded, but we still\r\n // need to construct a suspense boundary first\r\n const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);\r\n if (suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n return result;\r\n /* eslint-enable no-restricted-globals */\r\n}\r\nfunction normalizeSuspenseChildren(vnode) {\r\n const { shapeFlag, children } = vnode;\r\n const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;\r\n vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);\r\n vnode.ssFallback = isSlotChildren\r\n ? normalizeSuspenseSlot(children.fallback)\r\n : createVNode(Comment);\r\n}\r\nfunction normalizeSuspenseSlot(s) {\r\n let block;\r\n if (isFunction(s)) {\r\n const trackBlock = isBlockTreeEnabled && s._c;\r\n if (trackBlock) {\r\n // disableTracking: false\r\n // allow block tracking for compiled slots\r\n // (see ./componentRenderContext.ts)\r\n s._d = false;\r\n openBlock();\r\n }\r\n s = s();\r\n if (trackBlock) {\r\n s._d = true;\r\n block = currentBlock;\r\n closeBlock();\r\n }\r\n }\r\n if (isArray(s)) {\r\n const singleChild = filterSingleRoot(s);\r\n if ((process.env.NODE_ENV !== 'production') && !singleChild) {\r\n warn(`<Suspense> slots expect a single root node.`);\r\n }\r\n s = singleChild;\r\n }\r\n s = normalizeVNode(s);\r\n if (block && !s.dynamicChildren) {\r\n s.dynamicChildren = block.filter(c => c !== s);\r\n }\r\n return s;\r\n}\r\nfunction queueEffectWithSuspense(fn, suspense) {\r\n if (suspense && suspense.pendingBranch) {\r\n if (isArray(fn)) {\r\n suspense.effects.push(...fn);\r\n }\r\n else {\r\n suspense.effects.push(fn);\r\n }\r\n }\r\n else {\r\n queuePostFlushCb(fn);\r\n }\r\n}\r\nfunction setActiveBranch(suspense, branch) {\r\n suspense.activeBranch = branch;\r\n const { vnode, parentComponent } = suspense;\r\n const el = (vnode.el = branch.el);\r\n // in case suspense is the root node of a component,\r\n // recursively update the HOC el\r\n if (parentComponent && parentComponent.subTree === vnode) {\r\n parentComponent.vnode.el = el;\r\n updateHOCHostEl(parentComponent, el);\r\n }\r\n}\n\nfunction provide(key, value) {\r\n if (!currentInstance) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`provide() can only be used inside setup().`);\r\n }\r\n }\r\n else {\r\n let provides = currentInstance.provides;\r\n // by default an instance inherits its parent's provides object\r\n // but when it needs to provide values of its own, it creates its\r\n // own provides object using parent provides object as prototype.\r\n // this way in `inject` we can simply look up injections from direct\r\n // parent and let the prototype chain do the work.\r\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\r\n if (parentProvides === provides) {\r\n provides = currentInstance.provides = Object.create(parentProvides);\r\n }\r\n // TS doesn't allow symbol as index type\r\n provides[key] = value;\r\n }\r\n}\r\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\r\n // fallback to `currentRenderingInstance` so that this can be called in\r\n // a functional component\r\n const instance = currentInstance || currentRenderingInstance;\r\n if (instance) {\r\n // #2400\r\n // to support `app.use` plugins,\r\n // fallback to appContext's `provides` if the intance is at root\r\n const provides = instance.parent == null\r\n ? instance.vnode.appContext && instance.vnode.appContext.provides\r\n : instance.parent.provides;\r\n if (provides && key in provides) {\r\n // TS doesn't allow symbol as index type\r\n return provides[key];\r\n }\r\n else if (arguments.length > 1) {\r\n return treatDefaultAsFactory && isFunction(defaultValue)\r\n ? defaultValue.call(instance.proxy)\r\n : defaultValue;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injection \"${String(key)}\" not found.`);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`inject() can only be used inside setup() or functional components.`);\r\n }\r\n}\n\nfunction useTransitionState() {\r\n const state = {\r\n isMounted: false,\r\n isLeaving: false,\r\n isUnmounting: false,\r\n leavingVNodes: new Map()\r\n };\r\n onMounted(() => {\r\n state.isMounted = true;\r\n });\r\n onBeforeUnmount(() => {\r\n state.isUnmounting = true;\r\n });\r\n return state;\r\n}\r\nconst TransitionHookValidator = [Function, Array];\r\nconst BaseTransitionImpl = {\r\n name: `BaseTransition`,\r\n props: {\r\n mode: String,\r\n appear: Boolean,\r\n persisted: Boolean,\r\n // enter\r\n onBeforeEnter: TransitionHookValidator,\r\n onEnter: TransitionHookValidator,\r\n onAfterEnter: TransitionHookValidator,\r\n onEnterCancelled: TransitionHookValidator,\r\n // leave\r\n onBeforeLeave: TransitionHookValidator,\r\n onLeave: TransitionHookValidator,\r\n onAfterLeave: TransitionHookValidator,\r\n onLeaveCancelled: TransitionHookValidator,\r\n // appear\r\n onBeforeAppear: TransitionHookValidator,\r\n onAppear: TransitionHookValidator,\r\n onAfterAppear: TransitionHookValidator,\r\n onAppearCancelled: TransitionHookValidator\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevTransitionKey;\r\n return () => {\r\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\r\n if (!children || !children.length) {\r\n return;\r\n }\r\n // warn multiple elements\r\n if ((process.env.NODE_ENV !== 'production') && children.length > 1) {\r\n warn('<transition> can only be used on a single element or component. Use ' +\r\n '<transition-group> for lists.');\r\n }\r\n // there's no need to track reactivity for these props so use the raw\r\n // props for a bit better perf\r\n const rawProps = toRaw(props);\r\n const { mode } = rawProps;\r\n // check mode\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n mode &&\r\n mode !== 'in-out' && mode !== 'out-in' && mode !== 'default') {\r\n warn(`invalid <transition> mode: ${mode}`);\r\n }\r\n // at this point children has a guaranteed length of 1.\r\n const child = children[0];\r\n if (state.isLeaving) {\r\n return emptyPlaceholder(child);\r\n }\r\n // in the case of <transition><keep-alive/></transition>, we need to\r\n // compare the type of the kept-alive children.\r\n const innerChild = getKeepAliveChild(child);\r\n if (!innerChild) {\r\n return emptyPlaceholder(child);\r\n }\r\n const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);\r\n setTransitionHooks(innerChild, enterHooks);\r\n const oldChild = instance.subTree;\r\n const oldInnerChild = oldChild && getKeepAliveChild(oldChild);\r\n let transitionKeyChanged = false;\r\n const { getTransitionKey } = innerChild.type;\r\n if (getTransitionKey) {\r\n const key = getTransitionKey();\r\n if (prevTransitionKey === undefined) {\r\n prevTransitionKey = key;\r\n }\r\n else if (key !== prevTransitionKey) {\r\n prevTransitionKey = key;\r\n transitionKeyChanged = true;\r\n }\r\n }\r\n // handle mode\r\n if (oldInnerChild &&\r\n oldInnerChild.type !== Comment &&\r\n (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {\r\n const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);\r\n // update old tree's hooks in case of dynamic transition\r\n setTransitionHooks(oldInnerChild, leavingHooks);\r\n // switching between different views\r\n if (mode === 'out-in') {\r\n state.isLeaving = true;\r\n // return placeholder node and queue update when leave finishes\r\n leavingHooks.afterLeave = () => {\r\n state.isLeaving = false;\r\n instance.update();\r\n };\r\n return emptyPlaceholder(child);\r\n }\r\n else if (mode === 'in-out' && innerChild.type !== Comment) {\r\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\r\n const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);\r\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\r\n // early removal callback\r\n el._leaveCb = () => {\r\n earlyRemove();\r\n el._leaveCb = undefined;\r\n delete enterHooks.delayedLeave;\r\n };\r\n enterHooks.delayedLeave = delayedLeave;\r\n };\r\n }\r\n }\r\n return child;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst BaseTransition = BaseTransitionImpl;\r\nfunction getLeavingNodesForType(state, vnode) {\r\n const { leavingVNodes } = state;\r\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\r\n if (!leavingVNodesCache) {\r\n leavingVNodesCache = Object.create(null);\r\n leavingVNodes.set(vnode.type, leavingVNodesCache);\r\n }\r\n return leavingVNodesCache;\r\n}\r\n// The transition hooks are attached to the vnode as vnode.transition\r\n// and will be called at appropriate timing in the renderer.\r\nfunction resolveTransitionHooks(vnode, props, state, instance) {\r\n const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;\r\n const key = String(vnode.key);\r\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\r\n const callHook = (hook, args) => {\r\n hook &&\r\n callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);\r\n };\r\n const hooks = {\r\n mode,\r\n persisted,\r\n beforeEnter(el) {\r\n let hook = onBeforeEnter;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onBeforeAppear || onBeforeEnter;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n // for same element (v-show)\r\n if (el._leaveCb) {\r\n el._leaveCb(true /* cancelled */);\r\n }\r\n // for toggled element with same key (v-if)\r\n const leavingVNode = leavingVNodesCache[key];\r\n if (leavingVNode &&\r\n isSameVNodeType(vnode, leavingVNode) &&\r\n leavingVNode.el._leaveCb) {\r\n // force early removal (not cancelled)\r\n leavingVNode.el._leaveCb();\r\n }\r\n callHook(hook, [el]);\r\n },\r\n enter(el) {\r\n let hook = onEnter;\r\n let afterHook = onAfterEnter;\r\n let cancelHook = onEnterCancelled;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onAppear || onEnter;\r\n afterHook = onAfterAppear || onAfterEnter;\r\n cancelHook = onAppearCancelled || onEnterCancelled;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n let called = false;\r\n const done = (el._enterCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n if (cancelled) {\r\n callHook(cancelHook, [el]);\r\n }\r\n else {\r\n callHook(afterHook, [el]);\r\n }\r\n if (hooks.delayedLeave) {\r\n hooks.delayedLeave();\r\n }\r\n el._enterCb = undefined;\r\n });\r\n if (hook) {\r\n hook(el, done);\r\n if (hook.length <= 1) {\r\n done();\r\n }\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n leave(el, remove) {\r\n const key = String(vnode.key);\r\n if (el._enterCb) {\r\n el._enterCb(true /* cancelled */);\r\n }\r\n if (state.isUnmounting) {\r\n return remove();\r\n }\r\n callHook(onBeforeLeave, [el]);\r\n let called = false;\r\n const done = (el._leaveCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n remove();\r\n if (cancelled) {\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n else {\r\n callHook(onAfterLeave, [el]);\r\n }\r\n el._leaveCb = undefined;\r\n if (leavingVNodesCache[key] === vnode) {\r\n delete leavingVNodesCache[key];\r\n }\r\n });\r\n leavingVNodesCache[key] = vnode;\r\n if (onLeave) {\r\n onLeave(el, done);\r\n if (onLeave.length <= 1) {\r\n done();\r\n }\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n clone(vnode) {\r\n return resolveTransitionHooks(vnode, props, state, instance);\r\n }\r\n };\r\n return hooks;\r\n}\r\n// the placeholder really only handles one special case: KeepAlive\r\n// in the case of a KeepAlive in a leave phase we need to return a KeepAlive\r\n// placeholder with empty content to avoid the KeepAlive instance from being\r\n// unmounted.\r\nfunction emptyPlaceholder(vnode) {\r\n if (isKeepAlive(vnode)) {\r\n vnode = cloneVNode(vnode);\r\n vnode.children = null;\r\n return vnode;\r\n }\r\n}\r\nfunction getKeepAliveChild(vnode) {\r\n return isKeepAlive(vnode)\r\n ? vnode.children\r\n ? vnode.children[0]\r\n : undefined\r\n : vnode;\r\n}\r\nfunction setTransitionHooks(vnode, hooks) {\r\n if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {\r\n setTransitionHooks(vnode.component.subTree, hooks);\r\n }\r\n else if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\r\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\r\n }\r\n else {\r\n vnode.transition = hooks;\r\n }\r\n}\r\nfunction getTransitionRawChildren(children, keepComment = false) {\r\n let ret = [];\r\n let keyedFragmentCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n // handle fragment children case, e.g. v-for\r\n if (child.type === Fragment) {\r\n if (child.patchFlag & 128 /* KEYED_FRAGMENT */)\r\n keyedFragmentCount++;\r\n ret = ret.concat(getTransitionRawChildren(child.children, keepComment));\r\n }\r\n // comment placeholders should be skipped, e.g. v-if\r\n else if (keepComment || child.type !== Comment) {\r\n ret.push(child);\r\n }\r\n }\r\n // #1126 if a transition children list contains multiple sub fragments, these\r\n // fragments will be merged into a flat children array. Since each v-for\r\n // fragment may contain different static bindings inside, we need to de-op\r\n // these children to force full diffs to ensure correct behavior.\r\n if (keyedFragmentCount > 1) {\r\n for (let i = 0; i < ret.length; i++) {\r\n ret[i].patchFlag = -2 /* BAIL */;\r\n }\r\n }\r\n return ret;\r\n}\n\n// implementation, close to no-op\r\nfunction defineComponent(options) {\r\n return isFunction(options) ? { setup: options, name: options.name } : options;\r\n}\n\nconst isAsyncWrapper = (i) => !!i.type.__asyncLoader;\r\nfunction defineAsyncComponent(source) {\r\n if (isFunction(source)) {\r\n source = { loader: source };\r\n }\r\n const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out\r\n suspensible = true, onError: userOnError } = source;\r\n let pendingRequest = null;\r\n let resolvedComp;\r\n let retries = 0;\r\n const retry = () => {\r\n retries++;\r\n pendingRequest = null;\r\n return load();\r\n };\r\n const load = () => {\r\n let thisRequest;\r\n return (pendingRequest ||\r\n (thisRequest = pendingRequest =\r\n loader()\r\n .catch(err => {\r\n err = err instanceof Error ? err : new Error(String(err));\r\n if (userOnError) {\r\n return new Promise((resolve, reject) => {\r\n const userRetry = () => resolve(retry());\r\n const userFail = () => reject(err);\r\n userOnError(err, userRetry, userFail, retries + 1);\r\n });\r\n }\r\n else {\r\n throw err;\r\n }\r\n })\r\n .then((comp) => {\r\n if (thisRequest !== pendingRequest && pendingRequest) {\r\n return pendingRequest;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && !comp) {\r\n warn(`Async component loader resolved to undefined. ` +\r\n `If you are using retry(), make sure to return its return value.`);\r\n }\r\n // interop module default\r\n if (comp &&\r\n (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {\r\n comp = comp.default;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && comp && !isObject(comp) && !isFunction(comp)) {\r\n throw new Error(`Invalid async component load result: ${comp}`);\r\n }\r\n resolvedComp = comp;\r\n return comp;\r\n })));\r\n };\r\n return defineComponent({\r\n name: 'AsyncComponentWrapper',\r\n __asyncLoader: load,\r\n get __asyncResolved() {\r\n return resolvedComp;\r\n },\r\n setup() {\r\n const instance = currentInstance;\r\n // already resolved\r\n if (resolvedComp) {\r\n return () => createInnerComp(resolvedComp, instance);\r\n }\r\n const onError = (err) => {\r\n pendingRequest = null;\r\n handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */);\r\n };\r\n // suspense-controlled or SSR.\r\n if ((suspensible && instance.suspense) ||\r\n (isInSSRComponentSetup)) {\r\n return load()\r\n .then(comp => {\r\n return () => createInnerComp(comp, instance);\r\n })\r\n .catch(err => {\r\n onError(err);\r\n return () => errorComponent\r\n ? createVNode(errorComponent, {\r\n error: err\r\n })\r\n : null;\r\n });\r\n }\r\n const loaded = ref(false);\r\n const error = ref();\r\n const delayed = ref(!!delay);\r\n if (delay) {\r\n setTimeout(() => {\r\n delayed.value = false;\r\n }, delay);\r\n }\r\n if (timeout != null) {\r\n setTimeout(() => {\r\n if (!loaded.value && !error.value) {\r\n const err = new Error(`Async component timed out after ${timeout}ms.`);\r\n onError(err);\r\n error.value = err;\r\n }\r\n }, timeout);\r\n }\r\n load()\r\n .then(() => {\r\n loaded.value = true;\r\n if (instance.parent && isKeepAlive(instance.parent.vnode)) {\r\n // parent is keep-alive, force update so the loaded component's\r\n // name is taken into account\r\n queueJob(instance.parent.update);\r\n }\r\n })\r\n .catch(err => {\r\n onError(err);\r\n error.value = err;\r\n });\r\n return () => {\r\n if (loaded.value && resolvedComp) {\r\n return createInnerComp(resolvedComp, instance);\r\n }\r\n else if (error.value && errorComponent) {\r\n return createVNode(errorComponent, {\r\n error: error.value\r\n });\r\n }\r\n else if (loadingComponent && !delayed.value) {\r\n return createVNode(loadingComponent);\r\n }\r\n };\r\n }\r\n });\r\n}\r\nfunction createInnerComp(comp, { vnode: { ref, props, children } }) {\r\n const vnode = createVNode(comp, props, children);\r\n // ensure inner component inherits the async wrapper's ref owner\r\n vnode.ref = ref;\r\n return vnode;\r\n}\n\nconst isKeepAlive = (vnode) => vnode.type.__isKeepAlive;\r\nconst KeepAliveImpl = {\r\n name: `KeepAlive`,\r\n // Marker for special handling inside the renderer. We are not using a ===\r\n // check directly on KeepAlive in the renderer, because importing it directly\r\n // would prevent it from being tree-shaken.\r\n __isKeepAlive: true,\r\n props: {\r\n include: [String, RegExp, Array],\r\n exclude: [String, RegExp, Array],\r\n max: [String, Number]\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n // KeepAlive communicates with the instantiated renderer via the\r\n // ctx where the renderer passes in its internals,\r\n // and the KeepAlive instance exposes activate/deactivate implementations.\r\n // The whole point of this is to avoid importing KeepAlive directly in the\r\n // renderer to facilitate tree-shaking.\r\n const sharedContext = instance.ctx;\r\n // if the internal renderer is not registered, it indicates that this is server-side rendering,\r\n // for KeepAlive, we just need to render its children\r\n if (!sharedContext.renderer) {\r\n return slots.default;\r\n }\r\n const cache = new Map();\r\n const keys = new Set();\r\n let current = null;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n instance.__v_cache = cache;\r\n }\r\n const parentSuspense = instance.suspense;\r\n const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;\r\n const storageContainer = createElement('div');\r\n sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {\r\n const instance = vnode.component;\r\n move(vnode, container, anchor, 0 /* ENTER */, parentSuspense);\r\n // in case props have changed\r\n patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized);\r\n queuePostRenderEffect(() => {\r\n instance.isDeactivated = false;\r\n if (instance.a) {\r\n invokeArrayFns(instance.a);\r\n }\r\n const vnodeHook = vnode.props && vnode.props.onVnodeMounted;\r\n if (vnodeHook) {\r\n invokeVNodeHook(vnodeHook, instance.parent, vnode);\r\n }\r\n }, parentSuspense);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n // Update components tree\r\n devtoolsComponentAdded(instance);\r\n }\r\n };\r\n sharedContext.deactivate = (vnode) => {\r\n const instance = vnode.component;\r\n move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense);\r\n queuePostRenderEffect(() => {\r\n if (instance.da) {\r\n invokeArrayFns(instance.da);\r\n }\r\n const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;\r\n if (vnodeHook) {\r\n invokeVNodeHook(vnodeHook, instance.parent, vnode);\r\n }\r\n instance.isDeactivated = true;\r\n }, parentSuspense);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n // Update components tree\r\n devtoolsComponentAdded(instance);\r\n }\r\n };\r\n function unmount(vnode) {\r\n // reset the shapeFlag so it can be properly unmounted\r\n resetShapeFlag(vnode);\r\n _unmount(vnode, instance, parentSuspense);\r\n }\r\n function pruneCache(filter) {\r\n cache.forEach((vnode, key) => {\r\n const name = getComponentName(vnode.type);\r\n if (name && (!filter || !filter(name))) {\r\n pruneCacheEntry(key);\r\n }\r\n });\r\n }\r\n function pruneCacheEntry(key) {\r\n const cached = cache.get(key);\r\n if (!current || cached.type !== current.type) {\r\n unmount(cached);\r\n }\r\n else if (current) {\r\n // current active instance should no longer be kept-alive.\r\n // we can't unmount it now but it might be later, so reset its flag now.\r\n resetShapeFlag(current);\r\n }\r\n cache.delete(key);\r\n keys.delete(key);\r\n }\r\n // prune cache on include/exclude prop change\r\n watch(() => [props.include, props.exclude], ([include, exclude]) => {\r\n include && pruneCache(name => matches(include, name));\r\n exclude && pruneCache(name => !matches(exclude, name));\r\n }, \r\n // prune post-render after `current` has been updated\r\n { flush: 'post', deep: true });\r\n // cache sub tree after render\r\n let pendingCacheKey = null;\r\n const cacheSubtree = () => {\r\n // fix #1621, the pendingCacheKey could be 0\r\n if (pendingCacheKey != null) {\r\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\r\n }\r\n };\r\n onMounted(cacheSubtree);\r\n onUpdated(cacheSubtree);\r\n onBeforeUnmount(() => {\r\n cache.forEach(cached => {\r\n const { subTree, suspense } = instance;\r\n const vnode = getInnerChild(subTree);\r\n if (cached.type === vnode.type) {\r\n // current instance will be unmounted as part of keep-alive's unmount\r\n resetShapeFlag(vnode);\r\n // but invoke its deactivated hook here\r\n const da = vnode.component.da;\r\n da && queuePostRenderEffect(da, suspense);\r\n return;\r\n }\r\n unmount(cached);\r\n });\r\n });\r\n return () => {\r\n pendingCacheKey = null;\r\n if (!slots.default) {\r\n return null;\r\n }\r\n const children = slots.default();\r\n const rawVNode = children[0];\r\n if (children.length > 1) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`KeepAlive should contain exactly one component child.`);\r\n }\r\n current = null;\r\n return children;\r\n }\r\n else if (!isVNode(rawVNode) ||\r\n (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) &&\r\n !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) {\r\n current = null;\r\n return rawVNode;\r\n }\r\n let vnode = getInnerChild(rawVNode);\r\n const comp = vnode.type;\r\n // for async components, name check should be based in its loaded\r\n // inner component if available\r\n const name = getComponentName(isAsyncWrapper(vnode)\r\n ? vnode.type.__asyncResolved || {}\r\n : comp);\r\n const { include, exclude, max } = props;\r\n if ((include && (!name || !matches(include, name))) ||\r\n (exclude && name && matches(exclude, name))) {\r\n current = vnode;\r\n return rawVNode;\r\n }\r\n const key = vnode.key == null ? comp : vnode.key;\r\n const cachedVNode = cache.get(key);\r\n // clone vnode if it's reused because we are going to mutate it\r\n if (vnode.el) {\r\n vnode = cloneVNode(vnode);\r\n if (rawVNode.shapeFlag & 128 /* SUSPENSE */) {\r\n rawVNode.ssContent = vnode;\r\n }\r\n }\r\n // #1513 it's possible for the returned vnode to be cloned due to attr\r\n // fallthrough or scopeId, so the vnode here may not be the final vnode\r\n // that is mounted. Instead of caching it directly, we store the pending\r\n // key and cache `instance.subTree` (the normalized vnode) in\r\n // beforeMount/beforeUpdate hooks.\r\n pendingCacheKey = key;\r\n if (cachedVNode) {\r\n // copy over mounted state\r\n vnode.el = cachedVNode.el;\r\n vnode.component = cachedVNode.component;\r\n if (vnode.transition) {\r\n // recursively update transition hooks on subTree\r\n setTransitionHooks(vnode, vnode.transition);\r\n }\r\n // avoid vnode being mounted as fresh\r\n vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */;\r\n // make this key the freshest\r\n keys.delete(key);\r\n keys.add(key);\r\n }\r\n else {\r\n keys.add(key);\r\n // prune oldest entry\r\n if (max && keys.size > parseInt(max, 10)) {\r\n pruneCacheEntry(keys.values().next().value);\r\n }\r\n }\r\n // avoid vnode being unmounted\r\n vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;\r\n current = vnode;\r\n return rawVNode;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst KeepAlive = KeepAliveImpl;\r\nfunction matches(pattern, name) {\r\n if (isArray(pattern)) {\r\n return pattern.some((p) => matches(p, name));\r\n }\r\n else if (isString(pattern)) {\r\n return pattern.split(',').indexOf(name) > -1;\r\n }\r\n else if (pattern.test) {\r\n return pattern.test(name);\r\n }\r\n /* istanbul ignore next */\r\n return false;\r\n}\r\nfunction onActivated(hook, target) {\r\n registerKeepAliveHook(hook, \"a\" /* ACTIVATED */, target);\r\n}\r\nfunction onDeactivated(hook, target) {\r\n registerKeepAliveHook(hook, \"da\" /* DEACTIVATED */, target);\r\n}\r\nfunction registerKeepAliveHook(hook, type, target = currentInstance) {\r\n // cache the deactivate branch check wrapper for injected hooks so the same\r\n // hook can be properly deduped by the scheduler. \"__wdc\" stands for \"with\r\n // deactivation check\".\r\n const wrappedHook = hook.__wdc ||\r\n (hook.__wdc = () => {\r\n // only fire the hook if the target instance is NOT in a deactivated branch.\r\n let current = target;\r\n while (current) {\r\n if (current.isDeactivated) {\r\n return;\r\n }\r\n current = current.parent;\r\n }\r\n return hook();\r\n });\r\n injectHook(type, wrappedHook, target);\r\n // In addition to registering it on the target instance, we walk up the parent\r\n // chain and register it on all ancestor instances that are keep-alive roots.\r\n // This avoids the need to walk the entire component tree when invoking these\r\n // hooks, and more importantly, avoids the need to track child components in\r\n // arrays.\r\n if (target) {\r\n let current = target.parent;\r\n while (current && current.parent) {\r\n if (isKeepAlive(current.parent.vnode)) {\r\n injectToKeepAliveRoot(wrappedHook, type, target, current);\r\n }\r\n current = current.parent;\r\n }\r\n }\r\n}\r\nfunction injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {\r\n // injectHook wraps the original for error handling, so make sure to remove\r\n // the wrapped version.\r\n const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */);\r\n onUnmounted(() => {\r\n remove(keepAliveRoot[type], injected);\r\n }, target);\r\n}\r\nfunction resetShapeFlag(vnode) {\r\n let shapeFlag = vnode.shapeFlag;\r\n if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;\r\n }\r\n if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {\r\n shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */;\r\n }\r\n vnode.shapeFlag = shapeFlag;\r\n}\r\nfunction getInnerChild(vnode) {\r\n return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode;\r\n}\n\nfunction injectHook(type, hook, target = currentInstance, prepend = false) {\r\n if (target) {\r\n const hooks = target[type] || (target[type] = []);\r\n // cache the error handling wrapper for injected hooks so the same hook\r\n // can be properly deduped by the scheduler. \"__weh\" stands for \"with error\r\n // handling\".\r\n const wrappedHook = hook.__weh ||\r\n (hook.__weh = (...args) => {\r\n if (target.isUnmounted) {\r\n return;\r\n }\r\n // disable tracking inside all lifecycle hooks\r\n // since they can potentially be called inside effects.\r\n pauseTracking();\r\n // Set currentInstance during hook invocation.\r\n // This assumes the hook does not synchronously trigger other hooks, which\r\n // can only be false when the user does something really funky.\r\n setCurrentInstance(target);\r\n const res = callWithAsyncErrorHandling(hook, target, type, args);\r\n unsetCurrentInstance();\r\n resetTracking();\r\n return res;\r\n });\r\n if (prepend) {\r\n hooks.unshift(wrappedHook);\r\n }\r\n else {\r\n hooks.push(wrappedHook);\r\n }\r\n return wrappedHook;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ''));\r\n warn(`${apiName} is called when there is no active component instance to be ` +\r\n `associated with. ` +\r\n `Lifecycle injection APIs can only be used during execution of setup().` +\r\n (` If you are using async setup(), make sure to register lifecycle ` +\r\n `hooks before the first await statement.`\r\n ));\r\n }\r\n}\r\nconst createHook = (lifecycle) => (hook, target = currentInstance) => \r\n// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)\r\n(!isInSSRComponentSetup || lifecycle === \"sp\" /* SERVER_PREFETCH */) &&\r\n injectHook(lifecycle, hook, target);\r\nconst onBeforeMount = createHook(\"bm\" /* BEFORE_MOUNT */);\r\nconst onMounted = createHook(\"m\" /* MOUNTED */);\r\nconst onBeforeUpdate = createHook(\"bu\" /* BEFORE_UPDATE */);\r\nconst onUpdated = createHook(\"u\" /* UPDATED */);\r\nconst onBeforeUnmount = createHook(\"bum\" /* BEFORE_UNMOUNT */);\r\nconst onUnmounted = createHook(\"um\" /* UNMOUNTED */);\r\nconst onServerPrefetch = createHook(\"sp\" /* SERVER_PREFETCH */);\r\nconst onRenderTriggered = createHook(\"rtg\" /* RENDER_TRIGGERED */);\r\nconst onRenderTracked = createHook(\"rtc\" /* RENDER_TRACKED */);\r\nfunction onErrorCaptured(hook, target = currentInstance) {\r\n injectHook(\"ec\" /* ERROR_CAPTURED */, hook, target);\r\n}\n\nfunction createDuplicateChecker() {\r\n const cache = Object.create(null);\r\n return (type, key) => {\r\n if (cache[key]) {\r\n warn(`${type} property \"${key}\" is already defined in ${cache[key]}.`);\r\n }\r\n else {\r\n cache[key] = type;\r\n }\r\n };\r\n}\r\nlet shouldCacheAccess = true;\r\nfunction applyOptions(instance) {\r\n const options = resolveMergedOptions(instance);\r\n const publicThis = instance.proxy;\r\n const ctx = instance.ctx;\r\n // do not cache property access on public proxy during state initialization\r\n shouldCacheAccess = false;\r\n // call beforeCreate first before accessing other options since\r\n // the hook may mutate resolved options (#2791)\r\n if (options.beforeCreate) {\r\n callHook(options.beforeCreate, instance, \"bc\" /* BEFORE_CREATE */);\r\n }\r\n const { \r\n // state\r\n data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, \r\n // lifecycle\r\n created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, \r\n // public API\r\n expose, inheritAttrs, \r\n // assets\r\n components, directives, filters } = options;\r\n const checkDuplicateProperties = (process.env.NODE_ENV !== 'production') ? createDuplicateChecker() : null;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const [propsOptions] = instance.propsOptions;\r\n if (propsOptions) {\r\n for (const key in propsOptions) {\r\n checkDuplicateProperties(\"Props\" /* PROPS */, key);\r\n }\r\n }\r\n }\r\n // options initialization order (to be consistent with Vue 2):\r\n // - props (already done outside of this function)\r\n // - inject\r\n // - methods\r\n // - data (deferred since it relies on `this` access)\r\n // - computed\r\n // - watch (deferred since it relies on `this` access)\r\n if (injectOptions) {\r\n resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef);\r\n }\r\n if (methods) {\r\n for (const key in methods) {\r\n const methodHandler = methods[key];\r\n if (isFunction(methodHandler)) {\r\n // In dev mode, we use the `createRenderContext` function to define\r\n // methods to the proxy target, and those are read-only but\r\n // reconfigurable, so it needs to be redefined here\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n Object.defineProperty(ctx, key, {\r\n value: methodHandler.bind(publicThis),\r\n configurable: true,\r\n enumerable: true,\r\n writable: true\r\n });\r\n }\r\n else {\r\n ctx[key] = methodHandler.bind(publicThis);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Methods\" /* METHODS */, key);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Method \"${key}\" has type \"${typeof methodHandler}\" in the component definition. ` +\r\n `Did you reference the function correctly?`);\r\n }\r\n }\r\n }\r\n if (dataOptions) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(dataOptions)) {\r\n warn(`The data option must be a function. ` +\r\n `Plain object usage is no longer supported.`);\r\n }\r\n const data = dataOptions.call(publicThis, publicThis);\r\n if ((process.env.NODE_ENV !== 'production') && isPromise(data)) {\r\n warn(`data() returned a Promise - note data() cannot be async; If you ` +\r\n `intend to perform data fetching before component renders, use ` +\r\n `async setup() + <Suspense>.`);\r\n }\r\n if (!isObject(data)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`data() should return an object.`);\r\n }\r\n else {\r\n instance.data = reactive(data);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n for (const key in data) {\r\n checkDuplicateProperties(\"Data\" /* DATA */, key);\r\n // expose data on ctx during dev\r\n if (key[0] !== '$' && key[0] !== '_') {\r\n Object.defineProperty(ctx, key, {\r\n configurable: true,\r\n enumerable: true,\r\n get: () => data[key],\r\n set: NOOP\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n // state initialization complete at this point - start caching access\r\n shouldCacheAccess = true;\r\n if (computedOptions) {\r\n for (const key in computedOptions) {\r\n const opt = computedOptions[key];\r\n const get = isFunction(opt)\r\n ? opt.bind(publicThis, publicThis)\r\n : isFunction(opt.get)\r\n ? opt.get.bind(publicThis, publicThis)\r\n : NOOP;\r\n if ((process.env.NODE_ENV !== 'production') && get === NOOP) {\r\n warn(`Computed property \"${key}\" has no getter.`);\r\n }\r\n const set = !isFunction(opt) && isFunction(opt.set)\r\n ? opt.set.bind(publicThis)\r\n : (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n warn(`Write operation failed: computed property \"${key}\" is readonly.`);\r\n }\r\n : NOOP;\r\n const c = computed({\r\n get,\r\n set\r\n });\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => c.value,\r\n set: v => (c.value = v)\r\n });\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Computed\" /* COMPUTED */, key);\r\n }\r\n }\r\n }\r\n if (watchOptions) {\r\n for (const key in watchOptions) {\r\n createWatcher(watchOptions[key], ctx, publicThis, key);\r\n }\r\n }\r\n if (provideOptions) {\r\n const provides = isFunction(provideOptions)\r\n ? provideOptions.call(publicThis)\r\n : provideOptions;\r\n Reflect.ownKeys(provides).forEach(key => {\r\n provide(key, provides[key]);\r\n });\r\n }\r\n if (created) {\r\n callHook(created, instance, \"c\" /* CREATED */);\r\n }\r\n function registerLifecycleHook(register, hook) {\r\n if (isArray(hook)) {\r\n hook.forEach(_hook => register(_hook.bind(publicThis)));\r\n }\r\n else if (hook) {\r\n register(hook.bind(publicThis));\r\n }\r\n }\r\n registerLifecycleHook(onBeforeMount, beforeMount);\r\n registerLifecycleHook(onMounted, mounted);\r\n registerLifecycleHook(onBeforeUpdate, beforeUpdate);\r\n registerLifecycleHook(onUpdated, updated);\r\n registerLifecycleHook(onActivated, activated);\r\n registerLifecycleHook(onDeactivated, deactivated);\r\n registerLifecycleHook(onErrorCaptured, errorCaptured);\r\n registerLifecycleHook(onRenderTracked, renderTracked);\r\n registerLifecycleHook(onRenderTriggered, renderTriggered);\r\n registerLifecycleHook(onBeforeUnmount, beforeUnmount);\r\n registerLifecycleHook(onUnmounted, unmounted);\r\n registerLifecycleHook(onServerPrefetch, serverPrefetch);\r\n if (isArray(expose)) {\r\n if (expose.length) {\r\n const exposed = instance.exposed || (instance.exposed = {});\r\n expose.forEach(key => {\r\n Object.defineProperty(exposed, key, {\r\n get: () => publicThis[key],\r\n set: val => (publicThis[key] = val)\r\n });\r\n });\r\n }\r\n else if (!instance.exposed) {\r\n instance.exposed = {};\r\n }\r\n }\r\n // options that are handled when creating the instance but also need to be\r\n // applied from mixins\r\n if (render && instance.render === NOOP) {\r\n instance.render = render;\r\n }\r\n if (inheritAttrs != null) {\r\n instance.inheritAttrs = inheritAttrs;\r\n }\r\n // asset options.\r\n if (components)\r\n instance.components = components;\r\n if (directives)\r\n instance.directives = directives;\r\n}\r\nfunction resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP, unwrapRef = false) {\r\n if (isArray(injectOptions)) {\r\n injectOptions = normalizeInject(injectOptions);\r\n }\r\n for (const key in injectOptions) {\r\n const opt = injectOptions[key];\r\n let injected;\r\n if (isObject(opt)) {\r\n if ('default' in opt) {\r\n injected = inject(opt.from || key, opt.default, true /* treat default function as factory */);\r\n }\r\n else {\r\n injected = inject(opt.from || key);\r\n }\r\n }\r\n else {\r\n injected = inject(opt);\r\n }\r\n if (isRef(injected)) {\r\n // TODO remove the check in 3.3\r\n if (unwrapRef) {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => injected.value,\r\n set: v => (injected.value = v)\r\n });\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injected property \"${key}\" is a ref and will be auto-unwrapped ` +\r\n `and no longer needs \\`.value\\` in the next minor release. ` +\r\n `To opt-in to the new behavior now, ` +\r\n `set \\`app.config.unwrapInjectedRef = true\\` (this config is ` +\r\n `temporary and will not be needed in the future.)`);\r\n }\r\n ctx[key] = injected;\r\n }\r\n }\r\n else {\r\n ctx[key] = injected;\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Inject\" /* INJECT */, key);\r\n }\r\n }\r\n}\r\nfunction callHook(hook, instance, type) {\r\n callWithAsyncErrorHandling(isArray(hook)\r\n ? hook.map(h => h.bind(instance.proxy))\r\n : hook.bind(instance.proxy), instance, type);\r\n}\r\nfunction createWatcher(raw, ctx, publicThis, key) {\r\n const getter = key.includes('.')\r\n ? createPathGetter(publicThis, key)\r\n : () => publicThis[key];\r\n if (isString(raw)) {\r\n const handler = ctx[raw];\r\n if (isFunction(handler)) {\r\n watch(getter, handler);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch handler specified by key \"${raw}\"`, handler);\r\n }\r\n }\r\n else if (isFunction(raw)) {\r\n watch(getter, raw.bind(publicThis));\r\n }\r\n else if (isObject(raw)) {\r\n if (isArray(raw)) {\r\n raw.forEach(r => createWatcher(r, ctx, publicThis, key));\r\n }\r\n else {\r\n const handler = isFunction(raw.handler)\r\n ? raw.handler.bind(publicThis)\r\n : ctx[raw.handler];\r\n if (isFunction(handler)) {\r\n watch(getter, handler, raw);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch handler specified by key \"${raw.handler}\"`, handler);\r\n }\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch option: \"${key}\"`, raw);\r\n }\r\n}\r\n/**\r\n * Resolve merged options and cache it on the component.\r\n * This is done only once per-component since the merging does not involve\r\n * instances.\r\n */\r\nfunction resolveMergedOptions(instance) {\r\n const base = instance.type;\r\n const { mixins, extends: extendsOptions } = base;\r\n const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;\r\n const cached = cache.get(base);\r\n let resolved;\r\n if (cached) {\r\n resolved = cached;\r\n }\r\n else if (!globalMixins.length && !mixins && !extendsOptions) {\r\n {\r\n resolved = base;\r\n }\r\n }\r\n else {\r\n resolved = {};\r\n if (globalMixins.length) {\r\n globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true));\r\n }\r\n mergeOptions(resolved, base, optionMergeStrategies);\r\n }\r\n cache.set(base, resolved);\r\n return resolved;\r\n}\r\nfunction mergeOptions(to, from, strats, asMixin = false) {\r\n const { mixins, extends: extendsOptions } = from;\r\n if (extendsOptions) {\r\n mergeOptions(to, extendsOptions, strats, true);\r\n }\r\n if (mixins) {\r\n mixins.forEach((m) => mergeOptions(to, m, strats, true));\r\n }\r\n for (const key in from) {\r\n if (asMixin && key === 'expose') {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`\"expose\" option is ignored when declared in mixins or extends. ` +\r\n `It should only be declared in the base component itself.`);\r\n }\r\n else {\r\n const strat = internalOptionMergeStrats[key] || (strats && strats[key]);\r\n to[key] = strat ? strat(to[key], from[key]) : from[key];\r\n }\r\n }\r\n return to;\r\n}\r\nconst internalOptionMergeStrats = {\r\n data: mergeDataFn,\r\n props: mergeObjectOptions,\r\n emits: mergeObjectOptions,\r\n // objects\r\n methods: mergeObjectOptions,\r\n computed: mergeObjectOptions,\r\n // lifecycle\r\n beforeCreate: mergeAsArray,\r\n created: mergeAsArray,\r\n beforeMount: mergeAsArray,\r\n mounted: mergeAsArray,\r\n beforeUpdate: mergeAsArray,\r\n updated: mergeAsArray,\r\n beforeDestroy: mergeAsArray,\r\n beforeUnmount: mergeAsArray,\r\n destroyed: mergeAsArray,\r\n unmounted: mergeAsArray,\r\n activated: mergeAsArray,\r\n deactivated: mergeAsArray,\r\n errorCaptured: mergeAsArray,\r\n serverPrefetch: mergeAsArray,\r\n // assets\r\n components: mergeObjectOptions,\r\n directives: mergeObjectOptions,\r\n // watch\r\n watch: mergeWatchOptions,\r\n // provide / inject\r\n provide: mergeDataFn,\r\n inject: mergeInject\r\n};\r\nfunction mergeDataFn(to, from) {\r\n if (!from) {\r\n return to;\r\n }\r\n if (!to) {\r\n return from;\r\n }\r\n return function mergedDataFn() {\r\n return (extend)(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);\r\n };\r\n}\r\nfunction mergeInject(to, from) {\r\n return mergeObjectOptions(normalizeInject(to), normalizeInject(from));\r\n}\r\nfunction normalizeInject(raw) {\r\n if (isArray(raw)) {\r\n const res = {};\r\n for (let i = 0; i < raw.length; i++) {\r\n res[raw[i]] = raw[i];\r\n }\r\n return res;\r\n }\r\n return raw;\r\n}\r\nfunction mergeAsArray(to, from) {\r\n return to ? [...new Set([].concat(to, from))] : from;\r\n}\r\nfunction mergeObjectOptions(to, from) {\r\n return to ? extend(extend(Object.create(null), to), from) : from;\r\n}\r\nfunction mergeWatchOptions(to, from) {\r\n if (!to)\r\n return from;\r\n if (!from)\r\n return to;\r\n const merged = extend(Object.create(null), to);\r\n for (const key in from) {\r\n merged[key] = mergeAsArray(to[key], from[key]);\r\n }\r\n return merged;\r\n}\n\nfunction initProps(instance, rawProps, isStateful, // result of bitwise flag comparison\r\nisSSR = false) {\r\n const props = {};\r\n const attrs = {};\r\n def(attrs, InternalObjectKey, 1);\r\n instance.propsDefaults = Object.create(null);\r\n setFullProps(instance, rawProps, props, attrs);\r\n // ensure all declared prop keys are present\r\n for (const key in instance.propsOptions[0]) {\r\n if (!(key in props)) {\r\n props[key] = undefined;\r\n }\r\n }\r\n // validation\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateProps(rawProps || {}, props, instance);\r\n }\r\n if (isStateful) {\r\n // stateful\r\n instance.props = isSSR ? props : shallowReactive(props);\r\n }\r\n else {\r\n if (!instance.type.props) {\r\n // functional w/ optional props, props === attrs\r\n instance.props = attrs;\r\n }\r\n else {\r\n // functional w/ declared props\r\n instance.props = props;\r\n }\r\n }\r\n instance.attrs = attrs;\r\n}\r\nfunction updateProps(instance, rawProps, rawPrevProps, optimized) {\r\n const { props, attrs, vnode: { patchFlag } } = instance;\r\n const rawCurrentProps = toRaw(props);\r\n const [options] = instance.propsOptions;\r\n let hasAttrsChanged = false;\r\n if (\r\n // always force full diff in dev\r\n // - #1942 if hmr is enabled with sfc component\r\n // - vite#872 non-sfc component used by sfc component\r\n !((process.env.NODE_ENV !== 'production') &&\r\n (instance.type.__hmrId ||\r\n (instance.parent && instance.parent.type.__hmrId))) &&\r\n (optimized || patchFlag > 0) &&\r\n !(patchFlag & 16 /* FULL_PROPS */)) {\r\n if (patchFlag & 8 /* PROPS */) {\r\n // Compiler-generated props & no keys change, just set the updated\r\n // the props.\r\n const propsToUpdate = instance.vnode.dynamicProps;\r\n for (let i = 0; i < propsToUpdate.length; i++) {\r\n let key = propsToUpdate[i];\r\n // PROPS flag guarantees rawProps to be non-null\r\n const value = rawProps[key];\r\n if (options) {\r\n // attr / props separation was done on init and will be consistent\r\n // in this code path, so just check if attrs have it.\r\n if (hasOwn(attrs, key)) {\r\n if (value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n else {\r\n const camelizedKey = camelize(key);\r\n props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);\r\n }\r\n }\r\n else {\r\n if (value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // full props update.\r\n if (setFullProps(instance, rawProps, props, attrs)) {\r\n hasAttrsChanged = true;\r\n }\r\n // in case of dynamic props, check if we need to delete keys from\r\n // the props object\r\n let kebabKey;\r\n for (const key in rawCurrentProps) {\r\n if (!rawProps ||\r\n // for camelCase\r\n (!hasOwn(rawProps, key) &&\r\n // it's possible the original props was passed in as kebab-case\r\n // and converted to camelCase (#955)\r\n ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey)))) {\r\n if (options) {\r\n if (rawPrevProps &&\r\n // for camelCase\r\n (rawPrevProps[key] !== undefined ||\r\n // for kebab-case\r\n rawPrevProps[kebabKey] !== undefined)) {\r\n props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */);\r\n }\r\n }\r\n else {\r\n delete props[key];\r\n }\r\n }\r\n }\r\n // in the case of functional component w/o props declaration, props and\r\n // attrs point to the same object so it should already have been updated.\r\n if (attrs !== rawCurrentProps) {\r\n for (const key in attrs) {\r\n if (!rawProps || !hasOwn(rawProps, key)) {\r\n delete attrs[key];\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n // trigger updates for $attrs in case it's used in component slots\r\n if (hasAttrsChanged) {\r\n trigger(instance, \"set\" /* SET */, '$attrs');\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateProps(rawProps || {}, props, instance);\r\n }\r\n}\r\nfunction setFullProps(instance, rawProps, props, attrs) {\r\n const [options, needCastKeys] = instance.propsOptions;\r\n let hasAttrsChanged = false;\r\n let rawCastValues;\r\n if (rawProps) {\r\n for (let key in rawProps) {\r\n // key, ref are reserved and never passed down\r\n if (isReservedProp(key)) {\r\n continue;\r\n }\r\n const value = rawProps[key];\r\n // prop option names are camelized during normalization, so to support\r\n // kebab -> camel conversion here we need to camelize the key.\r\n let camelKey;\r\n if (options && hasOwn(options, (camelKey = camelize(key)))) {\r\n if (!needCastKeys || !needCastKeys.includes(camelKey)) {\r\n props[camelKey] = value;\r\n }\r\n else {\r\n (rawCastValues || (rawCastValues = {}))[camelKey] = value;\r\n }\r\n }\r\n else if (!isEmitListener(instance.emitsOptions, key)) {\r\n if (!(key in attrs) || value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n if (needCastKeys) {\r\n const rawCurrentProps = toRaw(props);\r\n const castValues = rawCastValues || EMPTY_OBJ;\r\n for (let i = 0; i < needCastKeys.length; i++) {\r\n const key = needCastKeys[i];\r\n props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key));\r\n }\r\n }\r\n return hasAttrsChanged;\r\n}\r\nfunction resolvePropValue(options, props, key, value, instance, isAbsent) {\r\n const opt = options[key];\r\n if (opt != null) {\r\n const hasDefault = hasOwn(opt, 'default');\r\n // default values\r\n if (hasDefault && value === undefined) {\r\n const defaultValue = opt.default;\r\n if (opt.type !== Function && isFunction(defaultValue)) {\r\n const { propsDefaults } = instance;\r\n if (key in propsDefaults) {\r\n value = propsDefaults[key];\r\n }\r\n else {\r\n setCurrentInstance(instance);\r\n value = propsDefaults[key] = defaultValue.call(null, props);\r\n unsetCurrentInstance();\r\n }\r\n }\r\n else {\r\n value = defaultValue;\r\n }\r\n }\r\n // boolean casting\r\n if (opt[0 /* shouldCast */]) {\r\n if (isAbsent && !hasDefault) {\r\n value = false;\r\n }\r\n else if (opt[1 /* shouldCastTrue */] &&\r\n (value === '' || value === hyphenate(key))) {\r\n value = true;\r\n }\r\n }\r\n }\r\n return value;\r\n}\r\nfunction normalizePropsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.propsCache;\r\n const cached = cache.get(comp);\r\n if (cached) {\r\n return cached;\r\n }\r\n const raw = comp.props;\r\n const normalized = {};\r\n const needCastKeys = [];\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendProps = (raw) => {\r\n hasExtends = true;\r\n const [props, keys] = normalizePropsOptions(raw, appContext, true);\r\n extend(normalized, props);\r\n if (keys)\r\n needCastKeys.push(...keys);\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendProps);\r\n }\r\n if (comp.extends) {\r\n extendProps(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendProps);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n cache.set(comp, EMPTY_ARR);\r\n return EMPTY_ARR;\r\n }\r\n if (isArray(raw)) {\r\n for (let i = 0; i < raw.length; i++) {\r\n if ((process.env.NODE_ENV !== 'production') && !isString(raw[i])) {\r\n warn(`props must be strings when using array syntax.`, raw[i]);\r\n }\r\n const normalizedKey = camelize(raw[i]);\r\n if (validatePropName(normalizedKey)) {\r\n normalized[normalizedKey] = EMPTY_OBJ;\r\n }\r\n }\r\n }\r\n else if (raw) {\r\n if ((process.env.NODE_ENV !== 'production') && !isObject(raw)) {\r\n warn(`invalid props options`, raw);\r\n }\r\n for (const key in raw) {\r\n const normalizedKey = camelize(key);\r\n if (validatePropName(normalizedKey)) {\r\n const opt = raw[key];\r\n const prop = (normalized[normalizedKey] =\r\n isArray(opt) || isFunction(opt) ? { type: opt } : opt);\r\n if (prop) {\r\n const booleanIndex = getTypeIndex(Boolean, prop.type);\r\n const stringIndex = getTypeIndex(String, prop.type);\r\n prop[0 /* shouldCast */] = booleanIndex > -1;\r\n prop[1 /* shouldCastTrue */] =\r\n stringIndex < 0 || booleanIndex < stringIndex;\r\n // if the prop needs boolean casting or default value\r\n if (booleanIndex > -1 || hasOwn(prop, 'default')) {\r\n needCastKeys.push(normalizedKey);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n const res = [normalized, needCastKeys];\r\n cache.set(comp, res);\r\n return res;\r\n}\r\nfunction validatePropName(key) {\r\n if (key[0] !== '$') {\r\n return true;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid prop name: \"${key}\" is a reserved property.`);\r\n }\r\n return false;\r\n}\r\n// use function string name to check type constructors\r\n// so that it works across vms / iframes.\r\nfunction getType(ctor) {\r\n const match = ctor && ctor.toString().match(/^\\s*function (\\w+)/);\r\n return match ? match[1] : ctor === null ? 'null' : '';\r\n}\r\nfunction isSameType(a, b) {\r\n return getType(a) === getType(b);\r\n}\r\nfunction getTypeIndex(type, expectedTypes) {\r\n if (isArray(expectedTypes)) {\r\n return expectedTypes.findIndex(t => isSameType(t, type));\r\n }\r\n else if (isFunction(expectedTypes)) {\r\n return isSameType(expectedTypes, type) ? 0 : -1;\r\n }\r\n return -1;\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction validateProps(rawProps, props, instance) {\r\n const resolvedValues = toRaw(props);\r\n const options = instance.propsOptions[0];\r\n for (const key in options) {\r\n let opt = options[key];\r\n if (opt == null)\r\n continue;\r\n validateProp(key, resolvedValues[key], opt, !hasOwn(rawProps, key) && !hasOwn(rawProps, hyphenate(key)));\r\n }\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction validateProp(name, value, prop, isAbsent) {\r\n const { type, required, validator } = prop;\r\n // required!\r\n if (required && isAbsent) {\r\n warn('Missing required prop: \"' + name + '\"');\r\n return;\r\n }\r\n // missing but optional\r\n if (value == null && !prop.required) {\r\n return;\r\n }\r\n // type check\r\n if (type != null && type !== true) {\r\n let isValid = false;\r\n const types = isArray(type) ? type : [type];\r\n const expectedTypes = [];\r\n // value is valid as long as one of the specified types match\r\n for (let i = 0; i < types.length && !isValid; i++) {\r\n const { valid, expectedType } = assertType(value, types[i]);\r\n expectedTypes.push(expectedType || '');\r\n isValid = valid;\r\n }\r\n if (!isValid) {\r\n warn(getInvalidTypeMessage(name, value, expectedTypes));\r\n return;\r\n }\r\n }\r\n // custom validator\r\n if (validator && !validator(value)) {\r\n warn('Invalid prop: custom validator check failed for prop \"' + name + '\".');\r\n }\r\n}\r\nconst isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt');\r\n/**\r\n * dev only\r\n */\r\nfunction assertType(value, type) {\r\n let valid;\r\n const expectedType = getType(type);\r\n if (isSimpleType(expectedType)) {\r\n const t = typeof value;\r\n valid = t === expectedType.toLowerCase();\r\n // for primitive wrapper objects\r\n if (!valid && t === 'object') {\r\n valid = value instanceof type;\r\n }\r\n }\r\n else if (expectedType === 'Object') {\r\n valid = isObject(value);\r\n }\r\n else if (expectedType === 'Array') {\r\n valid = isArray(value);\r\n }\r\n else if (expectedType === 'null') {\r\n valid = value === null;\r\n }\r\n else {\r\n valid = value instanceof type;\r\n }\r\n return {\r\n valid,\r\n expectedType\r\n };\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction getInvalidTypeMessage(name, value, expectedTypes) {\r\n let message = `Invalid prop: type check failed for prop \"${name}\".` +\r\n ` Expected ${expectedTypes.map(capitalize).join(' | ')}`;\r\n const expectedType = expectedTypes[0];\r\n const receivedType = toRawType(value);\r\n const expectedValue = styleValue(value, expectedType);\r\n const receivedValue = styleValue(value, receivedType);\r\n // check if we need to specify expected value\r\n if (expectedTypes.length === 1 &&\r\n isExplicable(expectedType) &&\r\n !isBoolean(expectedType, receivedType)) {\r\n message += ` with value ${expectedValue}`;\r\n }\r\n message += `, got ${receivedType} `;\r\n // check if we need to specify received value\r\n if (isExplicable(receivedType)) {\r\n message += `with value ${receivedValue}.`;\r\n }\r\n return message;\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction styleValue(value, type) {\r\n if (type === 'String') {\r\n return `\"${value}\"`;\r\n }\r\n else if (type === 'Number') {\r\n return `${Number(value)}`;\r\n }\r\n else {\r\n return `${value}`;\r\n }\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction isExplicable(type) {\r\n const explicitTypes = ['string', 'number', 'boolean'];\r\n return explicitTypes.some(elem => type.toLowerCase() === elem);\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction isBoolean(...args) {\r\n return args.some(elem => elem.toLowerCase() === 'boolean');\r\n}\n\nconst isInternalKey = (key) => key[0] === '_' || key === '$stable';\r\nconst normalizeSlotValue = (value) => isArray(value)\r\n ? value.map(normalizeVNode)\r\n : [normalizeVNode(value)];\r\nconst normalizeSlot = (key, rawSlot, ctx) => {\r\n const normalized = withCtx((...args) => {\r\n if ((process.env.NODE_ENV !== 'production') && currentInstance) {\r\n warn(`Slot \"${key}\" invoked outside of the render function: ` +\r\n `this will not track dependencies used in the slot. ` +\r\n `Invoke the slot function inside the render function instead.`);\r\n }\r\n return normalizeSlotValue(rawSlot(...args));\r\n }, ctx);\r\n normalized._c = false;\r\n return normalized;\r\n};\r\nconst normalizeObjectSlots = (rawSlots, slots, instance) => {\r\n const ctx = rawSlots._ctx;\r\n for (const key in rawSlots) {\r\n if (isInternalKey(key))\r\n continue;\r\n const value = rawSlots[key];\r\n if (isFunction(value)) {\r\n slots[key] = normalizeSlot(key, value, ctx);\r\n }\r\n else if (value != null) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n !(false )) {\r\n warn(`Non-function value encountered for slot \"${key}\". ` +\r\n `Prefer function slots for better performance.`);\r\n }\r\n const normalized = normalizeSlotValue(value);\r\n slots[key] = () => normalized;\r\n }\r\n }\r\n};\r\nconst normalizeVNodeSlots = (instance, children) => {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n !isKeepAlive(instance.vnode) &&\r\n !(false )) {\r\n warn(`Non-function value encountered for default slot. ` +\r\n `Prefer function slots for better performance.`);\r\n }\r\n const normalized = normalizeSlotValue(children);\r\n instance.slots.default = () => normalized;\r\n};\r\nconst initSlots = (instance, children) => {\r\n if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {\r\n const type = children._;\r\n if (type) {\r\n // users can get the shallow readonly version of the slots object through `this.$slots`,\r\n // we should avoid the proxy object polluting the slots of the internal instance\r\n instance.slots = toRaw(children);\r\n // make compiler marker non-enumerable\r\n def(children, '_', type);\r\n }\r\n else {\r\n normalizeObjectSlots(children, (instance.slots = {}));\r\n }\r\n }\r\n else {\r\n instance.slots = {};\r\n if (children) {\r\n normalizeVNodeSlots(instance, children);\r\n }\r\n }\r\n def(instance.slots, InternalObjectKey, 1);\r\n};\r\nconst updateSlots = (instance, children, optimized) => {\r\n const { vnode, slots } = instance;\r\n let needDeletionCheck = true;\r\n let deletionComparisonTarget = EMPTY_OBJ;\r\n if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {\r\n const type = children._;\r\n if (type) {\r\n // compiled slots.\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // Parent was HMR updated so slot content may have changed.\r\n // force update slots and mark instance for hmr as well\r\n extend(slots, children);\r\n }\r\n else if (optimized && type === 1 /* STABLE */) {\r\n // compiled AND stable.\r\n // no need to update, and skip stale slots removal.\r\n needDeletionCheck = false;\r\n }\r\n else {\r\n // compiled but dynamic (v-if/v-for on slots) - update slots, but skip\r\n // normalization.\r\n extend(slots, children);\r\n // #2893\r\n // when rendering the optimized slots by manually written render function,\r\n // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,\r\n // i.e. let the `renderSlot` create the bailed Fragment\r\n if (!optimized && type === 1 /* STABLE */) {\r\n delete slots._;\r\n }\r\n }\r\n }\r\n else {\r\n needDeletionCheck = !children.$stable;\r\n normalizeObjectSlots(children, slots);\r\n }\r\n deletionComparisonTarget = children;\r\n }\r\n else if (children) {\r\n // non slot object children (direct value) passed to a component\r\n normalizeVNodeSlots(instance, children);\r\n deletionComparisonTarget = { default: 1 };\r\n }\r\n // delete stale slots\r\n if (needDeletionCheck) {\r\n for (const key in slots) {\r\n if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {\r\n delete slots[key];\r\n }\r\n }\r\n }\r\n};\n\n/**\r\nRuntime helper for applying directives to a vnode. Example usage:\r\n\nconst comp = resolveComponent('comp')\r\nconst foo = resolveDirective('foo')\r\nconst bar = resolveDirective('bar')\r\n\nreturn withDirectives(h(comp), [\r\n [foo, this.x],\r\n [bar, this.y]\r\n])\r\n*/\r\nconst isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');\r\nfunction validateDirectiveName(name) {\r\n if (isBuiltInDirective(name)) {\r\n warn('Do not use built-in directive ids as custom directive id: ' + name);\r\n }\r\n}\r\n/**\r\n * Adds directives to a VNode.\r\n */\r\nfunction withDirectives(vnode, directives) {\r\n const internalInstance = currentRenderingInstance;\r\n if (internalInstance === null) {\r\n (process.env.NODE_ENV !== 'production') && warn(`withDirectives can only be used inside render functions.`);\r\n return vnode;\r\n }\r\n const instance = internalInstance.proxy;\r\n const bindings = vnode.dirs || (vnode.dirs = []);\r\n for (let i = 0; i < directives.length; i++) {\r\n let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];\r\n if (isFunction(dir)) {\r\n dir = {\r\n mounted: dir,\r\n updated: dir\r\n };\r\n }\r\n if (dir.deep) {\r\n traverse(value);\r\n }\r\n bindings.push({\r\n dir,\r\n instance,\r\n value,\r\n oldValue: void 0,\r\n arg,\r\n modifiers\r\n });\r\n }\r\n return vnode;\r\n}\r\nfunction invokeDirectiveHook(vnode, prevVNode, instance, name) {\r\n const bindings = vnode.dirs;\r\n const oldBindings = prevVNode && prevVNode.dirs;\r\n for (let i = 0; i < bindings.length; i++) {\r\n const binding = bindings[i];\r\n if (oldBindings) {\r\n binding.oldValue = oldBindings[i].value;\r\n }\r\n let hook = binding.dir[name];\r\n if (hook) {\r\n // disable tracking inside all lifecycle hooks\r\n // since they can potentially be called inside effects.\r\n pauseTracking();\r\n callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [\r\n vnode.el,\r\n binding,\r\n vnode,\r\n prevVNode\r\n ]);\r\n resetTracking();\r\n }\r\n }\r\n}\n\nfunction createAppContext() {\r\n return {\r\n app: null,\r\n config: {\r\n isNativeTag: NO,\r\n performance: false,\r\n globalProperties: {},\r\n optionMergeStrategies: {},\r\n errorHandler: undefined,\r\n warnHandler: undefined,\r\n compilerOptions: {}\r\n },\r\n mixins: [],\r\n components: {},\r\n directives: {},\r\n provides: Object.create(null),\r\n optionsCache: new WeakMap(),\r\n propsCache: new WeakMap(),\r\n emitsCache: new WeakMap()\r\n };\r\n}\r\nlet uid = 0;\r\nfunction createAppAPI(render, hydrate) {\r\n return function createApp(rootComponent, rootProps = null) {\r\n if (rootProps != null && !isObject(rootProps)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`root props passed to app.mount() must be an object.`);\r\n rootProps = null;\r\n }\r\n const context = createAppContext();\r\n const installedPlugins = new Set();\r\n let isMounted = false;\r\n const app = (context.app = {\r\n _uid: uid++,\r\n _component: rootComponent,\r\n _props: rootProps,\r\n _container: null,\r\n _context: context,\r\n _instance: null,\r\n version,\r\n get config() {\r\n return context.config;\r\n },\r\n set config(v) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`app.config cannot be replaced. Modify individual options instead.`);\r\n }\r\n },\r\n use(plugin, ...options) {\r\n if (installedPlugins.has(plugin)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`Plugin has already been applied to target app.`);\r\n }\r\n else if (plugin && isFunction(plugin.install)) {\r\n installedPlugins.add(plugin);\r\n plugin.install(app, ...options);\r\n }\r\n else if (isFunction(plugin)) {\r\n installedPlugins.add(plugin);\r\n plugin(app, ...options);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`A plugin must either be a function or an object with an \"install\" ` +\r\n `function.`);\r\n }\r\n return app;\r\n },\r\n mixin(mixin) {\r\n if (__VUE_OPTIONS_API__) {\r\n if (!context.mixins.includes(mixin)) {\r\n context.mixins.push(mixin);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Mixin has already been applied to target app' +\r\n (mixin.name ? `: ${mixin.name}` : ''));\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Mixins are only available in builds supporting Options API');\r\n }\r\n return app;\r\n },\r\n component(name, component) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateComponentName(name, context.config);\r\n }\r\n if (!component) {\r\n return context.components[name];\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && context.components[name]) {\r\n warn(`Component \"${name}\" has already been registered in target app.`);\r\n }\r\n context.components[name] = component;\r\n return app;\r\n },\r\n directive(name, directive) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateDirectiveName(name);\r\n }\r\n if (!directive) {\r\n return context.directives[name];\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && context.directives[name]) {\r\n warn(`Directive \"${name}\" has already been registered in target app.`);\r\n }\r\n context.directives[name] = directive;\r\n return app;\r\n },\r\n mount(rootContainer, isHydrate, isSVG) {\r\n if (!isMounted) {\r\n const vnode = createVNode(rootComponent, rootProps);\r\n // store app context on the root VNode.\r\n // this will be set on the root instance on initial mount.\r\n vnode.appContext = context;\r\n // HMR root reload\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n context.reload = () => {\r\n render(cloneVNode(vnode), rootContainer, isSVG);\r\n };\r\n }\r\n if (isHydrate && hydrate) {\r\n hydrate(vnode, rootContainer);\r\n }\r\n else {\r\n render(vnode, rootContainer, isSVG);\r\n }\r\n isMounted = true;\r\n app._container = rootContainer;\r\n rootContainer.__vue_app__ = app;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n app._instance = vnode.component;\r\n devtoolsInitApp(app, version);\r\n }\r\n return getExposeProxy(vnode.component) || vnode.component.proxy;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`App has already been mounted.\\n` +\r\n `If you want to remount the same app, move your app creation logic ` +\r\n `into a factory function and create fresh app instances for each ` +\r\n `mount - e.g. \\`const createMyApp = () => createApp(App)\\``);\r\n }\r\n },\r\n unmount() {\r\n if (isMounted) {\r\n render(null, app._container);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n app._instance = null;\r\n devtoolsUnmountApp(app);\r\n }\r\n delete app._container.__vue_app__;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Cannot unmount an app that is not mounted.`);\r\n }\r\n },\r\n provide(key, value) {\r\n if ((process.env.NODE_ENV !== 'production') && key in context.provides) {\r\n warn(`App already provides property with key \"${String(key)}\". ` +\r\n `It will be overwritten with the new value.`);\r\n }\r\n // TypeScript doesn't allow symbols as index type\r\n // https://github.com/Microsoft/TypeScript/issues/24587\r\n context.provides[key] = value;\r\n return app;\r\n }\r\n });\r\n return app;\r\n };\r\n}\n\n/**\r\n * Function for handling a template ref\r\n */\r\nfunction setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {\r\n if (isArray(rawRef)) {\r\n rawRef.forEach((r, i) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));\r\n return;\r\n }\r\n if (isAsyncWrapper(vnode) && !isUnmount) {\r\n // when mounting async components, nothing needs to be done,\r\n // because the template ref is forwarded to inner component\r\n return;\r\n }\r\n const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */\r\n ? getExposeProxy(vnode.component) || vnode.component.proxy\r\n : vnode.el;\r\n const value = isUnmount ? null : refValue;\r\n const { i: owner, r: ref } = rawRef;\r\n if ((process.env.NODE_ENV !== 'production') && !owner) {\r\n warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +\r\n `A vnode with ref must be created inside the render function.`);\r\n return;\r\n }\r\n const oldRef = oldRawRef && oldRawRef.r;\r\n const refs = owner.refs === EMPTY_OBJ ? (owner.refs = {}) : owner.refs;\r\n const setupState = owner.setupState;\r\n // dynamic ref changed. unset old ref\r\n if (oldRef != null && oldRef !== ref) {\r\n if (isString(oldRef)) {\r\n refs[oldRef] = null;\r\n if (hasOwn(setupState, oldRef)) {\r\n setupState[oldRef] = null;\r\n }\r\n }\r\n else if (isRef(oldRef)) {\r\n oldRef.value = null;\r\n }\r\n }\r\n if (isFunction(ref)) {\r\n callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]);\r\n }\r\n else {\r\n const _isString = isString(ref);\r\n const _isRef = isRef(ref);\r\n if (_isString || _isRef) {\r\n const doSet = () => {\r\n if (rawRef.f) {\r\n const existing = _isString ? refs[ref] : ref.value;\r\n if (isUnmount) {\r\n isArray(existing) && remove(existing, refValue);\r\n }\r\n else {\r\n if (!isArray(existing)) {\r\n if (_isString) {\r\n refs[ref] = [refValue];\r\n }\r\n else {\r\n ref.value = [refValue];\r\n if (rawRef.k)\r\n refs[rawRef.k] = ref.value;\r\n }\r\n }\r\n else if (!existing.includes(refValue)) {\r\n existing.push(refValue);\r\n }\r\n }\r\n }\r\n else if (_isString) {\r\n refs[ref] = value;\r\n if (hasOwn(setupState, ref)) {\r\n setupState[ref] = value;\r\n }\r\n }\r\n else if (isRef(ref)) {\r\n ref.value = value;\r\n if (rawRef.k)\r\n refs[rawRef.k] = value;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid template ref type:', ref, `(${typeof ref})`);\r\n }\r\n };\r\n if (value) {\r\n doSet.id = -1;\r\n queuePostRenderEffect(doSet, parentSuspense);\r\n }\r\n else {\r\n doSet();\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid template ref type:', ref, `(${typeof ref})`);\r\n }\r\n }\r\n}\n\nlet hasMismatch = false;\r\nconst isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject';\r\nconst isComment = (node) => node.nodeType === 8 /* COMMENT */;\r\n// Note: hydration is DOM-specific\r\n// But we have to place it in core due to tight coupling with core - splitting\r\n// it out creates a ton of unnecessary complexity.\r\n// Hydration also depends on some renderer internal logic which needs to be\r\n// passed in via arguments.\r\nfunction createHydrationFunctions(rendererInternals) {\r\n const { mt: mountComponent, p: patch, o: { patchProp, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;\r\n const hydrate = (vnode, container) => {\r\n if (!container.hasChildNodes()) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to hydrate existing markup but container is empty. ` +\r\n `Performing full mount instead.`);\r\n patch(null, vnode, container);\r\n flushPostFlushCbs();\r\n return;\r\n }\r\n hasMismatch = false;\r\n hydrateNode(container.firstChild, vnode, null, null, null);\r\n flushPostFlushCbs();\r\n if (hasMismatch && !false) {\r\n // this error should show up in production\r\n console.error(`Hydration completed but contains mismatches.`);\r\n }\r\n };\r\n const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {\r\n const isFragmentStart = isComment(node) && node.data === '[';\r\n const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);\r\n const { type, ref, shapeFlag } = vnode;\r\n const domType = node.nodeType;\r\n vnode.el = node;\r\n let nextNode = null;\r\n switch (type) {\r\n case Text:\r\n if (domType !== 3 /* TEXT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n if (node.data !== vnode.children) {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration text mismatch:` +\r\n `\\n- Client: ${JSON.stringify(node.data)}` +\r\n `\\n- Server: ${JSON.stringify(vnode.children)}`);\r\n node.data = vnode.children;\r\n }\r\n nextNode = nextSibling(node);\r\n }\r\n break;\r\n case Comment:\r\n if (domType !== 8 /* COMMENT */ || isFragmentStart) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = nextSibling(node);\r\n }\r\n break;\r\n case Static:\r\n if (domType !== 1 /* ELEMENT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n // determine anchor, adopt content\r\n nextNode = node;\r\n // if the static vnode has its content stripped during build,\r\n // adopt it from the server-rendered HTML.\r\n const needToAdoptContent = !vnode.children.length;\r\n for (let i = 0; i < vnode.staticCount; i++) {\r\n if (needToAdoptContent)\r\n vnode.children += nextNode.outerHTML;\r\n if (i === vnode.staticCount - 1) {\r\n vnode.anchor = nextNode;\r\n }\r\n nextNode = nextSibling(nextNode);\r\n }\r\n return nextNode;\r\n }\r\n break;\r\n case Fragment:\r\n if (!isFragmentStart) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n break;\r\n default:\r\n if (shapeFlag & 1 /* ELEMENT */) {\r\n if (domType !== 1 /* ELEMENT */ ||\r\n vnode.type.toLowerCase() !==\r\n node.tagName.toLowerCase()) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n }\r\n else if (shapeFlag & 6 /* COMPONENT */) {\r\n // when setting up the render effect, if the initial vnode already\r\n // has .el set, the component will perform hydration instead of mount\r\n // on its sub-tree.\r\n vnode.slotScopeIds = slotScopeIds;\r\n const container = parentNode(node);\r\n mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized);\r\n // component may be async, so in the case of fragments we cannot rely\r\n // on component's rendered output to determine the end of the fragment\r\n // instead, we do a lookahead to find the end anchor node.\r\n nextNode = isFragmentStart\r\n ? locateClosingAsyncAnchor(node)\r\n : nextSibling(node);\r\n // #3787\r\n // if component is async, it may get moved / unmounted before its\r\n // inner component is loaded, so we need to give it a placeholder\r\n // vnode that matches its adopted DOM.\r\n if (isAsyncWrapper(vnode)) {\r\n let subTree;\r\n if (isFragmentStart) {\r\n subTree = createVNode(Fragment);\r\n subTree.anchor = nextNode\r\n ? nextNode.previousSibling\r\n : container.lastChild;\r\n }\r\n else {\r\n subTree =\r\n node.nodeType === 3 ? createTextVNode('') : createVNode('div');\r\n }\r\n subTree.el = node;\r\n vnode.component.subTree = subTree;\r\n }\r\n }\r\n else if (shapeFlag & 64 /* TELEPORT */) {\r\n if (domType !== 8 /* COMMENT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);\r\n }\r\n }\r\n else if (shapeFlag & 128 /* SUSPENSE */) {\r\n nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid HostVNode type:', type, `(${typeof type})`);\r\n }\r\n }\r\n if (ref != null) {\r\n setRef(ref, null, parentSuspense, vnode);\r\n }\r\n return nextNode;\r\n };\r\n const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n optimized = optimized || !!vnode.dynamicChildren;\r\n const { type, props, patchFlag, shapeFlag, dirs } = vnode;\r\n // #4006 for form elements with non-string v-model value bindings\r\n // e.g. <option :value=\"obj\">, <input type=\"checkbox\" :true-value=\"1\">\r\n const forcePatchValue = (type === 'input' && dirs) || type === 'option';\r\n // skip props & children if this is hoisted static nodes\r\n if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'created');\r\n }\r\n // props\r\n if (props) {\r\n if (forcePatchValue ||\r\n !optimized ||\r\n patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) {\r\n for (const key in props) {\r\n if ((forcePatchValue && key.endsWith('value')) ||\r\n (isOn(key) && !isReservedProp(key))) {\r\n patchProp(el, key, null, props[key], false, undefined, parentComponent);\r\n }\r\n }\r\n }\r\n else if (props.onClick) {\r\n // Fast path for click listeners (which is most often) to avoid\r\n // iterating through props.\r\n patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);\r\n }\r\n }\r\n // vnode / directive hooks\r\n let vnodeHooks;\r\n if ((vnodeHooks = props && props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHooks, parentComponent, vnode);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');\r\n }\r\n if ((vnodeHooks = props && props.onVnodeMounted) || dirs) {\r\n queueEffectWithSuspense(() => {\r\n vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);\r\n dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');\r\n }, parentSuspense);\r\n }\r\n // children\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */ &&\r\n // skip if element has innerHTML / textContent\r\n !(props && (props.innerHTML || props.textContent))) {\r\n let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n let hasWarned = false;\r\n while (next) {\r\n hasMismatch = true;\r\n if ((process.env.NODE_ENV !== 'production') && !hasWarned) {\r\n warn(`Hydration children mismatch in <${vnode.type}>: ` +\r\n `server rendered element contains more child nodes than client vdom.`);\r\n hasWarned = true;\r\n }\r\n // The SSRed DOM contains more nodes than it should. Remove them.\r\n const cur = next;\r\n next = next.nextSibling;\r\n remove(cur);\r\n }\r\n }\r\n else if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n if (el.textContent !== vnode.children) {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration text content mismatch in <${vnode.type}>:\\n` +\r\n `- Client: ${el.textContent}\\n` +\r\n `- Server: ${vnode.children}`);\r\n el.textContent = vnode.children;\r\n }\r\n }\r\n }\r\n return el.nextSibling;\r\n };\r\n const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n optimized = optimized || !!parentVNode.dynamicChildren;\r\n const children = parentVNode.children;\r\n const l = children.length;\r\n let hasWarned = false;\r\n for (let i = 0; i < l; i++) {\r\n const vnode = optimized\r\n ? children[i]\r\n : (children[i] = normalizeVNode(children[i]));\r\n if (node) {\r\n node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n else if (vnode.type === Text && !vnode.children) {\r\n continue;\r\n }\r\n else {\r\n hasMismatch = true;\r\n if ((process.env.NODE_ENV !== 'production') && !hasWarned) {\r\n warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +\r\n `server rendered element contains fewer child nodes than client vdom.`);\r\n hasWarned = true;\r\n }\r\n // the SSRed DOM didn't contain enough nodes. Mount the missing ones.\r\n patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);\r\n }\r\n }\r\n return node;\r\n };\r\n const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n const { slotScopeIds: fragmentSlotScopeIds } = vnode;\r\n if (fragmentSlotScopeIds) {\r\n slotScopeIds = slotScopeIds\r\n ? slotScopeIds.concat(fragmentSlotScopeIds)\r\n : fragmentSlotScopeIds;\r\n }\r\n const container = parentNode(node);\r\n const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n if (next && isComment(next) && next.data === ']') {\r\n return nextSibling((vnode.anchor = next));\r\n }\r\n else {\r\n // fragment didn't hydrate successfully, since we didn't get a end anchor\r\n // back. This should have led to node/children mismatch warnings.\r\n hasMismatch = true;\r\n // since the anchor is missing, we need to create one and insert it\r\n insert((vnode.anchor = createComment(`]`)), container, next);\r\n return next;\r\n }\r\n };\r\n const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration node mismatch:\\n- Client vnode:`, vnode.type, `\\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */\r\n ? `(text)`\r\n : isComment(node) && node.data === '['\r\n ? `(start of fragment)`\r\n : ``);\r\n vnode.el = null;\r\n if (isFragment) {\r\n // remove excessive fragment nodes\r\n const end = locateClosingAsyncAnchor(node);\r\n while (true) {\r\n const next = nextSibling(node);\r\n if (next && next !== end) {\r\n remove(next);\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n const next = nextSibling(node);\r\n const container = parentNode(node);\r\n remove(node);\r\n patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);\r\n return next;\r\n };\r\n const locateClosingAsyncAnchor = (node) => {\r\n let match = 0;\r\n while (node) {\r\n node = nextSibling(node);\r\n if (node && isComment(node)) {\r\n if (node.data === '[')\r\n match++;\r\n if (node.data === ']') {\r\n if (match === 0) {\r\n return nextSibling(node);\r\n }\r\n else {\r\n match--;\r\n }\r\n }\r\n }\r\n }\r\n return node;\r\n };\r\n return [hydrate, hydrateNode];\r\n}\n\nlet supported;\r\nlet perf;\r\nfunction startMeasure(instance, type) {\r\n if (instance.appContext.config.performance && isSupported()) {\r\n perf.mark(`vue-${type}-${instance.uid}`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now());\r\n }\r\n}\r\nfunction endMeasure(instance, type) {\r\n if (instance.appContext.config.performance && isSupported()) {\r\n const startTag = `vue-${type}-${instance.uid}`;\r\n const endTag = startTag + `:end`;\r\n perf.mark(endTag);\r\n perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag);\r\n perf.clearMarks(startTag);\r\n perf.clearMarks(endTag);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now());\r\n }\r\n}\r\nfunction isSupported() {\r\n if (supported !== undefined) {\r\n return supported;\r\n }\r\n /* eslint-disable no-restricted-globals */\r\n if (typeof window !== 'undefined' && window.performance) {\r\n supported = true;\r\n perf = window.performance;\r\n }\r\n else {\r\n supported = false;\r\n }\r\n /* eslint-enable no-restricted-globals */\r\n return supported;\r\n}\n\n/**\r\n * This is only called in esm-bundler builds.\r\n * It is called when a renderer is created, in `baseCreateRenderer` so that\r\n * importing runtime-core is side-effects free.\r\n *\r\n * istanbul-ignore-next\r\n */\r\nfunction initFeatureFlags() {\r\n const needWarn = [];\r\n if (typeof __VUE_OPTIONS_API__ !== 'boolean') {\r\n (process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_OPTIONS_API__`);\r\n getGlobalThis().__VUE_OPTIONS_API__ = true;\r\n }\r\n if (typeof __VUE_PROD_DEVTOOLS__ !== 'boolean') {\r\n (process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_PROD_DEVTOOLS__`);\r\n getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && needWarn.length) {\r\n const multi = needWarn.length > 1;\r\n console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +\r\n `which expects these compile-time feature flags to be globally injected ` +\r\n `via the bundler config in order to get better tree-shaking in the ` +\r\n `production bundle.\\n\\n` +\r\n `For more details, see https://link.vuejs.org/feature-flags.`);\r\n }\r\n}\n\nconst queuePostRenderEffect = queueEffectWithSuspense\r\n ;\r\n/**\r\n * The createRenderer function accepts two generic arguments:\r\n * HostNode and HostElement, corresponding to Node and Element types in the\r\n * host environment. For example, for runtime-dom, HostNode would be the DOM\r\n * `Node` interface and HostElement would be the DOM `Element` interface.\r\n *\r\n * Custom renderers can pass in the platform specific types like this:\r\n *\r\n * ``` js\r\n * const { render, createApp } = createRenderer<Node, Element>({\r\n * patchProp,\r\n * ...nodeOps\r\n * })\r\n * ```\r\n */\r\nfunction createRenderer(options) {\r\n return baseCreateRenderer(options);\r\n}\r\n// Separate API for creating hydration-enabled renderer.\r\n// Hydration logic is only used when calling this function, making it\r\n// tree-shakable.\r\nfunction createHydrationRenderer(options) {\r\n return baseCreateRenderer(options, createHydrationFunctions);\r\n}\r\n// implementation\r\nfunction baseCreateRenderer(options, createHydrationFns) {\r\n // compile-time feature flags check\r\n {\r\n initFeatureFlags();\r\n }\r\n const target = getGlobalThis();\r\n target.__VUE__ = true;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);\r\n }\r\n const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;\r\n // Note: functions inside this closure should use `const xxx = () => {}`\r\n // style in order to prevent being inlined by minifiers.\r\n const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = (process.env.NODE_ENV !== 'production') && isHmrUpdating ? false : !!n2.dynamicChildren) => {\r\n if (n1 === n2) {\r\n return;\r\n }\r\n // patching & not same type, unmount old tree\r\n if (n1 && !isSameVNodeType(n1, n2)) {\r\n anchor = getNextHostNode(n1);\r\n unmount(n1, parentComponent, parentSuspense, true);\r\n n1 = null;\r\n }\r\n if (n2.patchFlag === -2 /* BAIL */) {\r\n optimized = false;\r\n n2.dynamicChildren = null;\r\n }\r\n const { type, ref, shapeFlag } = n2;\r\n switch (type) {\r\n case Text:\r\n processText(n1, n2, container, anchor);\r\n break;\r\n case Comment:\r\n processCommentNode(n1, n2, container, anchor);\r\n break;\r\n case Static:\r\n if (n1 == null) {\r\n mountStaticNode(n2, container, anchor, isSVG);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n patchStaticNode(n1, n2, container, isSVG);\r\n }\r\n break;\r\n case Fragment:\r\n processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n break;\r\n default:\r\n if (shapeFlag & 1 /* ELEMENT */) {\r\n processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (shapeFlag & 6 /* COMPONENT */) {\r\n processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (shapeFlag & 64 /* TELEPORT */) {\r\n type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);\r\n }\r\n else if (shapeFlag & 128 /* SUSPENSE */) {\r\n type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid VNode type:', type, `(${typeof type})`);\r\n }\r\n }\r\n // set ref\r\n if (ref != null && parentComponent) {\r\n setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);\r\n }\r\n };\r\n const processText = (n1, n2, container, anchor) => {\r\n if (n1 == null) {\r\n hostInsert((n2.el = hostCreateText(n2.children)), container, anchor);\r\n }\r\n else {\r\n const el = (n2.el = n1.el);\r\n if (n2.children !== n1.children) {\r\n hostSetText(el, n2.children);\r\n }\r\n }\r\n };\r\n const processCommentNode = (n1, n2, container, anchor) => {\r\n if (n1 == null) {\r\n hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor);\r\n }\r\n else {\r\n // there's no support for dynamic comments\r\n n2.el = n1.el;\r\n }\r\n };\r\n const mountStaticNode = (n2, container, anchor, isSVG) => {\r\n [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);\r\n };\r\n /**\r\n * Dev / HMR only\r\n */\r\n const patchStaticNode = (n1, n2, container, isSVG) => {\r\n // static nodes are only patched during dev for HMR\r\n if (n2.children !== n1.children) {\r\n const anchor = hostNextSibling(n1.anchor);\r\n // remove existing\r\n removeStaticNode(n1);\r\n [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);\r\n }\r\n else {\r\n n2.el = n1.el;\r\n n2.anchor = n1.anchor;\r\n }\r\n };\r\n const moveStaticNode = ({ el, anchor }, container, nextSibling) => {\r\n let next;\r\n while (el && el !== anchor) {\r\n next = hostNextSibling(el);\r\n hostInsert(el, container, nextSibling);\r\n el = next;\r\n }\r\n hostInsert(anchor, container, nextSibling);\r\n };\r\n const removeStaticNode = ({ el, anchor }) => {\r\n let next;\r\n while (el && el !== anchor) {\r\n next = hostNextSibling(el);\r\n hostRemove(el);\r\n el = next;\r\n }\r\n hostRemove(anchor);\r\n };\r\n const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n isSVG = isSVG || n2.type === 'svg';\r\n if (n1 == null) {\r\n mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n let el;\r\n let vnodeHook;\r\n const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode;\r\n if (!(process.env.NODE_ENV !== 'production') &&\r\n vnode.el &&\r\n hostCloneNode !== undefined &&\r\n patchFlag === -1 /* HOISTED */) {\r\n // If a vnode has non-null el, it means it's being reused.\r\n // Only static vnodes can be reused, so its mounted DOM nodes should be\r\n // exactly the same, and we can simply do a clone here.\r\n // only do this in production since cloned trees cannot be HMR updated.\r\n el = vnode.el = hostCloneNode(vnode.el);\r\n }\r\n else {\r\n el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props);\r\n // mount children first, since some props may rely on child content\r\n // being already rendered, e.g. `<select value>`\r\n if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n hostSetElementText(el, vnode.children);\r\n }\r\n else if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'created');\r\n }\r\n // props\r\n if (props) {\r\n for (const key in props) {\r\n if (key !== 'value' && !isReservedProp(key)) {\r\n hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n /**\r\n * Special case for setting value on DOM elements:\r\n * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)\r\n * - it needs to be forced (#1471)\r\n * #2353 proposes adding another renderer option to configure this, but\r\n * the properties affects are so finite it is worth special casing it\r\n * here to reduce the complexity. (Special casing it also should not\r\n * affect non-DOM renderers)\r\n */\r\n if ('value' in props) {\r\n hostPatchProp(el, 'value', null, props.value);\r\n }\r\n if ((vnodeHook = props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n }\r\n }\r\n // scopeId\r\n setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n Object.defineProperty(el, '__vnode', {\r\n value: vnode,\r\n enumerable: false\r\n });\r\n Object.defineProperty(el, '__vueParentComponent', {\r\n value: parentComponent,\r\n enumerable: false\r\n });\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');\r\n }\r\n // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved\r\n // #1689 For inside suspense + suspense resolved case, just call it\r\n const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&\r\n transition &&\r\n !transition.persisted;\r\n if (needCallTransitionHooks) {\r\n transition.beforeEnter(el);\r\n }\r\n hostInsert(el, container, anchor);\r\n if ((vnodeHook = props && props.onVnodeMounted) ||\r\n needCallTransitionHooks ||\r\n dirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n needCallTransitionHooks && transition.enter(el);\r\n dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');\r\n }, parentSuspense);\r\n }\r\n };\r\n const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {\r\n if (scopeId) {\r\n hostSetScopeId(el, scopeId);\r\n }\r\n if (slotScopeIds) {\r\n for (let i = 0; i < slotScopeIds.length; i++) {\r\n hostSetScopeId(el, slotScopeIds[i]);\r\n }\r\n }\r\n if (parentComponent) {\r\n let subTree = parentComponent.subTree;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n subTree.patchFlag > 0 &&\r\n subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {\r\n subTree =\r\n filterSingleRoot(subTree.children) || subTree;\r\n }\r\n if (vnode === subTree) {\r\n const parentVNode = parentComponent.vnode;\r\n setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);\r\n }\r\n }\r\n };\r\n const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {\r\n for (let i = start; i < children.length; i++) {\r\n const child = (children[i] = optimized\r\n ? cloneIfMounted(children[i])\r\n : normalizeVNode(children[i]));\r\n patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n const el = (n2.el = n1.el);\r\n let { patchFlag, dynamicChildren, dirs } = n2;\r\n // #1426 take the old vnode's patch flag into account since user may clone a\r\n // compiler-generated vnode, which de-opts to FULL_PROPS\r\n patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */;\r\n const oldProps = n1.props || EMPTY_OBJ;\r\n const newProps = n2.props || EMPTY_OBJ;\r\n let vnodeHook;\r\n // disable recurse in beforeUpdate hooks\r\n parentComponent && toggleRecurse(parentComponent, false);\r\n if ((vnodeHook = newProps.onVnodeBeforeUpdate)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, n2, n1);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');\r\n }\r\n parentComponent && toggleRecurse(parentComponent, true);\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // HMR updated, force full diff\r\n patchFlag = 0;\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n const areChildrenSVG = isSVG && n2.type !== 'foreignObject';\r\n if (dynamicChildren) {\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);\r\n if ((process.env.NODE_ENV !== 'production') && parentComponent && parentComponent.type.__hmrId) {\r\n traverseStaticChildren(n1, n2);\r\n }\r\n }\r\n else if (!optimized) {\r\n // full diff\r\n patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false);\r\n }\r\n if (patchFlag > 0) {\r\n // the presence of a patchFlag means this element's render code was\r\n // generated by the compiler and can take the fast path.\r\n // in this path old node and new node are guaranteed to have the same shape\r\n // (i.e. at the exact same position in the source template)\r\n if (patchFlag & 16 /* FULL_PROPS */) {\r\n // element props contain dynamic keys, full diff needed\r\n patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);\r\n }\r\n else {\r\n // class\r\n // this flag is matched when the element has dynamic class bindings.\r\n if (patchFlag & 2 /* CLASS */) {\r\n if (oldProps.class !== newProps.class) {\r\n hostPatchProp(el, 'class', null, newProps.class, isSVG);\r\n }\r\n }\r\n // style\r\n // this flag is matched when the element has dynamic style bindings\r\n if (patchFlag & 4 /* STYLE */) {\r\n hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG);\r\n }\r\n // props\r\n // This flag is matched when the element has dynamic prop/attr bindings\r\n // other than class and style. The keys of dynamic prop/attrs are saved for\r\n // faster iteration.\r\n // Note dynamic keys like :[foo]=\"bar\" will cause this optimization to\r\n // bail out and go through a full diff because we need to unset the old key\r\n if (patchFlag & 8 /* PROPS */) {\r\n // if the flag is present then dynamicProps must be non-null\r\n const propsToUpdate = n2.dynamicProps;\r\n for (let i = 0; i < propsToUpdate.length; i++) {\r\n const key = propsToUpdate[i];\r\n const prev = oldProps[key];\r\n const next = newProps[key];\r\n // #1471 force patch value\r\n if (next !== prev || key === 'value') {\r\n hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n }\r\n }\r\n // text\r\n // This flag is matched when the element has only dynamic text children.\r\n if (patchFlag & 1 /* TEXT */) {\r\n if (n1.children !== n2.children) {\r\n hostSetElementText(el, n2.children);\r\n }\r\n }\r\n }\r\n else if (!optimized && dynamicChildren == null) {\r\n // unoptimized, full diff\r\n patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);\r\n }\r\n if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);\r\n dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated');\r\n }, parentSuspense);\r\n }\r\n };\r\n // The fast path for blocks.\r\n const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {\r\n for (let i = 0; i < newChildren.length; i++) {\r\n const oldVNode = oldChildren[i];\r\n const newVNode = newChildren[i];\r\n // Determine the container (parent element) for the patch.\r\n const container = \r\n // oldVNode may be an errored async setup() component inside Suspense\r\n // which will not have a mounted element\r\n oldVNode.el &&\r\n // - In the case of a Fragment, we need to provide the actual parent\r\n // of the Fragment itself so it can move its children.\r\n (oldVNode.type === Fragment ||\r\n // - In the case of different nodes, there is going to be a replacement\r\n // which also requires the correct parent container\r\n !isSameVNodeType(oldVNode, newVNode) ||\r\n // - In the case of a component, it could contain anything.\r\n oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */))\r\n ? hostParentNode(oldVNode.el)\r\n : // In other cases, the parent container is not actually used so we\r\n // just pass the block element here to avoid a DOM parentNode call.\r\n fallbackContainer;\r\n patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);\r\n }\r\n };\r\n const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => {\r\n if (oldProps !== newProps) {\r\n for (const key in newProps) {\r\n // empty string is not valid prop\r\n if (isReservedProp(key))\r\n continue;\r\n const next = newProps[key];\r\n const prev = oldProps[key];\r\n // defer patching value\r\n if (next !== prev && key !== 'value') {\r\n hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n if (oldProps !== EMPTY_OBJ) {\r\n for (const key in oldProps) {\r\n if (!isReservedProp(key) && !(key in newProps)) {\r\n hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n }\r\n if ('value' in newProps) {\r\n hostPatchProp(el, 'value', oldProps.value, newProps.value);\r\n }\r\n }\r\n };\r\n const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));\r\n const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));\r\n let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // HMR updated, force full diff\r\n patchFlag = 0;\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n // check if this is a slot fragment with :slotted scope ids\r\n if (fragmentSlotScopeIds) {\r\n slotScopeIds = slotScopeIds\r\n ? slotScopeIds.concat(fragmentSlotScopeIds)\r\n : fragmentSlotScopeIds;\r\n }\r\n if (n1 == null) {\r\n hostInsert(fragmentStartAnchor, container, anchor);\r\n hostInsert(fragmentEndAnchor, container, anchor);\r\n // a fragment can only have array children\r\n // since they are either generated by the compiler, or implicitly created\r\n // from arrays.\r\n mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n if (patchFlag > 0 &&\r\n patchFlag & 64 /* STABLE_FRAGMENT */ &&\r\n dynamicChildren &&\r\n // #2715 the previous fragment could've been a BAILed one as a result\r\n // of renderSlot() with no valid children\r\n n1.dynamicChildren) {\r\n // a stable fragment (template root or <template v-for>) doesn't need to\r\n // patch children order, but it may contain dynamicChildren.\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);\r\n if ((process.env.NODE_ENV !== 'production') && parentComponent && parentComponent.type.__hmrId) {\r\n traverseStaticChildren(n1, n2);\r\n }\r\n else if (\r\n // #2080 if the stable fragment has a key, it's a <template v-for> that may\r\n // get moved around. Make sure all root level vnodes inherit el.\r\n // #2134 or if it's a component root, it may also get moved around\r\n // as the component is being moved.\r\n n2.key != null ||\r\n (parentComponent && n2 === parentComponent.subTree)) {\r\n traverseStaticChildren(n1, n2, true /* shallow */);\r\n }\r\n }\r\n else {\r\n // keyed / unkeyed, or manual fragments.\r\n // for keyed & unkeyed, since they are compiler generated from v-for,\r\n // each child is guaranteed to be a block so the fragment will never\r\n // have dynamicChildren.\r\n patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n }\r\n };\r\n const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n n2.slotScopeIds = slotScopeIds;\r\n if (n1 == null) {\r\n if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {\r\n parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized);\r\n }\r\n else {\r\n mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized);\r\n }\r\n }\r\n else {\r\n updateComponent(n1, n2, optimized);\r\n }\r\n };\r\n const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {\r\n const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));\r\n if ((process.env.NODE_ENV !== 'production') && instance.type.__hmrId) {\r\n registerHMR(instance);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(initialVNode);\r\n startMeasure(instance, `mount`);\r\n }\r\n // inject renderer internals for keepAlive\r\n if (isKeepAlive(initialVNode)) {\r\n instance.ctx.renderer = internals;\r\n }\r\n // resolve props and slots for setup context\r\n {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `init`);\r\n }\r\n setupComponent(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `init`);\r\n }\r\n }\r\n // setup() is async. This component relies on async logic to be resolved\r\n // before proceeding\r\n if (instance.asyncDep) {\r\n parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);\r\n // Give it a placeholder if this is not hydration\r\n // TODO handle self-defined fallback\r\n if (!initialVNode.el) {\r\n const placeholder = (instance.subTree = createVNode(Comment));\r\n processCommentNode(null, placeholder, container, anchor);\r\n }\r\n return;\r\n }\r\n setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n endMeasure(instance, `mount`);\r\n }\r\n };\r\n const updateComponent = (n1, n2, optimized) => {\r\n const instance = (n2.component = n1.component);\r\n if (shouldUpdateComponent(n1, n2, optimized)) {\r\n if (instance.asyncDep &&\r\n !instance.asyncResolved) {\r\n // async & still pending - just update props and slots\r\n // since the component's reactive effect for render isn't set-up yet\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(n2);\r\n }\r\n updateComponentPreRender(instance, n2, optimized);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n return;\r\n }\r\n else {\r\n // normal update\r\n instance.next = n2;\r\n // in case the child component is also queued, remove it to avoid\r\n // double updating the same child component in the same flush.\r\n invalidateJob(instance.update);\r\n // instance.update is the reactive effect.\r\n instance.update();\r\n }\r\n }\r\n else {\r\n // no update needed. just copy over properties\r\n n2.component = n1.component;\r\n n2.el = n1.el;\r\n instance.vnode = n2;\r\n }\r\n };\r\n const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {\r\n const componentUpdateFn = () => {\r\n if (!instance.isMounted) {\r\n let vnodeHook;\r\n const { el, props } = initialVNode;\r\n const { bm, m, parent } = instance;\r\n const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);\r\n toggleRecurse(instance, false);\r\n // beforeMount hook\r\n if (bm) {\r\n invokeArrayFns(bm);\r\n }\r\n // onVnodeBeforeMount\r\n if (!isAsyncWrapperVNode &&\r\n (vnodeHook = props && props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHook, parent, initialVNode);\r\n }\r\n toggleRecurse(instance, true);\r\n if (el && hydrateNode) {\r\n // vnode has adopted host node - perform hydration instead of mount.\r\n const hydrateSubTree = () => {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n instance.subTree = renderComponentRoot(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `hydrate`);\r\n }\r\n hydrateNode(el, instance.subTree, instance, parentSuspense, null);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `hydrate`);\r\n }\r\n };\r\n if (isAsyncWrapperVNode) {\r\n initialVNode.type.__asyncLoader().then(\r\n // note: we are moving the render call into an async callback,\r\n // which means it won't track dependencies - but it's ok because\r\n // a server-rendered async wrapper is already in resolved state\r\n // and it will never need to change.\r\n () => !instance.isUnmounted && hydrateSubTree());\r\n }\r\n else {\r\n hydrateSubTree();\r\n }\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n const subTree = (instance.subTree = renderComponentRoot(instance));\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `patch`);\r\n }\r\n patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `patch`);\r\n }\r\n initialVNode.el = subTree.el;\r\n }\r\n // mounted hook\r\n if (m) {\r\n queuePostRenderEffect(m, parentSuspense);\r\n }\r\n // onVnodeMounted\r\n if (!isAsyncWrapperVNode &&\r\n (vnodeHook = props && props.onVnodeMounted)) {\r\n const scopedInitialVNode = initialVNode;\r\n queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);\r\n }\r\n // activated hook for keep-alive roots.\r\n // #1742 activated hook must be accessed after first render\r\n // since the hook may be injected by a child keep-alive\r\n if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n instance.a && queuePostRenderEffect(instance.a, parentSuspense);\r\n }\r\n instance.isMounted = true;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentAdded(instance);\r\n }\r\n // #2458: deference mount-only object parameters to prevent memleaks\r\n initialVNode = container = anchor = null;\r\n }\r\n else {\r\n // updateComponent\r\n // This is triggered by mutation of component's own state (next: null)\r\n // OR parent calling processComponent (next: VNode)\r\n let { next, bu, u, parent, vnode } = instance;\r\n let originNext = next;\r\n let vnodeHook;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(next || instance.vnode);\r\n }\r\n // Disallow component effect recursion during pre-lifecycle hooks.\r\n toggleRecurse(instance, false);\r\n if (next) {\r\n next.el = vnode.el;\r\n updateComponentPreRender(instance, next, optimized);\r\n }\r\n else {\r\n next = vnode;\r\n }\r\n // beforeUpdate hook\r\n if (bu) {\r\n invokeArrayFns(bu);\r\n }\r\n // onVnodeBeforeUpdate\r\n if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {\r\n invokeVNodeHook(vnodeHook, parent, next, vnode);\r\n }\r\n toggleRecurse(instance, true);\r\n // render\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n const nextTree = renderComponentRoot(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n const prevTree = instance.subTree;\r\n instance.subTree = nextTree;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `patch`);\r\n }\r\n patch(prevTree, nextTree, \r\n // parent may have changed if it's in a teleport\r\n hostParentNode(prevTree.el), \r\n // anchor may have changed if it's in a fragment\r\n getNextHostNode(prevTree), instance, parentSuspense, isSVG);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `patch`);\r\n }\r\n next.el = nextTree.el;\r\n if (originNext === null) {\r\n // self-triggered update. In case of HOC, update parent component\r\n // vnode el. HOC is indicated by parent instance's subTree pointing\r\n // to child component's vnode\r\n updateHOCHostEl(instance, nextTree.el);\r\n }\r\n // updated hook\r\n if (u) {\r\n queuePostRenderEffect(u, parentSuspense);\r\n }\r\n // onVnodeUpdated\r\n if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {\r\n queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(instance);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n }\r\n };\r\n // create reactive effect for rendering\r\n const effect = (instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope // track it in component's effect scope\r\n ));\r\n const update = (instance.update = effect.run.bind(effect));\r\n update.id = instance.uid;\r\n // allowRecurse\r\n // #1801, #2043 component render effects should allow recursive updates\r\n toggleRecurse(instance, true);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = instance.rtc\r\n ? e => invokeArrayFns(instance.rtc, e)\r\n : void 0;\r\n effect.onTrigger = instance.rtg\r\n ? e => invokeArrayFns(instance.rtg, e)\r\n : void 0;\r\n // @ts-ignore (for scheduler)\r\n update.ownerInstance = instance;\r\n }\r\n update();\r\n };\r\n const updateComponentPreRender = (instance, nextVNode, optimized) => {\r\n nextVNode.component = instance;\r\n const prevProps = instance.vnode.props;\r\n instance.vnode = nextVNode;\r\n instance.next = null;\r\n updateProps(instance, nextVNode.props, prevProps, optimized);\r\n updateSlots(instance, nextVNode.children, optimized);\r\n pauseTracking();\r\n // props update may have triggered pre-flush watchers.\r\n // flush them before the render update.\r\n flushPreFlushCbs(undefined, instance.update);\r\n resetTracking();\r\n };\r\n const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {\r\n const c1 = n1 && n1.children;\r\n const prevShapeFlag = n1 ? n1.shapeFlag : 0;\r\n const c2 = n2.children;\r\n const { patchFlag, shapeFlag } = n2;\r\n // fast path\r\n if (patchFlag > 0) {\r\n if (patchFlag & 128 /* KEYED_FRAGMENT */) {\r\n // this could be either fully-keyed or mixed (some keyed some not)\r\n // presence of patchFlag means children are guaranteed to be arrays\r\n patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n return;\r\n }\r\n else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) {\r\n // unkeyed\r\n patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n return;\r\n }\r\n }\r\n // children has 3 possibilities: text, array or no children.\r\n if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n // text children fast path\r\n if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n unmountChildren(c1, parentComponent, parentSuspense);\r\n }\r\n if (c2 !== c1) {\r\n hostSetElementText(container, c2);\r\n }\r\n }\r\n else {\r\n if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n // prev children was array\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n // two arrays, cannot assume anything, do full diff\r\n patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n // no new children, just unmount old\r\n unmountChildren(c1, parentComponent, parentSuspense, true);\r\n }\r\n }\r\n else {\r\n // prev children was text OR null\r\n // new children is array OR null\r\n if (prevShapeFlag & 8 /* TEXT_CHILDREN */) {\r\n hostSetElementText(container, '');\r\n }\r\n // mount new if array\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n }\r\n }\r\n };\r\n const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n c1 = c1 || EMPTY_ARR;\r\n c2 = c2 || EMPTY_ARR;\r\n const oldLength = c1.length;\r\n const newLength = c2.length;\r\n const commonLength = Math.min(oldLength, newLength);\r\n let i;\r\n for (i = 0; i < commonLength; i++) {\r\n const nextChild = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n if (oldLength > newLength) {\r\n // remove old\r\n unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);\r\n }\r\n else {\r\n // mount new\r\n mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength);\r\n }\r\n };\r\n // can be all-keyed or mixed\r\n const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n let i = 0;\r\n const l2 = c2.length;\r\n let e1 = c1.length - 1; // prev ending index\r\n let e2 = l2 - 1; // next ending index\r\n // 1. sync from start\r\n // (a b) c\r\n // (a b) d e\r\n while (i <= e1 && i <= e2) {\r\n const n1 = c1[i];\r\n const n2 = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n if (isSameVNodeType(n1, n2)) {\r\n patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n break;\r\n }\r\n i++;\r\n }\r\n // 2. sync from end\r\n // a (b c)\r\n // d e (b c)\r\n while (i <= e1 && i <= e2) {\r\n const n1 = c1[e1];\r\n const n2 = (c2[e2] = optimized\r\n ? cloneIfMounted(c2[e2])\r\n : normalizeVNode(c2[e2]));\r\n if (isSameVNodeType(n1, n2)) {\r\n patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n break;\r\n }\r\n e1--;\r\n e2--;\r\n }\r\n // 3. common sequence + mount\r\n // (a b)\r\n // (a b) c\r\n // i = 2, e1 = 1, e2 = 2\r\n // (a b)\r\n // c (a b)\r\n // i = 0, e1 = -1, e2 = 0\r\n if (i > e1) {\r\n if (i <= e2) {\r\n const nextPos = e2 + 1;\r\n const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;\r\n while (i <= e2) {\r\n patch(null, (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n i++;\r\n }\r\n }\r\n }\r\n // 4. common sequence + unmount\r\n // (a b) c\r\n // (a b)\r\n // i = 2, e1 = 2, e2 = 1\r\n // a (b c)\r\n // (b c)\r\n // i = 0, e1 = 0, e2 = -1\r\n else if (i > e2) {\r\n while (i <= e1) {\r\n unmount(c1[i], parentComponent, parentSuspense, true);\r\n i++;\r\n }\r\n }\r\n // 5. unknown sequence\r\n // [i ... e1 + 1]: a b [c d e] f g\r\n // [i ... e2 + 1]: a b [e d c h] f g\r\n // i = 2, e1 = 4, e2 = 5\r\n else {\r\n const s1 = i; // prev starting index\r\n const s2 = i; // next starting index\r\n // 5.1 build key:index map for newChildren\r\n const keyToNewIndexMap = new Map();\r\n for (i = s2; i <= e2; i++) {\r\n const nextChild = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n if (nextChild.key != null) {\r\n if ((process.env.NODE_ENV !== 'production') && keyToNewIndexMap.has(nextChild.key)) {\r\n warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);\r\n }\r\n keyToNewIndexMap.set(nextChild.key, i);\r\n }\r\n }\r\n // 5.2 loop through old children left to be patched and try to patch\r\n // matching nodes & remove nodes that are no longer present\r\n let j;\r\n let patched = 0;\r\n const toBePatched = e2 - s2 + 1;\r\n let moved = false;\r\n // used to track whether any node has moved\r\n let maxNewIndexSoFar = 0;\r\n // works as Map<newIndex, oldIndex>\r\n // Note that oldIndex is offset by +1\r\n // and oldIndex = 0 is a special value indicating the new node has\r\n // no corresponding old node.\r\n // used for determining longest stable subsequence\r\n const newIndexToOldIndexMap = new Array(toBePatched);\r\n for (i = 0; i < toBePatched; i++)\r\n newIndexToOldIndexMap[i] = 0;\r\n for (i = s1; i <= e1; i++) {\r\n const prevChild = c1[i];\r\n if (patched >= toBePatched) {\r\n // all new children have been patched so this can only be a removal\r\n unmount(prevChild, parentComponent, parentSuspense, true);\r\n continue;\r\n }\r\n let newIndex;\r\n if (prevChild.key != null) {\r\n newIndex = keyToNewIndexMap.get(prevChild.key);\r\n }\r\n else {\r\n // key-less node, try to locate a key-less node of the same type\r\n for (j = s2; j <= e2; j++) {\r\n if (newIndexToOldIndexMap[j - s2] === 0 &&\r\n isSameVNodeType(prevChild, c2[j])) {\r\n newIndex = j;\r\n break;\r\n }\r\n }\r\n }\r\n if (newIndex === undefined) {\r\n unmount(prevChild, parentComponent, parentSuspense, true);\r\n }\r\n else {\r\n newIndexToOldIndexMap[newIndex - s2] = i + 1;\r\n if (newIndex >= maxNewIndexSoFar) {\r\n maxNewIndexSoFar = newIndex;\r\n }\r\n else {\r\n moved = true;\r\n }\r\n patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n patched++;\r\n }\r\n }\r\n // 5.3 move and mount\r\n // generate longest stable subsequence only when nodes have moved\r\n const increasingNewIndexSequence = moved\r\n ? getSequence(newIndexToOldIndexMap)\r\n : EMPTY_ARR;\r\n j = increasingNewIndexSequence.length - 1;\r\n // looping backwards so that we can use last patched node as anchor\r\n for (i = toBePatched - 1; i >= 0; i--) {\r\n const nextIndex = s2 + i;\r\n const nextChild = c2[nextIndex];\r\n const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;\r\n if (newIndexToOldIndexMap[i] === 0) {\r\n // mount new\r\n patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (moved) {\r\n // move if:\r\n // There is no stable subsequence (e.g. a reverse)\r\n // OR current node is not among the stable sequence\r\n if (j < 0 || i !== increasingNewIndexSequence[j]) {\r\n move(nextChild, container, anchor, 2 /* REORDER */);\r\n }\r\n else {\r\n j--;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n const move = (vnode, container, anchor, moveType, parentSuspense = null) => {\r\n const { el, type, transition, children, shapeFlag } = vnode;\r\n if (shapeFlag & 6 /* COMPONENT */) {\r\n move(vnode.component.subTree, container, anchor, moveType);\r\n return;\r\n }\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.suspense.move(container, anchor, moveType);\r\n return;\r\n }\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n type.move(vnode, container, anchor, internals);\r\n return;\r\n }\r\n if (type === Fragment) {\r\n hostInsert(el, container, anchor);\r\n for (let i = 0; i < children.length; i++) {\r\n move(children[i], container, anchor, moveType);\r\n }\r\n hostInsert(vnode.anchor, container, anchor);\r\n return;\r\n }\r\n if (type === Static) {\r\n moveStaticNode(vnode, container, anchor);\r\n return;\r\n }\r\n // single nodes\r\n const needTransition = moveType !== 2 /* REORDER */ &&\r\n shapeFlag & 1 /* ELEMENT */ &&\r\n transition;\r\n if (needTransition) {\r\n if (moveType === 0 /* ENTER */) {\r\n transition.beforeEnter(el);\r\n hostInsert(el, container, anchor);\r\n queuePostRenderEffect(() => transition.enter(el), parentSuspense);\r\n }\r\n else {\r\n const { leave, delayLeave, afterLeave } = transition;\r\n const remove = () => hostInsert(el, container, anchor);\r\n const performLeave = () => {\r\n leave(el, () => {\r\n remove();\r\n afterLeave && afterLeave();\r\n });\r\n };\r\n if (delayLeave) {\r\n delayLeave(el, remove, performLeave);\r\n }\r\n else {\r\n performLeave();\r\n }\r\n }\r\n }\r\n else {\r\n hostInsert(el, container, anchor);\r\n }\r\n };\r\n const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {\r\n const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;\r\n // unset ref\r\n if (ref != null) {\r\n setRef(ref, null, parentSuspense, vnode, true);\r\n }\r\n if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n parentComponent.ctx.deactivate(vnode);\r\n return;\r\n }\r\n const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs;\r\n const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);\r\n let vnodeHook;\r\n if (shouldInvokeVnodeHook &&\r\n (vnodeHook = props && props.onVnodeBeforeUnmount)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n }\r\n if (shapeFlag & 6 /* COMPONENT */) {\r\n unmountComponent(vnode.component, parentSuspense, doRemove);\r\n }\r\n else {\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.suspense.unmount(parentSuspense, doRemove);\r\n return;\r\n }\r\n if (shouldInvokeDirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount');\r\n }\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove);\r\n }\r\n else if (dynamicChildren &&\r\n // #1153: fast path should not be taken for non-stable (v-for) fragments\r\n (type !== Fragment ||\r\n (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) {\r\n // fast path for block nodes: only need to unmount dynamic children.\r\n unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);\r\n }\r\n else if ((type === Fragment &&\r\n patchFlag &\r\n (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) ||\r\n (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) {\r\n unmountChildren(children, parentComponent, parentSuspense);\r\n }\r\n if (doRemove) {\r\n remove(vnode);\r\n }\r\n }\r\n if ((shouldInvokeVnodeHook &&\r\n (vnodeHook = props && props.onVnodeUnmounted)) ||\r\n shouldInvokeDirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n shouldInvokeDirs &&\r\n invokeDirectiveHook(vnode, null, parentComponent, 'unmounted');\r\n }, parentSuspense);\r\n }\r\n };\r\n const remove = vnode => {\r\n const { type, el, anchor, transition } = vnode;\r\n if (type === Fragment) {\r\n removeFragment(el, anchor);\r\n return;\r\n }\r\n if (type === Static) {\r\n removeStaticNode(vnode);\r\n return;\r\n }\r\n const performRemove = () => {\r\n hostRemove(el);\r\n if (transition && !transition.persisted && transition.afterLeave) {\r\n transition.afterLeave();\r\n }\r\n };\r\n if (vnode.shapeFlag & 1 /* ELEMENT */ &&\r\n transition &&\r\n !transition.persisted) {\r\n const { leave, delayLeave } = transition;\r\n const performLeave = () => leave(el, performRemove);\r\n if (delayLeave) {\r\n delayLeave(vnode.el, performRemove, performLeave);\r\n }\r\n else {\r\n performLeave();\r\n }\r\n }\r\n else {\r\n performRemove();\r\n }\r\n };\r\n const removeFragment = (cur, end) => {\r\n // For fragments, directly remove all contained DOM nodes.\r\n // (fragment child nodes cannot have transition)\r\n let next;\r\n while (cur !== end) {\r\n next = hostNextSibling(cur);\r\n hostRemove(cur);\r\n cur = next;\r\n }\r\n hostRemove(end);\r\n };\r\n const unmountComponent = (instance, parentSuspense, doRemove) => {\r\n if ((process.env.NODE_ENV !== 'production') && instance.type.__hmrId) {\r\n unregisterHMR(instance);\r\n }\r\n const { bum, scope, update, subTree, um } = instance;\r\n // beforeUnmount hook\r\n if (bum) {\r\n invokeArrayFns(bum);\r\n }\r\n // stop effects in component scope\r\n scope.stop();\r\n // update may be null if a component is unmounted before its async\r\n // setup has resolved.\r\n if (update) {\r\n // so that scheduler will no longer invoke it\r\n update.active = false;\r\n unmount(subTree, instance, parentSuspense, doRemove);\r\n }\r\n // unmounted hook\r\n if (um) {\r\n queuePostRenderEffect(um, parentSuspense);\r\n }\r\n queuePostRenderEffect(() => {\r\n instance.isUnmounted = true;\r\n }, parentSuspense);\r\n // A component with async dep inside a pending suspense is unmounted before\r\n // its async dep resolves. This should remove the dep from the suspense, and\r\n // cause the suspense to resolve immediately if that was the last dep.\r\n if (parentSuspense &&\r\n parentSuspense.pendingBranch &&\r\n !parentSuspense.isUnmounted &&\r\n instance.asyncDep &&\r\n !instance.asyncResolved &&\r\n instance.suspenseId === parentSuspense.pendingId) {\r\n parentSuspense.deps--;\r\n if (parentSuspense.deps === 0) {\r\n parentSuspense.resolve();\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentRemoved(instance);\r\n }\r\n };\r\n const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {\r\n for (let i = start; i < children.length; i++) {\r\n unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);\r\n }\r\n };\r\n const getNextHostNode = vnode => {\r\n if (vnode.shapeFlag & 6 /* COMPONENT */) {\r\n return getNextHostNode(vnode.component.subTree);\r\n }\r\n if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n return vnode.suspense.next();\r\n }\r\n return hostNextSibling((vnode.anchor || vnode.el));\r\n };\r\n const render = (vnode, container, isSVG) => {\r\n if (vnode == null) {\r\n if (container._vnode) {\r\n unmount(container._vnode, null, null, true);\r\n }\r\n }\r\n else {\r\n patch(container._vnode || null, vnode, container, null, null, null, isSVG);\r\n }\r\n flushPostFlushCbs();\r\n container._vnode = vnode;\r\n };\r\n const internals = {\r\n p: patch,\r\n um: unmount,\r\n m: move,\r\n r: remove,\r\n mt: mountComponent,\r\n mc: mountChildren,\r\n pc: patchChildren,\r\n pbc: patchBlockChildren,\r\n n: getNextHostNode,\r\n o: options\r\n };\r\n let hydrate;\r\n let hydrateNode;\r\n if (createHydrationFns) {\r\n [hydrate, hydrateNode] = createHydrationFns(internals);\r\n }\r\n return {\r\n render,\r\n hydrate,\r\n createApp: createAppAPI(render, hydrate)\r\n };\r\n}\r\nfunction toggleRecurse({ effect, update }, allowed) {\r\n effect.allowRecurse = update.allowRecurse = allowed;\r\n}\r\n/**\r\n * #1156\r\n * When a component is HMR-enabled, we need to make sure that all static nodes\r\n * inside a block also inherit the DOM element from the previous tree so that\r\n * HMR updates (which are full updates) can retrieve the element for patching.\r\n *\r\n * #2080\r\n * Inside keyed `template` fragment static children, if a fragment is moved,\r\n * the children will always be moved. Therefore, in order to ensure correct move\r\n * position, el should be inherited from previous nodes.\r\n */\r\nfunction traverseStaticChildren(n1, n2, shallow = false) {\r\n const ch1 = n1.children;\r\n const ch2 = n2.children;\r\n if (isArray(ch1) && isArray(ch2)) {\r\n for (let i = 0; i < ch1.length; i++) {\r\n // this is only called in the optimized path so array children are\r\n // guaranteed to be vnodes\r\n const c1 = ch1[i];\r\n let c2 = ch2[i];\r\n if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) {\r\n if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) {\r\n c2 = ch2[i] = cloneIfMounted(ch2[i]);\r\n c2.el = c1.el;\r\n }\r\n if (!shallow)\r\n traverseStaticChildren(c1, c2);\r\n }\r\n // also inherit for comment nodes, but not placeholders (e.g. v-if which\r\n // would have received .el during block patch)\r\n if ((process.env.NODE_ENV !== 'production') && c2.type === Comment && !c2.el) {\r\n c2.el = c1.el;\r\n }\r\n }\r\n }\r\n}\r\n// https://en.wikipedia.org/wiki/Longest_increasing_subsequence\r\nfunction getSequence(arr) {\r\n const p = arr.slice();\r\n const result = [0];\r\n let i, j, u, v, c;\r\n const len = arr.length;\r\n for (i = 0; i < len; i++) {\r\n const arrI = arr[i];\r\n if (arrI !== 0) {\r\n j = result[result.length - 1];\r\n if (arr[j] < arrI) {\r\n p[i] = j;\r\n result.push(i);\r\n continue;\r\n }\r\n u = 0;\r\n v = result.length - 1;\r\n while (u < v) {\r\n c = (u + v) >> 1;\r\n if (arr[result[c]] < arrI) {\r\n u = c + 1;\r\n }\r\n else {\r\n v = c;\r\n }\r\n }\r\n if (arrI < arr[result[u]]) {\r\n if (u > 0) {\r\n p[i] = result[u - 1];\r\n }\r\n result[u] = i;\r\n }\r\n }\r\n }\r\n u = result.length;\r\n v = result[u - 1];\r\n while (u-- > 0) {\r\n result[u] = v;\r\n v = p[v];\r\n }\r\n return result;\r\n}\n\nconst isTeleport = (type) => type.__isTeleport;\r\nconst isTeleportDisabled = (props) => props && (props.disabled || props.disabled === '');\r\nconst isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement;\r\nconst resolveTarget = (props, select) => {\r\n const targetSelector = props && props.to;\r\n if (isString(targetSelector)) {\r\n if (!select) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Current renderer does not support string target for Teleports. ` +\r\n `(missing querySelector renderer option)`);\r\n return null;\r\n }\r\n else {\r\n const target = select(targetSelector);\r\n if (!target) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Failed to locate Teleport target with selector \"${targetSelector}\". ` +\r\n `Note the target element must exist before the component is mounted - ` +\r\n `i.e. the target cannot be rendered by the component itself, and ` +\r\n `ideally should be outside of the entire Vue component tree.`);\r\n }\r\n return target;\r\n }\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && !targetSelector && !isTeleportDisabled(props)) {\r\n warn(`Invalid Teleport target: ${targetSelector}`);\r\n }\r\n return targetSelector;\r\n }\r\n};\r\nconst TeleportImpl = {\r\n __isTeleport: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {\r\n const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals;\r\n const disabled = isTeleportDisabled(n2.props);\r\n let { shapeFlag, children, dynamicChildren } = n2;\r\n // #3302\r\n // HMR updated, force full diff\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n if (n1 == null) {\r\n // insert anchors in the main view\r\n const placeholder = (n2.el = (process.env.NODE_ENV !== 'production')\r\n ? createComment('teleport start')\r\n : createText(''));\r\n const mainAnchor = (n2.anchor = (process.env.NODE_ENV !== 'production')\r\n ? createComment('teleport end')\r\n : createText(''));\r\n insert(placeholder, container, anchor);\r\n insert(mainAnchor, container, anchor);\r\n const target = (n2.target = resolveTarget(n2.props, querySelector));\r\n const targetAnchor = (n2.targetAnchor = createText(''));\r\n if (target) {\r\n insert(targetAnchor, target);\r\n // #2652 we could be teleporting from a non-SVG tree into an SVG tree\r\n isSVG = isSVG || isTargetSVG(target);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !disabled) {\r\n warn('Invalid Teleport target on mount:', target, `(${typeof target})`);\r\n }\r\n const mount = (container, anchor) => {\r\n // Teleport *always* has Array children. This is enforced in both the\r\n // compiler and vnode children normalization.\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n if (disabled) {\r\n mount(container, mainAnchor);\r\n }\r\n else if (target) {\r\n mount(target, targetAnchor);\r\n }\r\n }\r\n else {\r\n // update content\r\n n2.el = n1.el;\r\n const mainAnchor = (n2.anchor = n1.anchor);\r\n const target = (n2.target = n1.target);\r\n const targetAnchor = (n2.targetAnchor = n1.targetAnchor);\r\n const wasDisabled = isTeleportDisabled(n1.props);\r\n const currentContainer = wasDisabled ? container : target;\r\n const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;\r\n isSVG = isSVG || isTargetSVG(target);\r\n if (dynamicChildren) {\r\n // fast path when the teleport happens to be a block root\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds);\r\n // even in block tree mode we need to make sure all root-level nodes\r\n // in the teleport inherit previous DOM references so that they can\r\n // be moved in future patches.\r\n traverseStaticChildren(n1, n2, true);\r\n }\r\n else if (!optimized) {\r\n patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false);\r\n }\r\n if (disabled) {\r\n if (!wasDisabled) {\r\n // enabled -> disabled\r\n // move into main container\r\n moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */);\r\n }\r\n }\r\n else {\r\n // target changed\r\n if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {\r\n const nextTarget = (n2.target = resolveTarget(n2.props, querySelector));\r\n if (nextTarget) {\r\n moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid Teleport target on update:', target, `(${typeof target})`);\r\n }\r\n }\r\n else if (wasDisabled) {\r\n // disabled -> enabled\r\n // move into teleport target\r\n moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */);\r\n }\r\n }\r\n }\r\n },\r\n remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {\r\n const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;\r\n if (target) {\r\n hostRemove(targetAnchor);\r\n }\r\n // an unmounted teleport should always remove its children if not disabled\r\n if (doRemove || !isTeleportDisabled(props)) {\r\n hostRemove(anchor);\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren);\r\n }\r\n }\r\n }\r\n },\r\n move: moveTeleport,\r\n hydrate: hydrateTeleport\r\n};\r\nfunction moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) {\r\n // move target anchor if this is a target change.\r\n if (moveType === 0 /* TARGET_CHANGE */) {\r\n insert(vnode.targetAnchor, container, parentAnchor);\r\n }\r\n const { el, anchor, shapeFlag, children, props } = vnode;\r\n const isReorder = moveType === 2 /* REORDER */;\r\n // move main view anchor if this is a re-order.\r\n if (isReorder) {\r\n insert(el, container, parentAnchor);\r\n }\r\n // if this is a re-order and teleport is enabled (content is in target)\r\n // do not move children. So the opposite is: only move children if this\r\n // is not a reorder, or the teleport is disabled\r\n if (!isReorder || isTeleportDisabled(props)) {\r\n // Teleport has either Array children or no children.\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n for (let i = 0; i < children.length; i++) {\r\n move(children[i], container, parentAnchor, 2 /* REORDER */);\r\n }\r\n }\r\n }\r\n // move main view anchor if this is a re-order.\r\n if (isReorder) {\r\n insert(anchor, container, parentAnchor);\r\n }\r\n}\r\nfunction hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) {\r\n const target = (vnode.target = resolveTarget(vnode.props, querySelector));\r\n if (target) {\r\n // if multiple teleports rendered to the same target element, we need to\r\n // pick up from where the last teleport finished instead of the first node\r\n const targetNode = target._lpa || target.firstChild;\r\n if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n if (isTeleportDisabled(vnode.props)) {\r\n vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized);\r\n vnode.targetAnchor = targetNode;\r\n }\r\n else {\r\n vnode.anchor = nextSibling(node);\r\n vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n target._lpa =\r\n vnode.targetAnchor && nextSibling(vnode.targetAnchor);\r\n }\r\n }\r\n return vnode.anchor && nextSibling(vnode.anchor);\r\n}\r\n// Force-casted public typing for h and TSX props inference\r\nconst Teleport = TeleportImpl;\n\nconst COMPONENTS = 'components';\r\nconst DIRECTIVES = 'directives';\r\n/**\r\n * @private\r\n */\r\nfunction resolveComponent(name, maybeSelfReference) {\r\n return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;\r\n}\r\nconst NULL_DYNAMIC_COMPONENT = Symbol();\r\n/**\r\n * @private\r\n */\r\nfunction resolveDynamicComponent(component) {\r\n if (isString(component)) {\r\n return resolveAsset(COMPONENTS, component, false) || component;\r\n }\r\n else {\r\n // invalid types will fallthrough to createVNode and raise warning\r\n return (component || NULL_DYNAMIC_COMPONENT);\r\n }\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction resolveDirective(name) {\r\n return resolveAsset(DIRECTIVES, name);\r\n}\r\n// implementation\r\nfunction resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {\r\n const instance = currentRenderingInstance || currentInstance;\r\n if (instance) {\r\n const Component = instance.type;\r\n // explicit self name has highest priority\r\n if (type === COMPONENTS) {\r\n const selfName = getComponentName(Component);\r\n if (selfName &&\r\n (selfName === name ||\r\n selfName === camelize(name) ||\r\n selfName === capitalize(camelize(name)))) {\r\n return Component;\r\n }\r\n }\r\n const res = \r\n // local registration\r\n // check instance[type] first which is resolved for options API\r\n resolve(instance[type] || Component[type], name) ||\r\n // global registration\r\n resolve(instance.appContext[type], name);\r\n if (!res && maybeSelfReference) {\r\n // fallback to implicit self-reference\r\n return Component;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) {\r\n const extra = type === COMPONENTS\r\n ? `\\nIf this is a native custom element, make sure to exclude it from ` +\r\n `component resolution via compilerOptions.isCustomElement.`\r\n : ``;\r\n warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);\r\n }\r\n return res;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`resolve${capitalize(type.slice(0, -1))} ` +\r\n `can only be used in render() or setup().`);\r\n }\r\n}\r\nfunction resolve(registry, name) {\r\n return (registry &&\r\n (registry[name] ||\r\n registry[camelize(name)] ||\r\n registry[capitalize(camelize(name))]));\r\n}\n\nconst Fragment = Symbol((process.env.NODE_ENV !== 'production') ? 'Fragment' : undefined);\r\nconst Text = Symbol((process.env.NODE_ENV !== 'production') ? 'Text' : undefined);\r\nconst Comment = Symbol((process.env.NODE_ENV !== 'production') ? 'Comment' : undefined);\r\nconst Static = Symbol((process.env.NODE_ENV !== 'production') ? 'Static' : undefined);\r\n// Since v-if and v-for are the two possible ways node structure can dynamically\r\n// change, once we consider v-if branches and each v-for fragment a block, we\r\n// can divide a template into nested blocks, and within each block the node\r\n// structure would be stable. This allows us to skip most children diffing\r\n// and only worry about the dynamic nodes (indicated by patch flags).\r\nconst blockStack = [];\r\nlet currentBlock = null;\r\n/**\r\n * Open a block.\r\n * This must be called before `createBlock`. It cannot be part of `createBlock`\r\n * because the children of the block are evaluated before `createBlock` itself\r\n * is called. The generated code typically looks like this:\r\n *\r\n * ```js\r\n * function render() {\r\n * return (openBlock(),createBlock('div', null, [...]))\r\n * }\r\n * ```\r\n * disableTracking is true when creating a v-for fragment block, since a v-for\r\n * fragment always diffs its children.\r\n *\r\n * @private\r\n */\r\nfunction openBlock(disableTracking = false) {\r\n blockStack.push((currentBlock = disableTracking ? null : []));\r\n}\r\nfunction closeBlock() {\r\n blockStack.pop();\r\n currentBlock = blockStack[blockStack.length - 1] || null;\r\n}\r\n// Whether we should be tracking dynamic child nodes inside a block.\r\n// Only tracks when this value is > 0\r\n// We are not using a simple boolean because this value may need to be\r\n// incremented/decremented by nested usage of v-once (see below)\r\nlet isBlockTreeEnabled = 1;\r\n/**\r\n * Block tracking sometimes needs to be disabled, for example during the\r\n * creation of a tree that needs to be cached by v-once. The compiler generates\r\n * code like this:\r\n *\r\n * ``` js\r\n * _cache[1] || (\r\n * setBlockTracking(-1),\r\n * _cache[1] = createVNode(...),\r\n * setBlockTracking(1),\r\n * _cache[1]\r\n * )\r\n * ```\r\n *\r\n * @private\r\n */\r\nfunction setBlockTracking(value) {\r\n isBlockTreeEnabled += value;\r\n}\r\nfunction setupBlock(vnode) {\r\n // save current block children on the block vnode\r\n vnode.dynamicChildren =\r\n isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null;\r\n // close block\r\n closeBlock();\r\n // a block is always going to be patched, so track it as a child of its\r\n // parent block\r\n if (isBlockTreeEnabled > 0 && currentBlock) {\r\n currentBlock.push(vnode);\r\n }\r\n return vnode;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {\r\n return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */));\r\n}\r\n/**\r\n * Create a block root vnode. Takes the same exact arguments as `createVNode`.\r\n * A block root keeps track of dynamic nodes within the block in the\r\n * `dynamicChildren` array.\r\n *\r\n * @private\r\n */\r\nfunction createBlock(type, props, children, patchFlag, dynamicProps) {\r\n return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */));\r\n}\r\nfunction isVNode(value) {\r\n return value ? value.__v_isVNode === true : false;\r\n}\r\nfunction isSameVNodeType(n1, n2) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n n2.shapeFlag & 6 /* COMPONENT */ &&\r\n hmrDirtyComponents.has(n2.type)) {\r\n // HMR only: if the component has been hot-updated, force a reload.\r\n return false;\r\n }\r\n return n1.type === n2.type && n1.key === n2.key;\r\n}\r\nlet vnodeArgsTransformer;\r\n/**\r\n * Internal API for registering an arguments transform for createVNode\r\n * used for creating stubs in the test-utils\r\n * It is *internal* but needs to be exposed for test-utils to pick up proper\r\n * typings\r\n */\r\nfunction transformVNodeArgs(transformer) {\r\n vnodeArgsTransformer = transformer;\r\n}\r\nconst createVNodeWithArgsTransform = (...args) => {\r\n return _createVNode(...(vnodeArgsTransformer\r\n ? vnodeArgsTransformer(args, currentRenderingInstance)\r\n : args));\r\n};\r\nconst InternalObjectKey = `__vInternal`;\r\nconst normalizeKey = ({ key }) => key != null ? key : null;\r\nconst normalizeRef = ({ ref, ref_key, ref_for }) => {\r\n return (ref != null\r\n ? isString(ref) || isRef(ref) || isFunction(ref)\r\n ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for }\r\n : ref\r\n : null);\r\n};\r\nfunction createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) {\r\n const vnode = {\r\n __v_isVNode: true,\r\n __v_skip: true,\r\n type,\r\n props,\r\n key: props && normalizeKey(props),\r\n ref: props && normalizeRef(props),\r\n scopeId: currentScopeId,\r\n slotScopeIds: null,\r\n children,\r\n component: null,\r\n suspense: null,\r\n ssContent: null,\r\n ssFallback: null,\r\n dirs: null,\r\n transition: null,\r\n el: null,\r\n anchor: null,\r\n target: null,\r\n targetAnchor: null,\r\n staticCount: 0,\r\n shapeFlag,\r\n patchFlag,\r\n dynamicProps,\r\n dynamicChildren: null,\r\n appContext: null\r\n };\r\n if (needFullChildrenNormalization) {\r\n normalizeChildren(vnode, children);\r\n // normalize suspense children\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n type.normalize(vnode);\r\n }\r\n }\r\n else if (children) {\r\n // compiled element vnode - if children is passed, only possible types are\r\n // string or Array.\r\n vnode.shapeFlag |= isString(children)\r\n ? 8 /* TEXT_CHILDREN */\r\n : 16 /* ARRAY_CHILDREN */;\r\n }\r\n // validate key\r\n if ((process.env.NODE_ENV !== 'production') && vnode.key !== vnode.key) {\r\n warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);\r\n }\r\n // track vnode for block tree\r\n if (isBlockTreeEnabled > 0 &&\r\n // avoid a block node from tracking itself\r\n !isBlockNode &&\r\n // has current parent block\r\n currentBlock &&\r\n // presence of a patch flag indicates this node needs patching on updates.\r\n // component nodes also should always be patched, because even if the\r\n // component doesn't need to update, it needs to persist the instance on to\r\n // the next vnode so that it can be properly unmounted later.\r\n (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) &&\r\n // the EVENTS flag is only for hydration and if it is the only flag, the\r\n // vnode should not be considered dynamic due to handler caching.\r\n vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) {\r\n currentBlock.push(vnode);\r\n }\r\n return vnode;\r\n}\r\nconst createVNode = ((process.env.NODE_ENV !== 'production') ? createVNodeWithArgsTransform : _createVNode);\r\nfunction _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {\r\n if (!type || type === NULL_DYNAMIC_COMPONENT) {\r\n if ((process.env.NODE_ENV !== 'production') && !type) {\r\n warn(`Invalid vnode type when creating vnode: ${type}.`);\r\n }\r\n type = Comment;\r\n }\r\n if (isVNode(type)) {\r\n // createVNode receiving an existing vnode. This happens in cases like\r\n // <component :is=\"vnode\"/>\r\n // #2078 make sure to merge refs during the clone instead of overwriting it\r\n const cloned = cloneVNode(type, props, true /* mergeRef: true */);\r\n if (children) {\r\n normalizeChildren(cloned, children);\r\n }\r\n return cloned;\r\n }\r\n // class component normalization.\r\n if (isClassComponent(type)) {\r\n type = type.__vccOpts;\r\n }\r\n // class & style normalization.\r\n if (props) {\r\n // for reactive or proxy objects, we need to clone it to enable mutation.\r\n props = guardReactiveProps(props);\r\n let { class: klass, style } = props;\r\n if (klass && !isString(klass)) {\r\n props.class = normalizeClass(klass);\r\n }\r\n if (isObject(style)) {\r\n // reactive state objects need to be cloned since they are likely to be\r\n // mutated\r\n if (isProxy(style) && !isArray(style)) {\r\n style = extend({}, style);\r\n }\r\n props.style = normalizeStyle(style);\r\n }\r\n }\r\n // encode the vnode type information into a bitmap\r\n const shapeFlag = isString(type)\r\n ? 1 /* ELEMENT */\r\n : isSuspense(type)\r\n ? 128 /* SUSPENSE */\r\n : isTeleport(type)\r\n ? 64 /* TELEPORT */\r\n : isObject(type)\r\n ? 4 /* STATEFUL_COMPONENT */\r\n : isFunction(type)\r\n ? 2 /* FUNCTIONAL_COMPONENT */\r\n : 0;\r\n if ((process.env.NODE_ENV !== 'production') && shapeFlag & 4 /* STATEFUL_COMPONENT */ && isProxy(type)) {\r\n type = toRaw(type);\r\n warn(`Vue received a Component which was made a reactive object. This can ` +\r\n `lead to unnecessary performance overhead, and should be avoided by ` +\r\n `marking the component with \\`markRaw\\` or using \\`shallowRef\\` ` +\r\n `instead of \\`ref\\`.`, `\\nComponent that was made reactive: `, type);\r\n }\r\n return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);\r\n}\r\nfunction guardReactiveProps(props) {\r\n if (!props)\r\n return null;\r\n return isProxy(props) || InternalObjectKey in props\r\n ? extend({}, props)\r\n : props;\r\n}\r\nfunction cloneVNode(vnode, extraProps, mergeRef = false) {\r\n // This is intentionally NOT using spread or extend to avoid the runtime\r\n // key enumeration cost.\r\n const { props, ref, patchFlag, children } = vnode;\r\n const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;\r\n const cloned = {\r\n __v_isVNode: true,\r\n __v_skip: true,\r\n type: vnode.type,\r\n props: mergedProps,\r\n key: mergedProps && normalizeKey(mergedProps),\r\n ref: extraProps && extraProps.ref\r\n ? // #2078 in the case of <component :is=\"vnode\" ref=\"extra\"/>\r\n // if the vnode itself already has a ref, cloneVNode will need to merge\r\n // the refs so the single vnode can be set on multiple refs\r\n mergeRef && ref\r\n ? isArray(ref)\r\n ? ref.concat(normalizeRef(extraProps))\r\n : [ref, normalizeRef(extraProps)]\r\n : normalizeRef(extraProps)\r\n : ref,\r\n scopeId: vnode.scopeId,\r\n slotScopeIds: vnode.slotScopeIds,\r\n children: (process.env.NODE_ENV !== 'production') && patchFlag === -1 /* HOISTED */ && isArray(children)\r\n ? children.map(deepCloneVNode)\r\n : children,\r\n target: vnode.target,\r\n targetAnchor: vnode.targetAnchor,\r\n staticCount: vnode.staticCount,\r\n shapeFlag: vnode.shapeFlag,\r\n // if the vnode is cloned with extra props, we can no longer assume its\r\n // existing patch flag to be reliable and need to add the FULL_PROPS flag.\r\n // note: perserve flag for fragments since they use the flag for children\r\n // fast paths only.\r\n patchFlag: extraProps && vnode.type !== Fragment\r\n ? patchFlag === -1 // hoisted node\r\n ? 16 /* FULL_PROPS */\r\n : patchFlag | 16 /* FULL_PROPS */\r\n : patchFlag,\r\n dynamicProps: vnode.dynamicProps,\r\n dynamicChildren: vnode.dynamicChildren,\r\n appContext: vnode.appContext,\r\n dirs: vnode.dirs,\r\n transition: vnode.transition,\r\n // These should technically only be non-null on mounted VNodes. However,\r\n // they *should* be copied for kept-alive vnodes. So we just always copy\r\n // them since them being non-null during a mount doesn't affect the logic as\r\n // they will simply be overwritten.\r\n component: vnode.component,\r\n suspense: vnode.suspense,\r\n ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),\r\n ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),\r\n el: vnode.el,\r\n anchor: vnode.anchor\r\n };\r\n return cloned;\r\n}\r\n/**\r\n * Dev only, for HMR of hoisted vnodes reused in v-for\r\n * https://github.com/vitejs/vite/issues/2022\r\n */\r\nfunction deepCloneVNode(vnode) {\r\n const cloned = cloneVNode(vnode);\r\n if (isArray(vnode.children)) {\r\n cloned.children = vnode.children.map(deepCloneVNode);\r\n }\r\n return cloned;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createTextVNode(text = ' ', flag = 0) {\r\n return createVNode(Text, null, text, flag);\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createStaticVNode(content, numberOfNodes) {\r\n // A static vnode can contain multiple stringified elements, and the number\r\n // of elements is necessary for hydration.\r\n const vnode = createVNode(Static, null, content);\r\n vnode.staticCount = numberOfNodes;\r\n return vnode;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createCommentVNode(text = '', \r\n// when used as the v-else branch, the comment node must be created as a\r\n// block to ensure correct updates.\r\nasBlock = false) {\r\n return asBlock\r\n ? (openBlock(), createBlock(Comment, null, text))\r\n : createVNode(Comment, null, text);\r\n}\r\nfunction normalizeVNode(child) {\r\n if (child == null || typeof child === 'boolean') {\r\n // empty placeholder\r\n return createVNode(Comment);\r\n }\r\n else if (isArray(child)) {\r\n // fragment\r\n return createVNode(Fragment, null, \r\n // #3666, avoid reference pollution when reusing vnode\r\n child.slice());\r\n }\r\n else if (typeof child === 'object') {\r\n // already vnode, this should be the most common since compiled templates\r\n // always produce all-vnode children arrays\r\n return cloneIfMounted(child);\r\n }\r\n else {\r\n // strings and numbers\r\n return createVNode(Text, null, String(child));\r\n }\r\n}\r\n// optimized normalization for template-compiled render fns\r\nfunction cloneIfMounted(child) {\r\n return child.el === null || child.memo ? child : cloneVNode(child);\r\n}\r\nfunction normalizeChildren(vnode, children) {\r\n let type = 0;\r\n const { shapeFlag } = vnode;\r\n if (children == null) {\r\n children = null;\r\n }\r\n else if (isArray(children)) {\r\n type = 16 /* ARRAY_CHILDREN */;\r\n }\r\n else if (typeof children === 'object') {\r\n if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) {\r\n // Normalize slot to plain children for plain element and Teleport\r\n const slot = children.default;\r\n if (slot) {\r\n // _c marker is added by withCtx() indicating this is a compiled slot\r\n slot._c && (slot._d = false);\r\n normalizeChildren(vnode, slot());\r\n slot._c && (slot._d = true);\r\n }\r\n return;\r\n }\r\n else {\r\n type = 32 /* SLOTS_CHILDREN */;\r\n const slotFlag = children._;\r\n if (!slotFlag && !(InternalObjectKey in children)) {\r\n children._ctx = currentRenderingInstance;\r\n }\r\n else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) {\r\n // a child component receives forwarded slots from the parent.\r\n // its slot type is determined by its parent's slot type.\r\n if (currentRenderingInstance.slots._ === 1 /* STABLE */) {\r\n children._ = 1 /* STABLE */;\r\n }\r\n else {\r\n children._ = 2 /* DYNAMIC */;\r\n vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n }\r\n }\r\n }\r\n }\r\n else if (isFunction(children)) {\r\n children = { default: children, _ctx: currentRenderingInstance };\r\n type = 32 /* SLOTS_CHILDREN */;\r\n }\r\n else {\r\n children = String(children);\r\n // force teleport children to array so it can be moved around\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n type = 16 /* ARRAY_CHILDREN */;\r\n children = [createTextVNode(children)];\r\n }\r\n else {\r\n type = 8 /* TEXT_CHILDREN */;\r\n }\r\n }\r\n vnode.children = children;\r\n vnode.shapeFlag |= type;\r\n}\r\nfunction mergeProps(...args) {\r\n const ret = {};\r\n for (let i = 0; i < args.length; i++) {\r\n const toMerge = args[i];\r\n for (const key in toMerge) {\r\n if (key === 'class') {\r\n if (ret.class !== toMerge.class) {\r\n ret.class = normalizeClass([ret.class, toMerge.class]);\r\n }\r\n }\r\n else if (key === 'style') {\r\n ret.style = normalizeStyle([ret.style, toMerge.style]);\r\n }\r\n else if (isOn(key)) {\r\n const existing = ret[key];\r\n const incoming = toMerge[key];\r\n if (existing !== incoming &&\r\n !(isArray(existing) && existing.includes(incoming))) {\r\n ret[key] = existing\r\n ? [].concat(existing, incoming)\r\n : incoming;\r\n }\r\n }\r\n else if (key !== '') {\r\n ret[key] = toMerge[key];\r\n }\r\n }\r\n }\r\n return ret;\r\n}\r\nfunction invokeVNodeHook(hook, instance, vnode, prevVNode = null) {\r\n callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [\r\n vnode,\r\n prevVNode\r\n ]);\r\n}\n\n/**\r\n * Actual implementation\r\n */\r\nfunction renderList(source, renderItem, cache, index) {\r\n let ret;\r\n const cached = (cache && cache[index]);\r\n if (isArray(source) || isString(source)) {\r\n ret = new Array(source.length);\r\n for (let i = 0, l = source.length; i < l; i++) {\r\n ret[i] = renderItem(source[i], i, undefined, cached && cached[i]);\r\n }\r\n }\r\n else if (typeof source === 'number') {\r\n if ((process.env.NODE_ENV !== 'production') && !Number.isInteger(source)) {\r\n warn(`The v-for range expect an integer value but got ${source}.`);\r\n return [];\r\n }\r\n ret = new Array(source);\r\n for (let i = 0; i < source; i++) {\r\n ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]);\r\n }\r\n }\r\n else if (isObject(source)) {\r\n if (source[Symbol.iterator]) {\r\n ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i]));\r\n }\r\n else {\r\n const keys = Object.keys(source);\r\n ret = new Array(keys.length);\r\n for (let i = 0, l = keys.length; i < l; i++) {\r\n const key = keys[i];\r\n ret[i] = renderItem(source[key], key, i, cached && cached[i]);\r\n }\r\n }\r\n }\r\n else {\r\n ret = [];\r\n }\r\n if (cache) {\r\n cache[index] = ret;\r\n }\r\n return ret;\r\n}\n\n/**\r\n * Compiler runtime helper for creating dynamic slots object\r\n * @private\r\n */\r\nfunction createSlots(slots, dynamicSlots) {\r\n for (let i = 0; i < dynamicSlots.length; i++) {\r\n const slot = dynamicSlots[i];\r\n // array of dynamic slot generated by <template v-for=\"...\" #[...]>\r\n if (isArray(slot)) {\r\n for (let j = 0; j < slot.length; j++) {\r\n slots[slot[j].name] = slot[j].fn;\r\n }\r\n }\r\n else if (slot) {\r\n // conditional single slot generated by <template v-if=\"...\" #foo>\r\n slots[slot.name] = slot.fn;\r\n }\r\n }\r\n return slots;\r\n}\n\n/**\r\n * Compiler runtime helper for rendering `<slot/>`\r\n * @private\r\n */\r\nfunction renderSlot(slots, name, props = {}, \r\n// this is not a user-facing function, so the fallback is always generated by\r\n// the compiler and guaranteed to be a function returning an array\r\nfallback, noSlotted) {\r\n if (currentRenderingInstance.isCE) {\r\n return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback());\r\n }\r\n let slot = slots[name];\r\n if ((process.env.NODE_ENV !== 'production') && slot && slot.length > 1) {\r\n warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +\r\n `function. You need to mark this component with $dynamic-slots in the ` +\r\n `parent template.`);\r\n slot = () => [];\r\n }\r\n // a compiled slot disables block tracking by default to avoid manual\r\n // invocation interfering with template-based block tracking, but in\r\n // `renderSlot` we can be sure that it's template-based so we can force\r\n // enable it.\r\n if (slot && slot._c) {\r\n slot._d = false;\r\n }\r\n openBlock();\r\n const validSlotContent = slot && ensureValidVNode(slot(props));\r\n const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */\r\n ? 64 /* STABLE_FRAGMENT */\r\n : -2 /* BAIL */);\r\n if (!noSlotted && rendered.scopeId) {\r\n rendered.slotScopeIds = [rendered.scopeId + '-s'];\r\n }\r\n if (slot && slot._c) {\r\n slot._d = true;\r\n }\r\n return rendered;\r\n}\r\nfunction ensureValidVNode(vnodes) {\r\n return vnodes.some(child => {\r\n if (!isVNode(child))\r\n return true;\r\n if (child.type === Comment)\r\n return false;\r\n if (child.type === Fragment &&\r\n !ensureValidVNode(child.children))\r\n return false;\r\n return true;\r\n })\r\n ? vnodes\r\n : null;\r\n}\n\n/**\r\n * For prefixing keys in v-on=\"obj\" with \"on\"\r\n * @private\r\n */\r\nfunction toHandlers(obj) {\r\n const ret = {};\r\n if ((process.env.NODE_ENV !== 'production') && !isObject(obj)) {\r\n warn(`v-on with no argument expects an object value.`);\r\n return ret;\r\n }\r\n for (const key in obj) {\r\n ret[toHandlerKey(key)] = obj[key];\r\n }\r\n return ret;\r\n}\n\n/**\r\n * #2437 In Vue 3, functional components do not have a public instance proxy but\r\n * they exist in the internal parent chain. For code that relies on traversing\r\n * public $parent chains, skip functional ones and go to the parent instead.\r\n */\r\nconst getPublicInstance = (i) => {\r\n if (!i)\r\n return null;\r\n if (isStatefulComponent(i))\r\n return getExposeProxy(i) || i.proxy;\r\n return getPublicInstance(i.parent);\r\n};\r\nconst publicPropertiesMap = extend(Object.create(null), {\r\n $: i => i,\r\n $el: i => i.vnode.el,\r\n $data: i => i.data,\r\n $props: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.props) : i.props),\r\n $attrs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.attrs) : i.attrs),\r\n $slots: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.slots) : i.slots),\r\n $refs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.refs) : i.refs),\r\n $parent: i => getPublicInstance(i.parent),\r\n $root: i => getPublicInstance(i.root),\r\n $emit: i => i.emit,\r\n $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type),\r\n $forceUpdate: i => () => queueJob(i.update),\r\n $nextTick: i => nextTick.bind(i.proxy),\r\n $watch: i => (__VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP)\r\n});\r\nconst PublicInstanceProxyHandlers = {\r\n get({ _: instance }, key) {\r\n const { ctx, setupState, data, props, accessCache, type, appContext } = instance;\r\n // for internal formatters to know that this is a Vue instance\r\n if ((process.env.NODE_ENV !== 'production') && key === '__isVue') {\r\n return true;\r\n }\r\n // prioritize <script setup> bindings during dev.\r\n // this allows even properties that start with _ or $ to be used - so that\r\n // it aligns with the production behavior where the render fn is inlined and\r\n // indeed has access to all declared variables.\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n setupState !== EMPTY_OBJ &&\r\n setupState.__isScriptSetup &&\r\n hasOwn(setupState, key)) {\r\n return setupState[key];\r\n }\r\n // data / props / ctx\r\n // This getter gets called for every property access on the render context\r\n // during render and is a major hotspot. The most expensive part of this\r\n // is the multiple hasOwn() calls. It's much faster to do a simple property\r\n // access on a plain object, so we use an accessCache object (with null\r\n // prototype) to memoize what access type a key corresponds to.\r\n let normalizedProps;\r\n if (key[0] !== '$') {\r\n const n = accessCache[key];\r\n if (n !== undefined) {\r\n switch (n) {\r\n case 1 /* SETUP */:\r\n return setupState[key];\r\n case 2 /* DATA */:\r\n return data[key];\r\n case 4 /* CONTEXT */:\r\n return ctx[key];\r\n case 3 /* PROPS */:\r\n return props[key];\r\n // default: just fallthrough\r\n }\r\n }\r\n else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {\r\n accessCache[key] = 1 /* SETUP */;\r\n return setupState[key];\r\n }\r\n else if (data !== EMPTY_OBJ && hasOwn(data, key)) {\r\n accessCache[key] = 2 /* DATA */;\r\n return data[key];\r\n }\r\n else if (\r\n // only cache other properties when instance has declared (thus stable)\r\n // props\r\n (normalizedProps = instance.propsOptions[0]) &&\r\n hasOwn(normalizedProps, key)) {\r\n accessCache[key] = 3 /* PROPS */;\r\n return props[key];\r\n }\r\n else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\r\n accessCache[key] = 4 /* CONTEXT */;\r\n return ctx[key];\r\n }\r\n else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {\r\n accessCache[key] = 0 /* OTHER */;\r\n }\r\n }\r\n const publicGetter = publicPropertiesMap[key];\r\n let cssModule, globalProperties;\r\n // public $xxx properties\r\n if (publicGetter) {\r\n if (key === '$attrs') {\r\n track(instance, \"get\" /* GET */, key);\r\n (process.env.NODE_ENV !== 'production') && markAttrsAccessed();\r\n }\r\n return publicGetter(instance);\r\n }\r\n else if (\r\n // css module (injected by vue-loader)\r\n (cssModule = type.__cssModules) &&\r\n (cssModule = cssModule[key])) {\r\n return cssModule;\r\n }\r\n else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\r\n // user may set custom properties to `this` that start with `$`\r\n accessCache[key] = 4 /* CONTEXT */;\r\n return ctx[key];\r\n }\r\n else if (\r\n // global properties\r\n ((globalProperties = appContext.config.globalProperties),\r\n hasOwn(globalProperties, key))) {\r\n {\r\n return globalProperties[key];\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') &&\r\n currentRenderingInstance &&\r\n (!isString(key) ||\r\n // #1091 avoid internal isRef/isVNode checks on component instance leading\r\n // to infinite warning loop\r\n key.indexOf('__v') !== 0)) {\r\n if (data !== EMPTY_OBJ &&\r\n (key[0] === '$' || key[0] === '_') &&\r\n hasOwn(data, key)) {\r\n warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +\r\n `character (\"$\" or \"_\") and is not proxied on the render context.`);\r\n }\r\n else if (instance === currentRenderingInstance) {\r\n warn(`Property ${JSON.stringify(key)} was accessed during render ` +\r\n `but is not defined on instance.`);\r\n }\r\n }\r\n },\r\n set({ _: instance }, key, value) {\r\n const { data, setupState, ctx } = instance;\r\n if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {\r\n setupState[key] = value;\r\n }\r\n else if (data !== EMPTY_OBJ && hasOwn(data, key)) {\r\n data[key] = value;\r\n }\r\n else if (hasOwn(instance.props, key)) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to mutate prop \"${key}\". Props are readonly.`, instance);\r\n return false;\r\n }\r\n if (key[0] === '$' && key.slice(1) in instance) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to mutate public property \"${key}\". ` +\r\n `Properties starting with $ are reserved and readonly.`, instance);\r\n return false;\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && key in instance.appContext.config.globalProperties) {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n value\r\n });\r\n }\r\n else {\r\n ctx[key] = value;\r\n }\r\n }\r\n return true;\r\n },\r\n has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {\r\n let normalizedProps;\r\n return (!!accessCache[key] ||\r\n (data !== EMPTY_OBJ && hasOwn(data, key)) ||\r\n (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) ||\r\n ((normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key)) ||\r\n hasOwn(ctx, key) ||\r\n hasOwn(publicPropertiesMap, key) ||\r\n hasOwn(appContext.config.globalProperties, key));\r\n }\r\n};\r\nif ((process.env.NODE_ENV !== 'production') && !false) {\r\n PublicInstanceProxyHandlers.ownKeys = (target) => {\r\n warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +\r\n `The keys will be empty in production mode to avoid performance overhead.`);\r\n return Reflect.ownKeys(target);\r\n };\r\n}\r\nconst RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend({}, PublicInstanceProxyHandlers, {\r\n get(target, key) {\r\n // fast path for unscopables when using `with` block\r\n if (key === Symbol.unscopables) {\r\n return;\r\n }\r\n return PublicInstanceProxyHandlers.get(target, key, target);\r\n },\r\n has(_, key) {\r\n const has = key[0] !== '_' && !isGloballyWhitelisted(key);\r\n if ((process.env.NODE_ENV !== 'production') && !has && PublicInstanceProxyHandlers.has(_, key)) {\r\n warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);\r\n }\r\n return has;\r\n }\r\n});\r\n// dev only\r\n// In dev mode, the proxy target exposes the same properties as seen on `this`\r\n// for easier console inspection. In prod mode it will be an empty object so\r\n// these properties definitions can be skipped.\r\nfunction createDevRenderContext(instance) {\r\n const target = {};\r\n // expose internal instance for proxy handlers\r\n Object.defineProperty(target, `_`, {\r\n configurable: true,\r\n enumerable: false,\r\n get: () => instance\r\n });\r\n // expose public properties\r\n Object.keys(publicPropertiesMap).forEach(key => {\r\n Object.defineProperty(target, key, {\r\n configurable: true,\r\n enumerable: false,\r\n get: () => publicPropertiesMap[key](instance),\r\n // intercepted by the proxy so no need for implementation,\r\n // but needed to prevent set errors\r\n set: NOOP\r\n });\r\n });\r\n return target;\r\n}\r\n// dev only\r\nfunction exposePropsOnRenderContext(instance) {\r\n const { ctx, propsOptions: [propsOptions] } = instance;\r\n if (propsOptions) {\r\n Object.keys(propsOptions).forEach(key => {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => instance.props[key],\r\n set: NOOP\r\n });\r\n });\r\n }\r\n}\r\n// dev only\r\nfunction exposeSetupStateOnRenderContext(instance) {\r\n const { ctx, setupState } = instance;\r\n Object.keys(toRaw(setupState)).forEach(key => {\r\n if (!setupState.__isScriptSetup) {\r\n if (key[0] === '$' || key[0] === '_') {\r\n warn(`setup() return property ${JSON.stringify(key)} should not start with \"$\" or \"_\" ` +\r\n `which are reserved prefixes for Vue internals.`);\r\n return;\r\n }\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => setupState[key],\r\n set: NOOP\r\n });\r\n }\r\n });\r\n}\n\nconst emptyAppContext = createAppContext();\r\nlet uid$1 = 0;\r\nfunction createComponentInstance(vnode, parent, suspense) {\r\n const type = vnode.type;\r\n // inherit parent app context - or - if root, adopt from root vnode\r\n const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;\r\n const instance = {\r\n uid: uid$1++,\r\n vnode,\r\n type,\r\n parent,\r\n appContext,\r\n root: null,\r\n next: null,\r\n subTree: null,\r\n effect: null,\r\n update: null,\r\n scope: new EffectScope(true /* detached */),\r\n render: null,\r\n proxy: null,\r\n exposed: null,\r\n exposeProxy: null,\r\n withProxy: null,\r\n provides: parent ? parent.provides : Object.create(appContext.provides),\r\n accessCache: null,\r\n renderCache: [],\r\n // local resovled assets\r\n components: null,\r\n directives: null,\r\n // resolved props and emits options\r\n propsOptions: normalizePropsOptions(type, appContext),\r\n emitsOptions: normalizeEmitsOptions(type, appContext),\r\n // emit\r\n emit: null,\r\n emitted: null,\r\n // props default value\r\n propsDefaults: EMPTY_OBJ,\r\n // inheritAttrs\r\n inheritAttrs: type.inheritAttrs,\r\n // state\r\n ctx: EMPTY_OBJ,\r\n data: EMPTY_OBJ,\r\n props: EMPTY_OBJ,\r\n attrs: EMPTY_OBJ,\r\n slots: EMPTY_OBJ,\r\n refs: EMPTY_OBJ,\r\n setupState: EMPTY_OBJ,\r\n setupContext: null,\r\n // suspense related\r\n suspense,\r\n suspenseId: suspense ? suspense.pendingId : 0,\r\n asyncDep: null,\r\n asyncResolved: false,\r\n // lifecycle hooks\r\n // not using enums here because it results in computed properties\r\n isMounted: false,\r\n isUnmounted: false,\r\n isDeactivated: false,\r\n bc: null,\r\n c: null,\r\n bm: null,\r\n m: null,\r\n bu: null,\r\n u: null,\r\n um: null,\r\n bum: null,\r\n da: null,\r\n a: null,\r\n rtg: null,\r\n rtc: null,\r\n ec: null,\r\n sp: null\r\n };\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n instance.ctx = createDevRenderContext(instance);\r\n }\r\n else {\r\n instance.ctx = { _: instance };\r\n }\r\n instance.root = parent ? parent.root : instance;\r\n instance.emit = emit$1.bind(null, instance);\r\n // apply custom element special handling\r\n if (vnode.ce) {\r\n vnode.ce(instance);\r\n }\r\n return instance;\r\n}\r\nlet currentInstance = null;\r\nconst getCurrentInstance = () => currentInstance || currentRenderingInstance;\r\nconst setCurrentInstance = (instance) => {\r\n currentInstance = instance;\r\n instance.scope.on();\r\n};\r\nconst unsetCurrentInstance = () => {\r\n currentInstance && currentInstance.scope.off();\r\n currentInstance = null;\r\n};\r\nconst isBuiltInTag = /*#__PURE__*/ makeMap('slot,component');\r\nfunction validateComponentName(name, config) {\r\n const appIsNativeTag = config.isNativeTag || NO;\r\n if (isBuiltInTag(name) || appIsNativeTag(name)) {\r\n warn('Do not use built-in or reserved HTML elements as component id: ' + name);\r\n }\r\n}\r\nfunction isStatefulComponent(instance) {\r\n return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */;\r\n}\r\nlet isInSSRComponentSetup = false;\r\nfunction setupComponent(instance, isSSR = false) {\r\n isInSSRComponentSetup = isSSR;\r\n const { props, children } = instance.vnode;\r\n const isStateful = isStatefulComponent(instance);\r\n initProps(instance, props, isStateful, isSSR);\r\n initSlots(instance, children);\r\n const setupResult = isStateful\r\n ? setupStatefulComponent(instance, isSSR)\r\n : undefined;\r\n isInSSRComponentSetup = false;\r\n return setupResult;\r\n}\r\nfunction setupStatefulComponent(instance, isSSR) {\r\n const Component = instance.type;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (Component.name) {\r\n validateComponentName(Component.name, instance.appContext.config);\r\n }\r\n if (Component.components) {\r\n const names = Object.keys(Component.components);\r\n for (let i = 0; i < names.length; i++) {\r\n validateComponentName(names[i], instance.appContext.config);\r\n }\r\n }\r\n if (Component.directives) {\r\n const names = Object.keys(Component.directives);\r\n for (let i = 0; i < names.length; i++) {\r\n validateDirectiveName(names[i]);\r\n }\r\n }\r\n if (Component.compilerOptions && isRuntimeOnly()) {\r\n warn(`\"compilerOptions\" is only supported when using a build of Vue that ` +\r\n `includes the runtime compiler. Since you are using a runtime-only ` +\r\n `build, the options should be passed via your build tool config instead.`);\r\n }\r\n }\r\n // 0. create render proxy property access cache\r\n instance.accessCache = Object.create(null);\r\n // 1. create public instance / render proxy\r\n // also mark it raw so it's never observed\r\n instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n exposePropsOnRenderContext(instance);\r\n }\r\n // 2. call setup()\r\n const { setup } = Component;\r\n if (setup) {\r\n const setupContext = (instance.setupContext =\r\n setup.length > 1 ? createSetupContext(instance) : null);\r\n setCurrentInstance(instance);\r\n pauseTracking();\r\n const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [(process.env.NODE_ENV !== 'production') ? shallowReadonly(instance.props) : instance.props, setupContext]);\r\n resetTracking();\r\n unsetCurrentInstance();\r\n if (isPromise(setupResult)) {\r\n setupResult.then(unsetCurrentInstance, unsetCurrentInstance);\r\n if (isSSR) {\r\n // return the promise so server-renderer can wait on it\r\n return setupResult\r\n .then((resolvedResult) => {\r\n handleSetupResult(instance, resolvedResult, isSSR);\r\n })\r\n .catch(e => {\r\n handleError(e, instance, 0 /* SETUP_FUNCTION */);\r\n });\r\n }\r\n else {\r\n // async setup returned Promise.\r\n // bail here and wait for re-entry.\r\n instance.asyncDep = setupResult;\r\n }\r\n }\r\n else {\r\n handleSetupResult(instance, setupResult, isSSR);\r\n }\r\n }\r\n else {\r\n finishComponentSetup(instance, isSSR);\r\n }\r\n}\r\nfunction handleSetupResult(instance, setupResult, isSSR) {\r\n if (isFunction(setupResult)) {\r\n // setup returned an inline render function\r\n if (instance.type.__ssrInlineRender) {\r\n // when the function's name is `ssrRender` (compiled by SFC inline mode),\r\n // set it as ssrRender instead.\r\n instance.ssrRender = setupResult;\r\n }\r\n else {\r\n instance.render = setupResult;\r\n }\r\n }\r\n else if (isObject(setupResult)) {\r\n if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) {\r\n warn(`setup() should not return VNodes directly - ` +\r\n `return a render function instead.`);\r\n }\r\n // setup returned bindings.\r\n // assuming a render function compiled from template is present.\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n instance.devtoolsRawSetupState = setupResult;\r\n }\r\n instance.setupState = proxyRefs(setupResult);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n exposeSetupStateOnRenderContext(instance);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && setupResult !== undefined) {\r\n warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);\r\n }\r\n finishComponentSetup(instance, isSSR);\r\n}\r\nlet compile;\r\nlet installWithProxy;\r\n/**\r\n * For runtime-dom to register the compiler.\r\n * Note the exported method uses any to avoid d.ts relying on the compiler types.\r\n */\r\nfunction registerRuntimeCompiler(_compile) {\r\n compile = _compile;\r\n installWithProxy = i => {\r\n if (i.render._rc) {\r\n i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);\r\n }\r\n };\r\n}\r\n// dev only\r\nconst isRuntimeOnly = () => !compile;\r\nfunction finishComponentSetup(instance, isSSR, skipOptions) {\r\n const Component = instance.type;\r\n // template / render function normalization\r\n // could be already set when returned from setup()\r\n if (!instance.render) {\r\n // only do on-the-fly compile if not in SSR - SSR on-the-fly compliation\r\n // is done by server-renderer\r\n if (!isSSR && compile && !Component.render) {\r\n const template = Component.template;\r\n if (template) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `compile`);\r\n }\r\n const { isCustomElement, compilerOptions } = instance.appContext.config;\r\n const { delimiters, compilerOptions: componentCompilerOptions } = Component;\r\n const finalCompilerOptions = extend(extend({\r\n isCustomElement,\r\n delimiters\r\n }, compilerOptions), componentCompilerOptions);\r\n Component.render = compile(template, finalCompilerOptions);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `compile`);\r\n }\r\n }\r\n }\r\n instance.render = (Component.render || NOOP);\r\n // for runtime-compiled render functions using `with` blocks, the render\r\n // proxy used needs a different `has` handler which is more performant and\r\n // also only allows a whitelist of globals to fallthrough.\r\n if (installWithProxy) {\r\n installWithProxy(instance);\r\n }\r\n }\r\n // support for 2.x options\r\n if (__VUE_OPTIONS_API__ && !(false )) {\r\n setCurrentInstance(instance);\r\n pauseTracking();\r\n applyOptions(instance);\r\n resetTracking();\r\n unsetCurrentInstance();\r\n }\r\n // warn missing template/render\r\n // the runtime compilation of template in SSR is done by server-render\r\n if ((process.env.NODE_ENV !== 'production') && !Component.render && instance.render === NOOP && !isSSR) {\r\n /* istanbul ignore if */\r\n if (!compile && Component.template) {\r\n warn(`Component provided template option but ` +\r\n `runtime compilation is not supported in this build of Vue.` +\r\n (` Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".`\r\n ) /* should not happen */);\r\n }\r\n else {\r\n warn(`Component is missing template or render function.`);\r\n }\r\n }\r\n}\r\nfunction createAttrsProxy(instance) {\r\n return new Proxy(instance.attrs, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get(target, key) {\r\n markAttrsAccessed();\r\n track(instance, \"get\" /* GET */, '$attrs');\r\n return target[key];\r\n },\r\n set() {\r\n warn(`setupContext.attrs is readonly.`);\r\n return false;\r\n },\r\n deleteProperty() {\r\n warn(`setupContext.attrs is readonly.`);\r\n return false;\r\n }\r\n }\r\n : {\r\n get(target, key) {\r\n track(instance, \"get\" /* GET */, '$attrs');\r\n return target[key];\r\n }\r\n });\r\n}\r\nfunction createSetupContext(instance) {\r\n const expose = exposed => {\r\n if ((process.env.NODE_ENV !== 'production') && instance.exposed) {\r\n warn(`expose() should be called only once per setup().`);\r\n }\r\n instance.exposed = exposed || {};\r\n };\r\n let attrs;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n // We use getters in dev in case libs like test-utils overwrite instance\r\n // properties (overwrites should not be done in prod)\r\n return Object.freeze({\r\n get attrs() {\r\n return attrs || (attrs = createAttrsProxy(instance));\r\n },\r\n get slots() {\r\n return shallowReadonly(instance.slots);\r\n },\r\n get emit() {\r\n return (event, ...args) => instance.emit(event, ...args);\r\n },\r\n expose\r\n });\r\n }\r\n else {\r\n return {\r\n get attrs() {\r\n return attrs || (attrs = createAttrsProxy(instance));\r\n },\r\n slots: instance.slots,\r\n emit: instance.emit,\r\n expose\r\n };\r\n }\r\n}\r\nfunction getExposeProxy(instance) {\r\n if (instance.exposed) {\r\n return (instance.exposeProxy ||\r\n (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {\r\n get(target, key) {\r\n if (key in target) {\r\n return target[key];\r\n }\r\n else if (key in publicPropertiesMap) {\r\n return publicPropertiesMap[key](instance);\r\n }\r\n }\r\n })));\r\n }\r\n}\r\nconst classifyRE = /(?:^|[-_])(\\w)/g;\r\nconst classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');\r\nfunction getComponentName(Component) {\r\n return isFunction(Component)\r\n ? Component.displayName || Component.name\r\n : Component.name;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatComponentName(instance, Component, isRoot = false) {\r\n let name = getComponentName(Component);\r\n if (!name && Component.__file) {\r\n const match = Component.__file.match(/([^/\\\\]+)\\.\\w+$/);\r\n if (match) {\r\n name = match[1];\r\n }\r\n }\r\n if (!name && instance && instance.parent) {\r\n // try to infer the name based on reverse resolution\r\n const inferFromRegistry = (registry) => {\r\n for (const key in registry) {\r\n if (registry[key] === Component) {\r\n return key;\r\n }\r\n }\r\n };\r\n name =\r\n inferFromRegistry(instance.components ||\r\n instance.parent.type.components) || inferFromRegistry(instance.appContext.components);\r\n }\r\n return name ? classify(name) : isRoot ? `App` : `Anonymous`;\r\n}\r\nfunction isClassComponent(value) {\r\n return isFunction(value) && '__vccOpts' in value;\r\n}\n\nconst stack = [];\r\nfunction pushWarningContext(vnode) {\r\n stack.push(vnode);\r\n}\r\nfunction popWarningContext() {\r\n stack.pop();\r\n}\r\nfunction warn(msg, ...args) {\r\n // avoid props formatting or warn handler tracking deps that might be mutated\r\n // during patch, leading to infinite recursion.\r\n pauseTracking();\r\n const instance = stack.length ? stack[stack.length - 1].component : null;\r\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\r\n const trace = getComponentTrace();\r\n if (appWarnHandler) {\r\n callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [\r\n msg + args.join(''),\r\n instance && instance.proxy,\r\n trace\r\n .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)\r\n .join('\\n'),\r\n trace\r\n ]);\r\n }\r\n else {\r\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\r\n /* istanbul ignore if */\r\n if (trace.length &&\r\n // avoid spamming console during tests\r\n !false) {\r\n warnArgs.push(`\\n`, ...formatTrace(trace));\r\n }\r\n console.warn(...warnArgs);\r\n }\r\n resetTracking();\r\n}\r\nfunction getComponentTrace() {\r\n let currentVNode = stack[stack.length - 1];\r\n if (!currentVNode) {\r\n return [];\r\n }\r\n // we can't just use the stack because it will be incomplete during updates\r\n // that did not start from the root. Re-construct the parent chain using\r\n // instance parent pointers.\r\n const normalizedStack = [];\r\n while (currentVNode) {\r\n const last = normalizedStack[0];\r\n if (last && last.vnode === currentVNode) {\r\n last.recurseCount++;\r\n }\r\n else {\r\n normalizedStack.push({\r\n vnode: currentVNode,\r\n recurseCount: 0\r\n });\r\n }\r\n const parentInstance = currentVNode.component && currentVNode.component.parent;\r\n currentVNode = parentInstance && parentInstance.vnode;\r\n }\r\n return normalizedStack;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatTrace(trace) {\r\n const logs = [];\r\n trace.forEach((entry, i) => {\r\n logs.push(...(i === 0 ? [] : [`\\n`]), ...formatTraceEntry(entry));\r\n });\r\n return logs;\r\n}\r\nfunction formatTraceEntry({ vnode, recurseCount }) {\r\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\r\n const isRoot = vnode.component ? vnode.component.parent == null : false;\r\n const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;\r\n const close = `>` + postfix;\r\n return vnode.props\r\n ? [open, ...formatProps(vnode.props), close]\r\n : [open + close];\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProps(props) {\r\n const res = [];\r\n const keys = Object.keys(props);\r\n keys.slice(0, 3).forEach(key => {\r\n res.push(...formatProp(key, props[key]));\r\n });\r\n if (keys.length > 3) {\r\n res.push(` ...`);\r\n }\r\n return res;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProp(key, value, raw) {\r\n if (isString(value)) {\r\n value = JSON.stringify(value);\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (typeof value === 'number' ||\r\n typeof value === 'boolean' ||\r\n value == null) {\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (isRef(value)) {\r\n value = formatProp(key, toRaw(value.value), true);\r\n return raw ? value : [`${key}=Ref<`, value, `>`];\r\n }\r\n else if (isFunction(value)) {\r\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\r\n }\r\n else {\r\n value = toRaw(value);\r\n return raw ? value : [`${key}=`, value];\r\n }\r\n}\n\nconst ErrorTypeStrings = {\r\n [\"sp\" /* SERVER_PREFETCH */]: 'serverPrefetch hook',\r\n [\"bc\" /* BEFORE_CREATE */]: 'beforeCreate hook',\r\n [\"c\" /* CREATED */]: 'created hook',\r\n [\"bm\" /* BEFORE_MOUNT */]: 'beforeMount hook',\r\n [\"m\" /* MOUNTED */]: 'mounted hook',\r\n [\"bu\" /* BEFORE_UPDATE */]: 'beforeUpdate hook',\r\n [\"u\" /* UPDATED */]: 'updated',\r\n [\"bum\" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',\r\n [\"um\" /* UNMOUNTED */]: 'unmounted hook',\r\n [\"a\" /* ACTIVATED */]: 'activated hook',\r\n [\"da\" /* DEACTIVATED */]: 'deactivated hook',\r\n [\"ec\" /* ERROR_CAPTURED */]: 'errorCaptured hook',\r\n [\"rtc\" /* RENDER_TRACKED */]: 'renderTracked hook',\r\n [\"rtg\" /* RENDER_TRIGGERED */]: 'renderTriggered hook',\r\n [0 /* SETUP_FUNCTION */]: 'setup function',\r\n [1 /* RENDER_FUNCTION */]: 'render function',\r\n [2 /* WATCH_GETTER */]: 'watcher getter',\r\n [3 /* WATCH_CALLBACK */]: 'watcher callback',\r\n [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',\r\n [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',\r\n [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',\r\n [7 /* VNODE_HOOK */]: 'vnode hook',\r\n [8 /* DIRECTIVE_HOOK */]: 'directive hook',\r\n [9 /* TRANSITION_HOOK */]: 'transition hook',\r\n [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',\r\n [11 /* APP_WARN_HANDLER */]: 'app warnHandler',\r\n [12 /* FUNCTION_REF */]: 'ref function',\r\n [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',\r\n [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +\r\n 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next'\r\n};\r\nfunction callWithErrorHandling(fn, instance, type, args) {\r\n let res;\r\n try {\r\n res = args ? fn(...args) : fn();\r\n }\r\n catch (err) {\r\n handleError(err, instance, type);\r\n }\r\n return res;\r\n}\r\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\r\n if (isFunction(fn)) {\r\n const res = callWithErrorHandling(fn, instance, type, args);\r\n if (res && isPromise(res)) {\r\n res.catch(err => {\r\n handleError(err, instance, type);\r\n });\r\n }\r\n return res;\r\n }\r\n const values = [];\r\n for (let i = 0; i < fn.length; i++) {\r\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\r\n }\r\n return values;\r\n}\r\nfunction handleError(err, instance, type, throwInDev = true) {\r\n const contextVNode = instance ? instance.vnode : null;\r\n if (instance) {\r\n let cur = instance.parent;\r\n // the exposed instance is the render proxy to keep it consistent with 2.x\r\n const exposedInstance = instance.proxy;\r\n // in production the hook receives only the error code\r\n const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] : type;\r\n while (cur) {\r\n const errorCapturedHooks = cur.ec;\r\n if (errorCapturedHooks) {\r\n for (let i = 0; i < errorCapturedHooks.length; i++) {\r\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\r\n return;\r\n }\r\n }\r\n }\r\n cur = cur.parent;\r\n }\r\n // app-level handling\r\n const appErrorHandler = instance.appContext.config.errorHandler;\r\n if (appErrorHandler) {\r\n callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);\r\n return;\r\n }\r\n }\r\n logError(err, type, contextVNode, throwInDev);\r\n}\r\nfunction logError(err, type, contextVNode, throwInDev = true) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const info = ErrorTypeStrings[type];\r\n if (contextVNode) {\r\n pushWarningContext(contextVNode);\r\n }\r\n warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\r\n if (contextVNode) {\r\n popWarningContext();\r\n }\r\n // crash in dev by default so it's more noticeable\r\n if (throwInDev) {\r\n throw err;\r\n }\r\n else {\r\n console.error(err);\r\n }\r\n }\r\n else {\r\n // recover in prod to reduce the impact on end-user\r\n console.error(err);\r\n }\r\n}\n\nlet isFlushing = false;\r\nlet isFlushPending = false;\r\nconst queue = [];\r\nlet flushIndex = 0;\r\nconst pendingPreFlushCbs = [];\r\nlet activePreFlushCbs = null;\r\nlet preFlushIndex = 0;\r\nconst pendingPostFlushCbs = [];\r\nlet activePostFlushCbs = null;\r\nlet postFlushIndex = 0;\r\nconst resolvedPromise = Promise.resolve();\r\nlet currentFlushPromise = null;\r\nlet currentPreFlushParentJob = null;\r\nconst RECURSION_LIMIT = 100;\r\nfunction nextTick(fn) {\r\n const p = currentFlushPromise || resolvedPromise;\r\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\r\n}\r\n// #2768\r\n// Use binary-search to find a suitable position in the queue,\r\n// so that the queue maintains the increasing order of job's id,\r\n// which can prevent the job from being skipped and also can avoid repeated patching.\r\nfunction findInsertionIndex(id) {\r\n // the start index should be `flushIndex + 1`\r\n let start = flushIndex + 1;\r\n let end = queue.length;\r\n while (start < end) {\r\n const middle = (start + end) >>> 1;\r\n const middleJobId = getId(queue[middle]);\r\n middleJobId < id ? (start = middle + 1) : (end = middle);\r\n }\r\n return start;\r\n}\r\nfunction queueJob(job) {\r\n // the dedupe search uses the startIndex argument of Array.includes()\r\n // by default the search index includes the current job that is being run\r\n // so it cannot recursively trigger itself again.\r\n // if the job is a watch() callback, the search will start with a +1 index to\r\n // allow it recursively trigger itself - it is the user's responsibility to\r\n // ensure it doesn't end up in an infinite loop.\r\n if ((!queue.length ||\r\n !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&\r\n job !== currentPreFlushParentJob) {\r\n if (job.id == null) {\r\n queue.push(job);\r\n }\r\n else {\r\n queue.splice(findInsertionIndex(job.id), 0, job);\r\n }\r\n queueFlush();\r\n }\r\n}\r\nfunction queueFlush() {\r\n if (!isFlushing && !isFlushPending) {\r\n isFlushPending = true;\r\n currentFlushPromise = resolvedPromise.then(flushJobs);\r\n }\r\n}\r\nfunction invalidateJob(job) {\r\n const i = queue.indexOf(job);\r\n if (i > flushIndex) {\r\n queue.splice(i, 1);\r\n }\r\n}\r\nfunction queueCb(cb, activeQueue, pendingQueue, index) {\r\n if (!isArray(cb)) {\r\n if (!activeQueue ||\r\n !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {\r\n pendingQueue.push(cb);\r\n }\r\n }\r\n else {\r\n // if cb is an array, it is a component lifecycle hook which can only be\r\n // triggered by a job, which is already deduped in the main queue, so\r\n // we can skip duplicate check here to improve perf\r\n pendingQueue.push(...cb);\r\n }\r\n queueFlush();\r\n}\r\nfunction queuePreFlushCb(cb) {\r\n queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);\r\n}\r\nfunction queuePostFlushCb(cb) {\r\n queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);\r\n}\r\nfunction flushPreFlushCbs(seen, parentJob = null) {\r\n if (pendingPreFlushCbs.length) {\r\n currentPreFlushParentJob = parentJob;\r\n activePreFlushCbs = [...new Set(pendingPreFlushCbs)];\r\n pendingPreFlushCbs.length = 0;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {\r\n continue;\r\n }\r\n activePreFlushCbs[preFlushIndex]();\r\n }\r\n activePreFlushCbs = null;\r\n preFlushIndex = 0;\r\n currentPreFlushParentJob = null;\r\n // recursively flush until it drains\r\n flushPreFlushCbs(seen, parentJob);\r\n }\r\n}\r\nfunction flushPostFlushCbs(seen) {\r\n if (pendingPostFlushCbs.length) {\r\n const deduped = [...new Set(pendingPostFlushCbs)];\r\n pendingPostFlushCbs.length = 0;\r\n // #1947 already has active queue, nested flushPostFlushCbs call\r\n if (activePostFlushCbs) {\r\n activePostFlushCbs.push(...deduped);\r\n return;\r\n }\r\n activePostFlushCbs = deduped;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n activePostFlushCbs.sort((a, b) => getId(a) - getId(b));\r\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {\r\n continue;\r\n }\r\n activePostFlushCbs[postFlushIndex]();\r\n }\r\n activePostFlushCbs = null;\r\n postFlushIndex = 0;\r\n }\r\n}\r\nconst getId = (job) => job.id == null ? Infinity : job.id;\r\nfunction flushJobs(seen) {\r\n isFlushPending = false;\r\n isFlushing = true;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n flushPreFlushCbs(seen);\r\n // Sort queue before flush.\r\n // This ensures that:\r\n // 1. Components are updated from parent to child. (because parent is always\r\n // created before the child so its render effect will have smaller\r\n // priority number)\r\n // 2. If a component is unmounted during a parent component's update,\r\n // its update can be skipped.\r\n queue.sort((a, b) => getId(a) - getId(b));\r\n // conditional usage of checkRecursiveUpdate must be determined out of\r\n // try ... catch block since Rollup by default de-optimizes treeshaking\r\n // inside try-catch. This can leave all warning code unshaked. Although\r\n // they would get eventually shaken by a minifier like terser, some minifiers\r\n // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)\r\n const check = (process.env.NODE_ENV !== 'production')\r\n ? (job) => checkRecursiveUpdates(seen, job)\r\n : NOOP;\r\n try {\r\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\r\n const job = queue[flushIndex];\r\n if (job && job.active !== false) {\r\n if ((process.env.NODE_ENV !== 'production') && check(job)) {\r\n continue;\r\n }\r\n // console.log(`running:`, job.id)\r\n callWithErrorHandling(job, null, 14 /* SCHEDULER */);\r\n }\r\n }\r\n }\r\n finally {\r\n flushIndex = 0;\r\n queue.length = 0;\r\n flushPostFlushCbs(seen);\r\n isFlushing = false;\r\n currentFlushPromise = null;\r\n // some postFlushCb queued jobs!\r\n // keep flushing until it drains.\r\n if (queue.length ||\r\n pendingPreFlushCbs.length ||\r\n pendingPostFlushCbs.length) {\r\n flushJobs(seen);\r\n }\r\n }\r\n}\r\nfunction checkRecursiveUpdates(seen, fn) {\r\n if (!seen.has(fn)) {\r\n seen.set(fn, 1);\r\n }\r\n else {\r\n const count = seen.get(fn);\r\n if (count > RECURSION_LIMIT) {\r\n const instance = fn.ownerInstance;\r\n const componentName = instance && getComponentName(instance.type);\r\n warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +\r\n `This means you have a reactive effect that is mutating its own ` +\r\n `dependencies and thus recursively triggering itself. Possible sources ` +\r\n `include component template, render function, updated hook or ` +\r\n `watcher source function.`);\r\n return true;\r\n }\r\n else {\r\n seen.set(fn, count + 1);\r\n }\r\n }\r\n}\n\n// Simple effect.\r\nfunction watchEffect(effect, options) {\r\n return doWatch(effect, null, options);\r\n}\r\nfunction watchPostEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(options || {}, { flush: 'post' })\r\n : { flush: 'post' }));\r\n}\r\nfunction watchSyncEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(options || {}, { flush: 'sync' })\r\n : { flush: 'sync' }));\r\n}\r\n// initial value for watchers to trigger on undefined initial values\r\nconst INITIAL_WATCHER_VALUE = {};\r\n// implementation\r\nfunction watch(source, cb, options) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) {\r\n warn(`\\`watch(fn, options?)\\` signature has been moved to a separate API. ` +\r\n `Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only ` +\r\n `supports \\`watch(source, cb, options?) signature.`);\r\n }\r\n return doWatch(source, cb, options);\r\n}\r\nfunction doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {\r\n if ((process.env.NODE_ENV !== 'production') && !cb) {\r\n if (immediate !== undefined) {\r\n warn(`watch() \"immediate\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n if (deep !== undefined) {\r\n warn(`watch() \"deep\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n }\r\n const warnInvalidSource = (s) => {\r\n warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +\r\n `a reactive object, or an array of these types.`);\r\n };\r\n const instance = currentInstance;\r\n let getter;\r\n let forceTrigger = false;\r\n let isMultiSource = false;\r\n if (isRef(source)) {\r\n getter = () => source.value;\r\n forceTrigger = !!source._shallow;\r\n }\r\n else if (isReactive(source)) {\r\n getter = () => source;\r\n deep = true;\r\n }\r\n else if (isArray(source)) {\r\n isMultiSource = true;\r\n forceTrigger = source.some(isReactive);\r\n getter = () => source.map(s => {\r\n if (isRef(s)) {\r\n return s.value;\r\n }\r\n else if (isReactive(s)) {\r\n return traverse(s);\r\n }\r\n else if (isFunction(s)) {\r\n return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(s);\r\n }\r\n });\r\n }\r\n else if (isFunction(source)) {\r\n if (cb) {\r\n // getter with cb\r\n getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n // no cb -> simple effect\r\n getter = () => {\r\n if (instance && instance.isUnmounted) {\r\n return;\r\n }\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]);\r\n };\r\n }\r\n }\r\n else {\r\n getter = NOOP;\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(source);\r\n }\r\n if (cb && deep) {\r\n const baseGetter = getter;\r\n getter = () => traverse(baseGetter());\r\n }\r\n let cleanup;\r\n let onInvalidate = (fn) => {\r\n cleanup = effect.onStop = () => {\r\n callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);\r\n };\r\n };\r\n // in SSR there is no need to setup an actual effect, and it should be noop\r\n // unless it's eager\r\n if (isInSSRComponentSetup) {\r\n // we will also not call the invalidate callback (+ runner is not set up)\r\n onInvalidate = NOOP;\r\n if (!cb) {\r\n getter();\r\n }\r\n else if (immediate) {\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n getter(),\r\n isMultiSource ? [] : undefined,\r\n onInvalidate\r\n ]);\r\n }\r\n return NOOP;\r\n }\r\n let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\r\n const job = () => {\r\n if (!effect.active) {\r\n return;\r\n }\r\n if (cb) {\r\n // watch(source, cb)\r\n const newValue = effect.run();\r\n if (deep ||\r\n forceTrigger ||\r\n (isMultiSource\r\n ? newValue.some((v, i) => hasChanged(v, oldValue[i]))\r\n : hasChanged(newValue, oldValue)) ||\r\n (false )) {\r\n // cleanup before running cb again\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n newValue,\r\n // pass undefined as the old value when it's changed for the first time\r\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\r\n onInvalidate\r\n ]);\r\n oldValue = newValue;\r\n }\r\n }\r\n else {\r\n // watchEffect\r\n effect.run();\r\n }\r\n };\r\n // important: mark the job as a watcher callback so that scheduler knows\r\n // it is allowed to self-trigger (#1727)\r\n job.allowRecurse = !!cb;\r\n let scheduler;\r\n if (flush === 'sync') {\r\n scheduler = job; // the scheduler function gets called directly\r\n }\r\n else if (flush === 'post') {\r\n scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);\r\n }\r\n else {\r\n // default: 'pre'\r\n scheduler = () => {\r\n if (!instance || instance.isMounted) {\r\n queuePreFlushCb(job);\r\n }\r\n else {\r\n // with 'pre' option, the first call must happen before\r\n // the component is mounted so it is called synchronously.\r\n job();\r\n }\r\n };\r\n }\r\n const effect = new ReactiveEffect(getter, scheduler);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = onTrack;\r\n effect.onTrigger = onTrigger;\r\n }\r\n // initial run\r\n if (cb) {\r\n if (immediate) {\r\n job();\r\n }\r\n else {\r\n oldValue = effect.run();\r\n }\r\n }\r\n else if (flush === 'post') {\r\n queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);\r\n }\r\n else {\r\n effect.run();\r\n }\r\n return () => {\r\n effect.stop();\r\n if (instance && instance.scope) {\r\n remove(instance.scope.effects, effect);\r\n }\r\n };\r\n}\r\n// this.$watch\r\nfunction instanceWatch(source, value, options) {\r\n const publicThis = this.proxy;\r\n const getter = isString(source)\r\n ? source.includes('.')\r\n ? createPathGetter(publicThis, source)\r\n : () => publicThis[source]\r\n : source.bind(publicThis, publicThis);\r\n let cb;\r\n if (isFunction(value)) {\r\n cb = value;\r\n }\r\n else {\r\n cb = value.handler;\r\n options = value;\r\n }\r\n const cur = currentInstance;\r\n setCurrentInstance(this);\r\n const res = doWatch(getter, cb.bind(publicThis), options);\r\n if (cur) {\r\n setCurrentInstance(cur);\r\n }\r\n else {\r\n unsetCurrentInstance();\r\n }\r\n return res;\r\n}\r\nfunction createPathGetter(ctx, path) {\r\n const segments = path.split('.');\r\n return () => {\r\n let cur = ctx;\r\n for (let i = 0; i < segments.length && cur; i++) {\r\n cur = cur[segments[i]];\r\n }\r\n return cur;\r\n };\r\n}\r\nfunction traverse(value, seen) {\r\n if (!isObject(value) || value[\"__v_skip\" /* SKIP */]) {\r\n return value;\r\n }\r\n seen = seen || new Set();\r\n if (seen.has(value)) {\r\n return value;\r\n }\r\n seen.add(value);\r\n if (isRef(value)) {\r\n traverse(value.value, seen);\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n traverse(value[i], seen);\r\n }\r\n }\r\n else if (isSet(value) || isMap(value)) {\r\n value.forEach((v) => {\r\n traverse(v, seen);\r\n });\r\n }\r\n else if (isPlainObject(value)) {\r\n for (const key in value) {\r\n traverse(value[key], seen);\r\n }\r\n }\r\n return value;\r\n}\n\n// dev only\r\nconst warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +\r\n `<script setup> of a single file component. Its arguments should be ` +\r\n `compiled away and passing it at runtime has no effect.`);\r\n// implementation\r\nfunction defineProps() {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineProps`);\r\n }\r\n return null;\r\n}\r\n// implementation\r\nfunction defineEmits() {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineEmits`);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Vue `<script setup>` compiler macro for declaring a component's exposed\r\n * instance properties when it is accessed by a parent component via template\r\n * refs.\r\n *\r\n * `<script setup>` components are closed by default - i.e. varaibles inside\r\n * the `<script setup>` scope is not exposed to parent unless explicitly exposed\r\n * via `defineExpose`.\r\n *\r\n * This is only usable inside `<script setup>`, is compiled away in the\r\n * output and should **not** be actually called at runtime.\r\n */\r\nfunction defineExpose(exposed) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineExpose`);\r\n }\r\n}\r\n/**\r\n * Vue `<script setup>` compiler macro for providing props default values when\r\n * using type-based `defineProps` declaration.\r\n *\r\n * Example usage:\r\n * ```ts\r\n * withDefaults(defineProps<{\r\n * size?: number\r\n * labels?: string[]\r\n * }>(), {\r\n * size: 3,\r\n * labels: () => ['default label']\r\n * })\r\n * ```\r\n *\r\n * This is only usable inside `<script setup>`, is compiled away in the output\r\n * and should **not** be actually called at runtime.\r\n */\r\nfunction withDefaults(props, defaults) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`withDefaults`);\r\n }\r\n return null;\r\n}\r\nfunction useSlots() {\r\n return getContext().slots;\r\n}\r\nfunction useAttrs() {\r\n return getContext().attrs;\r\n}\r\nfunction getContext() {\r\n const i = getCurrentInstance();\r\n if ((process.env.NODE_ENV !== 'production') && !i) {\r\n warn(`useContext() called without active instance.`);\r\n }\r\n return i.setupContext || (i.setupContext = createSetupContext(i));\r\n}\r\n/**\r\n * Runtime helper for merging default declarations. Imported by compiled code\r\n * only.\r\n * @internal\r\n */\r\nfunction mergeDefaults(raw, defaults) {\r\n const props = isArray(raw)\r\n ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {})\r\n : raw;\r\n for (const key in defaults) {\r\n const opt = props[key];\r\n if (opt) {\r\n if (isArray(opt) || isFunction(opt)) {\r\n props[key] = { type: opt, default: defaults[key] };\r\n }\r\n else {\r\n opt.default = defaults[key];\r\n }\r\n }\r\n else if (opt === null) {\r\n props[key] = { default: defaults[key] };\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`props default key \"${key}\" has no corresponding declaration.`);\r\n }\r\n }\r\n return props;\r\n}\r\n/**\r\n * Used to create a proxy for the rest element when destructuring props with\r\n * defineProps().\r\n * @internal\r\n */\r\nfunction createPropsRestProxy(props, excludedKeys) {\r\n const ret = {};\r\n for (const key in props) {\r\n if (!excludedKeys.includes(key)) {\r\n Object.defineProperty(ret, key, {\r\n enumerable: true,\r\n get: () => props[key]\r\n });\r\n }\r\n }\r\n return ret;\r\n}\r\n/**\r\n * `<script setup>` helper for persisting the current instance context over\r\n * async/await flows.\r\n *\r\n * `@vue/compiler-sfc` converts the following:\r\n *\r\n * ```ts\r\n * const x = await foo()\r\n * ```\r\n *\r\n * into:\r\n *\r\n * ```ts\r\n * let __temp, __restore\r\n * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp)\r\n * ```\r\n * @internal\r\n */\r\nfunction withAsyncContext(getAwaitable) {\r\n const ctx = getCurrentInstance();\r\n if ((process.env.NODE_ENV !== 'production') && !ctx) {\r\n warn(`withAsyncContext called without active current instance. ` +\r\n `This is likely a bug.`);\r\n }\r\n let awaitable = getAwaitable();\r\n unsetCurrentInstance();\r\n if (isPromise(awaitable)) {\r\n awaitable = awaitable.catch(e => {\r\n setCurrentInstance(ctx);\r\n throw e;\r\n });\r\n }\r\n return [awaitable, () => setCurrentInstance(ctx)];\r\n}\n\n// Actual implementation\r\nfunction h(type, propsOrChildren, children) {\r\n const l = arguments.length;\r\n if (l === 2) {\r\n if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {\r\n // single vnode without props\r\n if (isVNode(propsOrChildren)) {\r\n return createVNode(type, null, [propsOrChildren]);\r\n }\r\n // props without children\r\n return createVNode(type, propsOrChildren);\r\n }\r\n else {\r\n // omit props\r\n return createVNode(type, null, propsOrChildren);\r\n }\r\n }\r\n else {\r\n if (l > 3) {\r\n children = Array.prototype.slice.call(arguments, 2);\r\n }\r\n else if (l === 3 && isVNode(children)) {\r\n children = [children];\r\n }\r\n return createVNode(type, propsOrChildren, children);\r\n }\r\n}\n\nconst ssrContextKey = Symbol((process.env.NODE_ENV !== 'production') ? `ssrContext` : ``);\r\nconst useSSRContext = () => {\r\n {\r\n const ctx = inject(ssrContextKey);\r\n if (!ctx) {\r\n warn(`Server rendering context not provided. Make sure to only call ` +\r\n `useSSRContext() conditionally in the server build.`);\r\n }\r\n return ctx;\r\n }\r\n};\n\nfunction initCustomFormatter() {\r\n /* eslint-disable no-restricted-globals */\r\n if (!(process.env.NODE_ENV !== 'production') || typeof window === 'undefined') {\r\n return;\r\n }\r\n const vueStyle = { style: 'color:#3ba776' };\r\n const numberStyle = { style: 'color:#0b1bc9' };\r\n const stringStyle = { style: 'color:#b62e24' };\r\n const keywordStyle = { style: 'color:#9d288c' };\r\n // custom formatter for Chrome\r\n // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html\r\n const formatter = {\r\n header(obj) {\r\n // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup\r\n if (!isObject(obj)) {\r\n return null;\r\n }\r\n if (obj.__isVue) {\r\n return ['div', vueStyle, `VueInstance`];\r\n }\r\n else if (isRef(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, genRefFlag(obj)],\r\n '<',\r\n formatValue(obj.value),\r\n `>`\r\n ];\r\n }\r\n else if (isReactive(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, 'Reactive'],\r\n '<',\r\n formatValue(obj),\r\n `>${isReadonly(obj) ? ` (readonly)` : ``}`\r\n ];\r\n }\r\n else if (isReadonly(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, 'Readonly'],\r\n '<',\r\n formatValue(obj),\r\n '>'\r\n ];\r\n }\r\n return null;\r\n },\r\n hasBody(obj) {\r\n return obj && obj.__isVue;\r\n },\r\n body(obj) {\r\n if (obj && obj.__isVue) {\r\n return [\r\n 'div',\r\n {},\r\n ...formatInstance(obj.$)\r\n ];\r\n }\r\n }\r\n };\r\n function formatInstance(instance) {\r\n const blocks = [];\r\n if (instance.type.props && instance.props) {\r\n blocks.push(createInstanceBlock('props', toRaw(instance.props)));\r\n }\r\n if (instance.setupState !== EMPTY_OBJ) {\r\n blocks.push(createInstanceBlock('setup', instance.setupState));\r\n }\r\n if (instance.data !== EMPTY_OBJ) {\r\n blocks.push(createInstanceBlock('data', toRaw(instance.data)));\r\n }\r\n const computed = extractKeys(instance, 'computed');\r\n if (computed) {\r\n blocks.push(createInstanceBlock('computed', computed));\r\n }\r\n const injected = extractKeys(instance, 'inject');\r\n if (injected) {\r\n blocks.push(createInstanceBlock('injected', injected));\r\n }\r\n blocks.push([\r\n 'div',\r\n {},\r\n [\r\n 'span',\r\n {\r\n style: keywordStyle.style + ';opacity:0.66'\r\n },\r\n '$ (internal): '\r\n ],\r\n ['object', { object: instance }]\r\n ]);\r\n return blocks;\r\n }\r\n function createInstanceBlock(type, target) {\r\n target = extend({}, target);\r\n if (!Object.keys(target).length) {\r\n return ['span', {}];\r\n }\r\n return [\r\n 'div',\r\n { style: 'line-height:1.25em;margin-bottom:0.6em' },\r\n [\r\n 'div',\r\n {\r\n style: 'color:#476582'\r\n },\r\n type\r\n ],\r\n [\r\n 'div',\r\n {\r\n style: 'padding-left:1.25em'\r\n },\r\n ...Object.keys(target).map(key => {\r\n return [\r\n 'div',\r\n {},\r\n ['span', keywordStyle, key + ': '],\r\n formatValue(target[key], false)\r\n ];\r\n })\r\n ]\r\n ];\r\n }\r\n function formatValue(v, asRaw = true) {\r\n if (typeof v === 'number') {\r\n return ['span', numberStyle, v];\r\n }\r\n else if (typeof v === 'string') {\r\n return ['span', stringStyle, JSON.stringify(v)];\r\n }\r\n else if (typeof v === 'boolean') {\r\n return ['span', keywordStyle, v];\r\n }\r\n else if (isObject(v)) {\r\n return ['object', { object: asRaw ? toRaw(v) : v }];\r\n }\r\n else {\r\n return ['span', stringStyle, String(v)];\r\n }\r\n }\r\n function extractKeys(instance, type) {\r\n const Comp = instance.type;\r\n if (isFunction(Comp)) {\r\n return;\r\n }\r\n const extracted = {};\r\n for (const key in instance.ctx) {\r\n if (isKeyOfType(Comp, key, type)) {\r\n extracted[key] = instance.ctx[key];\r\n }\r\n }\r\n return extracted;\r\n }\r\n function isKeyOfType(Comp, key, type) {\r\n const opts = Comp[type];\r\n if ((isArray(opts) && opts.includes(key)) ||\r\n (isObject(opts) && key in opts)) {\r\n return true;\r\n }\r\n if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {\r\n return true;\r\n }\r\n if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) {\r\n return true;\r\n }\r\n }\r\n function genRefFlag(v) {\r\n if (v._shallow) {\r\n return `ShallowRef`;\r\n }\r\n if (v.effect) {\r\n return `ComputedRef`;\r\n }\r\n return `Ref`;\r\n }\r\n if (window.devtoolsFormatters) {\r\n window.devtoolsFormatters.push(formatter);\r\n }\r\n else {\r\n window.devtoolsFormatters = [formatter];\r\n }\r\n}\n\nfunction withMemo(memo, render, cache, index) {\r\n const cached = cache[index];\r\n if (cached && isMemoSame(cached, memo)) {\r\n return cached;\r\n }\r\n const ret = render();\r\n // shallow clone\r\n ret.memo = memo.slice();\r\n return (cache[index] = ret);\r\n}\r\nfunction isMemoSame(cached, memo) {\r\n const prev = cached.memo;\r\n if (prev.length != memo.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < prev.length; i++) {\r\n if (prev[i] !== memo[i]) {\r\n return false;\r\n }\r\n }\r\n // make sure to let parent block track it when returning cached\r\n if (isBlockTreeEnabled > 0 && currentBlock) {\r\n currentBlock.push(cached);\r\n }\r\n return true;\r\n}\n\n// Core API ------------------------------------------------------------------\r\nconst version = \"3.2.26\";\r\nconst _ssrUtils = {\r\n createComponentInstance,\r\n setupComponent,\r\n renderComponentRoot,\r\n setCurrentRenderingInstance,\r\n isVNode,\r\n normalizeVNode\r\n};\r\n/**\r\n * SSR utils for \\@vue/server-renderer. Only exposed in cjs builds.\r\n * @internal\r\n */\r\nconst ssrUtils = (_ssrUtils );\r\n/**\r\n * @internal only exposed in compat builds\r\n */\r\nconst resolveFilter = null;\r\n/**\r\n * @internal only exposed in compat builds.\r\n */\r\nconst compatUtils = (null);\n\nexport { BaseTransition, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, callWithAsyncErrorHandling, callWithErrorHandling, cloneVNode, compatUtils, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineProps, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, queuePostFlushCb, registerRuntimeCompiler, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, ssrContextKey, ssrUtils, toHandlers, transformVNodeArgs, useAttrs, useSSRContext, useSlots, useTransitionState, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };\n","import { camelize, warn, callWithAsyncErrorHandling, defineComponent, nextTick, createVNode, getCurrentInstance, watchPostEffect, onMounted, onUnmounted, Fragment, Static, h, BaseTransition, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, createRenderer, isRuntimeOnly, createHydrationRenderer } from '@vue/runtime-core';\nexport * from '@vue/runtime-core';\nimport { isString, isArray, hyphenate, capitalize, isSpecialBooleanAttr, includeBooleanAttr, isOn, isModelListener, isFunction, toNumber, camelize as camelize$1, extend, EMPTY_OBJ, isObject, invokeArrayFns, looseIndexOf, isSet, looseEqual, isHTMLTag, isSVGTag } from '@vue/shared';\n\nconst svgNS = 'http://www.w3.org/2000/svg';\r\nconst doc = (typeof document !== 'undefined' ? document : null);\r\nconst staticTemplateCache = new Map();\r\nconst nodeOps = {\r\n insert: (child, parent, anchor) => {\r\n parent.insertBefore(child, anchor || null);\r\n },\r\n remove: child => {\r\n const parent = child.parentNode;\r\n if (parent) {\r\n parent.removeChild(child);\r\n }\r\n },\r\n createElement: (tag, isSVG, is, props) => {\r\n const el = isSVG\r\n ? doc.createElementNS(svgNS, tag)\r\n : doc.createElement(tag, is ? { is } : undefined);\r\n if (tag === 'select' && props && props.multiple != null) {\r\n el.setAttribute('multiple', props.multiple);\r\n }\r\n return el;\r\n },\r\n createText: text => doc.createTextNode(text),\r\n createComment: text => doc.createComment(text),\r\n setText: (node, text) => {\r\n node.nodeValue = text;\r\n },\r\n setElementText: (el, text) => {\r\n el.textContent = text;\r\n },\r\n parentNode: node => node.parentNode,\r\n nextSibling: node => node.nextSibling,\r\n querySelector: selector => doc.querySelector(selector),\r\n setScopeId(el, id) {\r\n el.setAttribute(id, '');\r\n },\r\n cloneNode(el) {\r\n const cloned = el.cloneNode(true);\r\n // #3072\r\n // - in `patchDOMProp`, we store the actual value in the `el._value` property.\r\n // - normally, elements using `:value` bindings will not be hoisted, but if\r\n // the bound value is a constant, e.g. `:value=\"true\"` - they do get\r\n // hoisted.\r\n // - in production, hoisted nodes are cloned when subsequent inserts, but\r\n // cloneNode() does not copy the custom property we attached.\r\n // - This may need to account for other custom DOM properties we attach to\r\n // elements in addition to `_value` in the future.\r\n if (`_value` in el) {\r\n cloned._value = el._value;\r\n }\r\n return cloned;\r\n },\r\n // __UNSAFE__\r\n // Reason: innerHTML.\r\n // Static content here can only come from compiled templates.\r\n // As long as the user only uses trusted templates, this is safe.\r\n insertStaticContent(content, parent, anchor, isSVG) {\r\n // <parent> before | first ... last | anchor </parent>\r\n const before = anchor ? anchor.previousSibling : parent.lastChild;\r\n let template = staticTemplateCache.get(content);\r\n if (!template) {\r\n const t = doc.createElement('template');\r\n t.innerHTML = isSVG ? `<svg>${content}</svg>` : content;\r\n template = t.content;\r\n if (isSVG) {\r\n // remove outer svg wrapper\r\n const wrapper = template.firstChild;\r\n while (wrapper.firstChild) {\r\n template.appendChild(wrapper.firstChild);\r\n }\r\n template.removeChild(wrapper);\r\n }\r\n staticTemplateCache.set(content, template);\r\n }\r\n parent.insertBefore(template.cloneNode(true), anchor);\r\n return [\r\n // first\r\n before ? before.nextSibling : parent.firstChild,\r\n // last\r\n anchor ? anchor.previousSibling : parent.lastChild\r\n ];\r\n }\r\n};\n\n// compiler should normalize class + :class bindings on the same element\r\n// into a single binding ['staticClass', dynamic]\r\nfunction patchClass(el, value, isSVG) {\r\n // directly setting className should be faster than setAttribute in theory\r\n // if this is an element during a transition, take the temporary transition\r\n // classes into account.\r\n const transitionClasses = el._vtc;\r\n if (transitionClasses) {\r\n value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' ');\r\n }\r\n if (value == null) {\r\n el.removeAttribute('class');\r\n }\r\n else if (isSVG) {\r\n el.setAttribute('class', value);\r\n }\r\n else {\r\n el.className = value;\r\n }\r\n}\n\nfunction patchStyle(el, prev, next) {\r\n const style = el.style;\r\n const isCssString = isString(next);\r\n if (next && !isCssString) {\r\n for (const key in next) {\r\n setStyle(style, key, next[key]);\r\n }\r\n if (prev && !isString(prev)) {\r\n for (const key in prev) {\r\n if (next[key] == null) {\r\n setStyle(style, key, '');\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n const currentDisplay = style.display;\r\n if (isCssString) {\r\n if (prev !== next) {\r\n style.cssText = next;\r\n }\r\n }\r\n else if (prev) {\r\n el.removeAttribute('style');\r\n }\r\n // indicates that the `display` of the element is controlled by `v-show`,\r\n // so we always keep the current `display` value regardless of the `style`\r\n // value, thus handing over control to `v-show`.\r\n if ('_vod' in el) {\r\n style.display = currentDisplay;\r\n }\r\n }\r\n}\r\nconst importantRE = /\\s*!important$/;\r\nfunction setStyle(style, name, val) {\r\n if (isArray(val)) {\r\n val.forEach(v => setStyle(style, name, v));\r\n }\r\n else {\r\n if (name.startsWith('--')) {\r\n // custom property definition\r\n style.setProperty(name, val);\r\n }\r\n else {\r\n const prefixed = autoPrefix(style, name);\r\n if (importantRE.test(val)) {\r\n // !important\r\n style.setProperty(hyphenate(prefixed), val.replace(importantRE, ''), 'important');\r\n }\r\n else {\r\n style[prefixed] = val;\r\n }\r\n }\r\n }\r\n}\r\nconst prefixes = ['Webkit', 'Moz', 'ms'];\r\nconst prefixCache = {};\r\nfunction autoPrefix(style, rawName) {\r\n const cached = prefixCache[rawName];\r\n if (cached) {\r\n return cached;\r\n }\r\n let name = camelize(rawName);\r\n if (name !== 'filter' && name in style) {\r\n return (prefixCache[rawName] = name);\r\n }\r\n name = capitalize(name);\r\n for (let i = 0; i < prefixes.length; i++) {\r\n const prefixed = prefixes[i] + name;\r\n if (prefixed in style) {\r\n return (prefixCache[rawName] = prefixed);\r\n }\r\n }\r\n return rawName;\r\n}\n\nconst xlinkNS = 'http://www.w3.org/1999/xlink';\r\nfunction patchAttr(el, key, value, isSVG, instance) {\r\n if (isSVG && key.startsWith('xlink:')) {\r\n if (value == null) {\r\n el.removeAttributeNS(xlinkNS, key.slice(6, key.length));\r\n }\r\n else {\r\n el.setAttributeNS(xlinkNS, key, value);\r\n }\r\n }\r\n else {\r\n // note we are only checking boolean attributes that don't have a\r\n // corresponding dom prop of the same name here.\r\n const isBoolean = isSpecialBooleanAttr(key);\r\n if (value == null || (isBoolean && !includeBooleanAttr(value))) {\r\n el.removeAttribute(key);\r\n }\r\n else {\r\n el.setAttribute(key, isBoolean ? '' : value);\r\n }\r\n }\r\n}\n\n// __UNSAFE__\r\n// functions. The user is responsible for using them with only trusted content.\r\nfunction patchDOMProp(el, key, value, \r\n// the following args are passed only due to potential innerHTML/textContent\r\n// overriding existing VNodes, in which case the old tree must be properly\r\n// unmounted.\r\nprevChildren, parentComponent, parentSuspense, unmountChildren) {\r\n if (key === 'innerHTML' || key === 'textContent') {\r\n if (prevChildren) {\r\n unmountChildren(prevChildren, parentComponent, parentSuspense);\r\n }\r\n el[key] = value == null ? '' : value;\r\n return;\r\n }\r\n if (key === 'value' &&\r\n el.tagName !== 'PROGRESS' &&\r\n // custom elements may use _value internally\r\n !el.tagName.includes('-')) {\r\n // store value as _value as well since\r\n // non-string values will be stringified.\r\n el._value = value;\r\n const newValue = value == null ? '' : value;\r\n if (el.value !== newValue ||\r\n // #4956: always set for OPTION elements because its value falls back to\r\n // textContent if no value attribute is present. And setting .value for\r\n // OPTION has no side effect\r\n el.tagName === 'OPTION') {\r\n el.value = newValue;\r\n }\r\n if (value == null) {\r\n el.removeAttribute(key);\r\n }\r\n return;\r\n }\r\n if (value === '' || value == null) {\r\n const type = typeof el[key];\r\n if (type === 'boolean') {\r\n // e.g. <select multiple> compiles to { multiple: '' }\r\n el[key] = includeBooleanAttr(value);\r\n return;\r\n }\r\n else if (value == null && type === 'string') {\r\n // e.g. <div :id=\"null\">\r\n el[key] = '';\r\n el.removeAttribute(key);\r\n return;\r\n }\r\n else if (type === 'number') {\r\n // e.g. <img :width=\"null\">\r\n // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error\r\n try {\r\n el[key] = 0;\r\n }\r\n catch (_a) { }\r\n el.removeAttribute(key);\r\n return;\r\n }\r\n }\r\n // some properties perform value validation and throw\r\n try {\r\n el[key] = value;\r\n }\r\n catch (e) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Failed setting prop \"${key}\" on <${el.tagName.toLowerCase()}>: ` +\r\n `value ${value} is invalid.`, e);\r\n }\r\n }\r\n}\n\n// Async edge case fix requires storing an event listener's attach timestamp.\r\nlet _getNow = Date.now;\r\nlet skipTimestampCheck = false;\r\nif (typeof window !== 'undefined') {\r\n // Determine what event timestamp the browser is using. Annoyingly, the\r\n // timestamp can either be hi-res (relative to page load) or low-res\r\n // (relative to UNIX epoch), so in order to compare time we have to use the\r\n // same timestamp type when saving the flush timestamp.\r\n if (_getNow() > document.createEvent('Event').timeStamp) {\r\n // if the low-res timestamp which is bigger than the event timestamp\r\n // (which is evaluated AFTER) it means the event is using a hi-res timestamp,\r\n // and we need to use the hi-res version for event listeners as well.\r\n _getNow = () => performance.now();\r\n }\r\n // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation\r\n // and does not fire microtasks in between event propagation, so safe to exclude.\r\n const ffMatch = navigator.userAgent.match(/firefox\\/(\\d+)/i);\r\n skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53);\r\n}\r\n// To avoid the overhead of repeatedly calling performance.now(), we cache\r\n// and use the same timestamp for all event listeners attached in the same tick.\r\nlet cachedNow = 0;\r\nconst p = Promise.resolve();\r\nconst reset = () => {\r\n cachedNow = 0;\r\n};\r\nconst getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow()));\r\nfunction addEventListener(el, event, handler, options) {\r\n el.addEventListener(event, handler, options);\r\n}\r\nfunction removeEventListener(el, event, handler, options) {\r\n el.removeEventListener(event, handler, options);\r\n}\r\nfunction patchEvent(el, rawName, prevValue, nextValue, instance = null) {\r\n // vei = vue event invokers\r\n const invokers = el._vei || (el._vei = {});\r\n const existingInvoker = invokers[rawName];\r\n if (nextValue && existingInvoker) {\r\n // patch\r\n existingInvoker.value = nextValue;\r\n }\r\n else {\r\n const [name, options] = parseName(rawName);\r\n if (nextValue) {\r\n // add\r\n const invoker = (invokers[rawName] = createInvoker(nextValue, instance));\r\n addEventListener(el, name, invoker, options);\r\n }\r\n else if (existingInvoker) {\r\n // remove\r\n removeEventListener(el, name, existingInvoker, options);\r\n invokers[rawName] = undefined;\r\n }\r\n }\r\n}\r\nconst optionsModifierRE = /(?:Once|Passive|Capture)$/;\r\nfunction parseName(name) {\r\n let options;\r\n if (optionsModifierRE.test(name)) {\r\n options = {};\r\n let m;\r\n while ((m = name.match(optionsModifierRE))) {\r\n name = name.slice(0, name.length - m[0].length);\r\n options[m[0].toLowerCase()] = true;\r\n }\r\n }\r\n return [hyphenate(name.slice(2)), options];\r\n}\r\nfunction createInvoker(initialValue, instance) {\r\n const invoker = (e) => {\r\n // async edge case #6566: inner click event triggers patch, event handler\r\n // attached to outer element during patch, and triggered again. This\r\n // happens because browsers fire microtask ticks between event propagation.\r\n // the solution is simple: we save the timestamp when a handler is attached,\r\n // and the handler would only fire if the event passed to it was fired\r\n // AFTER it was attached.\r\n const timeStamp = e.timeStamp || _getNow();\r\n if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {\r\n callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);\r\n }\r\n };\r\n invoker.value = initialValue;\r\n invoker.attached = getNow();\r\n return invoker;\r\n}\r\nfunction patchStopImmediatePropagation(e, value) {\r\n if (isArray(value)) {\r\n const originalStop = e.stopImmediatePropagation;\r\n e.stopImmediatePropagation = () => {\r\n originalStop.call(e);\r\n e._stopped = true;\r\n };\r\n return value.map(fn => (e) => !e._stopped && fn(e));\r\n }\r\n else {\r\n return value;\r\n }\r\n}\n\nconst nativeOnRE = /^on[a-z]/;\r\nconst patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {\r\n if (key === 'class') {\r\n patchClass(el, nextValue, isSVG);\r\n }\r\n else if (key === 'style') {\r\n patchStyle(el, prevValue, nextValue);\r\n }\r\n else if (isOn(key)) {\r\n // ignore v-model listeners\r\n if (!isModelListener(key)) {\r\n patchEvent(el, key, prevValue, nextValue, parentComponent);\r\n }\r\n }\r\n else if (key[0] === '.'\r\n ? ((key = key.slice(1)), true)\r\n : key[0] === '^'\r\n ? ((key = key.slice(1)), false)\r\n : shouldSetAsProp(el, key, nextValue, isSVG)) {\r\n patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n else {\r\n // special case for <input v-model type=\"checkbox\"> with\r\n // :true-value & :false-value\r\n // store value as dom properties since non-string values will be\r\n // stringified.\r\n if (key === 'true-value') {\r\n el._trueValue = nextValue;\r\n }\r\n else if (key === 'false-value') {\r\n el._falseValue = nextValue;\r\n }\r\n patchAttr(el, key, nextValue, isSVG);\r\n }\r\n};\r\nfunction shouldSetAsProp(el, key, value, isSVG) {\r\n if (isSVG) {\r\n // most keys must be set as attribute on svg elements to work\r\n // ...except innerHTML & textContent\r\n if (key === 'innerHTML' || key === 'textContent') {\r\n return true;\r\n }\r\n // or native onclick with function values\r\n if (key in el && nativeOnRE.test(key) && isFunction(value)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n // spellcheck and draggable are numerated attrs, however their\r\n // corresponding DOM properties are actually booleans - this leads to\r\n // setting it with a string \"false\" value leading it to be coerced to\r\n // `true`, so we need to always treat them as attributes.\r\n // Note that `contentEditable` doesn't have this problem: its DOM\r\n // property is also enumerated string values.\r\n if (key === 'spellcheck' || key === 'draggable') {\r\n return false;\r\n }\r\n // #1787, #2840 form property on form elements is readonly and must be set as\r\n // attribute.\r\n if (key === 'form') {\r\n return false;\r\n }\r\n // #1526 <input list> must be set as attribute\r\n if (key === 'list' && el.tagName === 'INPUT') {\r\n return false;\r\n }\r\n // #2766 <textarea type> must be set as attribute\r\n if (key === 'type' && el.tagName === 'TEXTAREA') {\r\n return false;\r\n }\r\n // native onclick with string value, must be set as attribute\r\n if (nativeOnRE.test(key) && isString(value)) {\r\n return false;\r\n }\r\n return key in el;\r\n}\n\nfunction defineCustomElement(options, hydate) {\r\n const Comp = defineComponent(options);\r\n class VueCustomElement extends VueElement {\r\n constructor(initialProps) {\r\n super(Comp, initialProps, hydate);\r\n }\r\n }\r\n VueCustomElement.def = Comp;\r\n return VueCustomElement;\r\n}\r\nconst defineSSRCustomElement = ((options) => {\r\n // @ts-ignore\r\n return defineCustomElement(options, hydrate);\r\n});\r\nconst BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class {\r\n});\r\nclass VueElement extends BaseClass {\r\n constructor(_def, _props = {}, hydrate) {\r\n super();\r\n this._def = _def;\r\n this._props = _props;\r\n /**\r\n * @internal\r\n */\r\n this._instance = null;\r\n this._connected = false;\r\n this._resolved = false;\r\n this._numberProps = null;\r\n if (this.shadowRoot && hydrate) {\r\n hydrate(this._createVNode(), this.shadowRoot);\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && this.shadowRoot) {\r\n warn(`Custom element has pre-rendered declarative shadow root but is not ` +\r\n `defined as hydratable. Use \\`defineSSRCustomElement\\`.`);\r\n }\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n connectedCallback() {\r\n this._connected = true;\r\n if (!this._instance) {\r\n this._resolveDef();\r\n }\r\n }\r\n disconnectedCallback() {\r\n this._connected = false;\r\n nextTick(() => {\r\n if (!this._connected) {\r\n render(null, this.shadowRoot);\r\n this._instance = null;\r\n }\r\n });\r\n }\r\n /**\r\n * resolve inner component definition (handle possible async component)\r\n */\r\n _resolveDef() {\r\n if (this._resolved) {\r\n return;\r\n }\r\n this._resolved = true;\r\n // set initial attrs\r\n for (let i = 0; i < this.attributes.length; i++) {\r\n this._setAttr(this.attributes[i].name);\r\n }\r\n // watch future attr changes\r\n new MutationObserver(mutations => {\r\n for (const m of mutations) {\r\n this._setAttr(m.attributeName);\r\n }\r\n }).observe(this, { attributes: true });\r\n const resolve = (def) => {\r\n const { props, styles } = def;\r\n const hasOptions = !isArray(props);\r\n const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [];\r\n // cast Number-type props set before resolve\r\n let numberProps;\r\n if (hasOptions) {\r\n for (const key in this._props) {\r\n const opt = props[key];\r\n if (opt === Number || (opt && opt.type === Number)) {\r\n this._props[key] = toNumber(this._props[key]);\r\n (numberProps || (numberProps = Object.create(null)))[key] = true;\r\n }\r\n }\r\n }\r\n this._numberProps = numberProps;\r\n // check if there are props set pre-upgrade or connect\r\n for (const key of Object.keys(this)) {\r\n if (key[0] !== '_') {\r\n this._setProp(key, this[key], true, false);\r\n }\r\n }\r\n // defining getter/setters on prototype\r\n for (const key of rawKeys.map(camelize$1)) {\r\n Object.defineProperty(this, key, {\r\n get() {\r\n return this._getProp(key);\r\n },\r\n set(val) {\r\n this._setProp(key, val);\r\n }\r\n });\r\n }\r\n // apply CSS\r\n this._applyStyles(styles);\r\n // initial render\r\n this._update();\r\n };\r\n const asyncDef = this._def.__asyncLoader;\r\n if (asyncDef) {\r\n asyncDef().then(resolve);\r\n }\r\n else {\r\n resolve(this._def);\r\n }\r\n }\r\n _setAttr(key) {\r\n let value = this.getAttribute(key);\r\n if (this._numberProps && this._numberProps[key]) {\r\n value = toNumber(value);\r\n }\r\n this._setProp(camelize$1(key), value, false);\r\n }\r\n /**\r\n * @internal\r\n */\r\n _getProp(key) {\r\n return this._props[key];\r\n }\r\n /**\r\n * @internal\r\n */\r\n _setProp(key, val, shouldReflect = true, shouldUpdate = true) {\r\n if (val !== this._props[key]) {\r\n this._props[key] = val;\r\n if (shouldUpdate && this._instance) {\r\n this._update();\r\n }\r\n // reflect\r\n if (shouldReflect) {\r\n if (val === true) {\r\n this.setAttribute(hyphenate(key), '');\r\n }\r\n else if (typeof val === 'string' || typeof val === 'number') {\r\n this.setAttribute(hyphenate(key), val + '');\r\n }\r\n else if (!val) {\r\n this.removeAttribute(hyphenate(key));\r\n }\r\n }\r\n }\r\n }\r\n _update() {\r\n render(this._createVNode(), this.shadowRoot);\r\n }\r\n _createVNode() {\r\n const vnode = createVNode(this._def, extend({}, this._props));\r\n if (!this._instance) {\r\n vnode.ce = instance => {\r\n this._instance = instance;\r\n instance.isCE = true;\r\n // HMR\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n instance.ceReload = newStyles => {\r\n // always reset styles\r\n if (this._styles) {\r\n this._styles.forEach(s => this.shadowRoot.removeChild(s));\r\n this._styles.length = 0;\r\n }\r\n this._applyStyles(newStyles);\r\n // if this is an async component, ceReload is called from the inner\r\n // component so no need to reload the async wrapper\r\n if (!this._def.__asyncLoader) {\r\n // reload\r\n this._instance = null;\r\n this._update();\r\n }\r\n };\r\n }\r\n // intercept emit\r\n instance.emit = (event, ...args) => {\r\n this.dispatchEvent(new CustomEvent(event, {\r\n detail: args\r\n }));\r\n };\r\n // locate nearest Vue custom element parent for provide/inject\r\n let parent = this;\r\n while ((parent =\r\n parent && (parent.parentNode || parent.host))) {\r\n if (parent instanceof VueElement) {\r\n instance.parent = parent._instance;\r\n break;\r\n }\r\n }\r\n };\r\n }\r\n return vnode;\r\n }\r\n _applyStyles(styles) {\r\n if (styles) {\r\n styles.forEach(css => {\r\n const s = document.createElement('style');\r\n s.textContent = css;\r\n this.shadowRoot.appendChild(s);\r\n // record for HMR\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n (this._styles || (this._styles = [])).push(s);\r\n }\r\n });\r\n }\r\n }\r\n}\n\nfunction useCssModule(name = '$style') {\r\n /* istanbul ignore else */\r\n {\r\n const instance = getCurrentInstance();\r\n if (!instance) {\r\n (process.env.NODE_ENV !== 'production') && warn(`useCssModule must be called inside setup()`);\r\n return EMPTY_OBJ;\r\n }\r\n const modules = instance.type.__cssModules;\r\n if (!modules) {\r\n (process.env.NODE_ENV !== 'production') && warn(`Current instance does not have CSS modules injected.`);\r\n return EMPTY_OBJ;\r\n }\r\n const mod = modules[name];\r\n if (!mod) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Current instance does not have CSS module named \"${name}\".`);\r\n return EMPTY_OBJ;\r\n }\r\n return mod;\r\n }\r\n}\n\n/**\r\n * Runtime helper for SFC's CSS variable injection feature.\r\n * @private\r\n */\r\nfunction useCssVars(getter) {\r\n const instance = getCurrentInstance();\r\n /* istanbul ignore next */\r\n if (!instance) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`useCssVars is called without current active component instance.`);\r\n return;\r\n }\r\n const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy));\r\n watchPostEffect(setVars);\r\n onMounted(() => {\r\n const ob = new MutationObserver(setVars);\r\n ob.observe(instance.subTree.el.parentNode, { childList: true });\r\n onUnmounted(() => ob.disconnect());\r\n });\r\n}\r\nfunction setVarsOnVNode(vnode, vars) {\r\n if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n const suspense = vnode.suspense;\r\n vnode = suspense.activeBranch;\r\n if (suspense.pendingBranch && !suspense.isHydrating) {\r\n suspense.effects.push(() => {\r\n setVarsOnVNode(suspense.activeBranch, vars);\r\n });\r\n }\r\n }\r\n // drill down HOCs until it's a non-component vnode\r\n while (vnode.component) {\r\n vnode = vnode.component.subTree;\r\n }\r\n if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) {\r\n setVarsOnNode(vnode.el, vars);\r\n }\r\n else if (vnode.type === Fragment) {\r\n vnode.children.forEach(c => setVarsOnVNode(c, vars));\r\n }\r\n else if (vnode.type === Static) {\r\n let { el, anchor } = vnode;\r\n while (el) {\r\n setVarsOnNode(el, vars);\r\n if (el === anchor)\r\n break;\r\n el = el.nextSibling;\r\n }\r\n }\r\n}\r\nfunction setVarsOnNode(el, vars) {\r\n if (el.nodeType === 1) {\r\n const style = el.style;\r\n for (const key in vars) {\r\n style.setProperty(`--${key}`, vars[key]);\r\n }\r\n }\r\n}\n\nconst TRANSITION = 'transition';\r\nconst ANIMATION = 'animation';\r\n// DOM Transition is a higher-order-component based on the platform-agnostic\r\n// base Transition component, with DOM-specific logic.\r\nconst Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);\r\nTransition.displayName = 'Transition';\r\nconst DOMTransitionPropsValidators = {\r\n name: String,\r\n type: String,\r\n css: {\r\n type: Boolean,\r\n default: true\r\n },\r\n duration: [String, Number, Object],\r\n enterFromClass: String,\r\n enterActiveClass: String,\r\n enterToClass: String,\r\n appearFromClass: String,\r\n appearActiveClass: String,\r\n appearToClass: String,\r\n leaveFromClass: String,\r\n leaveActiveClass: String,\r\n leaveToClass: String\r\n};\r\nconst TransitionPropsValidators = (Transition.props =\r\n /*#__PURE__*/ extend({}, BaseTransition.props, DOMTransitionPropsValidators));\r\n/**\r\n * #3227 Incoming hooks may be merged into arrays when wrapping Transition\r\n * with custom HOCs.\r\n */\r\nconst callHook = (hook, args = []) => {\r\n if (isArray(hook)) {\r\n hook.forEach(h => h(...args));\r\n }\r\n else if (hook) {\r\n hook(...args);\r\n }\r\n};\r\n/**\r\n * Check if a hook expects a callback (2nd arg), which means the user\r\n * intends to explicitly control the end of the transition.\r\n */\r\nconst hasExplicitCallback = (hook) => {\r\n return hook\r\n ? isArray(hook)\r\n ? hook.some(h => h.length > 1)\r\n : hook.length > 1\r\n : false;\r\n};\r\nfunction resolveTransitionProps(rawProps) {\r\n const baseProps = {};\r\n for (const key in rawProps) {\r\n if (!(key in DOMTransitionPropsValidators)) {\r\n baseProps[key] = rawProps[key];\r\n }\r\n }\r\n if (rawProps.css === false) {\r\n return baseProps;\r\n }\r\n const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;\r\n const durations = normalizeDuration(duration);\r\n const enterDuration = durations && durations[0];\r\n const leaveDuration = durations && durations[1];\r\n const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;\r\n const finishEnter = (el, isAppear, done) => {\r\n removeTransitionClass(el, isAppear ? appearToClass : enterToClass);\r\n removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);\r\n done && done();\r\n };\r\n const finishLeave = (el, done) => {\r\n removeTransitionClass(el, leaveToClass);\r\n removeTransitionClass(el, leaveActiveClass);\r\n done && done();\r\n };\r\n const makeEnterHook = (isAppear) => {\r\n return (el, done) => {\r\n const hook = isAppear ? onAppear : onEnter;\r\n const resolve = () => finishEnter(el, isAppear, done);\r\n callHook(hook, [el, resolve]);\r\n nextFrame(() => {\r\n removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);\r\n addTransitionClass(el, isAppear ? appearToClass : enterToClass);\r\n if (!hasExplicitCallback(hook)) {\r\n whenTransitionEnds(el, type, enterDuration, resolve);\r\n }\r\n });\r\n };\r\n };\r\n return extend(baseProps, {\r\n onBeforeEnter(el) {\r\n callHook(onBeforeEnter, [el]);\r\n addTransitionClass(el, enterFromClass);\r\n addTransitionClass(el, enterActiveClass);\r\n },\r\n onBeforeAppear(el) {\r\n callHook(onBeforeAppear, [el]);\r\n addTransitionClass(el, appearFromClass);\r\n addTransitionClass(el, appearActiveClass);\r\n },\r\n onEnter: makeEnterHook(false),\r\n onAppear: makeEnterHook(true),\r\n onLeave(el, done) {\r\n const resolve = () => finishLeave(el, done);\r\n addTransitionClass(el, leaveFromClass);\r\n // force reflow so *-leave-from classes immediately take effect (#2593)\r\n forceReflow();\r\n addTransitionClass(el, leaveActiveClass);\r\n nextFrame(() => {\r\n removeTransitionClass(el, leaveFromClass);\r\n addTransitionClass(el, leaveToClass);\r\n if (!hasExplicitCallback(onLeave)) {\r\n whenTransitionEnds(el, type, leaveDuration, resolve);\r\n }\r\n });\r\n callHook(onLeave, [el, resolve]);\r\n },\r\n onEnterCancelled(el) {\r\n finishEnter(el, false);\r\n callHook(onEnterCancelled, [el]);\r\n },\r\n onAppearCancelled(el) {\r\n finishEnter(el, true);\r\n callHook(onAppearCancelled, [el]);\r\n },\r\n onLeaveCancelled(el) {\r\n finishLeave(el);\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n });\r\n}\r\nfunction normalizeDuration(duration) {\r\n if (duration == null) {\r\n return null;\r\n }\r\n else if (isObject(duration)) {\r\n return [NumberOf(duration.enter), NumberOf(duration.leave)];\r\n }\r\n else {\r\n const n = NumberOf(duration);\r\n return [n, n];\r\n }\r\n}\r\nfunction NumberOf(val) {\r\n const res = toNumber(val);\r\n if ((process.env.NODE_ENV !== 'production'))\r\n validateDuration(res);\r\n return res;\r\n}\r\nfunction validateDuration(val) {\r\n if (typeof val !== 'number') {\r\n warn(`<transition> explicit duration is not a valid number - ` +\r\n `got ${JSON.stringify(val)}.`);\r\n }\r\n else if (isNaN(val)) {\r\n warn(`<transition> explicit duration is NaN - ` +\r\n 'the duration expression might be incorrect.');\r\n }\r\n}\r\nfunction addTransitionClass(el, cls) {\r\n cls.split(/\\s+/).forEach(c => c && el.classList.add(c));\r\n (el._vtc ||\r\n (el._vtc = new Set())).add(cls);\r\n}\r\nfunction removeTransitionClass(el, cls) {\r\n cls.split(/\\s+/).forEach(c => c && el.classList.remove(c));\r\n const { _vtc } = el;\r\n if (_vtc) {\r\n _vtc.delete(cls);\r\n if (!_vtc.size) {\r\n el._vtc = undefined;\r\n }\r\n }\r\n}\r\nfunction nextFrame(cb) {\r\n requestAnimationFrame(() => {\r\n requestAnimationFrame(cb);\r\n });\r\n}\r\nlet endId = 0;\r\nfunction whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {\r\n const id = (el._endId = ++endId);\r\n const resolveIfNotStale = () => {\r\n if (id === el._endId) {\r\n resolve();\r\n }\r\n };\r\n if (explicitTimeout) {\r\n return setTimeout(resolveIfNotStale, explicitTimeout);\r\n }\r\n const { type, timeout, propCount } = getTransitionInfo(el, expectedType);\r\n if (!type) {\r\n return resolve();\r\n }\r\n const endEvent = type + 'end';\r\n let ended = 0;\r\n const end = () => {\r\n el.removeEventListener(endEvent, onEnd);\r\n resolveIfNotStale();\r\n };\r\n const onEnd = (e) => {\r\n if (e.target === el && ++ended >= propCount) {\r\n end();\r\n }\r\n };\r\n setTimeout(() => {\r\n if (ended < propCount) {\r\n end();\r\n }\r\n }, timeout + 1);\r\n el.addEventListener(endEvent, onEnd);\r\n}\r\nfunction getTransitionInfo(el, expectedType) {\r\n const styles = window.getComputedStyle(el);\r\n // JSDOM may return undefined for transition properties\r\n const getStyleProperties = (key) => (styles[key] || '').split(', ');\r\n const transitionDelays = getStyleProperties(TRANSITION + 'Delay');\r\n const transitionDurations = getStyleProperties(TRANSITION + 'Duration');\r\n const transitionTimeout = getTimeout(transitionDelays, transitionDurations);\r\n const animationDelays = getStyleProperties(ANIMATION + 'Delay');\r\n const animationDurations = getStyleProperties(ANIMATION + 'Duration');\r\n const animationTimeout = getTimeout(animationDelays, animationDurations);\r\n let type = null;\r\n let timeout = 0;\r\n let propCount = 0;\r\n /* istanbul ignore if */\r\n if (expectedType === TRANSITION) {\r\n if (transitionTimeout > 0) {\r\n type = TRANSITION;\r\n timeout = transitionTimeout;\r\n propCount = transitionDurations.length;\r\n }\r\n }\r\n else if (expectedType === ANIMATION) {\r\n if (animationTimeout > 0) {\r\n type = ANIMATION;\r\n timeout = animationTimeout;\r\n propCount = animationDurations.length;\r\n }\r\n }\r\n else {\r\n timeout = Math.max(transitionTimeout, animationTimeout);\r\n type =\r\n timeout > 0\r\n ? transitionTimeout > animationTimeout\r\n ? TRANSITION\r\n : ANIMATION\r\n : null;\r\n propCount = type\r\n ? type === TRANSITION\r\n ? transitionDurations.length\r\n : animationDurations.length\r\n : 0;\r\n }\r\n const hasTransform = type === TRANSITION &&\r\n /\\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']);\r\n return {\r\n type,\r\n timeout,\r\n propCount,\r\n hasTransform\r\n };\r\n}\r\nfunction getTimeout(delays, durations) {\r\n while (delays.length < durations.length) {\r\n delays = delays.concat(delays);\r\n }\r\n return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));\r\n}\r\n// Old versions of Chromium (below 61.0.3163.100) formats floating pointer\r\n// numbers in a locale-dependent way, using a comma instead of a dot.\r\n// If comma is not replaced with a dot, the input will be rounded down\r\n// (i.e. acting as a floor function) causing unexpected behaviors\r\nfunction toMs(s) {\r\n return Number(s.slice(0, -1).replace(',', '.')) * 1000;\r\n}\r\n// synchronously force layout to put elements into a certain state\r\nfunction forceReflow() {\r\n return document.body.offsetHeight;\r\n}\n\nconst positionMap = new WeakMap();\r\nconst newPositionMap = new WeakMap();\r\nconst TransitionGroupImpl = {\r\n name: 'TransitionGroup',\r\n props: /*#__PURE__*/ extend({}, TransitionPropsValidators, {\r\n tag: String,\r\n moveClass: String\r\n }),\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevChildren;\r\n let children;\r\n onUpdated(() => {\r\n // children is guaranteed to exist after initial render\r\n if (!prevChildren.length) {\r\n return;\r\n }\r\n const moveClass = props.moveClass || `${props.name || 'v'}-move`;\r\n if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {\r\n return;\r\n }\r\n // we divide the work into three loops to avoid mixing DOM reads and writes\r\n // in each iteration - which helps prevent layout thrashing.\r\n prevChildren.forEach(callPendingCbs);\r\n prevChildren.forEach(recordPosition);\r\n const movedChildren = prevChildren.filter(applyTranslation);\r\n // force reflow to put everything in position\r\n forceReflow();\r\n movedChildren.forEach(c => {\r\n const el = c.el;\r\n const style = el.style;\r\n addTransitionClass(el, moveClass);\r\n style.transform = style.webkitTransform = style.transitionDuration = '';\r\n const cb = (el._moveCb = (e) => {\r\n if (e && e.target !== el) {\r\n return;\r\n }\r\n if (!e || /transform$/.test(e.propertyName)) {\r\n el.removeEventListener('transitionend', cb);\r\n el._moveCb = null;\r\n removeTransitionClass(el, moveClass);\r\n }\r\n });\r\n el.addEventListener('transitionend', cb);\r\n });\r\n });\r\n return () => {\r\n const rawProps = toRaw(props);\r\n const cssTransitionProps = resolveTransitionProps(rawProps);\r\n let tag = rawProps.tag || Fragment;\r\n prevChildren = children;\r\n children = slots.default ? getTransitionRawChildren(slots.default()) : [];\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (child.key != null) {\r\n setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`<TransitionGroup> children must be keyed.`);\r\n }\r\n }\r\n if (prevChildren) {\r\n for (let i = 0; i < prevChildren.length; i++) {\r\n const child = prevChildren[i];\r\n setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));\r\n positionMap.set(child, child.el.getBoundingClientRect());\r\n }\r\n }\r\n return createVNode(tag, null, children);\r\n };\r\n }\r\n};\r\nconst TransitionGroup = TransitionGroupImpl;\r\nfunction callPendingCbs(c) {\r\n const el = c.el;\r\n if (el._moveCb) {\r\n el._moveCb();\r\n }\r\n if (el._enterCb) {\r\n el._enterCb();\r\n }\r\n}\r\nfunction recordPosition(c) {\r\n newPositionMap.set(c, c.el.getBoundingClientRect());\r\n}\r\nfunction applyTranslation(c) {\r\n const oldPos = positionMap.get(c);\r\n const newPos = newPositionMap.get(c);\r\n const dx = oldPos.left - newPos.left;\r\n const dy = oldPos.top - newPos.top;\r\n if (dx || dy) {\r\n const s = c.el.style;\r\n s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;\r\n s.transitionDuration = '0s';\r\n return c;\r\n }\r\n}\r\nfunction hasCSSTransform(el, root, moveClass) {\r\n // Detect whether an element with the move class applied has\r\n // CSS transitions. Since the element may be inside an entering\r\n // transition at this very moment, we make a clone of it and remove\r\n // all other transition classes applied to ensure only the move class\r\n // is applied.\r\n const clone = el.cloneNode();\r\n if (el._vtc) {\r\n el._vtc.forEach(cls => {\r\n cls.split(/\\s+/).forEach(c => c && clone.classList.remove(c));\r\n });\r\n }\r\n moveClass.split(/\\s+/).forEach(c => c && clone.classList.add(c));\r\n clone.style.display = 'none';\r\n const container = (root.nodeType === 1 ? root : root.parentNode);\r\n container.appendChild(clone);\r\n const { hasTransform } = getTransitionInfo(clone);\r\n container.removeChild(clone);\r\n return hasTransform;\r\n}\n\nconst getModelAssigner = (vnode) => {\r\n const fn = vnode.props['onUpdate:modelValue'];\r\n return isArray(fn) ? value => invokeArrayFns(fn, value) : fn;\r\n};\r\nfunction onCompositionStart(e) {\r\n e.target.composing = true;\r\n}\r\nfunction onCompositionEnd(e) {\r\n const target = e.target;\r\n if (target.composing) {\r\n target.composing = false;\r\n trigger(target, 'input');\r\n }\r\n}\r\nfunction trigger(el, type) {\r\n const e = document.createEvent('HTMLEvents');\r\n e.initEvent(type, true, true);\r\n el.dispatchEvent(e);\r\n}\r\n// We are exporting the v-model runtime directly as vnode hooks so that it can\r\n// be tree-shaken in case v-model is never used.\r\nconst vModelText = {\r\n created(el, { modifiers: { lazy, trim, number } }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n const castToNumber = number || (vnode.props && vnode.props.type === 'number');\r\n addEventListener(el, lazy ? 'change' : 'input', e => {\r\n if (e.target.composing)\r\n return;\r\n let domValue = el.value;\r\n if (trim) {\r\n domValue = domValue.trim();\r\n }\r\n else if (castToNumber) {\r\n domValue = toNumber(domValue);\r\n }\r\n el._assign(domValue);\r\n });\r\n if (trim) {\r\n addEventListener(el, 'change', () => {\r\n el.value = el.value.trim();\r\n });\r\n }\r\n if (!lazy) {\r\n addEventListener(el, 'compositionstart', onCompositionStart);\r\n addEventListener(el, 'compositionend', onCompositionEnd);\r\n // Safari < 10.2 & UIWebView doesn't fire compositionend when\r\n // switching focus before confirming composition choice\r\n // this also fixes the issue where some browsers e.g. iOS Chrome\r\n // fires \"change\" instead of \"input\" on autocomplete.\r\n addEventListener(el, 'change', onCompositionEnd);\r\n }\r\n },\r\n // set value on mounted so it's after min/max for type=\"range\"\r\n mounted(el, { value }) {\r\n el.value = value == null ? '' : value;\r\n },\r\n beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n // avoid clearing unresolved text. #2302\r\n if (el.composing)\r\n return;\r\n if (document.activeElement === el) {\r\n if (lazy) {\r\n return;\r\n }\r\n if (trim && el.value.trim() === value) {\r\n return;\r\n }\r\n if ((number || el.type === 'number') && toNumber(el.value) === value) {\r\n return;\r\n }\r\n }\r\n const newValue = value == null ? '' : value;\r\n if (el.value !== newValue) {\r\n el.value = newValue;\r\n }\r\n }\r\n};\r\nconst vModelCheckbox = {\r\n // #4096 array checkboxes need to be deep traversed\r\n deep: true,\r\n created(el, _, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n addEventListener(el, 'change', () => {\r\n const modelValue = el._modelValue;\r\n const elementValue = getValue(el);\r\n const checked = el.checked;\r\n const assign = el._assign;\r\n if (isArray(modelValue)) {\r\n const index = looseIndexOf(modelValue, elementValue);\r\n const found = index !== -1;\r\n if (checked && !found) {\r\n assign(modelValue.concat(elementValue));\r\n }\r\n else if (!checked && found) {\r\n const filtered = [...modelValue];\r\n filtered.splice(index, 1);\r\n assign(filtered);\r\n }\r\n }\r\n else if (isSet(modelValue)) {\r\n const cloned = new Set(modelValue);\r\n if (checked) {\r\n cloned.add(elementValue);\r\n }\r\n else {\r\n cloned.delete(elementValue);\r\n }\r\n assign(cloned);\r\n }\r\n else {\r\n assign(getCheckboxValue(el, checked));\r\n }\r\n });\r\n },\r\n // set initial checked on mount to wait for true-value/false-value\r\n mounted: setChecked,\r\n beforeUpdate(el, binding, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n setChecked(el, binding, vnode);\r\n }\r\n};\r\nfunction setChecked(el, { value, oldValue }, vnode) {\r\n el._modelValue = value;\r\n if (isArray(value)) {\r\n el.checked = looseIndexOf(value, vnode.props.value) > -1;\r\n }\r\n else if (isSet(value)) {\r\n el.checked = value.has(vnode.props.value);\r\n }\r\n else if (value !== oldValue) {\r\n el.checked = looseEqual(value, getCheckboxValue(el, true));\r\n }\r\n}\r\nconst vModelRadio = {\r\n created(el, { value }, vnode) {\r\n el.checked = looseEqual(value, vnode.props.value);\r\n el._assign = getModelAssigner(vnode);\r\n addEventListener(el, 'change', () => {\r\n el._assign(getValue(el));\r\n });\r\n },\r\n beforeUpdate(el, { value, oldValue }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n if (value !== oldValue) {\r\n el.checked = looseEqual(value, vnode.props.value);\r\n }\r\n }\r\n};\r\nconst vModelSelect = {\r\n // <select multiple> value need to be deep traversed\r\n deep: true,\r\n created(el, { value, modifiers: { number } }, vnode) {\r\n const isSetModel = isSet(value);\r\n addEventListener(el, 'change', () => {\r\n const selectedVal = Array.prototype.filter\r\n .call(el.options, (o) => o.selected)\r\n .map((o) => number ? toNumber(getValue(o)) : getValue(o));\r\n el._assign(el.multiple\r\n ? isSetModel\r\n ? new Set(selectedVal)\r\n : selectedVal\r\n : selectedVal[0]);\r\n });\r\n el._assign = getModelAssigner(vnode);\r\n },\r\n // set value in mounted & updated because <select> relies on its children\r\n // <option>s.\r\n mounted(el, { value }) {\r\n setSelected(el, value);\r\n },\r\n beforeUpdate(el, _binding, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n },\r\n updated(el, { value }) {\r\n setSelected(el, value);\r\n }\r\n};\r\nfunction setSelected(el, value) {\r\n const isMultiple = el.multiple;\r\n if (isMultiple && !isArray(value) && !isSet(value)) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`<select multiple v-model> expects an Array or Set value for its binding, ` +\r\n `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);\r\n return;\r\n }\r\n for (let i = 0, l = el.options.length; i < l; i++) {\r\n const option = el.options[i];\r\n const optionValue = getValue(option);\r\n if (isMultiple) {\r\n if (isArray(value)) {\r\n option.selected = looseIndexOf(value, optionValue) > -1;\r\n }\r\n else {\r\n option.selected = value.has(optionValue);\r\n }\r\n }\r\n else {\r\n if (looseEqual(getValue(option), value)) {\r\n if (el.selectedIndex !== i)\r\n el.selectedIndex = i;\r\n return;\r\n }\r\n }\r\n }\r\n if (!isMultiple && el.selectedIndex !== -1) {\r\n el.selectedIndex = -1;\r\n }\r\n}\r\n// retrieve raw value set via :value bindings\r\nfunction getValue(el) {\r\n return '_value' in el ? el._value : el.value;\r\n}\r\n// retrieve raw value for true-value and false-value set via :true-value or :false-value bindings\r\nfunction getCheckboxValue(el, checked) {\r\n const key = checked ? '_trueValue' : '_falseValue';\r\n return key in el ? el[key] : checked;\r\n}\r\nconst vModelDynamic = {\r\n created(el, binding, vnode) {\r\n callModelHook(el, binding, vnode, null, 'created');\r\n },\r\n mounted(el, binding, vnode) {\r\n callModelHook(el, binding, vnode, null, 'mounted');\r\n },\r\n beforeUpdate(el, binding, vnode, prevVNode) {\r\n callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate');\r\n },\r\n updated(el, binding, vnode, prevVNode) {\r\n callModelHook(el, binding, vnode, prevVNode, 'updated');\r\n }\r\n};\r\nfunction callModelHook(el, binding, vnode, prevVNode, hook) {\r\n let modelToUse;\r\n switch (el.tagName) {\r\n case 'SELECT':\r\n modelToUse = vModelSelect;\r\n break;\r\n case 'TEXTAREA':\r\n modelToUse = vModelText;\r\n break;\r\n default:\r\n switch (vnode.props && vnode.props.type) {\r\n case 'checkbox':\r\n modelToUse = vModelCheckbox;\r\n break;\r\n case 'radio':\r\n modelToUse = vModelRadio;\r\n break;\r\n default:\r\n modelToUse = vModelText;\r\n }\r\n }\r\n const fn = modelToUse[hook];\r\n fn && fn(el, binding, vnode, prevVNode);\r\n}\r\n// SSR vnode transforms, only used when user includes client-oriented render\r\n// function in SSR\r\nfunction initVModelForSSR() {\r\n vModelText.getSSRProps = ({ value }) => ({ value });\r\n vModelRadio.getSSRProps = ({ value }, vnode) => {\r\n if (vnode.props && looseEqual(vnode.props.value, value)) {\r\n return { checked: true };\r\n }\r\n };\r\n vModelCheckbox.getSSRProps = ({ value }, vnode) => {\r\n if (isArray(value)) {\r\n if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) {\r\n return { checked: true };\r\n }\r\n }\r\n else if (isSet(value)) {\r\n if (vnode.props && value.has(vnode.props.value)) {\r\n return { checked: true };\r\n }\r\n }\r\n else if (value) {\r\n return { checked: true };\r\n }\r\n };\r\n}\n\nconst systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];\r\nconst modifierGuards = {\r\n stop: e => e.stopPropagation(),\r\n prevent: e => e.preventDefault(),\r\n self: e => e.target !== e.currentTarget,\r\n ctrl: e => !e.ctrlKey,\r\n shift: e => !e.shiftKey,\r\n alt: e => !e.altKey,\r\n meta: e => !e.metaKey,\r\n left: e => 'button' in e && e.button !== 0,\r\n middle: e => 'button' in e && e.button !== 1,\r\n right: e => 'button' in e && e.button !== 2,\r\n exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m))\r\n};\r\n/**\r\n * @private\r\n */\r\nconst withModifiers = (fn, modifiers) => {\r\n return (event, ...args) => {\r\n for (let i = 0; i < modifiers.length; i++) {\r\n const guard = modifierGuards[modifiers[i]];\r\n if (guard && guard(event, modifiers))\r\n return;\r\n }\r\n return fn(event, ...args);\r\n };\r\n};\r\n// Kept for 2.x compat.\r\n// Note: IE11 compat for `spacebar` and `del` is removed for now.\r\nconst keyNames = {\r\n esc: 'escape',\r\n space: ' ',\r\n up: 'arrow-up',\r\n left: 'arrow-left',\r\n right: 'arrow-right',\r\n down: 'arrow-down',\r\n delete: 'backspace'\r\n};\r\n/**\r\n * @private\r\n */\r\nconst withKeys = (fn, modifiers) => {\r\n return (event) => {\r\n if (!('key' in event)) {\r\n return;\r\n }\r\n const eventKey = hyphenate(event.key);\r\n if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) {\r\n return fn(event);\r\n }\r\n };\r\n};\n\nconst vShow = {\r\n beforeMount(el, { value }, { transition }) {\r\n el._vod = el.style.display === 'none' ? '' : el.style.display;\r\n if (transition && value) {\r\n transition.beforeEnter(el);\r\n }\r\n else {\r\n setDisplay(el, value);\r\n }\r\n },\r\n mounted(el, { value }, { transition }) {\r\n if (transition && value) {\r\n transition.enter(el);\r\n }\r\n },\r\n updated(el, { value, oldValue }, { transition }) {\r\n if (!value === !oldValue)\r\n return;\r\n if (transition) {\r\n if (value) {\r\n transition.beforeEnter(el);\r\n setDisplay(el, true);\r\n transition.enter(el);\r\n }\r\n else {\r\n transition.leave(el, () => {\r\n setDisplay(el, false);\r\n });\r\n }\r\n }\r\n else {\r\n setDisplay(el, value);\r\n }\r\n },\r\n beforeUnmount(el, { value }) {\r\n setDisplay(el, value);\r\n }\r\n};\r\nfunction setDisplay(el, value) {\r\n el.style.display = value ? el._vod : 'none';\r\n}\r\n// SSR vnode transforms, only used when user includes client-oriented render\r\n// function in SSR\r\nfunction initVShowForSSR() {\r\n vShow.getSSRProps = ({ value }) => {\r\n if (!value) {\r\n return { style: { display: 'none' } };\r\n }\r\n };\r\n}\n\nconst rendererOptions = extend({ patchProp }, nodeOps);\r\n// lazy create the renderer - this makes core renderer logic tree-shakable\r\n// in case the user only imports reactivity utilities from Vue.\r\nlet renderer;\r\nlet enabledHydration = false;\r\nfunction ensureRenderer() {\r\n return (renderer ||\r\n (renderer = createRenderer(rendererOptions)));\r\n}\r\nfunction ensureHydrationRenderer() {\r\n renderer = enabledHydration\r\n ? renderer\r\n : createHydrationRenderer(rendererOptions);\r\n enabledHydration = true;\r\n return renderer;\r\n}\r\n// use explicit type casts here to avoid import() calls in rolled-up d.ts\r\nconst render = ((...args) => {\r\n ensureRenderer().render(...args);\r\n});\r\nconst hydrate = ((...args) => {\r\n ensureHydrationRenderer().hydrate(...args);\r\n});\r\nconst createApp = ((...args) => {\r\n const app = ensureRenderer().createApp(...args);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n injectNativeTagCheck(app);\r\n injectCompilerOptionsCheck(app);\r\n }\r\n const { mount } = app;\r\n app.mount = (containerOrSelector) => {\r\n const container = normalizeContainer(containerOrSelector);\r\n if (!container)\r\n return;\r\n const component = app._component;\r\n if (!isFunction(component) && !component.render && !component.template) {\r\n // __UNSAFE__\r\n // Reason: potential execution of JS expressions in in-DOM template.\r\n // The user must make sure the in-DOM template is trusted. If it's\r\n // rendered by the server, the template should not contain any user data.\r\n component.template = container.innerHTML;\r\n }\r\n // clear content before mounting\r\n container.innerHTML = '';\r\n const proxy = mount(container, false, container instanceof SVGElement);\r\n if (container instanceof Element) {\r\n container.removeAttribute('v-cloak');\r\n container.setAttribute('data-v-app', '');\r\n }\r\n return proxy;\r\n };\r\n return app;\r\n});\r\nconst createSSRApp = ((...args) => {\r\n const app = ensureHydrationRenderer().createApp(...args);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n injectNativeTagCheck(app);\r\n injectCompilerOptionsCheck(app);\r\n }\r\n const { mount } = app;\r\n app.mount = (containerOrSelector) => {\r\n const container = normalizeContainer(containerOrSelector);\r\n if (container) {\r\n return mount(container, true, container instanceof SVGElement);\r\n }\r\n };\r\n return app;\r\n});\r\nfunction injectNativeTagCheck(app) {\r\n // Inject `isNativeTag`\r\n // this is used for component name validation (dev only)\r\n Object.defineProperty(app.config, 'isNativeTag', {\r\n value: (tag) => isHTMLTag(tag) || isSVGTag(tag),\r\n writable: false\r\n });\r\n}\r\n// dev only\r\nfunction injectCompilerOptionsCheck(app) {\r\n if (isRuntimeOnly()) {\r\n const isCustomElement = app.config.isCustomElement;\r\n Object.defineProperty(app.config, 'isCustomElement', {\r\n get() {\r\n return isCustomElement;\r\n },\r\n set() {\r\n warn(`The \\`isCustomElement\\` config option is deprecated. Use ` +\r\n `\\`compilerOptions.isCustomElement\\` instead.`);\r\n }\r\n });\r\n const compilerOptions = app.config.compilerOptions;\r\n const msg = `The \\`compilerOptions\\` config option is only respected when using ` +\r\n `a build of Vue.js that includes the runtime compiler (aka \"full build\"). ` +\r\n `Since you are using the runtime-only build, \\`compilerOptions\\` ` +\r\n `must be passed to \\`@vue/compiler-dom\\` in the build setup instead.\\n` +\r\n `- For vue-loader: pass it via vue-loader's \\`compilerOptions\\` loader option.\\n` +\r\n `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\\n` +\r\n `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;\r\n Object.defineProperty(app.config, 'compilerOptions', {\r\n get() {\r\n warn(msg);\r\n return compilerOptions;\r\n },\r\n set() {\r\n warn(msg);\r\n }\r\n });\r\n }\r\n}\r\nfunction normalizeContainer(container) {\r\n if (isString(container)) {\r\n const res = document.querySelector(container);\r\n if ((process.env.NODE_ENV !== 'production') && !res) {\r\n warn(`Failed to mount app: mount target selector \"${container}\" returned null.`);\r\n }\r\n return res;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n window.ShadowRoot &&\r\n container instanceof window.ShadowRoot &&\r\n container.mode === 'closed') {\r\n warn(`mounting on a ShadowRoot with \\`{mode: \"closed\"}\\` may lead to unpredictable bugs`);\r\n }\r\n return container;\r\n}\r\nlet ssrDirectiveInitialized = false;\r\n/**\r\n * @internal\r\n */\r\nconst initDirectivesForSSR = () => {\r\n if (!ssrDirectiveInitialized) {\r\n ssrDirectiveInitialized = true;\r\n initVModelForSSR();\r\n initVShowForSSR();\r\n }\r\n }\r\n ;\n\nexport { Transition, TransitionGroup, VueElement, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, hydrate, initDirectivesForSSR, render, useCssModule, useCssVars, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, withKeys, withModifiers };\n","import { isString, hyphenate, NOOP, extend, isObject, NO, isArray, makeMap, isSymbol, EMPTY_OBJ, capitalize, camelize as camelize$1, PatchFlagNames, slotFlagsText, isOn, isReservedProp, toHandlerKey } from '@vue/shared';\nexport { generateCodeFrame } from '@vue/shared';\n\nfunction defaultOnError(error) {\r\n throw error;\r\n}\r\nfunction defaultOnWarn(msg) {\r\n (process.env.NODE_ENV !== 'production') && console.warn(`[Vue warn] ${msg.message}`);\r\n}\r\nfunction createCompilerError(code, loc, messages, additionalMessage) {\r\n const msg = (process.env.NODE_ENV !== 'production') || !true\r\n ? (messages || errorMessages)[code] + (additionalMessage || ``)\r\n : code;\r\n const error = new SyntaxError(String(msg));\r\n error.code = code;\r\n error.loc = loc;\r\n return error;\r\n}\r\nconst errorMessages = {\r\n // parse errors\r\n [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',\r\n [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',\r\n [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',\r\n [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',\r\n [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: \"Illegal '/' in tags.\",\r\n [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',\r\n [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',\r\n [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',\r\n [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',\r\n [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.',\r\n [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',\r\n [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',\r\n [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: \"Illegal tag name. Use '<' to print '<'.\",\r\n [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',\r\n [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.',\r\n [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',\r\n [16 /* NESTED_COMMENT */]: \"Unexpected '<!--' in comment.\",\r\n [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 (\"), U+0027 (\\'), and U+003C (<).',\r\n [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 (\"), U+0027 (\\'), U+003C (<), U+003D (=), and U+0060 (`).',\r\n [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: \"Attribute name cannot start with '='.\",\r\n [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: \"'<?' is allowed only in XML context.\",\r\n [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`,\r\n [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: \"Illegal '/' in tags.\",\r\n // Vue-specific parse errors\r\n [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',\r\n [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',\r\n [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',\r\n [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +\r\n 'Note that dynamic directive argument cannot contain spaces.',\r\n [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',\r\n // transform errors\r\n [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,\r\n [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,\r\n [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,\r\n [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,\r\n [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,\r\n [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,\r\n [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,\r\n [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,\r\n [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,\r\n [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +\r\n `When there are multiple named slots, all slots should use <template> ` +\r\n `syntax to avoid scope ambiguity.`,\r\n [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,\r\n [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +\r\n `default slot. These children will be ignored.`,\r\n [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,\r\n [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,\r\n [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,\r\n [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,\r\n [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,\r\n [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,\r\n // generic errors\r\n [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `\"prefixIdentifiers\" option is not supported in this build of compiler.`,\r\n [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,\r\n [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `\"cacheHandlers\" option is only supported when the \"prefixIdentifiers\" option is enabled.`,\r\n [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `\"scopeId\" option is only supported in module mode.`,\r\n // just to fulfill types\r\n [50 /* __EXTEND_POINT__ */]: ``\r\n};\n\nconst FRAGMENT = Symbol((process.env.NODE_ENV !== 'production') ? `Fragment` : ``);\r\nconst TELEPORT = Symbol((process.env.NODE_ENV !== 'production') ? `Teleport` : ``);\r\nconst SUSPENSE = Symbol((process.env.NODE_ENV !== 'production') ? `Suspense` : ``);\r\nconst KEEP_ALIVE = Symbol((process.env.NODE_ENV !== 'production') ? `KeepAlive` : ``);\r\nconst BASE_TRANSITION = Symbol((process.env.NODE_ENV !== 'production') ? `BaseTransition` : ``);\r\nconst OPEN_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `openBlock` : ``);\r\nconst CREATE_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `createBlock` : ``);\r\nconst CREATE_ELEMENT_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `createElementBlock` : ``);\r\nconst CREATE_VNODE = Symbol((process.env.NODE_ENV !== 'production') ? `createVNode` : ``);\r\nconst CREATE_ELEMENT_VNODE = Symbol((process.env.NODE_ENV !== 'production') ? `createElementVNode` : ``);\r\nconst CREATE_COMMENT = Symbol((process.env.NODE_ENV !== 'production') ? `createCommentVNode` : ``);\r\nconst CREATE_TEXT = Symbol((process.env.NODE_ENV !== 'production') ? `createTextVNode` : ``);\r\nconst CREATE_STATIC = Symbol((process.env.NODE_ENV !== 'production') ? `createStaticVNode` : ``);\r\nconst RESOLVE_COMPONENT = Symbol((process.env.NODE_ENV !== 'production') ? `resolveComponent` : ``);\r\nconst RESOLVE_DYNAMIC_COMPONENT = Symbol((process.env.NODE_ENV !== 'production') ? `resolveDynamicComponent` : ``);\r\nconst RESOLVE_DIRECTIVE = Symbol((process.env.NODE_ENV !== 'production') ? `resolveDirective` : ``);\r\nconst RESOLVE_FILTER = Symbol((process.env.NODE_ENV !== 'production') ? `resolveFilter` : ``);\r\nconst WITH_DIRECTIVES = Symbol((process.env.NODE_ENV !== 'production') ? `withDirectives` : ``);\r\nconst RENDER_LIST = Symbol((process.env.NODE_ENV !== 'production') ? `renderList` : ``);\r\nconst RENDER_SLOT = Symbol((process.env.NODE_ENV !== 'production') ? `renderSlot` : ``);\r\nconst CREATE_SLOTS = Symbol((process.env.NODE_ENV !== 'production') ? `createSlots` : ``);\r\nconst TO_DISPLAY_STRING = Symbol((process.env.NODE_ENV !== 'production') ? `toDisplayString` : ``);\r\nconst MERGE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `mergeProps` : ``);\r\nconst NORMALIZE_CLASS = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeClass` : ``);\r\nconst NORMALIZE_STYLE = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeStyle` : ``);\r\nconst NORMALIZE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeProps` : ``);\r\nconst GUARD_REACTIVE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `guardReactiveProps` : ``);\r\nconst TO_HANDLERS = Symbol((process.env.NODE_ENV !== 'production') ? `toHandlers` : ``);\r\nconst CAMELIZE = Symbol((process.env.NODE_ENV !== 'production') ? `camelize` : ``);\r\nconst CAPITALIZE = Symbol((process.env.NODE_ENV !== 'production') ? `capitalize` : ``);\r\nconst TO_HANDLER_KEY = Symbol((process.env.NODE_ENV !== 'production') ? `toHandlerKey` : ``);\r\nconst SET_BLOCK_TRACKING = Symbol((process.env.NODE_ENV !== 'production') ? `setBlockTracking` : ``);\r\nconst PUSH_SCOPE_ID = Symbol((process.env.NODE_ENV !== 'production') ? `pushScopeId` : ``);\r\nconst POP_SCOPE_ID = Symbol((process.env.NODE_ENV !== 'production') ? `popScopeId` : ``);\r\nconst WITH_CTX = Symbol((process.env.NODE_ENV !== 'production') ? `withCtx` : ``);\r\nconst UNREF = Symbol((process.env.NODE_ENV !== 'production') ? `unref` : ``);\r\nconst IS_REF = Symbol((process.env.NODE_ENV !== 'production') ? `isRef` : ``);\r\nconst WITH_MEMO = Symbol((process.env.NODE_ENV !== 'production') ? `withMemo` : ``);\r\nconst IS_MEMO_SAME = Symbol((process.env.NODE_ENV !== 'production') ? `isMemoSame` : ``);\r\n// Name mapping for runtime helpers that need to be imported from 'vue' in\r\n// generated code. Make sure these are correctly exported in the runtime!\r\n// Using `any` here because TS doesn't allow symbols as index type.\r\nconst helperNameMap = {\r\n [FRAGMENT]: `Fragment`,\r\n [TELEPORT]: `Teleport`,\r\n [SUSPENSE]: `Suspense`,\r\n [KEEP_ALIVE]: `KeepAlive`,\r\n [BASE_TRANSITION]: `BaseTransition`,\r\n [OPEN_BLOCK]: `openBlock`,\r\n [CREATE_BLOCK]: `createBlock`,\r\n [CREATE_ELEMENT_BLOCK]: `createElementBlock`,\r\n [CREATE_VNODE]: `createVNode`,\r\n [CREATE_ELEMENT_VNODE]: `createElementVNode`,\r\n [CREATE_COMMENT]: `createCommentVNode`,\r\n [CREATE_TEXT]: `createTextVNode`,\r\n [CREATE_STATIC]: `createStaticVNode`,\r\n [RESOLVE_COMPONENT]: `resolveComponent`,\r\n [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,\r\n [RESOLVE_DIRECTIVE]: `resolveDirective`,\r\n [RESOLVE_FILTER]: `resolveFilter`,\r\n [WITH_DIRECTIVES]: `withDirectives`,\r\n [RENDER_LIST]: `renderList`,\r\n [RENDER_SLOT]: `renderSlot`,\r\n [CREATE_SLOTS]: `createSlots`,\r\n [TO_DISPLAY_STRING]: `toDisplayString`,\r\n [MERGE_PROPS]: `mergeProps`,\r\n [NORMALIZE_CLASS]: `normalizeClass`,\r\n [NORMALIZE_STYLE]: `normalizeStyle`,\r\n [NORMALIZE_PROPS]: `normalizeProps`,\r\n [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,\r\n [TO_HANDLERS]: `toHandlers`,\r\n [CAMELIZE]: `camelize`,\r\n [CAPITALIZE]: `capitalize`,\r\n [TO_HANDLER_KEY]: `toHandlerKey`,\r\n [SET_BLOCK_TRACKING]: `setBlockTracking`,\r\n [PUSH_SCOPE_ID]: `pushScopeId`,\r\n [POP_SCOPE_ID]: `popScopeId`,\r\n [WITH_CTX]: `withCtx`,\r\n [UNREF]: `unref`,\r\n [IS_REF]: `isRef`,\r\n [WITH_MEMO]: `withMemo`,\r\n [IS_MEMO_SAME]: `isMemoSame`\r\n};\r\nfunction registerRuntimeHelpers(helpers) {\r\n Object.getOwnPropertySymbols(helpers).forEach(s => {\r\n helperNameMap[s] = helpers[s];\r\n });\r\n}\n\n// AST Utilities ---------------------------------------------------------------\r\n// Some expressions, e.g. sequence and conditional expressions, are never\r\n// associated with template nodes, so their source locations are just a stub.\r\n// Container types like CompoundExpression also don't need a real location.\r\nconst locStub = {\r\n source: '',\r\n start: { line: 1, column: 1, offset: 0 },\r\n end: { line: 1, column: 1, offset: 0 }\r\n};\r\nfunction createRoot(children, loc = locStub) {\r\n return {\r\n type: 0 /* ROOT */,\r\n children,\r\n helpers: [],\r\n components: [],\r\n directives: [],\r\n hoists: [],\r\n imports: [],\r\n cached: 0,\r\n temps: 0,\r\n codegenNode: undefined,\r\n loc\r\n };\r\n}\r\nfunction createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) {\r\n if (context) {\r\n if (isBlock) {\r\n context.helper(OPEN_BLOCK);\r\n context.helper(getVNodeBlockHelper(context.inSSR, isComponent));\r\n }\r\n else {\r\n context.helper(getVNodeHelper(context.inSSR, isComponent));\r\n }\r\n if (directives) {\r\n context.helper(WITH_DIRECTIVES);\r\n }\r\n }\r\n return {\r\n type: 13 /* VNODE_CALL */,\r\n tag,\r\n props,\r\n children,\r\n patchFlag,\r\n dynamicProps,\r\n directives,\r\n isBlock,\r\n disableTracking,\r\n isComponent,\r\n loc\r\n };\r\n}\r\nfunction createArrayExpression(elements, loc = locStub) {\r\n return {\r\n type: 17 /* JS_ARRAY_EXPRESSION */,\r\n loc,\r\n elements\r\n };\r\n}\r\nfunction createObjectExpression(properties, loc = locStub) {\r\n return {\r\n type: 15 /* JS_OBJECT_EXPRESSION */,\r\n loc,\r\n properties\r\n };\r\n}\r\nfunction createObjectProperty(key, value) {\r\n return {\r\n type: 16 /* JS_PROPERTY */,\r\n loc: locStub,\r\n key: isString(key) ? createSimpleExpression(key, true) : key,\r\n value\r\n };\r\n}\r\nfunction createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) {\r\n return {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n loc,\r\n content,\r\n isStatic,\r\n constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType\r\n };\r\n}\r\nfunction createInterpolation(content, loc) {\r\n return {\r\n type: 5 /* INTERPOLATION */,\r\n loc,\r\n content: isString(content)\r\n ? createSimpleExpression(content, false, loc)\r\n : content\r\n };\r\n}\r\nfunction createCompoundExpression(children, loc = locStub) {\r\n return {\r\n type: 8 /* COMPOUND_EXPRESSION */,\r\n loc,\r\n children\r\n };\r\n}\r\nfunction createCallExpression(callee, args = [], loc = locStub) {\r\n return {\r\n type: 14 /* JS_CALL_EXPRESSION */,\r\n loc,\r\n callee,\r\n arguments: args\r\n };\r\n}\r\nfunction createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) {\r\n return {\r\n type: 18 /* JS_FUNCTION_EXPRESSION */,\r\n params,\r\n returns,\r\n newline,\r\n isSlot,\r\n loc\r\n };\r\n}\r\nfunction createConditionalExpression(test, consequent, alternate, newline = true) {\r\n return {\r\n type: 19 /* JS_CONDITIONAL_EXPRESSION */,\r\n test,\r\n consequent,\r\n alternate,\r\n newline,\r\n loc: locStub\r\n };\r\n}\r\nfunction createCacheExpression(index, value, isVNode = false) {\r\n return {\r\n type: 20 /* JS_CACHE_EXPRESSION */,\r\n index,\r\n value,\r\n isVNode,\r\n loc: locStub\r\n };\r\n}\r\nfunction createBlockStatement(body) {\r\n return {\r\n type: 21 /* JS_BLOCK_STATEMENT */,\r\n body,\r\n loc: locStub\r\n };\r\n}\r\nfunction createTemplateLiteral(elements) {\r\n return {\r\n type: 22 /* JS_TEMPLATE_LITERAL */,\r\n elements,\r\n loc: locStub\r\n };\r\n}\r\nfunction createIfStatement(test, consequent, alternate) {\r\n return {\r\n type: 23 /* JS_IF_STATEMENT */,\r\n test,\r\n consequent,\r\n alternate,\r\n loc: locStub\r\n };\r\n}\r\nfunction createAssignmentExpression(left, right) {\r\n return {\r\n type: 24 /* JS_ASSIGNMENT_EXPRESSION */,\r\n left,\r\n right,\r\n loc: locStub\r\n };\r\n}\r\nfunction createSequenceExpression(expressions) {\r\n return {\r\n type: 25 /* JS_SEQUENCE_EXPRESSION */,\r\n expressions,\r\n loc: locStub\r\n };\r\n}\r\nfunction createReturnStatement(returns) {\r\n return {\r\n type: 26 /* JS_RETURN_STATEMENT */,\r\n returns,\r\n loc: locStub\r\n };\r\n}\n\nconst isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic;\r\nconst isBuiltInType = (tag, expected) => tag === expected || tag === hyphenate(expected);\r\nfunction isCoreComponent(tag) {\r\n if (isBuiltInType(tag, 'Teleport')) {\r\n return TELEPORT;\r\n }\r\n else if (isBuiltInType(tag, 'Suspense')) {\r\n return SUSPENSE;\r\n }\r\n else if (isBuiltInType(tag, 'KeepAlive')) {\r\n return KEEP_ALIVE;\r\n }\r\n else if (isBuiltInType(tag, 'BaseTransition')) {\r\n return BASE_TRANSITION;\r\n }\r\n}\r\nconst nonIdentifierRE = /^\\d|[^\\$\\w]/;\r\nconst isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);\r\nconst validFirstIdentCharRE = /[A-Za-z_$\\xA0-\\uFFFF]/;\r\nconst validIdentCharRE = /[\\.\\?\\w$\\xA0-\\uFFFF]/;\r\nconst whitespaceRE = /\\s+[.[]\\s*|\\s*[.[]\\s+/g;\r\n/**\r\n * Simple lexer to check if an expression is a member expression. This is\r\n * lax and only checks validity at the root level (i.e. does not validate exps\r\n * inside square brackets), but it's ok since these are only used on template\r\n * expressions and false positives are invalid expressions in the first place.\r\n */\r\nconst isMemberExpressionBrowser = (path) => {\r\n // remove whitespaces around . or [ first\r\n path = path.trim().replace(whitespaceRE, s => s.trim());\r\n let state = 0 /* inMemberExp */;\r\n let stateStack = [];\r\n let currentOpenBracketCount = 0;\r\n let currentOpenParensCount = 0;\r\n let currentStringType = null;\r\n for (let i = 0; i < path.length; i++) {\r\n const char = path.charAt(i);\r\n switch (state) {\r\n case 0 /* inMemberExp */:\r\n if (char === '[') {\r\n stateStack.push(state);\r\n state = 1 /* inBrackets */;\r\n currentOpenBracketCount++;\r\n }\r\n else if (char === '(') {\r\n stateStack.push(state);\r\n state = 2 /* inParens */;\r\n currentOpenParensCount++;\r\n }\r\n else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) {\r\n return false;\r\n }\r\n break;\r\n case 1 /* inBrackets */:\r\n if (char === `'` || char === `\"` || char === '`') {\r\n stateStack.push(state);\r\n state = 3 /* inString */;\r\n currentStringType = char;\r\n }\r\n else if (char === `[`) {\r\n currentOpenBracketCount++;\r\n }\r\n else if (char === `]`) {\r\n if (!--currentOpenBracketCount) {\r\n state = stateStack.pop();\r\n }\r\n }\r\n break;\r\n case 2 /* inParens */:\r\n if (char === `'` || char === `\"` || char === '`') {\r\n stateStack.push(state);\r\n state = 3 /* inString */;\r\n currentStringType = char;\r\n }\r\n else if (char === `(`) {\r\n currentOpenParensCount++;\r\n }\r\n else if (char === `)`) {\r\n // if the exp ends as a call then it should not be considered valid\r\n if (i === path.length - 1) {\r\n return false;\r\n }\r\n if (!--currentOpenParensCount) {\r\n state = stateStack.pop();\r\n }\r\n }\r\n break;\r\n case 3 /* inString */:\r\n if (char === currentStringType) {\r\n state = stateStack.pop();\r\n currentStringType = null;\r\n }\r\n break;\r\n }\r\n }\r\n return !currentOpenBracketCount && !currentOpenParensCount;\r\n};\r\nconst isMemberExpressionNode = NOOP\r\n ;\r\nconst isMemberExpression = isMemberExpressionBrowser\r\n ;\r\nfunction getInnerRange(loc, offset, length) {\r\n const source = loc.source.slice(offset, offset + length);\r\n const newLoc = {\r\n source,\r\n start: advancePositionWithClone(loc.start, loc.source, offset),\r\n end: loc.end\r\n };\r\n if (length != null) {\r\n newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length);\r\n }\r\n return newLoc;\r\n}\r\nfunction advancePositionWithClone(pos, source, numberOfCharacters = source.length) {\r\n return advancePositionWithMutation(extend({}, pos), source, numberOfCharacters);\r\n}\r\n// advance by mutation without cloning (for performance reasons), since this\r\n// gets called a lot in the parser\r\nfunction advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {\r\n let linesCount = 0;\r\n let lastNewLinePos = -1;\r\n for (let i = 0; i < numberOfCharacters; i++) {\r\n if (source.charCodeAt(i) === 10 /* newline char code */) {\r\n linesCount++;\r\n lastNewLinePos = i;\r\n }\r\n }\r\n pos.offset += numberOfCharacters;\r\n pos.line += linesCount;\r\n pos.column =\r\n lastNewLinePos === -1\r\n ? pos.column + numberOfCharacters\r\n : numberOfCharacters - lastNewLinePos;\r\n return pos;\r\n}\r\nfunction assert(condition, msg) {\r\n /* istanbul ignore if */\r\n if (!condition) {\r\n throw new Error(msg || `unexpected compiler condition`);\r\n }\r\n}\r\nfunction findDir(node, name, allowEmpty = false) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ &&\r\n (allowEmpty || p.exp) &&\r\n (isString(name) ? p.name === name : name.test(p.name))) {\r\n return p;\r\n }\r\n }\r\n}\r\nfunction findProp(node, name, dynamicOnly = false, allowEmpty = false) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (dynamicOnly)\r\n continue;\r\n if (p.name === name && (p.value || allowEmpty)) {\r\n return p;\r\n }\r\n }\r\n else if (p.name === 'bind' &&\r\n (p.exp || allowEmpty) &&\r\n isStaticArgOf(p.arg, name)) {\r\n return p;\r\n }\r\n }\r\n}\r\nfunction isStaticArgOf(arg, name) {\r\n return !!(arg && isStaticExp(arg) && arg.content === name);\r\n}\r\nfunction hasDynamicKeyVBind(node) {\r\n return node.props.some(p => p.type === 7 /* DIRECTIVE */ &&\r\n p.name === 'bind' &&\r\n (!p.arg || // v-bind=\"obj\"\r\n p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo]\r\n !p.arg.isStatic) // v-bind:[foo]\r\n );\r\n}\r\nfunction isText(node) {\r\n return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */;\r\n}\r\nfunction isVSlot(p) {\r\n return p.type === 7 /* DIRECTIVE */ && p.name === 'slot';\r\n}\r\nfunction isTemplateNode(node) {\r\n return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */);\r\n}\r\nfunction isSlotOutlet(node) {\r\n return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */;\r\n}\r\nfunction getVNodeHelper(ssr, isComponent) {\r\n return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;\r\n}\r\nfunction getVNodeBlockHelper(ssr, isComponent) {\r\n return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;\r\n}\r\nconst propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);\r\nfunction getUnnormalizedProps(props, callPath = []) {\r\n if (props &&\r\n !isString(props) &&\r\n props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n const callee = props.callee;\r\n if (!isString(callee) && propsHelperSet.has(callee)) {\r\n return getUnnormalizedProps(props.arguments[0], callPath.concat(props));\r\n }\r\n }\r\n return [props, callPath];\r\n}\r\nfunction injectProp(node, prop, context) {\r\n let propsWithInjection;\r\n /**\r\n * 1. mergeProps(...)\r\n * 2. toHandlers(...)\r\n * 3. normalizeProps(...)\r\n * 4. normalizeProps(guardReactiveProps(...))\r\n *\r\n * we need to get the real props before normalization\r\n */\r\n let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];\r\n let callPath = [];\r\n let parentCall;\r\n if (props &&\r\n !isString(props) &&\r\n props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n const ret = getUnnormalizedProps(props);\r\n props = ret[0];\r\n callPath = ret[1];\r\n parentCall = callPath[callPath.length - 1];\r\n }\r\n if (props == null || isString(props)) {\r\n propsWithInjection = createObjectExpression([prop]);\r\n }\r\n else if (props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // merged props... add ours\r\n // only inject key to object literal if it's the first argument so that\r\n // if doesn't override user provided keys\r\n const first = props.arguments[0];\r\n if (!isString(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n first.properties.unshift(prop);\r\n }\r\n else {\r\n if (props.callee === TO_HANDLERS) {\r\n // #2366\r\n propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [\r\n createObjectExpression([prop]),\r\n props\r\n ]);\r\n }\r\n else {\r\n props.arguments.unshift(createObjectExpression([prop]));\r\n }\r\n }\r\n !propsWithInjection && (propsWithInjection = props);\r\n }\r\n else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n let alreadyExists = false;\r\n // check existing key to avoid overriding user provided keys\r\n if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) {\r\n const propKeyName = prop.key.content;\r\n alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n p.key.content === propKeyName);\r\n }\r\n if (!alreadyExists) {\r\n props.properties.unshift(prop);\r\n }\r\n propsWithInjection = props;\r\n }\r\n else {\r\n // single v-bind with expression, return a merged replacement\r\n propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [\r\n createObjectExpression([prop]),\r\n props\r\n ]);\r\n // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`,\r\n // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`,\r\n // the `guardReactiveProps` will no longer be needed\r\n if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) {\r\n parentCall = callPath[callPath.length - 2];\r\n }\r\n }\r\n if (node.type === 13 /* VNODE_CALL */) {\r\n if (parentCall) {\r\n parentCall.arguments[0] = propsWithInjection;\r\n }\r\n else {\r\n node.props = propsWithInjection;\r\n }\r\n }\r\n else {\r\n if (parentCall) {\r\n parentCall.arguments[0] = propsWithInjection;\r\n }\r\n else {\r\n node.arguments[2] = propsWithInjection;\r\n }\r\n }\r\n}\r\nfunction toValidAssetId(name, type) {\r\n // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character\r\n return `_${type}_${name.replace(/[^\\w]/g, (searchValue, replaceValue) => {\r\n return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString();\r\n })}`;\r\n}\r\n// Check if a node contains expressions that reference current context scope ids\r\nfunction hasScopeRef(node, ids) {\r\n if (!node || Object.keys(ids).length === 0) {\r\n return false;\r\n }\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ &&\r\n (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) {\r\n return true;\r\n }\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 11 /* FOR */:\r\n if (hasScopeRef(node.source, ids)) {\r\n return true;\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 9 /* IF */:\r\n return node.branches.some(b => hasScopeRef(b, ids));\r\n case 10 /* IF_BRANCH */:\r\n if (hasScopeRef(node.condition, ids)) {\r\n return true;\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n return (!node.isStatic &&\r\n isSimpleIdentifier(node.content) &&\r\n !!ids[node.content]);\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n return node.children.some(c => isObject(c) && hasScopeRef(c, ids));\r\n case 5 /* INTERPOLATION */:\r\n case 12 /* TEXT_CALL */:\r\n return hasScopeRef(node.content, ids);\r\n case 2 /* TEXT */:\r\n case 3 /* COMMENT */:\r\n return false;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) ;\r\n return false;\r\n }\r\n}\r\nfunction getMemoedVNodeCall(node) {\r\n if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) {\r\n return node.arguments[1].returns;\r\n }\r\n else {\r\n return node;\r\n }\r\n}\r\nfunction makeBlock(node, { helper, removeHelper, inSSR }) {\r\n if (!node.isBlock) {\r\n node.isBlock = true;\r\n removeHelper(getVNodeHelper(inSSR, node.isComponent));\r\n helper(OPEN_BLOCK);\r\n helper(getVNodeBlockHelper(inSSR, node.isComponent));\r\n }\r\n}\n\nconst deprecationData = {\r\n [\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */]: {\r\n message: `Platform-native elements with \"is\" prop will no longer be ` +\r\n `treated as components in Vue 3 unless the \"is\" value is explicitly ` +\r\n `prefixed with \"vue:\".`,\r\n link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`\r\n },\r\n [\"COMPILER_V_BIND_SYNC\" /* COMPILER_V_BIND_SYNC */]: {\r\n message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +\r\n `argument instead. \\`v-bind:${key}.sync\\` should be changed to ` +\r\n `\\`v-model:${key}\\`.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-model.html`\r\n },\r\n [\"COMPILER_V_BIND_PROP\" /* COMPILER_V_BIND_PROP */]: {\r\n message: `.prop modifier for v-bind has been removed and no longer necessary. ` +\r\n `Vue 3 will automatically set a binding as DOM property when appropriate.`\r\n },\r\n [\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */]: {\r\n message: `v-bind=\"obj\" usage is now order sensitive and behaves like JavaScript ` +\r\n `object spread: it will now overwrite an existing non-mergeable attribute ` +\r\n `that appears before v-bind in the case of conflict. ` +\r\n `To retain 2.x behavior, move v-bind to make it the first attribute. ` +\r\n `You can also suppress this warning if the usage is intended.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-bind.html`\r\n },\r\n [\"COMPILER_V_ON_NATIVE\" /* COMPILER_V_ON_NATIVE */]: {\r\n message: `.native modifier for v-on has been removed as is no longer necessary.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`\r\n },\r\n [\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {\r\n message: `v-if / v-for precedence when used on the same element has changed ` +\r\n `in Vue 3: v-if now takes higher precedence and will no longer have ` +\r\n `access to v-for scope variables. It is best to avoid the ambiguity ` +\r\n `with <template> tags or use a computed property that filters v-for ` +\r\n `data source.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`\r\n },\r\n [\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */]: {\r\n message: `<template> with no special directives will render as a native template ` +\r\n `element instead of its inner content in Vue 3.`\r\n },\r\n [\"COMPILER_INLINE_TEMPLATE\" /* COMPILER_INLINE_TEMPLATE */]: {\r\n message: `\"inline-template\" has been removed in Vue 3.`,\r\n link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`\r\n },\r\n [\"COMPILER_FILTER\" /* COMPILER_FILTERS */]: {\r\n message: `filters have been removed in Vue 3. ` +\r\n `The \"|\" symbol will be treated as native JavaScript bitwise OR operator. ` +\r\n `Use method calls or computed properties instead.`,\r\n link: `https://v3.vuejs.org/guide/migration/filters.html`\r\n }\r\n};\r\nfunction getCompatValue(key, context) {\r\n const config = context.options\r\n ? context.options.compatConfig\r\n : context.compatConfig;\r\n const value = config && config[key];\r\n if (key === 'MODE') {\r\n return value || 3; // compiler defaults to v3 behavior\r\n }\r\n else {\r\n return value;\r\n }\r\n}\r\nfunction isCompatEnabled(key, context) {\r\n const mode = getCompatValue('MODE', context);\r\n const value = getCompatValue(key, context);\r\n // in v3 mode, only enable if explicitly set to true\r\n // otherwise enable for any non-false value\r\n return mode === 3 ? value === true : value !== false;\r\n}\r\nfunction checkCompatEnabled(key, context, loc, ...args) {\r\n const enabled = isCompatEnabled(key, context);\r\n if ((process.env.NODE_ENV !== 'production') && enabled) {\r\n warnDeprecation(key, context, loc, ...args);\r\n }\r\n return enabled;\r\n}\r\nfunction warnDeprecation(key, context, loc, ...args) {\r\n const val = getCompatValue(key, context);\r\n if (val === 'suppress-warning') {\r\n return;\r\n }\r\n const { message, link } = deprecationData[key];\r\n const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\\n Details: ${link}` : ``}`;\r\n const err = new SyntaxError(msg);\r\n err.code = key;\r\n if (loc)\r\n err.loc = loc;\r\n context.onWarn(err);\r\n}\n\n// The default decoder only provides escapes for characters reserved as part of\r\n// the template syntax, and is only used if the custom renderer did not provide\r\n// a platform-specific decoder.\r\nconst decodeRE = /&(gt|lt|amp|apos|quot);/g;\r\nconst decodeMap = {\r\n gt: '>',\r\n lt: '<',\r\n amp: '&',\r\n apos: \"'\",\r\n quot: '\"'\r\n};\r\nconst defaultParserOptions = {\r\n delimiters: [`{{`, `}}`],\r\n getNamespace: () => 0 /* HTML */,\r\n getTextMode: () => 0 /* DATA */,\r\n isVoidTag: NO,\r\n isPreTag: NO,\r\n isCustomElement: NO,\r\n decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),\r\n onError: defaultOnError,\r\n onWarn: defaultOnWarn,\r\n comments: (process.env.NODE_ENV !== 'production')\r\n};\r\nfunction baseParse(content, options = {}) {\r\n const context = createParserContext(content, options);\r\n const start = getCursor(context);\r\n return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start));\r\n}\r\nfunction createParserContext(content, rawOptions) {\r\n const options = extend({}, defaultParserOptions);\r\n let key;\r\n for (key in rawOptions) {\r\n // @ts-ignore\r\n options[key] =\r\n rawOptions[key] === undefined\r\n ? defaultParserOptions[key]\r\n : rawOptions[key];\r\n }\r\n return {\r\n options,\r\n column: 1,\r\n line: 1,\r\n offset: 0,\r\n originalSource: content,\r\n source: content,\r\n inPre: false,\r\n inVPre: false,\r\n onWarn: options.onWarn\r\n };\r\n}\r\nfunction parseChildren(context, mode, ancestors) {\r\n const parent = last(ancestors);\r\n const ns = parent ? parent.ns : 0 /* HTML */;\r\n const nodes = [];\r\n while (!isEnd(context, mode, ancestors)) {\r\n const s = context.source;\r\n let node = undefined;\r\n if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) {\r\n if (!context.inVPre && startsWith(s, context.options.delimiters[0])) {\r\n // '{{'\r\n node = parseInterpolation(context, mode);\r\n }\r\n else if (mode === 0 /* DATA */ && s[0] === '<') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state\r\n if (s.length === 1) {\r\n emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1);\r\n }\r\n else if (s[1] === '!') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state\r\n if (startsWith(s, '<!--')) {\r\n node = parseComment(context);\r\n }\r\n else if (startsWith(s, '<!DOCTYPE')) {\r\n // Ignore DOCTYPE by a limitation.\r\n node = parseBogusComment(context);\r\n }\r\n else if (startsWith(s, '<![CDATA[')) {\r\n if (ns !== 0 /* HTML */) {\r\n node = parseCDATA(context, ancestors);\r\n }\r\n else {\r\n emitError(context, 1 /* CDATA_IN_HTML_CONTENT */);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else {\r\n emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else if (s[1] === '/') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state\r\n if (s.length === 2) {\r\n emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2);\r\n }\r\n else if (s[2] === '>') {\r\n emitError(context, 14 /* MISSING_END_TAG_NAME */, 2);\r\n advanceBy(context, 3);\r\n continue;\r\n }\r\n else if (/[a-z]/i.test(s[2])) {\r\n emitError(context, 23 /* X_INVALID_END_TAG */);\r\n parseTag(context, 1 /* End */, parent);\r\n continue;\r\n }\r\n else {\r\n emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else if (/[a-z]/i.test(s[1])) {\r\n node = parseElement(context, ancestors);\r\n // 2.x <template> with no directive compat\r\n if (isCompatEnabled(\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */, context) &&\r\n node &&\r\n node.tag === 'template' &&\r\n !node.props.some(p => p.type === 7 /* DIRECTIVE */ &&\r\n isSpecialTemplateDirective(p.name))) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warnDeprecation(\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc);\r\n node = node.children;\r\n }\r\n }\r\n else if (s[1] === '?') {\r\n emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1);\r\n node = parseBogusComment(context);\r\n }\r\n else {\r\n emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1);\r\n }\r\n }\r\n }\r\n if (!node) {\r\n node = parseText(context, mode);\r\n }\r\n if (isArray(node)) {\r\n for (let i = 0; i < node.length; i++) {\r\n pushNode(nodes, node[i]);\r\n }\r\n }\r\n else {\r\n pushNode(nodes, node);\r\n }\r\n }\r\n // Whitespace handling strategy like v2\r\n let removedWhitespace = false;\r\n if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {\r\n const shouldCondense = context.options.whitespace !== 'preserve';\r\n for (let i = 0; i < nodes.length; i++) {\r\n const node = nodes[i];\r\n if (!context.inPre && node.type === 2 /* TEXT */) {\r\n if (!/[^\\t\\r\\n\\f ]/.test(node.content)) {\r\n const prev = nodes[i - 1];\r\n const next = nodes[i + 1];\r\n // Remove if:\r\n // - the whitespace is the first or last node, or:\r\n // - (condense mode) the whitespace is adjacent to a comment, or:\r\n // - (condense mode) the whitespace is between two elements AND contains newline\r\n if (!prev ||\r\n !next ||\r\n (shouldCondense &&\r\n (prev.type === 3 /* COMMENT */ ||\r\n next.type === 3 /* COMMENT */ ||\r\n (prev.type === 1 /* ELEMENT */ &&\r\n next.type === 1 /* ELEMENT */ &&\r\n /[\\r\\n]/.test(node.content))))) {\r\n removedWhitespace = true;\r\n nodes[i] = null;\r\n }\r\n else {\r\n // Otherwise, the whitespace is condensed into a single space\r\n node.content = ' ';\r\n }\r\n }\r\n else if (shouldCondense) {\r\n // in condense mode, consecutive whitespaces in text are condensed\r\n // down to a single space.\r\n node.content = node.content.replace(/[\\t\\r\\n\\f ]+/g, ' ');\r\n }\r\n }\r\n // Remove comment nodes if desired by configuration.\r\n else if (node.type === 3 /* COMMENT */ && !context.options.comments) {\r\n removedWhitespace = true;\r\n nodes[i] = null;\r\n }\r\n }\r\n if (context.inPre && parent && context.options.isPreTag(parent.tag)) {\r\n // remove leading newline per html spec\r\n // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element\r\n const first = nodes[0];\r\n if (first && first.type === 2 /* TEXT */) {\r\n first.content = first.content.replace(/^\\r?\\n/, '');\r\n }\r\n }\r\n }\r\n return removedWhitespace ? nodes.filter(Boolean) : nodes;\r\n}\r\nfunction pushNode(nodes, node) {\r\n if (node.type === 2 /* TEXT */) {\r\n const prev = last(nodes);\r\n // Merge if both this and the previous node are text and those are\r\n // consecutive. This happens for cases like \"a < b\".\r\n if (prev &&\r\n prev.type === 2 /* TEXT */ &&\r\n prev.loc.end.offset === node.loc.start.offset) {\r\n prev.content += node.content;\r\n prev.loc.end = node.loc.end;\r\n prev.loc.source += node.loc.source;\r\n return;\r\n }\r\n }\r\n nodes.push(node);\r\n}\r\nfunction parseCDATA(context, ancestors) {\r\n advanceBy(context, 9);\r\n const nodes = parseChildren(context, 3 /* CDATA */, ancestors);\r\n if (context.source.length === 0) {\r\n emitError(context, 6 /* EOF_IN_CDATA */);\r\n }\r\n else {\r\n advanceBy(context, 3);\r\n }\r\n return nodes;\r\n}\r\nfunction parseComment(context) {\r\n const start = getCursor(context);\r\n let content;\r\n // Regular comment.\r\n const match = /--(\\!)?>/.exec(context.source);\r\n if (!match) {\r\n content = context.source.slice(4);\r\n advanceBy(context, context.source.length);\r\n emitError(context, 7 /* EOF_IN_COMMENT */);\r\n }\r\n else {\r\n if (match.index <= 3) {\r\n emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */);\r\n }\r\n if (match[1]) {\r\n emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */);\r\n }\r\n content = context.source.slice(4, match.index);\r\n // Advancing with reporting nested comments.\r\n const s = context.source.slice(0, match.index);\r\n let prevIndex = 1, nestedIndex = 0;\r\n while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) {\r\n advanceBy(context, nestedIndex - prevIndex + 1);\r\n if (nestedIndex + 4 < s.length) {\r\n emitError(context, 16 /* NESTED_COMMENT */);\r\n }\r\n prevIndex = nestedIndex + 1;\r\n }\r\n advanceBy(context, match.index + match[0].length - prevIndex + 1);\r\n }\r\n return {\r\n type: 3 /* COMMENT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseBogusComment(context) {\r\n const start = getCursor(context);\r\n const contentStart = context.source[1] === '?' ? 1 : 2;\r\n let content;\r\n const closeIndex = context.source.indexOf('>');\r\n if (closeIndex === -1) {\r\n content = context.source.slice(contentStart);\r\n advanceBy(context, context.source.length);\r\n }\r\n else {\r\n content = context.source.slice(contentStart, closeIndex);\r\n advanceBy(context, closeIndex + 1);\r\n }\r\n return {\r\n type: 3 /* COMMENT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseElement(context, ancestors) {\r\n // Start tag.\r\n const wasInPre = context.inPre;\r\n const wasInVPre = context.inVPre;\r\n const parent = last(ancestors);\r\n const element = parseTag(context, 0 /* Start */, parent);\r\n const isPreBoundary = context.inPre && !wasInPre;\r\n const isVPreBoundary = context.inVPre && !wasInVPre;\r\n if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {\r\n // #4030 self-closing <pre> tag\r\n if (isPreBoundary) {\r\n context.inPre = false;\r\n }\r\n if (isVPreBoundary) {\r\n context.inVPre = false;\r\n }\r\n return element;\r\n }\r\n // Children.\r\n ancestors.push(element);\r\n const mode = context.options.getTextMode(element, parent);\r\n const children = parseChildren(context, mode, ancestors);\r\n ancestors.pop();\r\n // 2.x inline-template compat\r\n {\r\n const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template');\r\n if (inlineTemplateProp &&\r\n checkCompatEnabled(\"COMPILER_INLINE_TEMPLATE\" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {\r\n const loc = getSelection(context, element.loc.end);\r\n inlineTemplateProp.value = {\r\n type: 2 /* TEXT */,\r\n content: loc.source,\r\n loc\r\n };\r\n }\r\n }\r\n element.children = children;\r\n // End tag.\r\n if (startsWithEndTagOpen(context.source, element.tag)) {\r\n parseTag(context, 1 /* End */, parent);\r\n }\r\n else {\r\n emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start);\r\n if (context.source.length === 0 && element.tag.toLowerCase() === 'script') {\r\n const first = children[0];\r\n if (first && startsWith(first.loc.source, '<!--')) {\r\n emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */);\r\n }\r\n }\r\n }\r\n element.loc = getSelection(context, element.loc.start);\r\n if (isPreBoundary) {\r\n context.inPre = false;\r\n }\r\n if (isVPreBoundary) {\r\n context.inVPre = false;\r\n }\r\n return element;\r\n}\r\nconst isSpecialTemplateDirective = /*#__PURE__*/ makeMap(`if,else,else-if,for,slot`);\r\nfunction parseTag(context, type, parent) {\r\n // Tag open.\r\n const start = getCursor(context);\r\n const match = /^<\\/?([a-z][^\\t\\r\\n\\f />]*)/i.exec(context.source);\r\n const tag = match[1];\r\n const ns = context.options.getNamespace(tag, parent);\r\n advanceBy(context, match[0].length);\r\n advanceSpaces(context);\r\n // save current state in case we need to re-parse attributes with v-pre\r\n const cursor = getCursor(context);\r\n const currentSource = context.source;\r\n // check <pre> tag\r\n if (context.options.isPreTag(tag)) {\r\n context.inPre = true;\r\n }\r\n // Attributes.\r\n let props = parseAttributes(context, type);\r\n // check v-pre\r\n if (type === 0 /* Start */ &&\r\n !context.inVPre &&\r\n props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) {\r\n context.inVPre = true;\r\n // reset context\r\n extend(context, cursor);\r\n context.source = currentSource;\r\n // re-parse attrs and filter out v-pre itself\r\n props = parseAttributes(context, type).filter(p => p.name !== 'v-pre');\r\n }\r\n // Tag close.\r\n let isSelfClosing = false;\r\n if (context.source.length === 0) {\r\n emitError(context, 9 /* EOF_IN_TAG */);\r\n }\r\n else {\r\n isSelfClosing = startsWith(context.source, '/>');\r\n if (type === 1 /* End */ && isSelfClosing) {\r\n emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */);\r\n }\r\n advanceBy(context, isSelfClosing ? 2 : 1);\r\n }\r\n if (type === 1 /* End */) {\r\n return;\r\n }\r\n // 2.x deprecation checks\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n isCompatEnabled(\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {\r\n let hasIf = false;\r\n let hasFor = false;\r\n for (let i = 0; i < props.length; i++) {\r\n const p = props[i];\r\n if (p.type === 7 /* DIRECTIVE */) {\r\n if (p.name === 'if') {\r\n hasIf = true;\r\n }\r\n else if (p.name === 'for') {\r\n hasFor = true;\r\n }\r\n }\r\n if (hasIf && hasFor) {\r\n warnDeprecation(\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));\r\n break;\r\n }\r\n }\r\n }\r\n let tagType = 0 /* ELEMENT */;\r\n if (!context.inVPre) {\r\n if (tag === 'slot') {\r\n tagType = 2 /* SLOT */;\r\n }\r\n else if (tag === 'template') {\r\n if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) {\r\n tagType = 3 /* TEMPLATE */;\r\n }\r\n }\r\n else if (isComponent(tag, props, context)) {\r\n tagType = 1 /* COMPONENT */;\r\n }\r\n }\r\n return {\r\n type: 1 /* ELEMENT */,\r\n ns,\r\n tag,\r\n tagType,\r\n props,\r\n isSelfClosing,\r\n children: [],\r\n loc: getSelection(context, start),\r\n codegenNode: undefined // to be created during transform phase\r\n };\r\n}\r\nfunction isComponent(tag, props, context) {\r\n const options = context.options;\r\n if (options.isCustomElement(tag)) {\r\n return false;\r\n }\r\n if (tag === 'component' ||\r\n /^[A-Z]/.test(tag) ||\r\n isCoreComponent(tag) ||\r\n (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||\r\n (options.isNativeTag && !options.isNativeTag(tag))) {\r\n return true;\r\n }\r\n // at this point the tag should be a native tag, but check for potential \"is\"\r\n // casting\r\n for (let i = 0; i < props.length; i++) {\r\n const p = props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (p.name === 'is' && p.value) {\r\n if (p.value.content.startsWith('vue:')) {\r\n return true;\r\n }\r\n else if (checkCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {\r\n return true;\r\n }\r\n }\r\n }\r\n else {\r\n // directive\r\n // v-is (TODO Deprecate)\r\n if (p.name === 'is') {\r\n return true;\r\n }\r\n else if (\r\n // :is on plain element - only treat as component in compat mode\r\n p.name === 'bind' &&\r\n isStaticArgOf(p.arg, 'is') &&\r\n true &&\r\n checkCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {\r\n return true;\r\n }\r\n }\r\n }\r\n}\r\nfunction parseAttributes(context, type) {\r\n const props = [];\r\n const attributeNames = new Set();\r\n while (context.source.length > 0 &&\r\n !startsWith(context.source, '>') &&\r\n !startsWith(context.source, '/>')) {\r\n if (startsWith(context.source, '/')) {\r\n emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */);\r\n advanceBy(context, 1);\r\n advanceSpaces(context);\r\n continue;\r\n }\r\n if (type === 1 /* End */) {\r\n emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);\r\n }\r\n const attr = parseAttribute(context, attributeNames);\r\n // Trim whitespace between class\r\n // https://github.com/vuejs/vue-next/issues/4251\r\n if (attr.type === 6 /* ATTRIBUTE */ &&\r\n attr.value &&\r\n attr.name === 'class') {\r\n attr.value.content = attr.value.content.replace(/\\s+/g, ' ').trim();\r\n }\r\n if (type === 0 /* Start */) {\r\n props.push(attr);\r\n }\r\n if (/^[^\\t\\r\\n\\f />]/.test(context.source)) {\r\n emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */);\r\n }\r\n advanceSpaces(context);\r\n }\r\n return props;\r\n}\r\nfunction parseAttribute(context, nameSet) {\r\n // Name.\r\n const start = getCursor(context);\r\n const match = /^[^\\t\\r\\n\\f />][^\\t\\r\\n\\f />=]*/.exec(context.source);\r\n const name = match[0];\r\n if (nameSet.has(name)) {\r\n emitError(context, 2 /* DUPLICATE_ATTRIBUTE */);\r\n }\r\n nameSet.add(name);\r\n if (name[0] === '=') {\r\n emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */);\r\n }\r\n {\r\n const pattern = /[\"'<]/g;\r\n let m;\r\n while ((m = pattern.exec(name))) {\r\n emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index);\r\n }\r\n }\r\n advanceBy(context, name.length);\r\n // Value\r\n let value = undefined;\r\n if (/^[\\t\\r\\n\\f ]*=/.test(context.source)) {\r\n advanceSpaces(context);\r\n advanceBy(context, 1);\r\n advanceSpaces(context);\r\n value = parseAttributeValue(context);\r\n if (!value) {\r\n emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */);\r\n }\r\n }\r\n const loc = getSelection(context, start);\r\n if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\\.|@|#)/.test(name)) {\r\n const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\\.|^@|^#)(\\[[^\\]]+\\]|[^\\.]+))?(.+)?$/i.exec(name);\r\n let isPropShorthand = startsWith(name, '.');\r\n let dirName = match[1] ||\r\n (isPropShorthand || startsWith(name, ':')\r\n ? 'bind'\r\n : startsWith(name, '@')\r\n ? 'on'\r\n : 'slot');\r\n let arg;\r\n if (match[2]) {\r\n const isSlot = dirName === 'slot';\r\n const startOffset = name.lastIndexOf(match[2]);\r\n const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));\r\n let content = match[2];\r\n let isStatic = true;\r\n if (content.startsWith('[')) {\r\n isStatic = false;\r\n if (!content.endsWith(']')) {\r\n emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);\r\n content = content.slice(1);\r\n }\r\n else {\r\n content = content.slice(1, content.length - 1);\r\n }\r\n }\r\n else if (isSlot) {\r\n // #1241 special case for v-slot: vuetify relies extensively on slot\r\n // names containing dots. v-slot doesn't have any modifiers and Vue 2.x\r\n // supports such usage so we are keeping it consistent with 2.x.\r\n content += match[3] || '';\r\n }\r\n arg = {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n content,\r\n isStatic,\r\n constType: isStatic\r\n ? 3 /* CAN_STRINGIFY */\r\n : 0 /* NOT_CONSTANT */,\r\n loc\r\n };\r\n }\r\n if (value && value.isQuoted) {\r\n const valueLoc = value.loc;\r\n valueLoc.start.offset++;\r\n valueLoc.start.column++;\r\n valueLoc.end = advancePositionWithClone(valueLoc.start, value.content);\r\n valueLoc.source = valueLoc.source.slice(1, -1);\r\n }\r\n const modifiers = match[3] ? match[3].slice(1).split('.') : [];\r\n if (isPropShorthand)\r\n modifiers.push('prop');\r\n // 2.x compat v-bind:foo.sync -> v-model:foo\r\n if (dirName === 'bind' && arg) {\r\n if (modifiers.includes('sync') &&\r\n checkCompatEnabled(\"COMPILER_V_BIND_SYNC\" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {\r\n dirName = 'model';\r\n modifiers.splice(modifiers.indexOf('sync'), 1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && modifiers.includes('prop')) {\r\n checkCompatEnabled(\"COMPILER_V_BIND_PROP\" /* COMPILER_V_BIND_PROP */, context, loc);\r\n }\r\n }\r\n return {\r\n type: 7 /* DIRECTIVE */,\r\n name: dirName,\r\n exp: value && {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n content: value.content,\r\n isStatic: false,\r\n // Treat as non-constant by default. This can be potentially set to\r\n // other values by `transformExpression` to make it eligible for hoisting.\r\n constType: 0 /* NOT_CONSTANT */,\r\n loc: value.loc\r\n },\r\n arg,\r\n modifiers,\r\n loc\r\n };\r\n }\r\n // missing directive name or illegal directive name\r\n if (!context.inVPre && startsWith(name, 'v-')) {\r\n emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);\r\n }\r\n return {\r\n type: 6 /* ATTRIBUTE */,\r\n name,\r\n value: value && {\r\n type: 2 /* TEXT */,\r\n content: value.content,\r\n loc: value.loc\r\n },\r\n loc\r\n };\r\n}\r\nfunction parseAttributeValue(context) {\r\n const start = getCursor(context);\r\n let content;\r\n const quote = context.source[0];\r\n const isQuoted = quote === `\"` || quote === `'`;\r\n if (isQuoted) {\r\n // Quoted value.\r\n advanceBy(context, 1);\r\n const endIndex = context.source.indexOf(quote);\r\n if (endIndex === -1) {\r\n content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n else {\r\n content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */);\r\n advanceBy(context, 1);\r\n }\r\n }\r\n else {\r\n // Unquoted\r\n const match = /^[^\\t\\r\\n\\f >]+/.exec(context.source);\r\n if (!match) {\r\n return undefined;\r\n }\r\n const unexpectedChars = /[\"'<=`]/g;\r\n let m;\r\n while ((m = unexpectedChars.exec(match[0]))) {\r\n emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index);\r\n }\r\n content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n return { content, isQuoted, loc: getSelection(context, start) };\r\n}\r\nfunction parseInterpolation(context, mode) {\r\n const [open, close] = context.options.delimiters;\r\n const closeIndex = context.source.indexOf(close, open.length);\r\n if (closeIndex === -1) {\r\n emitError(context, 25 /* X_MISSING_INTERPOLATION_END */);\r\n return undefined;\r\n }\r\n const start = getCursor(context);\r\n advanceBy(context, open.length);\r\n const innerStart = getCursor(context);\r\n const innerEnd = getCursor(context);\r\n const rawContentLength = closeIndex - open.length;\r\n const rawContent = context.source.slice(0, rawContentLength);\r\n const preTrimContent = parseTextData(context, rawContentLength, mode);\r\n const content = preTrimContent.trim();\r\n const startOffset = preTrimContent.indexOf(content);\r\n if (startOffset > 0) {\r\n advancePositionWithMutation(innerStart, rawContent, startOffset);\r\n }\r\n const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset);\r\n advancePositionWithMutation(innerEnd, rawContent, endOffset);\r\n advanceBy(context, close.length);\r\n return {\r\n type: 5 /* INTERPOLATION */,\r\n content: {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n isStatic: false,\r\n // Set `isConstant` to false by default and will decide in transformExpression\r\n constType: 0 /* NOT_CONSTANT */,\r\n content,\r\n loc: getSelection(context, innerStart, innerEnd)\r\n },\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseText(context, mode) {\r\n const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]];\r\n let endIndex = context.source.length;\r\n for (let i = 0; i < endTokens.length; i++) {\r\n const index = context.source.indexOf(endTokens[i], 1);\r\n if (index !== -1 && endIndex > index) {\r\n endIndex = index;\r\n }\r\n }\r\n const start = getCursor(context);\r\n const content = parseTextData(context, endIndex, mode);\r\n return {\r\n type: 2 /* TEXT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\n/**\r\n * Get text data with a given length from the current location.\r\n * This translates HTML entities in the text data.\r\n */\r\nfunction parseTextData(context, length, mode) {\r\n const rawText = context.source.slice(0, length);\r\n advanceBy(context, length);\r\n if (mode === 2 /* RAWTEXT */ ||\r\n mode === 3 /* CDATA */ ||\r\n rawText.indexOf('&') === -1) {\r\n return rawText;\r\n }\r\n else {\r\n // DATA or RCDATA containing \"&\"\". Entity decoding required.\r\n return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n}\r\nfunction getCursor(context) {\r\n const { column, line, offset } = context;\r\n return { column, line, offset };\r\n}\r\nfunction getSelection(context, start, end) {\r\n end = end || getCursor(context);\r\n return {\r\n start,\r\n end,\r\n source: context.originalSource.slice(start.offset, end.offset)\r\n };\r\n}\r\nfunction last(xs) {\r\n return xs[xs.length - 1];\r\n}\r\nfunction startsWith(source, searchString) {\r\n return source.startsWith(searchString);\r\n}\r\nfunction advanceBy(context, numberOfCharacters) {\r\n const { source } = context;\r\n advancePositionWithMutation(context, source, numberOfCharacters);\r\n context.source = source.slice(numberOfCharacters);\r\n}\r\nfunction advanceSpaces(context) {\r\n const match = /^[\\t\\r\\n\\f ]+/.exec(context.source);\r\n if (match) {\r\n advanceBy(context, match[0].length);\r\n }\r\n}\r\nfunction getNewPosition(context, start, numberOfCharacters) {\r\n return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters);\r\n}\r\nfunction emitError(context, code, offset, loc = getCursor(context)) {\r\n if (offset) {\r\n loc.offset += offset;\r\n loc.column += offset;\r\n }\r\n context.options.onError(createCompilerError(code, {\r\n start: loc,\r\n end: loc,\r\n source: ''\r\n }));\r\n}\r\nfunction isEnd(context, mode, ancestors) {\r\n const s = context.source;\r\n switch (mode) {\r\n case 0 /* DATA */:\r\n if (startsWith(s, '</')) {\r\n // TODO: probably bad performance\r\n for (let i = ancestors.length - 1; i >= 0; --i) {\r\n if (startsWithEndTagOpen(s, ancestors[i].tag)) {\r\n return true;\r\n }\r\n }\r\n }\r\n break;\r\n case 1 /* RCDATA */:\r\n case 2 /* RAWTEXT */: {\r\n const parent = last(ancestors);\r\n if (parent && startsWithEndTagOpen(s, parent.tag)) {\r\n return true;\r\n }\r\n break;\r\n }\r\n case 3 /* CDATA */:\r\n if (startsWith(s, ']]>')) {\r\n return true;\r\n }\r\n break;\r\n }\r\n return !s;\r\n}\r\nfunction startsWithEndTagOpen(source, tag) {\r\n return (startsWith(source, '</') &&\r\n source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() &&\r\n /[\\t\\r\\n\\f />]/.test(source[2 + tag.length] || '>'));\r\n}\n\nfunction hoistStatic(root, context) {\r\n walk(root, context, \r\n // Root node is unfortunately non-hoistable due to potential parent\r\n // fallthrough attributes.\r\n isSingleElementRoot(root, root.children[0]));\r\n}\r\nfunction isSingleElementRoot(root, child) {\r\n const { children } = root;\r\n return (children.length === 1 &&\r\n child.type === 1 /* ELEMENT */ &&\r\n !isSlotOutlet(child));\r\n}\r\nfunction walk(node, context, doNotHoistNode = false) {\r\n const { children } = node;\r\n const originalCount = children.length;\r\n let hoistedCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n // only plain elements & text calls are eligible for hoisting.\r\n if (child.type === 1 /* ELEMENT */ &&\r\n child.tagType === 0 /* ELEMENT */) {\r\n const constantType = doNotHoistNode\r\n ? 0 /* NOT_CONSTANT */\r\n : getConstantType(child, context);\r\n if (constantType > 0 /* NOT_CONSTANT */) {\r\n if (constantType >= 2 /* CAN_HOIST */) {\r\n child.codegenNode.patchFlag =\r\n -1 /* HOISTED */ + ((process.env.NODE_ENV !== 'production') ? ` /* HOISTED */` : ``);\r\n child.codegenNode = context.hoist(child.codegenNode);\r\n hoistedCount++;\r\n continue;\r\n }\r\n }\r\n else {\r\n // node may contain dynamic children, but its props may be eligible for\r\n // hoisting.\r\n const codegenNode = child.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n const flag = getPatchFlag(codegenNode);\r\n if ((!flag ||\r\n flag === 512 /* NEED_PATCH */ ||\r\n flag === 1 /* TEXT */) &&\r\n getGeneratedPropsConstantType(child, context) >=\r\n 2 /* CAN_HOIST */) {\r\n const props = getNodeProps(child);\r\n if (props) {\r\n codegenNode.props = context.hoist(props);\r\n }\r\n }\r\n if (codegenNode.dynamicProps) {\r\n codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);\r\n }\r\n }\r\n }\r\n }\r\n else if (child.type === 12 /* TEXT_CALL */ &&\r\n getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {\r\n child.codegenNode = context.hoist(child.codegenNode);\r\n hoistedCount++;\r\n }\r\n // walk further\r\n if (child.type === 1 /* ELEMENT */) {\r\n const isComponent = child.tagType === 1 /* COMPONENT */;\r\n if (isComponent) {\r\n context.scopes.vSlot++;\r\n }\r\n walk(child, context);\r\n if (isComponent) {\r\n context.scopes.vSlot--;\r\n }\r\n }\r\n else if (child.type === 11 /* FOR */) {\r\n // Do not hoist v-for single child because it has to be a block\r\n walk(child, context, child.children.length === 1);\r\n }\r\n else if (child.type === 9 /* IF */) {\r\n for (let i = 0; i < child.branches.length; i++) {\r\n // Do not hoist v-if single child because it has to be a block\r\n walk(child.branches[i], context, child.branches[i].children.length === 1);\r\n }\r\n }\r\n }\r\n if (hoistedCount && context.transformHoist) {\r\n context.transformHoist(children, context, node);\r\n }\r\n // all children were hoisted - the entire children array is hoistable.\r\n if (hoistedCount &&\r\n hoistedCount === originalCount &&\r\n node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n node.codegenNode &&\r\n node.codegenNode.type === 13 /* VNODE_CALL */ &&\r\n isArray(node.codegenNode.children)) {\r\n node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children));\r\n }\r\n}\r\nfunction getConstantType(node, context) {\r\n const { constantCache } = context;\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n if (node.tagType !== 0 /* ELEMENT */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n const cached = constantCache.get(node);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const codegenNode = node.codegenNode;\r\n if (codegenNode.type !== 13 /* VNODE_CALL */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (codegenNode.isBlock &&\r\n node.tag !== 'svg' &&\r\n node.tag !== 'foreignObject') {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n const flag = getPatchFlag(codegenNode);\r\n if (!flag) {\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n // Element itself has no patch flag. However we still need to check:\r\n // 1. Even for a node with no patch flag, it is possible for it to contain\r\n // non-hoistable expressions that refers to scope variables, e.g. compiler\r\n // injected keys or cached event handlers. Therefore we need to always\r\n // check the codegenNode's props to be sure.\r\n const generatedPropsType = getGeneratedPropsConstantType(node, context);\r\n if (generatedPropsType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (generatedPropsType < returnType) {\r\n returnType = generatedPropsType;\r\n }\r\n // 2. its children.\r\n for (let i = 0; i < node.children.length; i++) {\r\n const childType = getConstantType(node.children[i], context);\r\n if (childType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (childType < returnType) {\r\n returnType = childType;\r\n }\r\n }\r\n // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0\r\n // type, check if any of the props can cause the type to be lowered\r\n // we can skip can_patch because it's guaranteed by the absence of a\r\n // patchFlag.\r\n if (returnType > 1 /* CAN_SKIP_PATCH */) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) {\r\n const expType = getConstantType(p.exp, context);\r\n if (expType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (expType < returnType) {\r\n returnType = expType;\r\n }\r\n }\r\n }\r\n }\r\n // only svg/foreignObject could be block here, however if they are\r\n // static then they don't need to be blocks since there will be no\r\n // nested updates.\r\n if (codegenNode.isBlock) {\r\n context.removeHelper(OPEN_BLOCK);\r\n context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));\r\n codegenNode.isBlock = false;\r\n context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));\r\n }\r\n constantCache.set(node, returnType);\r\n return returnType;\r\n }\r\n else {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n case 2 /* TEXT */:\r\n case 3 /* COMMENT */:\r\n return 3 /* CAN_STRINGIFY */;\r\n case 9 /* IF */:\r\n case 11 /* FOR */:\r\n case 10 /* IF_BRANCH */:\r\n return 0 /* NOT_CONSTANT */;\r\n case 5 /* INTERPOLATION */:\r\n case 12 /* TEXT_CALL */:\r\n return getConstantType(node.content, context);\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n return node.constType;\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (isString(child) || isSymbol(child)) {\r\n continue;\r\n }\r\n const childType = getConstantType(child, context);\r\n if (childType === 0 /* NOT_CONSTANT */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n else if (childType < returnType) {\r\n returnType = childType;\r\n }\r\n }\r\n return returnType;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) ;\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n}\r\nconst allowHoistedHelperSet = new Set([\r\n NORMALIZE_CLASS,\r\n NORMALIZE_STYLE,\r\n NORMALIZE_PROPS,\r\n GUARD_REACTIVE_PROPS\r\n]);\r\nfunction getConstantTypeOfHelperCall(value, context) {\r\n if (value.type === 14 /* JS_CALL_EXPRESSION */ &&\r\n !isString(value.callee) &&\r\n allowHoistedHelperSet.has(value.callee)) {\r\n const arg = value.arguments[0];\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n return getConstantType(arg, context);\r\n }\r\n else if (arg.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))`\r\n return getConstantTypeOfHelperCall(arg, context);\r\n }\r\n }\r\n return 0 /* NOT_CONSTANT */;\r\n}\r\nfunction getGeneratedPropsConstantType(node, context) {\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n const props = getNodeProps(node);\r\n if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n const { properties } = props;\r\n for (let i = 0; i < properties.length; i++) {\r\n const { key, value } = properties[i];\r\n const keyType = getConstantType(key, context);\r\n if (keyType === 0 /* NOT_CONSTANT */) {\r\n return keyType;\r\n }\r\n if (keyType < returnType) {\r\n returnType = keyType;\r\n }\r\n let valueType;\r\n if (value.type === 4 /* SIMPLE_EXPRESSION */) {\r\n valueType = getConstantType(value, context);\r\n }\r\n else if (value.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // some helper calls can be hoisted,\r\n // such as the `normalizeProps` generated by the compiler for pre-normalize class,\r\n // in this case we need to respect the ConstantType of the helper's arguments\r\n valueType = getConstantTypeOfHelperCall(value, context);\r\n }\r\n else {\r\n valueType = 0 /* NOT_CONSTANT */;\r\n }\r\n if (valueType === 0 /* NOT_CONSTANT */) {\r\n return valueType;\r\n }\r\n if (valueType < returnType) {\r\n returnType = valueType;\r\n }\r\n }\r\n }\r\n return returnType;\r\n}\r\nfunction getNodeProps(node) {\r\n const codegenNode = node.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n return codegenNode.props;\r\n }\r\n}\r\nfunction getPatchFlag(node) {\r\n const flag = node.patchFlag;\r\n return flag ? parseInt(flag, 10) : undefined;\r\n}\n\nfunction createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {\r\n const nameMatch = filename.replace(/\\?.*$/, '').match(/([^/\\\\]+)\\.\\w+$/);\r\n const context = {\r\n // options\r\n selfName: nameMatch && capitalize(camelize$1(nameMatch[1])),\r\n prefixIdentifiers,\r\n hoistStatic,\r\n cacheHandlers,\r\n nodeTransforms,\r\n directiveTransforms,\r\n transformHoist,\r\n isBuiltInComponent,\r\n isCustomElement,\r\n expressionPlugins,\r\n scopeId,\r\n slotted,\r\n ssr,\r\n inSSR,\r\n ssrCssVars,\r\n bindingMetadata,\r\n inline,\r\n isTS,\r\n onError,\r\n onWarn,\r\n compatConfig,\r\n // state\r\n root,\r\n helpers: new Map(),\r\n components: new Set(),\r\n directives: new Set(),\r\n hoists: [],\r\n imports: [],\r\n constantCache: new Map(),\r\n temps: 0,\r\n cached: 0,\r\n identifiers: Object.create(null),\r\n scopes: {\r\n vFor: 0,\r\n vSlot: 0,\r\n vPre: 0,\r\n vOnce: 0\r\n },\r\n parent: null,\r\n currentNode: root,\r\n childIndex: 0,\r\n inVOnce: false,\r\n // methods\r\n helper(name) {\r\n const count = context.helpers.get(name) || 0;\r\n context.helpers.set(name, count + 1);\r\n return name;\r\n },\r\n removeHelper(name) {\r\n const count = context.helpers.get(name);\r\n if (count) {\r\n const currentCount = count - 1;\r\n if (!currentCount) {\r\n context.helpers.delete(name);\r\n }\r\n else {\r\n context.helpers.set(name, currentCount);\r\n }\r\n }\r\n },\r\n helperString(name) {\r\n return `_${helperNameMap[context.helper(name)]}`;\r\n },\r\n replaceNode(node) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!context.currentNode) {\r\n throw new Error(`Node being replaced is already removed.`);\r\n }\r\n if (!context.parent) {\r\n throw new Error(`Cannot replace root node.`);\r\n }\r\n }\r\n context.parent.children[context.childIndex] = context.currentNode = node;\r\n },\r\n removeNode(node) {\r\n if ((process.env.NODE_ENV !== 'production') && !context.parent) {\r\n throw new Error(`Cannot remove root node.`);\r\n }\r\n const list = context.parent.children;\r\n const removalIndex = node\r\n ? list.indexOf(node)\r\n : context.currentNode\r\n ? context.childIndex\r\n : -1;\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && removalIndex < 0) {\r\n throw new Error(`node being removed is not a child of current parent`);\r\n }\r\n if (!node || node === context.currentNode) {\r\n // current node removed\r\n context.currentNode = null;\r\n context.onNodeRemoved();\r\n }\r\n else {\r\n // sibling node removed\r\n if (context.childIndex > removalIndex) {\r\n context.childIndex--;\r\n context.onNodeRemoved();\r\n }\r\n }\r\n context.parent.children.splice(removalIndex, 1);\r\n },\r\n onNodeRemoved: () => { },\r\n addIdentifiers(exp) {\r\n },\r\n removeIdentifiers(exp) {\r\n },\r\n hoist(exp) {\r\n if (isString(exp))\r\n exp = createSimpleExpression(exp);\r\n context.hoists.push(exp);\r\n const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */);\r\n identifier.hoisted = exp;\r\n return identifier;\r\n },\r\n cache(exp, isVNode = false) {\r\n return createCacheExpression(context.cached++, exp, isVNode);\r\n }\r\n };\r\n {\r\n context.filters = new Set();\r\n }\r\n return context;\r\n}\r\nfunction transform(root, options) {\r\n const context = createTransformContext(root, options);\r\n traverseNode(root, context);\r\n if (options.hoistStatic) {\r\n hoistStatic(root, context);\r\n }\r\n if (!options.ssr) {\r\n createRootCodegen(root, context);\r\n }\r\n // finalize meta information\r\n root.helpers = [...context.helpers.keys()];\r\n root.components = [...context.components];\r\n root.directives = [...context.directives];\r\n root.imports = context.imports;\r\n root.hoists = context.hoists;\r\n root.temps = context.temps;\r\n root.cached = context.cached;\r\n {\r\n root.filters = [...context.filters];\r\n }\r\n}\r\nfunction createRootCodegen(root, context) {\r\n const { helper } = context;\r\n const { children } = root;\r\n if (children.length === 1) {\r\n const child = children[0];\r\n // if the single child is an element, turn it into a block.\r\n if (isSingleElementRoot(root, child) && child.codegenNode) {\r\n // single element root is never hoisted so codegenNode will never be\r\n // SimpleExpressionNode\r\n const codegenNode = child.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n makeBlock(codegenNode, context);\r\n }\r\n root.codegenNode = codegenNode;\r\n }\r\n else {\r\n // - single <slot/>, IfNode, ForNode: already blocks.\r\n // - single text node: always patched.\r\n // root codegen falls through via genNode()\r\n root.codegenNode = child;\r\n }\r\n }\r\n else if (children.length > 1) {\r\n // root has multiple nodes - return a fragment block.\r\n let patchFlag = 64 /* STABLE_FRAGMENT */;\r\n let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];\r\n // check if the fragment actually contains a single valid child with\r\n // the rest being comments\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {\r\n patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;\r\n patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;\r\n }\r\n root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${patchFlagText} */` : ``), undefined, undefined, true, undefined, false /* isComponent */);\r\n }\r\n else ;\r\n}\r\nfunction traverseChildren(parent, context) {\r\n let i = 0;\r\n const nodeRemoved = () => {\r\n i--;\r\n };\r\n for (; i < parent.children.length; i++) {\r\n const child = parent.children[i];\r\n if (isString(child))\r\n continue;\r\n context.parent = parent;\r\n context.childIndex = i;\r\n context.onNodeRemoved = nodeRemoved;\r\n traverseNode(child, context);\r\n }\r\n}\r\nfunction traverseNode(node, context) {\r\n context.currentNode = node;\r\n // apply transform plugins\r\n const { nodeTransforms } = context;\r\n const exitFns = [];\r\n for (let i = 0; i < nodeTransforms.length; i++) {\r\n const onExit = nodeTransforms[i](node, context);\r\n if (onExit) {\r\n if (isArray(onExit)) {\r\n exitFns.push(...onExit);\r\n }\r\n else {\r\n exitFns.push(onExit);\r\n }\r\n }\r\n if (!context.currentNode) {\r\n // node was removed\r\n return;\r\n }\r\n else {\r\n // node may have been replaced\r\n node = context.currentNode;\r\n }\r\n }\r\n switch (node.type) {\r\n case 3 /* COMMENT */:\r\n if (!context.ssr) {\r\n // inject import for the Comment symbol, which is needed for creating\r\n // comment nodes with `createVNode`\r\n context.helper(CREATE_COMMENT);\r\n }\r\n break;\r\n case 5 /* INTERPOLATION */:\r\n // no need to traverse, but we need to inject toString helper\r\n if (!context.ssr) {\r\n context.helper(TO_DISPLAY_STRING);\r\n }\r\n break;\r\n // for container types, further traverse downwards\r\n case 9 /* IF */:\r\n for (let i = 0; i < node.branches.length; i++) {\r\n traverseNode(node.branches[i], context);\r\n }\r\n break;\r\n case 10 /* IF_BRANCH */:\r\n case 11 /* FOR */:\r\n case 1 /* ELEMENT */:\r\n case 0 /* ROOT */:\r\n traverseChildren(node, context);\r\n break;\r\n }\r\n // exit transforms\r\n context.currentNode = node;\r\n let i = exitFns.length;\r\n while (i--) {\r\n exitFns[i]();\r\n }\r\n}\r\nfunction createStructuralDirectiveTransform(name, fn) {\r\n const matches = isString(name)\r\n ? (n) => n === name\r\n : (n) => name.test(n);\r\n return (node, context) => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n const { props } = node;\r\n // structural directive transforms are not concerned with slots\r\n // as they are handled separately in vSlot.ts\r\n if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) {\r\n return;\r\n }\r\n const exitFns = [];\r\n for (let i = 0; i < props.length; i++) {\r\n const prop = props[i];\r\n if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) {\r\n // structural directives are removed to avoid infinite recursion\r\n // also we remove them *before* applying so that it can further\r\n // traverse itself in case it moves the node around\r\n props.splice(i, 1);\r\n i--;\r\n const onExit = fn(node, prop, context);\r\n if (onExit)\r\n exitFns.push(onExit);\r\n }\r\n }\r\n return exitFns;\r\n }\r\n };\r\n}\n\nconst PURE_ANNOTATION = `/*#__PURE__*/`;\r\nfunction createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {\r\n const context = {\r\n mode,\r\n prefixIdentifiers,\r\n sourceMap,\r\n filename,\r\n scopeId,\r\n optimizeImports,\r\n runtimeGlobalName,\r\n runtimeModuleName,\r\n ssrRuntimeModuleName,\r\n ssr,\r\n isTS,\r\n inSSR,\r\n source: ast.loc.source,\r\n code: ``,\r\n column: 1,\r\n line: 1,\r\n offset: 0,\r\n indentLevel: 0,\r\n pure: false,\r\n map: undefined,\r\n helper(key) {\r\n return `_${helperNameMap[key]}`;\r\n },\r\n push(code, node) {\r\n context.code += code;\r\n },\r\n indent() {\r\n newline(++context.indentLevel);\r\n },\r\n deindent(withoutNewLine = false) {\r\n if (withoutNewLine) {\r\n --context.indentLevel;\r\n }\r\n else {\r\n newline(--context.indentLevel);\r\n }\r\n },\r\n newline() {\r\n newline(context.indentLevel);\r\n }\r\n };\r\n function newline(n) {\r\n context.push('\\n' + ` `.repeat(n));\r\n }\r\n return context;\r\n}\r\nfunction generate(ast, options = {}) {\r\n const context = createCodegenContext(ast, options);\r\n if (options.onContextCreated)\r\n options.onContextCreated(context);\r\n const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;\r\n const hasHelpers = ast.helpers.length > 0;\r\n const useWithBlock = !prefixIdentifiers && mode !== 'module';\r\n // preambles\r\n // in setup() inline mode, the preamble is generated in a sub context\r\n // and returned separately.\r\n const preambleContext = context;\r\n {\r\n genFunctionPreamble(ast, preambleContext);\r\n }\r\n // enter render function\r\n const functionName = ssr ? `ssrRender` : `render`;\r\n const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache'];\r\n const signature = args.join(', ');\r\n {\r\n push(`function ${functionName}(${signature}) {`);\r\n }\r\n indent();\r\n if (useWithBlock) {\r\n push(`with (_ctx) {`);\r\n indent();\r\n // function mode const declarations should be inside with block\r\n // also they should be renamed to avoid collision with user properties\r\n if (hasHelpers) {\r\n push(`const { ${ast.helpers\r\n .map(s => `${helperNameMap[s]}: _${helperNameMap[s]}`)\r\n .join(', ')} } = _Vue`);\r\n push(`\\n`);\r\n newline();\r\n }\r\n }\r\n // generate asset resolution statements\r\n if (ast.components.length) {\r\n genAssets(ast.components, 'component', context);\r\n if (ast.directives.length || ast.temps > 0) {\r\n newline();\r\n }\r\n }\r\n if (ast.directives.length) {\r\n genAssets(ast.directives, 'directive', context);\r\n if (ast.temps > 0) {\r\n newline();\r\n }\r\n }\r\n if (ast.filters && ast.filters.length) {\r\n newline();\r\n genAssets(ast.filters, 'filter', context);\r\n newline();\r\n }\r\n if (ast.temps > 0) {\r\n push(`let `);\r\n for (let i = 0; i < ast.temps; i++) {\r\n push(`${i > 0 ? `, ` : ``}_temp${i}`);\r\n }\r\n }\r\n if (ast.components.length || ast.directives.length || ast.temps) {\r\n push(`\\n`);\r\n newline();\r\n }\r\n // generate the VNode tree expression\r\n if (!ssr) {\r\n push(`return `);\r\n }\r\n if (ast.codegenNode) {\r\n genNode(ast.codegenNode, context);\r\n }\r\n else {\r\n push(`null`);\r\n }\r\n if (useWithBlock) {\r\n deindent();\r\n push(`}`);\r\n }\r\n deindent();\r\n push(`}`);\r\n return {\r\n ast,\r\n code: context.code,\r\n preamble: ``,\r\n // SourceMapGenerator does have toJSON() method but it's not in the types\r\n map: context.map ? context.map.toJSON() : undefined\r\n };\r\n}\r\nfunction genFunctionPreamble(ast, context) {\r\n const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;\r\n const VueBinding = runtimeGlobalName;\r\n const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;\r\n // Generate const declaration for helpers\r\n // In prefix mode, we place the const declaration at top so it's done\r\n // only once; But if we not prefixing, we place the declaration inside the\r\n // with block so it doesn't incur the `in` check cost for every helper access.\r\n if (ast.helpers.length > 0) {\r\n {\r\n // \"with\" mode.\r\n // save Vue in a separate variable to avoid collision\r\n push(`const _Vue = ${VueBinding}\\n`);\r\n // in \"with\" mode, helpers are declared inside the with block to avoid\r\n // has check cost, but hoists are lifted out of the function - we need\r\n // to provide the helper here.\r\n if (ast.hoists.length) {\r\n const staticHelpers = [\r\n CREATE_VNODE,\r\n CREATE_ELEMENT_VNODE,\r\n CREATE_COMMENT,\r\n CREATE_TEXT,\r\n CREATE_STATIC\r\n ]\r\n .filter(helper => ast.helpers.includes(helper))\r\n .map(aliasHelper)\r\n .join(', ');\r\n push(`const { ${staticHelpers} } = _Vue\\n`);\r\n }\r\n }\r\n }\r\n genHoists(ast.hoists, context);\r\n newline();\r\n push(`return `);\r\n}\r\nfunction genAssets(assets, type, { helper, push, newline, isTS }) {\r\n const resolver = helper(type === 'filter'\r\n ? RESOLVE_FILTER\r\n : type === 'component'\r\n ? RESOLVE_COMPONENT\r\n : RESOLVE_DIRECTIVE);\r\n for (let i = 0; i < assets.length; i++) {\r\n let id = assets[i];\r\n // potential component implicit self-reference inferred from SFC filename\r\n const maybeSelfReference = id.endsWith('__self');\r\n if (maybeSelfReference) {\r\n id = id.slice(0, -6);\r\n }\r\n push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);\r\n if (i < assets.length - 1) {\r\n newline();\r\n }\r\n }\r\n}\r\nfunction genHoists(hoists, context) {\r\n if (!hoists.length) {\r\n return;\r\n }\r\n context.pure = true;\r\n const { push, newline, helper, scopeId, mode } = context;\r\n newline();\r\n for (let i = 0; i < hoists.length; i++) {\r\n const exp = hoists[i];\r\n if (exp) {\r\n push(`const _hoisted_${i + 1} = ${``}`);\r\n genNode(exp, context);\r\n newline();\r\n }\r\n }\r\n context.pure = false;\r\n}\r\nfunction isText$1(n) {\r\n return (isString(n) ||\r\n n.type === 4 /* SIMPLE_EXPRESSION */ ||\r\n n.type === 2 /* TEXT */ ||\r\n n.type === 5 /* INTERPOLATION */ ||\r\n n.type === 8 /* COMPOUND_EXPRESSION */);\r\n}\r\nfunction genNodeListAsArray(nodes, context) {\r\n const multilines = nodes.length > 3 ||\r\n (((process.env.NODE_ENV !== 'production')) && nodes.some(n => isArray(n) || !isText$1(n)));\r\n context.push(`[`);\r\n multilines && context.indent();\r\n genNodeList(nodes, context, multilines);\r\n multilines && context.deindent();\r\n context.push(`]`);\r\n}\r\nfunction genNodeList(nodes, context, multilines = false, comma = true) {\r\n const { push, newline } = context;\r\n for (let i = 0; i < nodes.length; i++) {\r\n const node = nodes[i];\r\n if (isString(node)) {\r\n push(node);\r\n }\r\n else if (isArray(node)) {\r\n genNodeListAsArray(node, context);\r\n }\r\n else {\r\n genNode(node, context);\r\n }\r\n if (i < nodes.length - 1) {\r\n if (multilines) {\r\n comma && push(',');\r\n newline();\r\n }\r\n else {\r\n comma && push(', ');\r\n }\r\n }\r\n }\r\n}\r\nfunction genNode(node, context) {\r\n if (isString(node)) {\r\n context.push(node);\r\n return;\r\n }\r\n if (isSymbol(node)) {\r\n context.push(context.helper(node));\r\n return;\r\n }\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n case 9 /* IF */:\r\n case 11 /* FOR */:\r\n (process.env.NODE_ENV !== 'production') &&\r\n assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` +\r\n `Apply appropriate transforms first.`);\r\n genNode(node.codegenNode, context);\r\n break;\r\n case 2 /* TEXT */:\r\n genText(node, context);\r\n break;\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n genExpression(node, context);\r\n break;\r\n case 5 /* INTERPOLATION */:\r\n genInterpolation(node, context);\r\n break;\r\n case 12 /* TEXT_CALL */:\r\n genNode(node.codegenNode, context);\r\n break;\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n genCompoundExpression(node, context);\r\n break;\r\n case 3 /* COMMENT */:\r\n genComment(node, context);\r\n break;\r\n case 13 /* VNODE_CALL */:\r\n genVNodeCall(node, context);\r\n break;\r\n case 14 /* JS_CALL_EXPRESSION */:\r\n genCallExpression(node, context);\r\n break;\r\n case 15 /* JS_OBJECT_EXPRESSION */:\r\n genObjectExpression(node, context);\r\n break;\r\n case 17 /* JS_ARRAY_EXPRESSION */:\r\n genArrayExpression(node, context);\r\n break;\r\n case 18 /* JS_FUNCTION_EXPRESSION */:\r\n genFunctionExpression(node, context);\r\n break;\r\n case 19 /* JS_CONDITIONAL_EXPRESSION */:\r\n genConditionalExpression(node, context);\r\n break;\r\n case 20 /* JS_CACHE_EXPRESSION */:\r\n genCacheExpression(node, context);\r\n break;\r\n case 21 /* JS_BLOCK_STATEMENT */:\r\n genNodeList(node.body, context, true, false);\r\n break;\r\n // SSR only types\r\n case 22 /* JS_TEMPLATE_LITERAL */:\r\n break;\r\n case 23 /* JS_IF_STATEMENT */:\r\n break;\r\n case 24 /* JS_ASSIGNMENT_EXPRESSION */:\r\n break;\r\n case 25 /* JS_SEQUENCE_EXPRESSION */:\r\n break;\r\n case 26 /* JS_RETURN_STATEMENT */:\r\n break;\r\n /* istanbul ignore next */\r\n case 10 /* IF_BRANCH */:\r\n // noop\r\n break;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n assert(false, `unhandled codegen node type: ${node.type}`);\r\n // make sure we exhaust all possible types\r\n const exhaustiveCheck = node;\r\n return exhaustiveCheck;\r\n }\r\n }\r\n}\r\nfunction genText(node, context) {\r\n context.push(JSON.stringify(node.content), node);\r\n}\r\nfunction genExpression(node, context) {\r\n const { content, isStatic } = node;\r\n context.push(isStatic ? JSON.stringify(content) : content, node);\r\n}\r\nfunction genInterpolation(node, context) {\r\n const { push, helper, pure } = context;\r\n if (pure)\r\n push(PURE_ANNOTATION);\r\n push(`${helper(TO_DISPLAY_STRING)}(`);\r\n genNode(node.content, context);\r\n push(`)`);\r\n}\r\nfunction genCompoundExpression(node, context) {\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (isString(child)) {\r\n context.push(child);\r\n }\r\n else {\r\n genNode(child, context);\r\n }\r\n }\r\n}\r\nfunction genExpressionAsPropertyKey(node, context) {\r\n const { push } = context;\r\n if (node.type === 8 /* COMPOUND_EXPRESSION */) {\r\n push(`[`);\r\n genCompoundExpression(node, context);\r\n push(`]`);\r\n }\r\n else if (node.isStatic) {\r\n // only quote keys if necessary\r\n const text = isSimpleIdentifier(node.content)\r\n ? node.content\r\n : JSON.stringify(node.content);\r\n push(text, node);\r\n }\r\n else {\r\n push(`[${node.content}]`, node);\r\n }\r\n}\r\nfunction genComment(node, context) {\r\n const { push, helper, pure } = context;\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node);\r\n}\r\nfunction genVNodeCall(node, context) {\r\n const { push, helper, pure } = context;\r\n const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;\r\n if (directives) {\r\n push(helper(WITH_DIRECTIVES) + `(`);\r\n }\r\n if (isBlock) {\r\n push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);\r\n }\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n const callHelper = isBlock\r\n ? getVNodeBlockHelper(context.inSSR, isComponent)\r\n : getVNodeHelper(context.inSSR, isComponent);\r\n push(helper(callHelper) + `(`, node);\r\n genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context);\r\n push(`)`);\r\n if (isBlock) {\r\n push(`)`);\r\n }\r\n if (directives) {\r\n push(`, `);\r\n genNode(directives, context);\r\n push(`)`);\r\n }\r\n}\r\nfunction genNullableArgs(args) {\r\n let i = args.length;\r\n while (i--) {\r\n if (args[i] != null)\r\n break;\r\n }\r\n return args.slice(0, i + 1).map(arg => arg || `null`);\r\n}\r\n// JavaScript\r\nfunction genCallExpression(node, context) {\r\n const { push, helper, pure } = context;\r\n const callee = isString(node.callee) ? node.callee : helper(node.callee);\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n push(callee + `(`, node);\r\n genNodeList(node.arguments, context);\r\n push(`)`);\r\n}\r\nfunction genObjectExpression(node, context) {\r\n const { push, indent, deindent, newline } = context;\r\n const { properties } = node;\r\n if (!properties.length) {\r\n push(`{}`, node);\r\n return;\r\n }\r\n const multilines = properties.length > 1 ||\r\n (((process.env.NODE_ENV !== 'production')) &&\r\n properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */));\r\n push(multilines ? `{` : `{ `);\r\n multilines && indent();\r\n for (let i = 0; i < properties.length; i++) {\r\n const { key, value } = properties[i];\r\n // key\r\n genExpressionAsPropertyKey(key, context);\r\n push(`: `);\r\n // value\r\n genNode(value, context);\r\n if (i < properties.length - 1) {\r\n // will only reach this if it's multilines\r\n push(`,`);\r\n newline();\r\n }\r\n }\r\n multilines && deindent();\r\n push(multilines ? `}` : ` }`);\r\n}\r\nfunction genArrayExpression(node, context) {\r\n genNodeListAsArray(node.elements, context);\r\n}\r\nfunction genFunctionExpression(node, context) {\r\n const { push, indent, deindent } = context;\r\n const { params, returns, body, newline, isSlot } = node;\r\n if (isSlot) {\r\n // wrap slot functions with owner context\r\n push(`_${helperNameMap[WITH_CTX]}(`);\r\n }\r\n push(`(`, node);\r\n if (isArray(params)) {\r\n genNodeList(params, context);\r\n }\r\n else if (params) {\r\n genNode(params, context);\r\n }\r\n push(`) => `);\r\n if (newline || body) {\r\n push(`{`);\r\n indent();\r\n }\r\n if (returns) {\r\n if (newline) {\r\n push(`return `);\r\n }\r\n if (isArray(returns)) {\r\n genNodeListAsArray(returns, context);\r\n }\r\n else {\r\n genNode(returns, context);\r\n }\r\n }\r\n else if (body) {\r\n genNode(body, context);\r\n }\r\n if (newline || body) {\r\n deindent();\r\n push(`}`);\r\n }\r\n if (isSlot) {\r\n if (node.isNonScopedSlot) {\r\n push(`, undefined, true`);\r\n }\r\n push(`)`);\r\n }\r\n}\r\nfunction genConditionalExpression(node, context) {\r\n const { test, consequent, alternate, newline: needNewline } = node;\r\n const { push, indent, deindent, newline } = context;\r\n if (test.type === 4 /* SIMPLE_EXPRESSION */) {\r\n const needsParens = !isSimpleIdentifier(test.content);\r\n needsParens && push(`(`);\r\n genExpression(test, context);\r\n needsParens && push(`)`);\r\n }\r\n else {\r\n push(`(`);\r\n genNode(test, context);\r\n push(`)`);\r\n }\r\n needNewline && indent();\r\n context.indentLevel++;\r\n needNewline || push(` `);\r\n push(`? `);\r\n genNode(consequent, context);\r\n context.indentLevel--;\r\n needNewline && newline();\r\n needNewline || push(` `);\r\n push(`: `);\r\n const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */;\r\n if (!isNested) {\r\n context.indentLevel++;\r\n }\r\n genNode(alternate, context);\r\n if (!isNested) {\r\n context.indentLevel--;\r\n }\r\n needNewline && deindent(true /* without newline */);\r\n}\r\nfunction genCacheExpression(node, context) {\r\n const { push, helper, indent, deindent, newline } = context;\r\n push(`_cache[${node.index}] || (`);\r\n if (node.isVNode) {\r\n indent();\r\n push(`${helper(SET_BLOCK_TRACKING)}(-1),`);\r\n newline();\r\n }\r\n push(`_cache[${node.index}] = `);\r\n genNode(node.value, context);\r\n if (node.isVNode) {\r\n push(`,`);\r\n newline();\r\n push(`${helper(SET_BLOCK_TRACKING)}(1),`);\r\n newline();\r\n push(`_cache[${node.index}]`);\r\n deindent();\r\n }\r\n push(`)`);\r\n}\n\nfunction walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {\r\n {\r\n return;\r\n }\r\n}\r\nfunction isReferencedIdentifier(id, parent, parentStack) {\r\n {\r\n return false;\r\n }\r\n}\r\nfunction isInDestructureAssignment(parent, parentStack) {\r\n if (parent &&\r\n (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) {\r\n let i = parentStack.length;\r\n while (i--) {\r\n const p = parentStack[i];\r\n if (p.type === 'AssignmentExpression') {\r\n return true;\r\n }\r\n else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {\r\n break;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction walkFunctionParams(node, onIdent) {\r\n for (const p of node.params) {\r\n for (const id of extractIdentifiers(p)) {\r\n onIdent(id);\r\n }\r\n }\r\n}\r\nfunction walkBlockDeclarations(block, onIdent) {\r\n for (const stmt of block.body) {\r\n if (stmt.type === 'VariableDeclaration') {\r\n if (stmt.declare)\r\n continue;\r\n for (const decl of stmt.declarations) {\r\n for (const id of extractIdentifiers(decl.id)) {\r\n onIdent(id);\r\n }\r\n }\r\n }\r\n else if (stmt.type === 'FunctionDeclaration' ||\r\n stmt.type === 'ClassDeclaration') {\r\n if (stmt.declare || !stmt.id)\r\n continue;\r\n onIdent(stmt.id);\r\n }\r\n }\r\n}\r\nfunction extractIdentifiers(param, nodes = []) {\r\n switch (param.type) {\r\n case 'Identifier':\r\n nodes.push(param);\r\n break;\r\n case 'MemberExpression':\r\n let object = param;\r\n while (object.type === 'MemberExpression') {\r\n object = object.object;\r\n }\r\n nodes.push(object);\r\n break;\r\n case 'ObjectPattern':\r\n for (const prop of param.properties) {\r\n if (prop.type === 'RestElement') {\r\n extractIdentifiers(prop.argument, nodes);\r\n }\r\n else {\r\n extractIdentifiers(prop.value, nodes);\r\n }\r\n }\r\n break;\r\n case 'ArrayPattern':\r\n param.elements.forEach(element => {\r\n if (element)\r\n extractIdentifiers(element, nodes);\r\n });\r\n break;\r\n case 'RestElement':\r\n extractIdentifiers(param.argument, nodes);\r\n break;\r\n case 'AssignmentPattern':\r\n extractIdentifiers(param.left, nodes);\r\n break;\r\n }\r\n return nodes;\r\n}\r\nconst isFunctionType = (node) => {\r\n return /Function(?:Expression|Declaration)$|Method$/.test(node.type);\r\n};\r\nconst isStaticProperty = (node) => node &&\r\n (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&\r\n !node.computed;\r\nconst isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;\n\n// these keywords should not appear inside expressions, but operators like\r\n// typeof, instanceof and in are allowed\r\nconst prohibitedKeywordRE = new RegExp('\\\\b' +\r\n ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +\r\n 'super,throw,while,yield,delete,export,import,return,switch,default,' +\r\n 'extends,finally,continue,debugger,function,arguments,typeof,void')\r\n .split(',')\r\n .join('\\\\b|\\\\b') +\r\n '\\\\b');\r\n// strip strings in expressions\r\nconst stripStringRE = /'(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|`(?:[^`\\\\]|\\\\.)*\\$\\{|\\}(?:[^`\\\\]|\\\\.)*`|`(?:[^`\\\\]|\\\\.)*`/g;\r\n/**\r\n * Validate a non-prefixed expression.\r\n * This is only called when using the in-browser runtime compiler since it\r\n * doesn't prefix expressions.\r\n */\r\nfunction validateBrowserExpression(node, context, asParams = false, asRawStatements = false) {\r\n const exp = node.content;\r\n // empty expressions are validated per-directive since some directives\r\n // do allow empty expressions.\r\n if (!exp.trim()) {\r\n return;\r\n }\r\n try {\r\n new Function(asRawStatements\r\n ? ` ${exp} `\r\n : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`);\r\n }\r\n catch (e) {\r\n let message = e.message;\r\n const keywordMatch = exp\r\n .replace(stripStringRE, '')\r\n .match(prohibitedKeywordRE);\r\n if (keywordMatch) {\r\n message = `avoid using JavaScript keyword as property name: \"${keywordMatch[0]}\"`;\r\n }\r\n context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));\r\n }\r\n}\n\nconst transformExpression = (node, context) => {\r\n if (node.type === 5 /* INTERPOLATION */) {\r\n node.content = processExpression(node.content, context);\r\n }\r\n else if (node.type === 1 /* ELEMENT */) {\r\n // handle directives on element\r\n for (let i = 0; i < node.props.length; i++) {\r\n const dir = node.props[i];\r\n // do not process for v-on & v-for since they are special handled\r\n if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') {\r\n const exp = dir.exp;\r\n const arg = dir.arg;\r\n // do not process exp if this is v-on:arg - we need special handling\r\n // for wrapping inline statements.\r\n if (exp &&\r\n exp.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n !(dir.name === 'on' && arg)) {\r\n dir.exp = processExpression(exp, context, \r\n // slot args must be processed as function params\r\n dir.name === 'slot');\r\n }\r\n if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) {\r\n dir.arg = processExpression(arg, context);\r\n }\r\n }\r\n }\r\n }\r\n};\r\n// Important: since this function uses Node.js only dependencies, it should\r\n// always be used with a leading !true check so that it can be\r\n// tree-shaken from the browser build.\r\nfunction processExpression(node, context, \r\n// some expressions like v-slot props & v-for aliases should be parsed as\r\n// function params\r\nasParams = false, \r\n// v-on handler values may contain multiple statements\r\nasRawStatements = false, localVars = Object.create(context.identifiers)) {\r\n {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n // simple in-browser validation (same logic in 2.x)\r\n validateBrowserExpression(node, context, asParams, asRawStatements);\r\n }\r\n return node;\r\n }\r\n}\n\nconst transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {\r\n return processIf(node, dir, context, (ifNode, branch, isRoot) => {\r\n // #1587: We need to dynamically increment the key based on the current\r\n // node's sibling nodes, since chained v-if/else branches are\r\n // rendered at the same depth\r\n const siblings = context.parent.children;\r\n let i = siblings.indexOf(ifNode);\r\n let key = 0;\r\n while (i-- >= 0) {\r\n const sibling = siblings[i];\r\n if (sibling && sibling.type === 9 /* IF */) {\r\n key += sibling.branches.length;\r\n }\r\n }\r\n // Exit callback. Complete the codegenNode when all children have been\r\n // transformed.\r\n return () => {\r\n if (isRoot) {\r\n ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);\r\n }\r\n else {\r\n // attach this branch's codegen node to the v-if root.\r\n const parentCondition = getParentCondition(ifNode.codegenNode);\r\n parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);\r\n }\r\n };\r\n });\r\n});\r\n// target-agnostic transform used for both Client and SSR\r\nfunction processIf(node, dir, context, processCodegen) {\r\n if (dir.name !== 'else' &&\r\n (!dir.exp || !dir.exp.content.trim())) {\r\n const loc = dir.exp ? dir.exp.loc : node.loc;\r\n context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));\r\n dir.exp = createSimpleExpression(`true`, false, loc);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && true && dir.exp) {\r\n validateBrowserExpression(dir.exp, context);\r\n }\r\n if (dir.name === 'if') {\r\n const branch = createIfBranch(node, dir);\r\n const ifNode = {\r\n type: 9 /* IF */,\r\n loc: node.loc,\r\n branches: [branch]\r\n };\r\n context.replaceNode(ifNode);\r\n if (processCodegen) {\r\n return processCodegen(ifNode, branch, true);\r\n }\r\n }\r\n else {\r\n // locate the adjacent v-if\r\n const siblings = context.parent.children;\r\n const comments = [];\r\n let i = siblings.indexOf(node);\r\n while (i-- >= -1) {\r\n const sibling = siblings[i];\r\n if ((process.env.NODE_ENV !== 'production') && sibling && sibling.type === 3 /* COMMENT */) {\r\n context.removeNode(sibling);\r\n comments.unshift(sibling);\r\n continue;\r\n }\r\n if (sibling &&\r\n sibling.type === 2 /* TEXT */ &&\r\n !sibling.content.trim().length) {\r\n context.removeNode(sibling);\r\n continue;\r\n }\r\n if (sibling && sibling.type === 9 /* IF */) {\r\n // Check if v-else was followed by v-else-if\r\n if (dir.name === 'else-if' &&\r\n sibling.branches[sibling.branches.length - 1].condition === undefined) {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));\r\n }\r\n // move the node to the if node's branches\r\n context.removeNode();\r\n const branch = createIfBranch(node, dir);\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n comments.length &&\r\n // #3619 ignore comments if the v-if is direct child of <transition>\r\n !(context.parent &&\r\n context.parent.type === 1 /* ELEMENT */ &&\r\n isBuiltInType(context.parent.tag, 'transition'))) {\r\n branch.children = [...comments, ...branch.children];\r\n }\r\n // check if user is forcing same key on different branches\r\n if ((process.env.NODE_ENV !== 'production') || !true) {\r\n const key = branch.userKey;\r\n if (key) {\r\n sibling.branches.forEach(({ userKey }) => {\r\n if (isSameKey(userKey, key)) {\r\n context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));\r\n }\r\n });\r\n }\r\n }\r\n sibling.branches.push(branch);\r\n const onExit = processCodegen && processCodegen(sibling, branch, false);\r\n // since the branch was removed, it will not be traversed.\r\n // make sure to traverse here.\r\n traverseNode(branch, context);\r\n // call on exit\r\n if (onExit)\r\n onExit();\r\n // make sure to reset currentNode after traversal to indicate this\r\n // node has been removed.\r\n context.currentNode = null;\r\n }\r\n else {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));\r\n }\r\n break;\r\n }\r\n }\r\n}\r\nfunction createIfBranch(node, dir) {\r\n return {\r\n type: 10 /* IF_BRANCH */,\r\n loc: node.loc,\r\n condition: dir.name === 'else' ? undefined : dir.exp,\r\n children: node.tagType === 3 /* TEMPLATE */ && !findDir(node, 'for')\r\n ? node.children\r\n : [node],\r\n userKey: findProp(node, `key`)\r\n };\r\n}\r\nfunction createCodegenNodeForBranch(branch, keyIndex, context) {\r\n if (branch.condition) {\r\n return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context), \r\n // make sure to pass in asBlock: true so that the comment node call\r\n // closes the current block.\r\n createCallExpression(context.helper(CREATE_COMMENT), [\r\n (process.env.NODE_ENV !== 'production') ? '\"v-if\"' : '\"\"',\r\n 'true'\r\n ]));\r\n }\r\n else {\r\n return createChildrenCodegenNode(branch, keyIndex, context);\r\n }\r\n}\r\nfunction createChildrenCodegenNode(branch, keyIndex, context) {\r\n const { helper } = context;\r\n const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));\r\n const { children } = branch;\r\n const firstChild = children[0];\r\n const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */;\r\n if (needFragmentWrapper) {\r\n if (children.length === 1 && firstChild.type === 11 /* FOR */) {\r\n // optimize away nested fragments when child is a ForNode\r\n const vnodeCall = firstChild.codegenNode;\r\n injectProp(vnodeCall, keyProperty, context);\r\n return vnodeCall;\r\n }\r\n else {\r\n let patchFlag = 64 /* STABLE_FRAGMENT */;\r\n let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];\r\n // check if the fragment actually contains a single valid child with\r\n // the rest being comments\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {\r\n patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;\r\n patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;\r\n }\r\n return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${patchFlagText} */` : ``), undefined, undefined, true, false, false /* isComponent */, branch.loc);\r\n }\r\n }\r\n else {\r\n const ret = firstChild.codegenNode;\r\n const vnodeCall = getMemoedVNodeCall(ret);\r\n // Change createVNode to createBlock.\r\n if (vnodeCall.type === 13 /* VNODE_CALL */) {\r\n makeBlock(vnodeCall, context);\r\n }\r\n // inject branch key\r\n injectProp(vnodeCall, keyProperty, context);\r\n return ret;\r\n }\r\n}\r\nfunction isSameKey(a, b) {\r\n if (!a || a.type !== b.type) {\r\n return false;\r\n }\r\n if (a.type === 6 /* ATTRIBUTE */) {\r\n if (a.value.content !== b.value.content) {\r\n return false;\r\n }\r\n }\r\n else {\r\n // directive\r\n const exp = a.exp;\r\n const branchExp = b.exp;\r\n if (exp.type !== branchExp.type) {\r\n return false;\r\n }\r\n if (exp.type !== 4 /* SIMPLE_EXPRESSION */ ||\r\n exp.isStatic !== branchExp.isStatic ||\r\n exp.content !== branchExp.content) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction getParentCondition(node) {\r\n while (true) {\r\n if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n node = node.alternate;\r\n }\r\n else {\r\n return node;\r\n }\r\n }\r\n else if (node.type === 20 /* JS_CACHE_EXPRESSION */) {\r\n node = node.value;\r\n }\r\n }\r\n}\n\nconst transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {\r\n const { helper, removeHelper } = context;\r\n return processFor(node, dir, context, forNode => {\r\n // create the loop render function expression now, and add the\r\n // iterator on exit after all children have been traversed\r\n const renderExp = createCallExpression(helper(RENDER_LIST), [\r\n forNode.source\r\n ]);\r\n const memo = findDir(node, 'memo');\r\n const keyProp = findProp(node, `key`);\r\n const keyExp = keyProp &&\r\n (keyProp.type === 6 /* ATTRIBUTE */\r\n ? createSimpleExpression(keyProp.value.content, true)\r\n : keyProp.exp);\r\n const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;\r\n const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n forNode.source.constType > 0 /* NOT_CONSTANT */;\r\n const fragmentFlag = isStableFragment\r\n ? 64 /* STABLE_FRAGMENT */\r\n : keyProp\r\n ? 128 /* KEYED_FRAGMENT */\r\n : 256 /* UNKEYED_FRAGMENT */;\r\n forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag +\r\n ((process.env.NODE_ENV !== 'production') ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc);\r\n return () => {\r\n // finish the codegen now that all children have been traversed\r\n let childBlock;\r\n const isTemplate = isTemplateNode(node);\r\n const { children } = forNode;\r\n // check <template v-for> key placement\r\n if (((process.env.NODE_ENV !== 'production') || !true) && isTemplate) {\r\n node.children.some(c => {\r\n if (c.type === 1 /* ELEMENT */) {\r\n const key = findProp(c, 'key');\r\n if (key) {\r\n context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));\r\n return true;\r\n }\r\n }\r\n });\r\n }\r\n const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */;\r\n const slotOutlet = isSlotOutlet(node)\r\n ? node\r\n : isTemplate &&\r\n node.children.length === 1 &&\r\n isSlotOutlet(node.children[0])\r\n ? node.children[0] // api-extractor somehow fails to infer this\r\n : null;\r\n if (slotOutlet) {\r\n // <slot v-for=\"...\"> or <template v-for=\"...\"><slot/></template>\r\n childBlock = slotOutlet.codegenNode;\r\n if (isTemplate && keyProperty) {\r\n // <template v-for=\"...\" :key=\"...\"><slot/></template>\r\n // we need to inject the key to the renderSlot() call.\r\n // the props for renderSlot is passed as the 3rd argument.\r\n injectProp(childBlock, keyProperty, context);\r\n }\r\n }\r\n else if (needFragmentWrapper) {\r\n // <template v-for=\"...\"> with text or multi-elements\r\n // should generate a fragment block for each loop\r\n childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ +\r\n ((process.env.NODE_ENV !== 'production')\r\n ? ` /* ${PatchFlagNames[64 /* STABLE_FRAGMENT */]} */`\r\n : ``), undefined, undefined, true, undefined, false /* isComponent */);\r\n }\r\n else {\r\n // Normal element v-for. Directly use the child's codegenNode\r\n // but mark it as a block.\r\n childBlock = children[0]\r\n .codegenNode;\r\n if (isTemplate && keyProperty) {\r\n injectProp(childBlock, keyProperty, context);\r\n }\r\n if (childBlock.isBlock !== !isStableFragment) {\r\n if (childBlock.isBlock) {\r\n // switch from block to vnode\r\n removeHelper(OPEN_BLOCK);\r\n removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n else {\r\n // switch from vnode to block\r\n removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n }\r\n childBlock.isBlock = !isStableFragment;\r\n if (childBlock.isBlock) {\r\n helper(OPEN_BLOCK);\r\n helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n else {\r\n helper(getVNodeHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n }\r\n if (memo) {\r\n const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [\r\n createSimpleExpression(`_cached`)\r\n ]));\r\n loop.body = createBlockStatement([\r\n createCompoundExpression([`const _memo = (`, memo.exp, `)`]),\r\n createCompoundExpression([\r\n `if (_cached`,\r\n ...(keyExp ? [` && _cached.key === `, keyExp] : []),\r\n ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`\r\n ]),\r\n createCompoundExpression([`const _item = `, childBlock]),\r\n createSimpleExpression(`_item.memo = _memo`),\r\n createSimpleExpression(`return _item`)\r\n ]);\r\n renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++)));\r\n }\r\n else {\r\n renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */));\r\n }\r\n };\r\n });\r\n});\r\n// target-agnostic transform used for both Client and SSR\r\nfunction processFor(node, dir, context, processCodegen) {\r\n if (!dir.exp) {\r\n context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));\r\n return;\r\n }\r\n const parseResult = parseForExpression(\r\n // can only be simple expression because vFor transform is applied\r\n // before expression transform.\r\n dir.exp, context);\r\n if (!parseResult) {\r\n context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));\r\n return;\r\n }\r\n const { addIdentifiers, removeIdentifiers, scopes } = context;\r\n const { source, value, key, index } = parseResult;\r\n const forNode = {\r\n type: 11 /* FOR */,\r\n loc: dir.loc,\r\n source,\r\n valueAlias: value,\r\n keyAlias: key,\r\n objectIndexAlias: index,\r\n parseResult,\r\n children: isTemplateNode(node) ? node.children : [node]\r\n };\r\n context.replaceNode(forNode);\r\n // bookkeeping\r\n scopes.vFor++;\r\n const onExit = processCodegen && processCodegen(forNode);\r\n return () => {\r\n scopes.vFor--;\r\n if (onExit)\r\n onExit();\r\n };\r\n}\r\nconst forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\r\n// This regex doesn't cover the case if key or index aliases have destructuring,\r\n// but those do not make sense in the first place, so this works in practice.\r\nconst forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\r\nconst stripParensRE = /^\\(|\\)$/g;\r\nfunction parseForExpression(input, context) {\r\n const loc = input.loc;\r\n const exp = input.content;\r\n const inMatch = exp.match(forAliasRE);\r\n if (!inMatch)\r\n return;\r\n const [, LHS, RHS] = inMatch;\r\n const result = {\r\n source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)),\r\n value: undefined,\r\n key: undefined,\r\n index: undefined\r\n };\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.source, context);\r\n }\r\n let valueContent = LHS.trim().replace(stripParensRE, '').trim();\r\n const trimmedOffset = LHS.indexOf(valueContent);\r\n const iteratorMatch = valueContent.match(forIteratorRE);\r\n if (iteratorMatch) {\r\n valueContent = valueContent.replace(forIteratorRE, '').trim();\r\n const keyContent = iteratorMatch[1].trim();\r\n let keyOffset;\r\n if (keyContent) {\r\n keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);\r\n result.key = createAliasExpression(loc, keyContent, keyOffset);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.key, context, true);\r\n }\r\n }\r\n if (iteratorMatch[2]) {\r\n const indexContent = iteratorMatch[2].trim();\r\n if (indexContent) {\r\n result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key\r\n ? keyOffset + keyContent.length\r\n : trimmedOffset + valueContent.length));\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.index, context, true);\r\n }\r\n }\r\n }\r\n }\r\n if (valueContent) {\r\n result.value = createAliasExpression(loc, valueContent, trimmedOffset);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.value, context, true);\r\n }\r\n }\r\n return result;\r\n}\r\nfunction createAliasExpression(range, content, offset) {\r\n return createSimpleExpression(content, false, getInnerRange(range, offset, content.length));\r\n}\r\nfunction createForLoopParams({ value, key, index }, memoArgs = []) {\r\n return createParamsList([value, key, index, ...memoArgs]);\r\n}\r\nfunction createParamsList(args) {\r\n let i = args.length;\r\n while (i--) {\r\n if (args[i])\r\n break;\r\n }\r\n return args\r\n .slice(0, i + 1)\r\n .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));\r\n}\n\nconst defaultFallback = createSimpleExpression(`undefined`, false);\r\n// A NodeTransform that:\r\n// 1. Tracks scope identifiers for scoped slots so that they don't get prefixed\r\n// by transformExpression. This is only applied in non-browser builds with\r\n// { prefixIdentifiers: true }.\r\n// 2. Track v-slot depths so that we know a slot is inside another slot.\r\n// Note the exit callback is executed before buildSlots() on the same node,\r\n// so only nested slots see positive numbers.\r\nconst trackSlotScopes = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n (node.tagType === 1 /* COMPONENT */ ||\r\n node.tagType === 3 /* TEMPLATE */)) {\r\n // We are only checking non-empty v-slot here\r\n // since we only care about slots that introduce scope variables.\r\n const vSlot = findDir(node, 'slot');\r\n if (vSlot) {\r\n vSlot.exp;\r\n context.scopes.vSlot++;\r\n return () => {\r\n context.scopes.vSlot--;\r\n };\r\n }\r\n }\r\n};\r\n// A NodeTransform that tracks scope identifiers for scoped slots with v-for.\r\n// This transform is only applied in non-browser builds with { prefixIdentifiers: true }\r\nconst trackVForSlotScopes = (node, context) => {\r\n let vFor;\r\n if (isTemplateNode(node) &&\r\n node.props.some(isVSlot) &&\r\n (vFor = findDir(node, 'for'))) {\r\n const result = (vFor.parseResult = parseForExpression(vFor.exp, context));\r\n if (result) {\r\n const { value, key, index } = result;\r\n const { addIdentifiers, removeIdentifiers } = context;\r\n value && addIdentifiers(value);\r\n key && addIdentifiers(key);\r\n index && addIdentifiers(index);\r\n return () => {\r\n value && removeIdentifiers(value);\r\n key && removeIdentifiers(key);\r\n index && removeIdentifiers(index);\r\n };\r\n }\r\n }\r\n};\r\nconst buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc);\r\n// Instead of being a DirectiveTransform, v-slot processing is called during\r\n// transformElement to build the slots object for a component.\r\nfunction buildSlots(node, context, buildSlotFn = buildClientSlotFn) {\r\n context.helper(WITH_CTX);\r\n const { children, loc } = node;\r\n const slotsProperties = [];\r\n const dynamicSlots = [];\r\n // If the slot is inside a v-for or another v-slot, force it to be dynamic\r\n // since it likely uses a scope variable.\r\n let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;\r\n // 1. Check for slot with slotProps on component itself.\r\n // <Comp v-slot=\"{ prop }\"/>\r\n const onComponentSlot = findDir(node, 'slot', true);\r\n if (onComponentSlot) {\r\n const { arg, exp } = onComponentSlot;\r\n if (arg && !isStaticExp(arg)) {\r\n hasDynamicSlots = true;\r\n }\r\n slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc)));\r\n }\r\n // 2. Iterate through children and check for template slots\r\n // <template v-slot:foo=\"{ prop }\">\r\n let hasTemplateSlots = false;\r\n let hasNamedDefaultSlot = false;\r\n const implicitDefaultChildren = [];\r\n const seenSlotNames = new Set();\r\n for (let i = 0; i < children.length; i++) {\r\n const slotElement = children[i];\r\n let slotDir;\r\n if (!isTemplateNode(slotElement) ||\r\n !(slotDir = findDir(slotElement, 'slot', true))) {\r\n // not a <template v-slot>, skip.\r\n if (slotElement.type !== 3 /* COMMENT */) {\r\n implicitDefaultChildren.push(slotElement);\r\n }\r\n continue;\r\n }\r\n if (onComponentSlot) {\r\n // already has on-component slot - this is incorrect usage.\r\n context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));\r\n break;\r\n }\r\n hasTemplateSlots = true;\r\n const { children: slotChildren, loc: slotLoc } = slotElement;\r\n const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir;\r\n // check if name is dynamic.\r\n let staticSlotName;\r\n if (isStaticExp(slotName)) {\r\n staticSlotName = slotName ? slotName.content : `default`;\r\n }\r\n else {\r\n hasDynamicSlots = true;\r\n }\r\n const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc);\r\n // check if this slot is conditional (v-if/v-for)\r\n let vIf;\r\n let vElse;\r\n let vFor;\r\n if ((vIf = findDir(slotElement, 'if'))) {\r\n hasDynamicSlots = true;\r\n dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback));\r\n }\r\n else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) {\r\n // find adjacent v-if\r\n let j = i;\r\n let prev;\r\n while (j--) {\r\n prev = children[j];\r\n if (prev.type !== 3 /* COMMENT */) {\r\n break;\r\n }\r\n }\r\n if (prev && isTemplateNode(prev) && findDir(prev, 'if')) {\r\n // remove node\r\n children.splice(i, 1);\r\n i--;\r\n // attach this slot to previous conditional\r\n let conditional = dynamicSlots[dynamicSlots.length - 1];\r\n while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n conditional = conditional.alternate;\r\n }\r\n conditional.alternate = vElse.exp\r\n ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)\r\n : buildDynamicSlot(slotName, slotFunction);\r\n }\r\n else {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));\r\n }\r\n }\r\n else if ((vFor = findDir(slotElement, 'for'))) {\r\n hasDynamicSlots = true;\r\n const parseResult = vFor.parseResult ||\r\n parseForExpression(vFor.exp, context);\r\n if (parseResult) {\r\n // Render the dynamic slots as an array and add it to the createSlot()\r\n // args. The runtime knows how to handle it appropriately.\r\n dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [\r\n parseResult.source,\r\n createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */)\r\n ]));\r\n }\r\n else {\r\n context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));\r\n }\r\n }\r\n else {\r\n // check duplicate static names\r\n if (staticSlotName) {\r\n if (seenSlotNames.has(staticSlotName)) {\r\n context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));\r\n continue;\r\n }\r\n seenSlotNames.add(staticSlotName);\r\n if (staticSlotName === 'default') {\r\n hasNamedDefaultSlot = true;\r\n }\r\n }\r\n slotsProperties.push(createObjectProperty(slotName, slotFunction));\r\n }\r\n }\r\n if (!onComponentSlot) {\r\n const buildDefaultSlotProperty = (props, children) => {\r\n const fn = buildSlotFn(props, children, loc);\r\n if (context.compatConfig) {\r\n fn.isNonScopedSlot = true;\r\n }\r\n return createObjectProperty(`default`, fn);\r\n };\r\n if (!hasTemplateSlots) {\r\n // implicit default slot (on component)\r\n slotsProperties.push(buildDefaultSlotProperty(undefined, children));\r\n }\r\n else if (implicitDefaultChildren.length &&\r\n // #3766\r\n // with whitespace: 'preserve', whitespaces between slots will end up in\r\n // implicitDefaultChildren. Ignore if all implicit children are whitespaces.\r\n implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {\r\n // implicit default slot (mixed with named slots)\r\n if (hasNamedDefaultSlot) {\r\n context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));\r\n }\r\n else {\r\n slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));\r\n }\r\n }\r\n }\r\n const slotFlag = hasDynamicSlots\r\n ? 2 /* DYNAMIC */\r\n : hasForwardedSlots(node.children)\r\n ? 3 /* FORWARDED */\r\n : 1 /* STABLE */;\r\n let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`, \r\n // 2 = compiled but dynamic = can skip normalization, but must run diff\r\n // 1 = compiled and static = can skip normalization AND diff as optimized\r\n createSimpleExpression(slotFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${slotFlagsText[slotFlag]} */` : ``), false))), loc);\r\n if (dynamicSlots.length) {\r\n slots = createCallExpression(context.helper(CREATE_SLOTS), [\r\n slots,\r\n createArrayExpression(dynamicSlots)\r\n ]);\r\n }\r\n return {\r\n slots,\r\n hasDynamicSlots\r\n };\r\n}\r\nfunction buildDynamicSlot(name, fn) {\r\n return createObjectExpression([\r\n createObjectProperty(`name`, name),\r\n createObjectProperty(`fn`, fn)\r\n ]);\r\n}\r\nfunction hasForwardedSlots(children) {\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n switch (child.type) {\r\n case 1 /* ELEMENT */:\r\n if (child.tagType === 2 /* SLOT */ ||\r\n hasForwardedSlots(child.children)) {\r\n return true;\r\n }\r\n break;\r\n case 9 /* IF */:\r\n if (hasForwardedSlots(child.branches))\r\n return true;\r\n break;\r\n case 10 /* IF_BRANCH */:\r\n case 11 /* FOR */:\r\n if (hasForwardedSlots(child.children))\r\n return true;\r\n break;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction isNonWhitespaceContent(node) {\r\n if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */)\r\n return true;\r\n return node.type === 2 /* TEXT */\r\n ? !!node.content.trim()\r\n : isNonWhitespaceContent(node.content);\r\n}\n\n// some directive transforms (e.g. v-model) may return a symbol for runtime\r\n// import, which should be used instead of a resolveDirective call.\r\nconst directiveImportMap = new WeakMap();\r\n// generate a JavaScript AST for this element's codegen\r\nconst transformElement = (node, context) => {\r\n // perform the work on exit, after all child expressions have been\r\n // processed and merged.\r\n return function postTransformElement() {\r\n node = context.currentNode;\r\n if (!(node.type === 1 /* ELEMENT */ &&\r\n (node.tagType === 0 /* ELEMENT */ ||\r\n node.tagType === 1 /* COMPONENT */))) {\r\n return;\r\n }\r\n const { tag, props } = node;\r\n const isComponent = node.tagType === 1 /* COMPONENT */;\r\n // The goal of the transform is to create a codegenNode implementing the\r\n // VNodeCall interface.\r\n let vnodeTag = isComponent\r\n ? resolveComponentType(node, context)\r\n : `\"${tag}\"`;\r\n const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;\r\n let vnodeProps;\r\n let vnodeChildren;\r\n let vnodePatchFlag;\r\n let patchFlag = 0;\r\n let vnodeDynamicProps;\r\n let dynamicPropNames;\r\n let vnodeDirectives;\r\n let shouldUseBlock = \r\n // dynamic component may resolve to plain elements\r\n isDynamicComponent ||\r\n vnodeTag === TELEPORT ||\r\n vnodeTag === SUSPENSE ||\r\n (!isComponent &&\r\n // <svg> and <foreignObject> must be forced into blocks so that block\r\n // updates inside get proper isSVG flag at runtime. (#639, #643)\r\n // This is technically web-specific, but splitting the logic out of core\r\n // leads to too much unnecessary complexity.\r\n (tag === 'svg' || tag === 'foreignObject'));\r\n // props\r\n if (props.length > 0) {\r\n const propsBuildResult = buildProps(node, context);\r\n vnodeProps = propsBuildResult.props;\r\n patchFlag = propsBuildResult.patchFlag;\r\n dynamicPropNames = propsBuildResult.dynamicPropNames;\r\n const directives = propsBuildResult.directives;\r\n vnodeDirectives =\r\n directives && directives.length\r\n ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context)))\r\n : undefined;\r\n if (propsBuildResult.shouldUseBlock) {\r\n shouldUseBlock = true;\r\n }\r\n }\r\n // children\r\n if (node.children.length > 0) {\r\n if (vnodeTag === KEEP_ALIVE) {\r\n // Although a built-in component, we compile KeepAlive with raw children\r\n // instead of slot functions so that it can be used inside Transition\r\n // or other Transition-wrapping HOCs.\r\n // To ensure correct updates with block optimizations, we need to:\r\n // 1. Force keep-alive into a block. This avoids its children being\r\n // collected by a parent block.\r\n shouldUseBlock = true;\r\n // 2. Force keep-alive to always be updated, since it uses raw children.\r\n patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n if ((process.env.NODE_ENV !== 'production') && node.children.length > 1) {\r\n context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {\r\n start: node.children[0].loc.start,\r\n end: node.children[node.children.length - 1].loc.end,\r\n source: ''\r\n }));\r\n }\r\n }\r\n const shouldBuildAsSlots = isComponent &&\r\n // Teleport is not a real component and has dedicated runtime handling\r\n vnodeTag !== TELEPORT &&\r\n // explained above.\r\n vnodeTag !== KEEP_ALIVE;\r\n if (shouldBuildAsSlots) {\r\n const { slots, hasDynamicSlots } = buildSlots(node, context);\r\n vnodeChildren = slots;\r\n if (hasDynamicSlots) {\r\n patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n }\r\n }\r\n else if (node.children.length === 1 && vnodeTag !== TELEPORT) {\r\n const child = node.children[0];\r\n const type = child.type;\r\n // check for dynamic text children\r\n const hasDynamicTextChild = type === 5 /* INTERPOLATION */ ||\r\n type === 8 /* COMPOUND_EXPRESSION */;\r\n if (hasDynamicTextChild &&\r\n getConstantType(child, context) === 0 /* NOT_CONSTANT */) {\r\n patchFlag |= 1 /* TEXT */;\r\n }\r\n // pass directly if the only child is a text node\r\n // (plain / interpolation / expression)\r\n if (hasDynamicTextChild || type === 2 /* TEXT */) {\r\n vnodeChildren = child;\r\n }\r\n else {\r\n vnodeChildren = node.children;\r\n }\r\n }\r\n else {\r\n vnodeChildren = node.children;\r\n }\r\n }\r\n // patchFlag & dynamicPropNames\r\n if (patchFlag !== 0) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (patchFlag < 0) {\r\n // special flags (negative and mutually exclusive)\r\n vnodePatchFlag = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;\r\n }\r\n else {\r\n // bitwise flags\r\n const flagNames = Object.keys(PatchFlagNames)\r\n .map(Number)\r\n .filter(n => n > 0 && patchFlag & n)\r\n .map(n => PatchFlagNames[n])\r\n .join(`, `);\r\n vnodePatchFlag = patchFlag + ` /* ${flagNames} */`;\r\n }\r\n }\r\n else {\r\n vnodePatchFlag = String(patchFlag);\r\n }\r\n if (dynamicPropNames && dynamicPropNames.length) {\r\n vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);\r\n }\r\n }\r\n node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc);\r\n };\r\n};\r\nfunction resolveComponentType(node, context, ssr = false) {\r\n let { tag } = node;\r\n // 1. dynamic component\r\n const isExplicitDynamic = isComponentTag(tag);\r\n const isProp = findProp(node, 'is');\r\n if (isProp) {\r\n if (isExplicitDynamic ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context))) {\r\n const exp = isProp.type === 6 /* ATTRIBUTE */\r\n ? isProp.value && createSimpleExpression(isProp.value.content, true)\r\n : isProp.exp;\r\n if (exp) {\r\n return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [\r\n exp\r\n ]);\r\n }\r\n }\r\n else if (isProp.type === 6 /* ATTRIBUTE */ &&\r\n isProp.value.content.startsWith('vue:')) {\r\n // <button is=\"vue:xxx\">\r\n // if not <component>, only is value that starts with \"vue:\" will be\r\n // treated as component by the parse phase and reach here, unless it's\r\n // compat mode where all is values are considered components\r\n tag = isProp.value.content.slice(4);\r\n }\r\n }\r\n // 1.5 v-is (TODO: Deprecate)\r\n const isDir = !isExplicitDynamic && findDir(node, 'is');\r\n if (isDir && isDir.exp) {\r\n return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [\r\n isDir.exp\r\n ]);\r\n }\r\n // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...)\r\n const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);\r\n if (builtIn) {\r\n // built-ins are simply fallthroughs / have special handling during ssr\r\n // so we don't need to import their runtime equivalents\r\n if (!ssr)\r\n context.helper(builtIn);\r\n return builtIn;\r\n }\r\n // 5. user component (resolve)\r\n context.helper(RESOLVE_COMPONENT);\r\n context.components.add(tag);\r\n return toValidAssetId(tag, `component`);\r\n}\r\nfunction buildProps(node, context, props = node.props, ssr = false) {\r\n const { tag, loc: elementLoc, children } = node;\r\n const isComponent = node.tagType === 1 /* COMPONENT */;\r\n let properties = [];\r\n const mergeArgs = [];\r\n const runtimeDirectives = [];\r\n const hasChildren = children.length > 0;\r\n let shouldUseBlock = false;\r\n // patchFlag analysis\r\n let patchFlag = 0;\r\n let hasRef = false;\r\n let hasClassBinding = false;\r\n let hasStyleBinding = false;\r\n let hasHydrationEventBinding = false;\r\n let hasDynamicKeys = false;\r\n let hasVnodeHook = false;\r\n const dynamicPropNames = [];\r\n const analyzePatchFlag = ({ key, value }) => {\r\n if (isStaticExp(key)) {\r\n const name = key.content;\r\n const isEventHandler = isOn(name);\r\n if (!isComponent &&\r\n isEventHandler &&\r\n // omit the flag for click handlers because hydration gives click\r\n // dedicated fast path.\r\n name.toLowerCase() !== 'onclick' &&\r\n // omit v-model handlers\r\n name !== 'onUpdate:modelValue' &&\r\n // omit onVnodeXXX hooks\r\n !isReservedProp(name)) {\r\n hasHydrationEventBinding = true;\r\n }\r\n if (isEventHandler && isReservedProp(name)) {\r\n hasVnodeHook = true;\r\n }\r\n if (value.type === 20 /* JS_CACHE_EXPRESSION */ ||\r\n ((value.type === 4 /* SIMPLE_EXPRESSION */ ||\r\n value.type === 8 /* COMPOUND_EXPRESSION */) &&\r\n getConstantType(value, context) > 0)) {\r\n // skip if the prop is a cached handler or has constant value\r\n return;\r\n }\r\n if (name === 'ref') {\r\n hasRef = true;\r\n }\r\n else if (name === 'class') {\r\n hasClassBinding = true;\r\n }\r\n else if (name === 'style') {\r\n hasStyleBinding = true;\r\n }\r\n else if (name !== 'key' && !dynamicPropNames.includes(name)) {\r\n dynamicPropNames.push(name);\r\n }\r\n // treat the dynamic class and style binding of the component as dynamic props\r\n if (isComponent &&\r\n (name === 'class' || name === 'style') &&\r\n !dynamicPropNames.includes(name)) {\r\n dynamicPropNames.push(name);\r\n }\r\n }\r\n else {\r\n hasDynamicKeys = true;\r\n }\r\n };\r\n for (let i = 0; i < props.length; i++) {\r\n // static attribute\r\n const prop = props[i];\r\n if (prop.type === 6 /* ATTRIBUTE */) {\r\n const { loc, name, value } = prop;\r\n let isStatic = true;\r\n if (name === 'ref') {\r\n hasRef = true;\r\n if (context.scopes.vFor > 0) {\r\n properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));\r\n }\r\n }\r\n // skip is on <component>, or is=\"vue:xxx\"\r\n if (name === 'is' &&\r\n (isComponentTag(tag) ||\r\n (value && value.content.startsWith('vue:')) ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context)))) {\r\n continue;\r\n }\r\n properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));\r\n }\r\n else {\r\n // directives\r\n const { name, arg, exp, loc } = prop;\r\n const isVBind = name === 'bind';\r\n const isVOn = name === 'on';\r\n // skip v-slot - it is handled by its dedicated transform.\r\n if (name === 'slot') {\r\n if (!isComponent) {\r\n context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));\r\n }\r\n continue;\r\n }\r\n // skip v-once/v-memo - they are handled by dedicated transforms.\r\n if (name === 'once' || name === 'memo') {\r\n continue;\r\n }\r\n // skip v-is and :is on <component>\r\n if (name === 'is' ||\r\n (isVBind &&\r\n isStaticArgOf(arg, 'is') &&\r\n (isComponentTag(tag) ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context))))) {\r\n continue;\r\n }\r\n // skip v-on in SSR compilation\r\n if (isVOn && ssr) {\r\n continue;\r\n }\r\n if (\r\n // #938: elements with dynamic keys should be forced into blocks\r\n (isVBind && isStaticArgOf(arg, 'key')) ||\r\n // inline before-update hooks need to force block so that it is invoked\r\n // before children\r\n (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) {\r\n shouldUseBlock = true;\r\n }\r\n if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) {\r\n properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));\r\n }\r\n // special case for v-bind and v-on with no argument\r\n if (!arg && (isVBind || isVOn)) {\r\n hasDynamicKeys = true;\r\n if (exp) {\r\n if (properties.length) {\r\n mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));\r\n properties = [];\r\n }\r\n if (isVBind) {\r\n {\r\n // 2.x v-bind object order compat\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const hasOverridableKeys = mergeArgs.some(arg => {\r\n if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n return arg.properties.some(({ key }) => {\r\n if (key.type !== 4 /* SIMPLE_EXPRESSION */ ||\r\n !key.isStatic) {\r\n return true;\r\n }\r\n return (key.content !== 'class' &&\r\n key.content !== 'style' &&\r\n !isOn(key.content));\r\n });\r\n }\r\n else {\r\n // dynamic expression\r\n return true;\r\n }\r\n });\r\n if (hasOverridableKeys) {\r\n checkCompatEnabled(\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc);\r\n }\r\n }\r\n if (isCompatEnabled(\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) {\r\n mergeArgs.unshift(exp);\r\n continue;\r\n }\r\n }\r\n mergeArgs.push(exp);\r\n }\r\n else {\r\n // v-on=\"obj\" -> toHandlers(obj)\r\n mergeArgs.push({\r\n type: 14 /* JS_CALL_EXPRESSION */,\r\n loc,\r\n callee: context.helper(TO_HANDLERS),\r\n arguments: [exp]\r\n });\r\n }\r\n }\r\n else {\r\n context.onError(createCompilerError(isVBind\r\n ? 34 /* X_V_BIND_NO_EXPRESSION */\r\n : 35 /* X_V_ON_NO_EXPRESSION */, loc));\r\n }\r\n continue;\r\n }\r\n const directiveTransform = context.directiveTransforms[name];\r\n if (directiveTransform) {\r\n // has built-in directive transform.\r\n const { props, needRuntime } = directiveTransform(prop, node, context);\r\n !ssr && props.forEach(analyzePatchFlag);\r\n properties.push(...props);\r\n if (needRuntime) {\r\n runtimeDirectives.push(prop);\r\n if (isSymbol(needRuntime)) {\r\n directiveImportMap.set(prop, needRuntime);\r\n }\r\n }\r\n }\r\n else {\r\n // no built-in transform, this is a user custom directive.\r\n runtimeDirectives.push(prop);\r\n // custom dirs may use beforeUpdate so they need to force blocks\r\n // to ensure before-update gets called before children update\r\n if (hasChildren) {\r\n shouldUseBlock = true;\r\n }\r\n }\r\n }\r\n }\r\n let propsExpression = undefined;\r\n // has v-bind=\"object\" or v-on=\"object\", wrap with mergeProps\r\n if (mergeArgs.length) {\r\n if (properties.length) {\r\n mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));\r\n }\r\n if (mergeArgs.length > 1) {\r\n propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);\r\n }\r\n else {\r\n // single v-bind with nothing else - no need for a mergeProps call\r\n propsExpression = mergeArgs[0];\r\n }\r\n }\r\n else if (properties.length) {\r\n propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);\r\n }\r\n // patchFlag analysis\r\n if (hasDynamicKeys) {\r\n patchFlag |= 16 /* FULL_PROPS */;\r\n }\r\n else {\r\n if (hasClassBinding && !isComponent) {\r\n patchFlag |= 2 /* CLASS */;\r\n }\r\n if (hasStyleBinding && !isComponent) {\r\n patchFlag |= 4 /* STYLE */;\r\n }\r\n if (dynamicPropNames.length) {\r\n patchFlag |= 8 /* PROPS */;\r\n }\r\n if (hasHydrationEventBinding) {\r\n patchFlag |= 32 /* HYDRATE_EVENTS */;\r\n }\r\n }\r\n if (!shouldUseBlock &&\r\n (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) &&\r\n (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) {\r\n patchFlag |= 512 /* NEED_PATCH */;\r\n }\r\n // pre-normalize props, SSR is skipped for now\r\n if (!context.inSSR && propsExpression) {\r\n switch (propsExpression.type) {\r\n case 15 /* JS_OBJECT_EXPRESSION */:\r\n // means that there is no v-bind,\r\n // but still need to deal with dynamic key binding\r\n let classKeyIndex = -1;\r\n let styleKeyIndex = -1;\r\n let hasDynamicKey = false;\r\n for (let i = 0; i < propsExpression.properties.length; i++) {\r\n const key = propsExpression.properties[i].key;\r\n if (isStaticExp(key)) {\r\n if (key.content === 'class') {\r\n classKeyIndex = i;\r\n }\r\n else if (key.content === 'style') {\r\n styleKeyIndex = i;\r\n }\r\n }\r\n else if (!key.isHandlerKey) {\r\n hasDynamicKey = true;\r\n }\r\n }\r\n const classProp = propsExpression.properties[classKeyIndex];\r\n const styleProp = propsExpression.properties[styleKeyIndex];\r\n // no dynamic key\r\n if (!hasDynamicKey) {\r\n if (classProp && !isStaticExp(classProp.value)) {\r\n classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);\r\n }\r\n if (styleProp &&\r\n !isStaticExp(styleProp.value) &&\r\n // the static style is compiled into an object,\r\n // so use `hasStyleBinding` to ensure that it is a dynamic style binding\r\n (hasStyleBinding ||\r\n // v-bind:style and style both exist,\r\n // v-bind:style with static literal object\r\n styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) {\r\n styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);\r\n }\r\n }\r\n else {\r\n // dynamic key binding, wrap with `normalizeProps`\r\n propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);\r\n }\r\n break;\r\n case 14 /* JS_CALL_EXPRESSION */:\r\n // mergeProps call, do nothing\r\n break;\r\n default:\r\n // single v-bind\r\n propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [\r\n createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [\r\n propsExpression\r\n ])\r\n ]);\r\n break;\r\n }\r\n }\r\n return {\r\n props: propsExpression,\r\n directives: runtimeDirectives,\r\n patchFlag,\r\n dynamicPropNames,\r\n shouldUseBlock\r\n };\r\n}\r\n// Dedupe props in an object literal.\r\n// Literal duplicated attributes would have been warned during the parse phase,\r\n// however, it's possible to encounter duplicated `onXXX` handlers with different\r\n// modifiers. We also need to merge static and dynamic class / style attributes.\r\n// - onXXX handlers / style: merge into array\r\n// - class: merge into single expression with concatenation\r\nfunction dedupeProperties(properties) {\r\n const knownProps = new Map();\r\n const deduped = [];\r\n for (let i = 0; i < properties.length; i++) {\r\n const prop = properties[i];\r\n // dynamic keys are always allowed\r\n if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) {\r\n deduped.push(prop);\r\n continue;\r\n }\r\n const name = prop.key.content;\r\n const existing = knownProps.get(name);\r\n if (existing) {\r\n if (name === 'style' || name === 'class' || isOn(name)) {\r\n mergeAsArray(existing, prop);\r\n }\r\n // unexpected duplicate, should have emitted error during parse\r\n }\r\n else {\r\n knownProps.set(name, prop);\r\n deduped.push(prop);\r\n }\r\n }\r\n return deduped;\r\n}\r\nfunction mergeAsArray(existing, incoming) {\r\n if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) {\r\n existing.value.elements.push(incoming.value);\r\n }\r\n else {\r\n existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);\r\n }\r\n}\r\nfunction buildDirectiveArgs(dir, context) {\r\n const dirArgs = [];\r\n const runtime = directiveImportMap.get(dir);\r\n if (runtime) {\r\n // built-in directive with runtime\r\n dirArgs.push(context.helperString(runtime));\r\n }\r\n else {\r\n {\r\n // inject statement for resolving directive\r\n context.helper(RESOLVE_DIRECTIVE);\r\n context.directives.add(dir.name);\r\n dirArgs.push(toValidAssetId(dir.name, `directive`));\r\n }\r\n }\r\n const { loc } = dir;\r\n if (dir.exp)\r\n dirArgs.push(dir.exp);\r\n if (dir.arg) {\r\n if (!dir.exp) {\r\n dirArgs.push(`void 0`);\r\n }\r\n dirArgs.push(dir.arg);\r\n }\r\n if (Object.keys(dir.modifiers).length) {\r\n if (!dir.arg) {\r\n if (!dir.exp) {\r\n dirArgs.push(`void 0`);\r\n }\r\n dirArgs.push(`void 0`);\r\n }\r\n const trueExpression = createSimpleExpression(`true`, false, loc);\r\n dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));\r\n }\r\n return createArrayExpression(dirArgs, dir.loc);\r\n}\r\nfunction stringifyDynamicPropNames(props) {\r\n let propsNamesString = `[`;\r\n for (let i = 0, l = props.length; i < l; i++) {\r\n propsNamesString += JSON.stringify(props[i]);\r\n if (i < l - 1)\r\n propsNamesString += ', ';\r\n }\r\n return propsNamesString + `]`;\r\n}\r\nfunction isComponentTag(tag) {\r\n return tag === 'component' || tag === 'Component';\r\n}\n\n(process.env.NODE_ENV !== 'production')\r\n ? Object.freeze({})\r\n : {};\r\n(process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null);\r\n return ((str) => {\r\n const hit = cache[str];\r\n return hit || (cache[str] = fn(str));\r\n });\r\n};\r\nconst camelizeRE = /-(\\w)/g;\r\n/**\r\n * @private\r\n */\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\r\n});\n\nconst transformSlotOutlet = (node, context) => {\r\n if (isSlotOutlet(node)) {\r\n const { children, loc } = node;\r\n const { slotName, slotProps } = processSlotOutlet(node, context);\r\n const slotArgs = [\r\n context.prefixIdentifiers ? `_ctx.$slots` : `$slots`,\r\n slotName,\r\n '{}',\r\n 'undefined',\r\n 'true'\r\n ];\r\n let expectedLen = 2;\r\n if (slotProps) {\r\n slotArgs[2] = slotProps;\r\n expectedLen = 3;\r\n }\r\n if (children.length) {\r\n slotArgs[3] = createFunctionExpression([], children, false, false, loc);\r\n expectedLen = 4;\r\n }\r\n if (context.scopeId && !context.slotted) {\r\n expectedLen = 5;\r\n }\r\n slotArgs.splice(expectedLen); // remove unused arguments\r\n node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);\r\n }\r\n};\r\nfunction processSlotOutlet(node, context) {\r\n let slotName = `\"default\"`;\r\n let slotProps = undefined;\r\n const nonNameProps = [];\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (p.value) {\r\n if (p.name === 'name') {\r\n slotName = JSON.stringify(p.value.content);\r\n }\r\n else {\r\n p.name = camelize(p.name);\r\n nonNameProps.push(p);\r\n }\r\n }\r\n }\r\n else {\r\n if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) {\r\n if (p.exp)\r\n slotName = p.exp;\r\n }\r\n else {\r\n if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {\r\n p.arg.content = camelize(p.arg.content);\r\n }\r\n nonNameProps.push(p);\r\n }\r\n }\r\n }\r\n if (nonNameProps.length > 0) {\r\n const { props, directives } = buildProps(node, context, nonNameProps);\r\n slotProps = props;\r\n if (directives.length) {\r\n context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));\r\n }\r\n }\r\n return {\r\n slotName,\r\n slotProps\r\n };\r\n}\n\nconst fnExpRE = /^\\s*([\\w$_]+|(async\\s*)?\\([^)]*?\\))\\s*=>|^\\s*(async\\s+)?function(?:\\s+[\\w$]+)?\\s*\\(/;\r\nconst transformOn = (dir, node, context, augmentor) => {\r\n const { loc, modifiers, arg } = dir;\r\n if (!dir.exp && !modifiers.length) {\r\n context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));\r\n }\r\n let eventName;\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n let rawName = arg.content;\r\n // TODO deprecate @vnodeXXX usage\r\n if (rawName.startsWith('vue:')) {\r\n rawName = `vnode-${rawName.slice(4)}`;\r\n }\r\n // for all event listeners, auto convert it to camelCase. See issue #2249\r\n eventName = createSimpleExpression(toHandlerKey(camelize$1(rawName)), true, arg.loc);\r\n }\r\n else {\r\n // #2388\r\n eventName = createCompoundExpression([\r\n `${context.helperString(TO_HANDLER_KEY)}(`,\r\n arg,\r\n `)`\r\n ]);\r\n }\r\n }\r\n else {\r\n // already a compound expression.\r\n eventName = arg;\r\n eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);\r\n eventName.children.push(`)`);\r\n }\r\n // handler processing\r\n let exp = dir.exp;\r\n if (exp && !exp.content.trim()) {\r\n exp = undefined;\r\n }\r\n let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;\r\n if (exp) {\r\n const isMemberExp = isMemberExpression(exp.content);\r\n const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));\r\n const hasMultipleStatements = exp.content.includes(`;`);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(exp, context, false, hasMultipleStatements);\r\n }\r\n if (isInlineStatement || (shouldCache && isMemberExp)) {\r\n // wrap inline statement in a function expression\r\n exp = createCompoundExpression([\r\n `${isInlineStatement\r\n ? `$event`\r\n : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`,\r\n exp,\r\n hasMultipleStatements ? `}` : `)`\r\n ]);\r\n }\r\n }\r\n let ret = {\r\n props: [\r\n createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))\r\n ]\r\n };\r\n // apply extended compiler augmentor\r\n if (augmentor) {\r\n ret = augmentor(ret);\r\n }\r\n if (shouldCache) {\r\n // cache handlers so that it's always the same handler being passed down.\r\n // this avoids unnecessary re-renders when users use inline handlers on\r\n // components.\r\n ret.props[0].value = context.cache(ret.props[0].value);\r\n }\r\n // mark the key as handler for props normalization check\r\n ret.props.forEach(p => (p.key.isHandlerKey = true));\r\n return ret;\r\n};\n\n// v-bind without arg is handled directly in ./transformElements.ts due to it affecting\r\n// codegen for the entire props object. This transform here is only for v-bind\r\n// *with* args.\r\nconst transformBind = (dir, _node, context) => {\r\n const { exp, modifiers, loc } = dir;\r\n const arg = dir.arg;\r\n if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {\r\n arg.children.unshift(`(`);\r\n arg.children.push(`) || \"\"`);\r\n }\r\n else if (!arg.isStatic) {\r\n arg.content = `${arg.content} || \"\"`;\r\n }\r\n // .sync is replaced by v-model:arg\r\n if (modifiers.includes('camel')) {\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n arg.content = camelize$1(arg.content);\r\n }\r\n else {\r\n arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;\r\n }\r\n }\r\n else {\r\n arg.children.unshift(`${context.helperString(CAMELIZE)}(`);\r\n arg.children.push(`)`);\r\n }\r\n }\r\n if (!context.inSSR) {\r\n if (modifiers.includes('prop')) {\r\n injectPrefix(arg, '.');\r\n }\r\n if (modifiers.includes('attr')) {\r\n injectPrefix(arg, '^');\r\n }\r\n }\r\n if (!exp ||\r\n (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {\r\n context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));\r\n return {\r\n props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]\r\n };\r\n }\r\n return {\r\n props: [createObjectProperty(arg, exp)]\r\n };\r\n};\r\nconst injectPrefix = (arg, prefix) => {\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n arg.content = prefix + arg.content;\r\n }\r\n else {\r\n arg.content = `\\`${prefix}\\${${arg.content}}\\``;\r\n }\r\n }\r\n else {\r\n arg.children.unshift(`'${prefix}' + (`);\r\n arg.children.push(`)`);\r\n }\r\n};\n\n// Merge adjacent text nodes and expressions into a single expression\r\n// e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child.\r\nconst transformText = (node, context) => {\r\n if (node.type === 0 /* ROOT */ ||\r\n node.type === 1 /* ELEMENT */ ||\r\n node.type === 11 /* FOR */ ||\r\n node.type === 10 /* IF_BRANCH */) {\r\n // perform the transform on node exit so that all expressions have already\r\n // been processed.\r\n return () => {\r\n const children = node.children;\r\n let currentContainer = undefined;\r\n let hasText = false;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isText(child)) {\r\n hasText = true;\r\n for (let j = i + 1; j < children.length; j++) {\r\n const next = children[j];\r\n if (isText(next)) {\r\n if (!currentContainer) {\r\n currentContainer = children[i] = {\r\n type: 8 /* COMPOUND_EXPRESSION */,\r\n loc: child.loc,\r\n children: [child]\r\n };\r\n }\r\n // merge adjacent text node into current\r\n currentContainer.children.push(` + `, next);\r\n children.splice(j, 1);\r\n j--;\r\n }\r\n else {\r\n currentContainer = undefined;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n if (!hasText ||\r\n // if this is a plain element with a single text child, leave it\r\n // as-is since the runtime has dedicated fast path for this by directly\r\n // setting textContent of the element.\r\n // for component root it's always normalized anyway.\r\n (children.length === 1 &&\r\n (node.type === 0 /* ROOT */ ||\r\n (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n // #3756\r\n // custom directives can potentially add DOM elements arbitrarily,\r\n // we need to avoid setting textContent of the element at runtime\r\n // to avoid accidentally overwriting the DOM elements added\r\n // by the user through custom directives.\r\n !node.props.find(p => p.type === 7 /* DIRECTIVE */ &&\r\n !context.directiveTransforms[p.name]) &&\r\n // in compat mode, <template> tags with no special directives\r\n // will be rendered as a fragment so its children must be\r\n // converted into vnodes.\r\n !(node.tag === 'template'))))) {\r\n return;\r\n }\r\n // pre-convert text nodes into createTextVNode(text) calls to avoid\r\n // runtime normalization.\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) {\r\n const callArgs = [];\r\n // createTextVNode defaults to single whitespace, so if it is a\r\n // single space the code could be an empty call to save bytes.\r\n if (child.type !== 2 /* TEXT */ || child.content !== ' ') {\r\n callArgs.push(child);\r\n }\r\n // mark dynamic text with flag so it gets patched inside a block\r\n if (!context.ssr &&\r\n getConstantType(child, context) === 0 /* NOT_CONSTANT */) {\r\n callArgs.push(1 /* TEXT */ +\r\n ((process.env.NODE_ENV !== 'production') ? ` /* ${PatchFlagNames[1 /* TEXT */]} */` : ``));\r\n }\r\n children[i] = {\r\n type: 12 /* TEXT_CALL */,\r\n content: child,\r\n loc: child.loc,\r\n codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)\r\n };\r\n }\r\n }\r\n };\r\n }\r\n};\n\nconst seen = new WeakSet();\r\nconst transformOnce = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) {\r\n if (seen.has(node) || context.inVOnce) {\r\n return;\r\n }\r\n seen.add(node);\r\n context.inVOnce = true;\r\n context.helper(SET_BLOCK_TRACKING);\r\n return () => {\r\n context.inVOnce = false;\r\n const cur = context.currentNode;\r\n if (cur.codegenNode) {\r\n cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */);\r\n }\r\n };\r\n }\r\n};\n\nconst transformModel = (dir, node, context) => {\r\n const { exp, arg } = dir;\r\n if (!exp) {\r\n context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));\r\n return createTransformProps();\r\n }\r\n const rawExp = exp.loc.source;\r\n const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp;\r\n // im SFC <script setup> inline mode, the exp may have been transformed into\r\n // _unref(exp)\r\n context.bindingMetadata[rawExp];\r\n const maybeRef = !true /* SETUP_CONST */;\r\n if (!expString.trim() ||\r\n (!isMemberExpression(expString) && !maybeRef)) {\r\n context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));\r\n return createTransformProps();\r\n }\r\n const propName = arg ? arg : createSimpleExpression('modelValue', true);\r\n const eventName = arg\r\n ? isStaticExp(arg)\r\n ? `onUpdate:${arg.content}`\r\n : createCompoundExpression(['\"onUpdate:\" + ', arg])\r\n : `onUpdate:modelValue`;\r\n let assignmentExp;\r\n const eventArg = context.isTS ? `($event: any)` : `$event`;\r\n {\r\n assignmentExp = createCompoundExpression([\r\n `${eventArg} => ((`,\r\n exp,\r\n `) = $event)`\r\n ]);\r\n }\r\n const props = [\r\n // modelValue: foo\r\n createObjectProperty(propName, dir.exp),\r\n // \"onUpdate:modelValue\": $event => (foo = $event)\r\n createObjectProperty(eventName, assignmentExp)\r\n ];\r\n // modelModifiers: { foo: true, \"bar-baz\": true }\r\n if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) {\r\n const modifiers = dir.modifiers\r\n .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`)\r\n .join(`, `);\r\n const modifiersKey = arg\r\n ? isStaticExp(arg)\r\n ? `${arg.content}Modifiers`\r\n : createCompoundExpression([arg, ' + \"Modifiers\"'])\r\n : `modelModifiers`;\r\n props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */)));\r\n }\r\n return createTransformProps(props);\r\n};\r\nfunction createTransformProps(props = []) {\r\n return { props };\r\n}\n\nconst validDivisionCharRE = /[\\w).+\\-_$\\]]/;\r\nconst transformFilter = (node, context) => {\r\n if (!isCompatEnabled(\"COMPILER_FILTER\" /* COMPILER_FILTERS */, context)) {\r\n return;\r\n }\r\n if (node.type === 5 /* INTERPOLATION */) {\r\n // filter rewrite is applied before expression transform so only\r\n // simple expressions are possible at this stage\r\n rewriteFilter(node.content, context);\r\n }\r\n if (node.type === 1 /* ELEMENT */) {\r\n node.props.forEach((prop) => {\r\n if (prop.type === 7 /* DIRECTIVE */ &&\r\n prop.name !== 'for' &&\r\n prop.exp) {\r\n rewriteFilter(prop.exp, context);\r\n }\r\n });\r\n }\r\n};\r\nfunction rewriteFilter(node, context) {\r\n if (node.type === 4 /* SIMPLE_EXPRESSION */) {\r\n parseFilter(node, context);\r\n }\r\n else {\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (typeof child !== 'object')\r\n continue;\r\n if (child.type === 4 /* SIMPLE_EXPRESSION */) {\r\n parseFilter(child, context);\r\n }\r\n else if (child.type === 8 /* COMPOUND_EXPRESSION */) {\r\n rewriteFilter(node, context);\r\n }\r\n else if (child.type === 5 /* INTERPOLATION */) {\r\n rewriteFilter(child.content, context);\r\n }\r\n }\r\n }\r\n}\r\nfunction parseFilter(node, context) {\r\n const exp = node.content;\r\n let inSingle = false;\r\n let inDouble = false;\r\n let inTemplateString = false;\r\n let inRegex = false;\r\n let curly = 0;\r\n let square = 0;\r\n let paren = 0;\r\n let lastFilterIndex = 0;\r\n let c, prev, i, expression, filters = [];\r\n for (i = 0; i < exp.length; i++) {\r\n prev = c;\r\n c = exp.charCodeAt(i);\r\n if (inSingle) {\r\n if (c === 0x27 && prev !== 0x5c)\r\n inSingle = false;\r\n }\r\n else if (inDouble) {\r\n if (c === 0x22 && prev !== 0x5c)\r\n inDouble = false;\r\n }\r\n else if (inTemplateString) {\r\n if (c === 0x60 && prev !== 0x5c)\r\n inTemplateString = false;\r\n }\r\n else if (inRegex) {\r\n if (c === 0x2f && prev !== 0x5c)\r\n inRegex = false;\r\n }\r\n else if (c === 0x7c && // pipe\r\n exp.charCodeAt(i + 1) !== 0x7c &&\r\n exp.charCodeAt(i - 1) !== 0x7c &&\r\n !curly &&\r\n !square &&\r\n !paren) {\r\n if (expression === undefined) {\r\n // first filter, end of expression\r\n lastFilterIndex = i + 1;\r\n expression = exp.slice(0, i).trim();\r\n }\r\n else {\r\n pushFilter();\r\n }\r\n }\r\n else {\r\n switch (c) {\r\n case 0x22:\r\n inDouble = true;\r\n break; // \"\r\n case 0x27:\r\n inSingle = true;\r\n break; // '\r\n case 0x60:\r\n inTemplateString = true;\r\n break; // `\r\n case 0x28:\r\n paren++;\r\n break; // (\r\n case 0x29:\r\n paren--;\r\n break; // )\r\n case 0x5b:\r\n square++;\r\n break; // [\r\n case 0x5d:\r\n square--;\r\n break; // ]\r\n case 0x7b:\r\n curly++;\r\n break; // {\r\n case 0x7d:\r\n curly--;\r\n break; // }\r\n }\r\n if (c === 0x2f) {\r\n // /\r\n let j = i - 1;\r\n let p;\r\n // find first non-whitespace prev char\r\n for (; j >= 0; j--) {\r\n p = exp.charAt(j);\r\n if (p !== ' ')\r\n break;\r\n }\r\n if (!p || !validDivisionCharRE.test(p)) {\r\n inRegex = true;\r\n }\r\n }\r\n }\r\n }\r\n if (expression === undefined) {\r\n expression = exp.slice(0, i).trim();\r\n }\r\n else if (lastFilterIndex !== 0) {\r\n pushFilter();\r\n }\r\n function pushFilter() {\r\n filters.push(exp.slice(lastFilterIndex, i).trim());\r\n lastFilterIndex = i + 1;\r\n }\r\n if (filters.length) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warnDeprecation(\"COMPILER_FILTER\" /* COMPILER_FILTERS */, context, node.loc);\r\n for (i = 0; i < filters.length; i++) {\r\n expression = wrapFilter(expression, filters[i], context);\r\n }\r\n node.content = expression;\r\n }\r\n}\r\nfunction wrapFilter(exp, filter, context) {\r\n context.helper(RESOLVE_FILTER);\r\n const i = filter.indexOf('(');\r\n if (i < 0) {\r\n context.filters.add(filter);\r\n return `${toValidAssetId(filter, 'filter')}(${exp})`;\r\n }\r\n else {\r\n const name = filter.slice(0, i);\r\n const args = filter.slice(i + 1);\r\n context.filters.add(name);\r\n return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`;\r\n }\r\n}\n\nconst seen$1 = new WeakSet();\r\nconst transformMemo = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n const dir = findDir(node, 'memo');\r\n if (!dir || seen$1.has(node)) {\r\n return;\r\n }\r\n seen$1.add(node);\r\n return () => {\r\n const codegenNode = node.codegenNode ||\r\n context.currentNode.codegenNode;\r\n if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) {\r\n // non-component sub tree should be turned into a block\r\n if (node.tagType !== 1 /* COMPONENT */) {\r\n makeBlock(codegenNode, context);\r\n }\r\n node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [\r\n dir.exp,\r\n createFunctionExpression(undefined, codegenNode),\r\n `_cache`,\r\n String(context.cached++)\r\n ]);\r\n }\r\n };\r\n }\r\n};\n\nfunction getBaseTransformPreset(prefixIdentifiers) {\r\n return [\r\n [\r\n transformOnce,\r\n transformIf,\r\n transformMemo,\r\n transformFor,\r\n ...([transformFilter] ),\r\n ...((process.env.NODE_ENV !== 'production')\r\n ? [transformExpression]\r\n : []),\r\n transformSlotOutlet,\r\n transformElement,\r\n trackSlotScopes,\r\n transformText\r\n ],\r\n {\r\n on: transformOn,\r\n bind: transformBind,\r\n model: transformModel\r\n }\r\n ];\r\n}\r\n// we name it `baseCompile` so that higher order compilers like\r\n// @vue/compiler-dom can export `compile` while re-exporting everything else.\r\nfunction baseCompile(template, options = {}) {\r\n const onError = options.onError || defaultOnError;\r\n const isModuleMode = options.mode === 'module';\r\n /* istanbul ignore if */\r\n {\r\n if (options.prefixIdentifiers === true) {\r\n onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));\r\n }\r\n else if (isModuleMode) {\r\n onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));\r\n }\r\n }\r\n const prefixIdentifiers = !true ;\r\n if (options.cacheHandlers) {\r\n onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));\r\n }\r\n if (options.scopeId && !isModuleMode) {\r\n onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));\r\n }\r\n const ast = isString(template) ? baseParse(template, options) : template;\r\n const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();\r\n transform(ast, extend({}, options, {\r\n prefixIdentifiers,\r\n nodeTransforms: [\r\n ...nodeTransforms,\r\n ...(options.nodeTransforms || []) // user transforms\r\n ],\r\n directiveTransforms: extend({}, directiveTransforms, options.directiveTransforms || {} // user transforms\r\n )\r\n }));\r\n return generate(ast, extend({}, options, {\r\n prefixIdentifiers\r\n }));\r\n}\n\nconst noopDirectiveTransform = () => ({ props: [] });\n\nexport { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildProps, buildSlots, checkCompatEnabled, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, extractIdentifiers, findDir, findProp, generate, getBaseTransformPreset, getInnerRange, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isBuiltInType, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVSlot, locStub, makeBlock, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };\n","import { registerRuntimeHelpers, isBuiltInType, createSimpleExpression, createCompilerError, createObjectProperty, createCallExpression, TO_DISPLAY_STRING, transformModel as transformModel$1, findProp, hasDynamicKeyVBind, transformOn as transformOn$1, createCompoundExpression, isStaticExp, checkCompatEnabled, noopDirectiveTransform, baseCompile, baseParse } from '@vue/compiler-core';\nexport * from '@vue/compiler-core';\nimport { isVoidTag, isHTMLTag, isSVGTag, makeMap, parseStringStyle, capitalize, extend } from '@vue/shared';\n\nconst V_MODEL_RADIO = Symbol((process.env.NODE_ENV !== 'production') ? `vModelRadio` : ``);\r\nconst V_MODEL_CHECKBOX = Symbol((process.env.NODE_ENV !== 'production') ? `vModelCheckbox` : ``);\r\nconst V_MODEL_TEXT = Symbol((process.env.NODE_ENV !== 'production') ? `vModelText` : ``);\r\nconst V_MODEL_SELECT = Symbol((process.env.NODE_ENV !== 'production') ? `vModelSelect` : ``);\r\nconst V_MODEL_DYNAMIC = Symbol((process.env.NODE_ENV !== 'production') ? `vModelDynamic` : ``);\r\nconst V_ON_WITH_MODIFIERS = Symbol((process.env.NODE_ENV !== 'production') ? `vOnModifiersGuard` : ``);\r\nconst V_ON_WITH_KEYS = Symbol((process.env.NODE_ENV !== 'production') ? `vOnKeysGuard` : ``);\r\nconst V_SHOW = Symbol((process.env.NODE_ENV !== 'production') ? `vShow` : ``);\r\nconst TRANSITION = Symbol((process.env.NODE_ENV !== 'production') ? `Transition` : ``);\r\nconst TRANSITION_GROUP = Symbol((process.env.NODE_ENV !== 'production') ? `TransitionGroup` : ``);\r\nregisterRuntimeHelpers({\r\n [V_MODEL_RADIO]: `vModelRadio`,\r\n [V_MODEL_CHECKBOX]: `vModelCheckbox`,\r\n [V_MODEL_TEXT]: `vModelText`,\r\n [V_MODEL_SELECT]: `vModelSelect`,\r\n [V_MODEL_DYNAMIC]: `vModelDynamic`,\r\n [V_ON_WITH_MODIFIERS]: `withModifiers`,\r\n [V_ON_WITH_KEYS]: `withKeys`,\r\n [V_SHOW]: `vShow`,\r\n [TRANSITION]: `Transition`,\r\n [TRANSITION_GROUP]: `TransitionGroup`\r\n});\n\n/* eslint-disable no-restricted-globals */\r\nlet decoder;\r\nfunction decodeHtmlBrowser(raw, asAttr = false) {\r\n if (!decoder) {\r\n decoder = document.createElement('div');\r\n }\r\n if (asAttr) {\r\n decoder.innerHTML = `<div foo=\"${raw.replace(/\"/g, '"')}\">`;\r\n return decoder.children[0].getAttribute('foo');\r\n }\r\n else {\r\n decoder.innerHTML = raw;\r\n return decoder.textContent;\r\n }\r\n}\n\nconst isRawTextContainer = /*#__PURE__*/ makeMap('style,iframe,script,noscript', true);\r\nconst parserOptions = {\r\n isVoidTag,\r\n isNativeTag: tag => isHTMLTag(tag) || isSVGTag(tag),\r\n isPreTag: tag => tag === 'pre',\r\n decodeEntities: decodeHtmlBrowser ,\r\n isBuiltInComponent: (tag) => {\r\n if (isBuiltInType(tag, `Transition`)) {\r\n return TRANSITION;\r\n }\r\n else if (isBuiltInType(tag, `TransitionGroup`)) {\r\n return TRANSITION_GROUP;\r\n }\r\n },\r\n // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher\r\n getNamespace(tag, parent) {\r\n let ns = parent ? parent.ns : 0 /* HTML */;\r\n if (parent && ns === 2 /* MATH_ML */) {\r\n if (parent.tag === 'annotation-xml') {\r\n if (tag === 'svg') {\r\n return 1 /* SVG */;\r\n }\r\n if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ &&\r\n a.name === 'encoding' &&\r\n a.value != null &&\r\n (a.value.content === 'text/html' ||\r\n a.value.content === 'application/xhtml+xml'))) {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n else if (/^m(?:[ions]|text)$/.test(parent.tag) &&\r\n tag !== 'mglyph' &&\r\n tag !== 'malignmark') {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n else if (parent && ns === 1 /* SVG */) {\r\n if (parent.tag === 'foreignObject' ||\r\n parent.tag === 'desc' ||\r\n parent.tag === 'title') {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n if (ns === 0 /* HTML */) {\r\n if (tag === 'svg') {\r\n return 1 /* SVG */;\r\n }\r\n if (tag === 'math') {\r\n return 2 /* MATH_ML */;\r\n }\r\n }\r\n return ns;\r\n },\r\n // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments\r\n getTextMode({ tag, ns }) {\r\n if (ns === 0 /* HTML */) {\r\n if (tag === 'textarea' || tag === 'title') {\r\n return 1 /* RCDATA */;\r\n }\r\n if (isRawTextContainer(tag)) {\r\n return 2 /* RAWTEXT */;\r\n }\r\n }\r\n return 0 /* DATA */;\r\n }\r\n};\n\n// Parse inline CSS strings for static style attributes into an object.\r\n// This is a NodeTransform since it works on the static `style` attribute and\r\n// converts it into a dynamic equivalent:\r\n// style=\"color: red\" -> :style='{ \"color\": \"red\" }'\r\n// It is then processed by `transformElement` and included in the generated\r\n// props.\r\nconst transformStyle = node => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n node.props.forEach((p, i) => {\r\n if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) {\r\n // replace p with an expression node\r\n node.props[i] = {\r\n type: 7 /* DIRECTIVE */,\r\n name: `bind`,\r\n arg: createSimpleExpression(`style`, true, p.loc),\r\n exp: parseInlineCSS(p.value.content, p.loc),\r\n modifiers: [],\r\n loc: p.loc\r\n };\r\n }\r\n });\r\n }\r\n};\r\nconst parseInlineCSS = (cssText, loc) => {\r\n const normalized = parseStringStyle(cssText);\r\n return createSimpleExpression(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */);\r\n};\n\nfunction createDOMCompilerError(code, loc) {\r\n return createCompilerError(code, loc, (process.env.NODE_ENV !== 'production') || !true ? DOMErrorMessages : undefined);\r\n}\r\nconst DOMErrorMessages = {\r\n [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`,\r\n [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`,\r\n [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`,\r\n [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`,\r\n [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`,\r\n [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`,\r\n [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,\r\n [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,\r\n [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`,\r\n [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`,\r\n [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`\r\n};\n\nconst transformVHtml = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc));\r\n }\r\n if (node.children.length) {\r\n context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc));\r\n node.children.length = 0;\r\n }\r\n return {\r\n props: [\r\n createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression('', true))\r\n ]\r\n };\r\n};\n\nconst transformVText = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc));\r\n }\r\n if (node.children.length) {\r\n context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc));\r\n node.children.length = 0;\r\n }\r\n return {\r\n props: [\r\n createObjectProperty(createSimpleExpression(`textContent`, true), exp\r\n ? createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc)\r\n : createSimpleExpression('', true))\r\n ]\r\n };\r\n};\n\nconst transformModel = (dir, node, context) => {\r\n const baseResult = transformModel$1(dir, node, context);\r\n // base transform has errors OR component v-model (only need props)\r\n if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {\r\n return baseResult;\r\n }\r\n if (dir.arg) {\r\n context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc));\r\n }\r\n function checkDuplicatedValue() {\r\n const value = findProp(node, 'value');\r\n if (value) {\r\n context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc));\r\n }\r\n }\r\n const { tag } = node;\r\n const isCustomElement = context.isCustomElement(tag);\r\n if (tag === 'input' ||\r\n tag === 'textarea' ||\r\n tag === 'select' ||\r\n isCustomElement) {\r\n let directiveToUse = V_MODEL_TEXT;\r\n let isInvalidType = false;\r\n if (tag === 'input' || isCustomElement) {\r\n const type = findProp(node, `type`);\r\n if (type) {\r\n if (type.type === 7 /* DIRECTIVE */) {\r\n // :type=\"foo\"\r\n directiveToUse = V_MODEL_DYNAMIC;\r\n }\r\n else if (type.value) {\r\n switch (type.value.content) {\r\n case 'radio':\r\n directiveToUse = V_MODEL_RADIO;\r\n break;\r\n case 'checkbox':\r\n directiveToUse = V_MODEL_CHECKBOX;\r\n break;\r\n case 'file':\r\n isInvalidType = true;\r\n context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc));\r\n break;\r\n default:\r\n // text type\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n break;\r\n }\r\n }\r\n }\r\n else if (hasDynamicKeyVBind(node)) {\r\n // element has bindings with dynamic keys, which can possibly contain\r\n // \"type\".\r\n directiveToUse = V_MODEL_DYNAMIC;\r\n }\r\n else {\r\n // text type\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n }\r\n }\r\n else if (tag === 'select') {\r\n directiveToUse = V_MODEL_SELECT;\r\n }\r\n else {\r\n // textarea\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n }\r\n // inject runtime directive\r\n // by returning the helper symbol via needRuntime\r\n // the import will replaced a resolveDirective call.\r\n if (!isInvalidType) {\r\n baseResult.needRuntime = context.helper(directiveToUse);\r\n }\r\n }\r\n else {\r\n context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc));\r\n }\r\n // native vmodel doesn't need the `modelValue` props since they are also\r\n // passed to the runtime as `binding.value`. removing it reduces code size.\r\n baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n p.key.content === 'modelValue'));\r\n return baseResult;\r\n};\n\nconst isEventOptionModifier = /*#__PURE__*/ makeMap(`passive,once,capture`);\r\nconst isNonKeyModifier = /*#__PURE__*/ makeMap(\r\n// event propagation management\r\n`stop,prevent,self,` +\r\n // system modifiers + exact\r\n `ctrl,shift,alt,meta,exact,` +\r\n // mouse\r\n `middle`);\r\n// left & right could be mouse or key modifiers based on event type\r\nconst maybeKeyModifier = /*#__PURE__*/ makeMap('left,right');\r\nconst isKeyboardEvent = /*#__PURE__*/ makeMap(`onkeyup,onkeydown,onkeypress`, true);\r\nconst resolveModifiers = (key, modifiers, context, loc) => {\r\n const keyModifiers = [];\r\n const nonKeyModifiers = [];\r\n const eventOptionModifiers = [];\r\n for (let i = 0; i < modifiers.length; i++) {\r\n const modifier = modifiers[i];\r\n if (modifier === 'native' &&\r\n checkCompatEnabled(\"COMPILER_V_ON_NATIVE\" /* COMPILER_V_ON_NATIVE */, context, loc)) {\r\n eventOptionModifiers.push(modifier);\r\n }\r\n else if (isEventOptionModifier(modifier)) {\r\n // eventOptionModifiers: modifiers for addEventListener() options,\r\n // e.g. .passive & .capture\r\n eventOptionModifiers.push(modifier);\r\n }\r\n else {\r\n // runtimeModifiers: modifiers that needs runtime guards\r\n if (maybeKeyModifier(modifier)) {\r\n if (isStaticExp(key)) {\r\n if (isKeyboardEvent(key.content)) {\r\n keyModifiers.push(modifier);\r\n }\r\n else {\r\n nonKeyModifiers.push(modifier);\r\n }\r\n }\r\n else {\r\n keyModifiers.push(modifier);\r\n nonKeyModifiers.push(modifier);\r\n }\r\n }\r\n else {\r\n if (isNonKeyModifier(modifier)) {\r\n nonKeyModifiers.push(modifier);\r\n }\r\n else {\r\n keyModifiers.push(modifier);\r\n }\r\n }\r\n }\r\n }\r\n return {\r\n keyModifiers,\r\n nonKeyModifiers,\r\n eventOptionModifiers\r\n };\r\n};\r\nconst transformClick = (key, event) => {\r\n const isStaticClick = isStaticExp(key) && key.content.toLowerCase() === 'onclick';\r\n return isStaticClick\r\n ? createSimpleExpression(event, true)\r\n : key.type !== 4 /* SIMPLE_EXPRESSION */\r\n ? createCompoundExpression([\r\n `(`,\r\n key,\r\n `) === \"onClick\" ? \"${event}\" : (`,\r\n key,\r\n `)`\r\n ])\r\n : key;\r\n};\r\nconst transformOn = (dir, node, context) => {\r\n return transformOn$1(dir, node, context, baseResult => {\r\n const { modifiers } = dir;\r\n if (!modifiers.length)\r\n return baseResult;\r\n let { key, value: handlerExp } = baseResult.props[0];\r\n const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc);\r\n // normalize click.right and click.middle since they don't actually fire\r\n if (nonKeyModifiers.includes('right')) {\r\n key = transformClick(key, `onContextmenu`);\r\n }\r\n if (nonKeyModifiers.includes('middle')) {\r\n key = transformClick(key, `onMouseup`);\r\n }\r\n if (nonKeyModifiers.length) {\r\n handlerExp = createCallExpression(context.helper(V_ON_WITH_MODIFIERS), [\r\n handlerExp,\r\n JSON.stringify(nonKeyModifiers)\r\n ]);\r\n }\r\n if (keyModifiers.length &&\r\n // if event name is dynamic, always wrap with keys guard\r\n (!isStaticExp(key) || isKeyboardEvent(key.content))) {\r\n handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [\r\n handlerExp,\r\n JSON.stringify(keyModifiers)\r\n ]);\r\n }\r\n if (eventOptionModifiers.length) {\r\n const modifierPostfix = eventOptionModifiers.map(capitalize).join('');\r\n key = isStaticExp(key)\r\n ? createSimpleExpression(`${key.content}${modifierPostfix}`, true)\r\n : createCompoundExpression([`(`, key, `) + \"${modifierPostfix}\"`]);\r\n }\r\n return {\r\n props: [createObjectProperty(key, handlerExp)]\r\n };\r\n });\r\n};\n\nconst transformShow = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc));\r\n }\r\n return {\r\n props: [],\r\n needRuntime: context.helper(V_SHOW)\r\n };\r\n};\n\nconst warnTransitionChildren = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 1 /* COMPONENT */) {\r\n const component = context.isBuiltInComponent(node.tag);\r\n if (component === TRANSITION) {\r\n return () => {\r\n if (node.children.length && hasMultipleChildren(node)) {\r\n context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, {\r\n start: node.children[0].loc.start,\r\n end: node.children[node.children.length - 1].loc.end,\r\n source: ''\r\n }));\r\n }\r\n };\r\n }\r\n }\r\n};\r\nfunction hasMultipleChildren(node) {\r\n // #1352 filter out potential comment nodes.\r\n const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ &&\r\n !(c.type === 2 /* TEXT */ && !c.content.trim())));\r\n const child = children[0];\r\n return (children.length !== 1 ||\r\n child.type === 11 /* FOR */ ||\r\n (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren)));\r\n}\n\nconst ignoreSideEffectTags = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n (node.tag === 'script' || node.tag === 'style')) {\r\n context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc));\r\n context.removeNode();\r\n }\r\n};\n\nconst DOMNodeTransforms = [\r\n transformStyle,\r\n ...((process.env.NODE_ENV !== 'production') ? [warnTransitionChildren] : [])\r\n];\r\nconst DOMDirectiveTransforms = {\r\n cloak: noopDirectiveTransform,\r\n html: transformVHtml,\r\n text: transformVText,\r\n model: transformModel,\r\n on: transformOn,\r\n show: transformShow\r\n};\r\nfunction compile(template, options = {}) {\r\n return baseCompile(template, extend({}, parserOptions, options, {\r\n nodeTransforms: [\r\n // ignore <script> and <tag>\r\n // this is not put inside DOMNodeTransforms because that list is used\r\n // by compiler-ssr to generate vnode fallback branches\r\n ignoreSideEffectTags,\r\n ...DOMNodeTransforms,\r\n ...(options.nodeTransforms || [])\r\n ],\r\n directiveTransforms: extend({}, DOMDirectiveTransforms, options.directiveTransforms || {}),\r\n transformHoist: null \r\n }));\r\n}\r\nfunction parse(template, options = {}) {\r\n return baseParse(template, extend({}, parserOptions, options));\r\n}\n\nexport { DOMDirectiveTransforms, DOMNodeTransforms, TRANSITION, TRANSITION_GROUP, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, compile, createDOMCompilerError, parse, parserOptions, transformStyle };\n","import * as runtimeDom from '@vue/runtime-dom';\nimport { initCustomFormatter, warn, registerRuntimeCompiler } from '@vue/runtime-dom';\nexport * from '@vue/runtime-dom';\nimport { compile } from '@vue/compiler-dom';\nimport { isString, NOOP, extend, generateCodeFrame } from '@vue/shared';\n\nfunction initDev() {\r\n {\r\n initCustomFormatter();\r\n }\r\n}\n\n// This entry is the \"full-build\" that includes both the runtime\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n initDev();\r\n}\r\nconst compileCache = Object.create(null);\r\nfunction compileToFunction(template, options) {\r\n if (!isString(template)) {\r\n if (template.nodeType) {\r\n template = template.innerHTML;\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warn(`invalid template option: `, template);\r\n return NOOP;\r\n }\r\n }\r\n const key = template;\r\n const cached = compileCache[key];\r\n if (cached) {\r\n return cached;\r\n }\r\n if (template[0] === '#') {\r\n const el = document.querySelector(template);\r\n if ((process.env.NODE_ENV !== 'production') && !el) {\r\n warn(`Template element not found or is empty: ${template}`);\r\n }\r\n // __UNSAFE__\r\n // Reason: potential execution of JS expressions in in-DOM template.\r\n // The user must make sure the in-DOM template is trusted. If it's rendered\r\n // by the server, the template should not contain any user data.\r\n template = el ? el.innerHTML : ``;\r\n }\r\n const { code } = compile(template, extend({\r\n hoistStatic: true,\r\n onError: (process.env.NODE_ENV !== 'production') ? onError : undefined,\r\n onWarn: (process.env.NODE_ENV !== 'production') ? e => onError(e, true) : NOOP\r\n }, options));\r\n function onError(err, asWarning = false) {\r\n const message = asWarning\r\n ? err.message\r\n : `Template compilation error: ${err.message}`;\r\n const codeFrame = err.loc &&\r\n generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);\r\n warn(codeFrame ? `${message}\\n${codeFrame}` : message);\r\n }\r\n // The wildcard import results in a huge object with every export\r\n // with keys that cannot be mangled, and can be quite heavy size-wise.\r\n // In the global build we know `Vue` is available globally so we can avoid\r\n // the wildcard object.\r\n const render = (new Function('Vue', code)(runtimeDom));\r\n render._rc = true;\r\n return (compileCache[key] = render);\r\n}\r\nregisterRuntimeCompiler(compileToFunction);\n\nexport { compileToFunction as compile };\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"sortablejs\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, \"sortablejs\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vuedraggable\"] = factory(require(\"vue\"), require(\"sortablejs\"));\n\telse\n\t\troot[\"vuedraggable\"] = factory(root[\"Vue\"], root[\"Sortable\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_a352__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"00ee\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n\n\n/***/ }),\n\n/***/ \"0366\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar aFunction = __webpack_require__(\"1c0b\");\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n\n/***/ \"057f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar nativeGetOwnPropertyNames = __webpack_require__(\"241c\").f;\n\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return nativeGetOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]'\n ? getWindowNames(it)\n : nativeGetOwnPropertyNames(toIndexedObject(it));\n};\n\n\n/***/ }),\n\n/***/ \"06cf\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar propertyIsEnumerableModule = __webpack_require__(\"d1e7\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar has = __webpack_require__(\"5135\");\nvar IE8_DOM_DEFINE = __webpack_require__(\"0cfb\");\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n\n\n/***/ }),\n\n/***/ \"0cfb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar fails = __webpack_require__(\"d039\");\nvar createElement = __webpack_require__(\"cc12\");\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n\n\n/***/ }),\n\n/***/ \"13d5\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $reduce = __webpack_require__(\"d58f\").left;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"14c3\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"c6b6\");\nvar regexpExec = __webpack_require__(\"9263\");\n\n// `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n\n return regexpExec.call(R, S);\n};\n\n\n\n/***/ }),\n\n/***/ \"159b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar DOMIterables = __webpack_require__(\"fdbc\");\nvar forEach = __webpack_require__(\"17c2\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n\n\n/***/ }),\n\n/***/ \"17c2\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $forEach = __webpack_require__(\"b727\").forEach;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n\n\n/***/ }),\n\n/***/ \"1be4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n\n\n/***/ }),\n\n/***/ \"1c0b\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"1c7e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line no-throw-literal\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n\n\n/***/ }),\n\n/***/ \"1d80\":\n/***/ (function(module, exports) {\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n\n/***/ \"1dde\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar V8_VERSION = __webpack_require__(\"2d00\");\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n\n\n/***/ }),\n\n/***/ \"23cb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n\n\n/***/ }),\n\n/***/ \"23e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar getOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar setGlobal = __webpack_require__(\"ce4e\");\nvar copyConstructorProperties = __webpack_require__(\"e893\");\nvar isForced = __webpack_require__(\"94ca\");\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n\n\n/***/ }),\n\n/***/ \"241c\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar internalObjectKeys = __webpack_require__(\"ca84\");\nvar enumBugKeys = __webpack_require__(\"7839\");\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n\n\n/***/ }),\n\n/***/ \"25f0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar redefine = __webpack_require__(\"6eeb\");\nvar anObject = __webpack_require__(\"825a\");\nvar fails = __webpack_require__(\"d039\");\nvar flags = __webpack_require__(\"ad6d\");\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = String(R.source);\n var rf = R.flags;\n var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);\n return '/' + p + '/' + f;\n }, { unsafe: true });\n}\n\n\n/***/ }),\n\n/***/ \"2ca0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar getOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar toLength = __webpack_require__(\"50c4\");\nvar notARegExp = __webpack_require__(\"5a34\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\nvar correctIsRegExpLogic = __webpack_require__(\"ab13\");\nvar IS_PURE = __webpack_require__(\"c430\");\n\nvar nativeStartsWith = ''.startsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return nativeStartsWith\n ? nativeStartsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n\n\n/***/ }),\n\n/***/ \"2d00\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar userAgent = __webpack_require__(\"342f\");\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n\n\n/***/ }),\n\n/***/ \"342f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n\n\n/***/ }),\n\n/***/ \"35a1\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"f5df\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/***/ }),\n\n/***/ \"37e8\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar anObject = __webpack_require__(\"825a\");\nvar objectKeys = __webpack_require__(\"df75\");\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n\n\n/***/ }),\n\n/***/ \"3bbe\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"3ca3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar charAt = __webpack_require__(\"6547\").charAt;\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar defineIterator = __webpack_require__(\"7dd0\");\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n\n/***/ \"3f8c\":\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n\n/***/ \"4160\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar forEach = __webpack_require__(\"17c2\");\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n\n\n/***/ }),\n\n/***/ \"428f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\n\nmodule.exports = global;\n\n\n/***/ }),\n\n/***/ \"44ad\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\nvar classof = __webpack_require__(\"c6b6\");\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n\n\n/***/ }),\n\n/***/ \"44d2\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar create = __webpack_require__(\"7c73\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n\n\n/***/ }),\n\n/***/ \"44e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\nvar classof = __webpack_require__(\"c6b6\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n\n\n/***/ }),\n\n/***/ \"4930\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n\n\n/***/ }),\n\n/***/ \"4d64\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n\n\n/***/ }),\n\n/***/ \"4de4\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $filter = __webpack_require__(\"b727\").filter;\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n// Edge 14- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"4df4\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar bind = __webpack_require__(\"0366\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar callWithSafeIterationClosing = __webpack_require__(\"9bdd\");\nvar isArrayIteratorMethod = __webpack_require__(\"e95a\");\nvar toLength = __webpack_require__(\"50c4\");\nvar createProperty = __webpack_require__(\"8418\");\nvar getIteratorMethod = __webpack_require__(\"35a1\");\n\n// `Array.from` method implementation\n// https://tc39.github.io/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"4fad\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar $entries = __webpack_require__(\"6f53\").entries;\n\n// `Object.entries` method\n// https://tc39.github.io/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n\n\n/***/ }),\n\n/***/ \"50c4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\n\n/***/ }),\n\n/***/ \"5135\":\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n\n/***/ \"5319\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar fixRegExpWellKnownSymbolLogic = __webpack_require__(\"d784\");\nvar anObject = __webpack_require__(\"825a\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toInteger = __webpack_require__(\"a691\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\nvar advanceStringIndex = __webpack_require__(\"8aa5\");\nvar regExpExec = __webpack_require__(\"14c3\");\n\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {\n var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;\n var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined\n ? replacer.call(searchValue, O, replaceValue)\n : nativeReplace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n if (\n (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||\n (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)\n ) {\n var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);\n if (res.done) return res.value;\n }\n\n var rx = anObject(regexp);\n var S = String(this);\n\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n results.push(result);\n if (!global) break;\n\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return nativeReplace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n\n\n/***/ }),\n\n/***/ \"5692\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar IS_PURE = __webpack_require__(\"c430\");\nvar store = __webpack_require__(\"c6cd\");\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.5',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n\n/***/ \"56ef\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\nvar getOwnPropertyNamesModule = __webpack_require__(\"241c\");\nvar getOwnPropertySymbolsModule = __webpack_require__(\"7418\");\nvar anObject = __webpack_require__(\"825a\");\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n\n\n/***/ }),\n\n/***/ \"5a34\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isRegExp = __webpack_require__(\"44e7\");\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"5c6c\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n\n/***/ \"5db7\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar flattenIntoArray = __webpack_require__(\"a2bf\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar aFunction = __webpack_require__(\"1c0b\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\n\n// `Array.prototype.flatMap` method\n// https://github.com/tc39/proposal-flatMap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"6547\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n\n\n/***/ }),\n\n/***/ \"65f0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n\n\n/***/ }),\n\n/***/ \"69f3\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar NATIVE_WEAK_MAP = __webpack_require__(\"7f9a\");\nvar global = __webpack_require__(\"da84\");\nvar isObject = __webpack_require__(\"861d\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar objectHas = __webpack_require__(\"5135\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar hiddenKeys = __webpack_require__(\"d012\");\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\n\n/***/ }),\n\n/***/ \"6eeb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar has = __webpack_require__(\"5135\");\nvar setGlobal = __webpack_require__(\"ce4e\");\nvar inspectSource = __webpack_require__(\"8925\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n\n\n/***/ }),\n\n/***/ \"6f53\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar objectKeys = __webpack_require__(\"df75\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar propertyIsEnumerable = __webpack_require__(\"d1e7\").f;\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.github.io/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.github.io/ecma262/#sec-object.values\n values: createMethod(false)\n};\n\n\n/***/ }),\n\n/***/ \"73d9\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = __webpack_require__(\"44d2\");\n\naddToUnscopables('flatMap');\n\n\n/***/ }),\n\n/***/ \"7418\":\n/***/ (function(module, exports) {\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n/***/ }),\n\n/***/ \"746f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar path = __webpack_require__(\"428f\");\nvar has = __webpack_require__(\"5135\");\nvar wrappedWellKnownSymbolModule = __webpack_require__(\"e538\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n\n\n/***/ }),\n\n/***/ \"7839\":\n/***/ (function(module, exports) {\n\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n\n\n/***/ }),\n\n/***/ \"7b0b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n\n\n/***/ }),\n\n/***/ \"7c73\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\nvar defineProperties = __webpack_require__(\"37e8\");\nvar enumBugKeys = __webpack_require__(\"7839\");\nvar hiddenKeys = __webpack_require__(\"d012\");\nvar html = __webpack_require__(\"1be4\");\nvar documentCreateElement = __webpack_require__(\"cc12\");\nvar sharedKey = __webpack_require__(\"f772\");\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n /* global ActiveXObject */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n\n\n/***/ }),\n\n/***/ \"7dd0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar createIteratorConstructor = __webpack_require__(\"9ed3\");\nvar getPrototypeOf = __webpack_require__(\"e163\");\nvar setPrototypeOf = __webpack_require__(\"d2bb\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar IS_PURE = __webpack_require__(\"c430\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar IteratorsCore = __webpack_require__(\"ae93\");\n\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n\n\n/***/ }),\n\n/***/ \"7f9a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar inspectSource = __webpack_require__(\"8925\");\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n\n\n/***/ }),\n\n/***/ \"825a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"83ab\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\n\n/***/ }),\n\n/***/ \"8418\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n\n\n/***/ }),\n\n/***/ \"861d\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n\n/***/ \"8875\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*<script>([\\\\d\\\\D]*?)<\\\\/script>[\\\\d\\\\D]*', 'i');\n inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();\n }\n \n for (var i = 0; i < scripts.length; i++) {\n // If ready state is interactive, return the script tag\n if (scripts[i].readyState === 'interactive') {\n return scripts[i];\n }\n \n // If src matches, return the script tag\n if (scripts[i].src === scriptLocation) {\n return scripts[i];\n }\n \n // If inline source matches, return the script tag\n if (\n scriptLocation === currentLocation &&\n scripts[i].innerHTML &&\n scripts[i].innerHTML.trim() === inlineScriptSource\n ) {\n return scripts[i];\n }\n }\n \n // If no match, return null\n return null;\n }\n };\n\n return getCurrentScript\n}));\n\n\n/***/ }),\n\n/***/ \"8925\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(\"c6cd\");\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n\n\n/***/ }),\n\n/***/ \"8aa5\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar charAt = __webpack_require__(\"6547\").charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? charAt(S, index).length : 1);\n};\n\n\n/***/ }),\n\n/***/ \"8bbf\":\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;\n\n/***/ }),\n\n/***/ \"90e3\":\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n\n\n/***/ }),\n\n/***/ \"9112\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n\n/***/ \"9263\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar regexpFlags = __webpack_require__(\"ad6d\");\nvar stickyHelpers = __webpack_require__(\"9f7f\");\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = regexpFlags.call(re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = flags.replace('y', '');\n if (flags.indexOf('g') === -1) {\n flags += 'g';\n }\n\n strCopy = String(str).slice(re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = nativeExec.call(sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = match.input.slice(charsAdded);\n match[0] = match[0].slice(charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n\n\n/***/ }),\n\n/***/ \"94ca\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n\n\n/***/ }),\n\n/***/ \"99af\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar fails = __webpack_require__(\"d039\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar isObject = __webpack_require__(\"861d\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar createProperty = __webpack_require__(\"8418\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar V8_VERSION = __webpack_require__(\"2d00\");\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n concat: function concat(arg) { // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"9bdd\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) anObject(returnMethod.call(iterator));\n throw error;\n }\n};\n\n\n/***/ }),\n\n/***/ \"9bf2\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar IE8_DOM_DEFINE = __webpack_require__(\"0cfb\");\nvar anObject = __webpack_require__(\"825a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n\n/***/ \"9ed3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar IteratorPrototype = __webpack_require__(\"ae93\").IteratorPrototype;\nvar create = __webpack_require__(\"7c73\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar Iterators = __webpack_require__(\"3f8c\");\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n\n\n/***/ }),\n\n/***/ \"9f7f\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar fails = __webpack_require__(\"d039\");\n\n// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,\n// so we use an intermediate function.\nfunction RE(s, f) {\n return RegExp(s, f);\n}\n\nexports.UNSUPPORTED_Y = fails(function () {\n // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\n var re = RE('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\nexports.BROKEN_CARET = fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = RE('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\n\n/***/ }),\n\n/***/ \"a2bf\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar isArray = __webpack_require__(\"e8b5\");\nvar toLength = __webpack_require__(\"50c4\");\nvar bind = __webpack_require__(\"0366\");\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n\n\n/***/ }),\n\n/***/ \"a352\":\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_a352__;\n\n/***/ }),\n\n/***/ \"a434\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\nvar toInteger = __webpack_require__(\"a691\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\nvar createProperty = __webpack_require__(\"8418\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"a4d3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar global = __webpack_require__(\"da84\");\nvar getBuiltIn = __webpack_require__(\"d066\");\nvar IS_PURE = __webpack_require__(\"c430\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(\"fdbf\");\nvar fails = __webpack_require__(\"d039\");\nvar has = __webpack_require__(\"5135\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar isObject = __webpack_require__(\"861d\");\nvar anObject = __webpack_require__(\"825a\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar nativeObjectCreate = __webpack_require__(\"7c73\");\nvar objectKeys = __webpack_require__(\"df75\");\nvar getOwnPropertyNamesModule = __webpack_require__(\"241c\");\nvar getOwnPropertyNamesExternal = __webpack_require__(\"057f\");\nvar getOwnPropertySymbolsModule = __webpack_require__(\"7418\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar propertyIsEnumerableModule = __webpack_require__(\"d1e7\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar shared = __webpack_require__(\"5692\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar hiddenKeys = __webpack_require__(\"d012\");\nvar uid = __webpack_require__(\"90e3\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar wrappedWellKnownSymbolModule = __webpack_require__(\"e538\");\nvar defineWellKnownSymbol = __webpack_require__(\"746f\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar $forEach = __webpack_require__(\"b727\").forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar isSymbol = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return Object(it) instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPrimitive(P, true);\n anObject(Attributes);\n if (has(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPrimitive(V, true);\n var enumerable = nativePropertyIsEnumerable.call(this, P);\n if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPrimitive(P, true);\n if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {\n result.push(AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.github.io/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty($Symbol[PROTOTYPE], 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n // `Symbol.for` method\n // https://tc39.github.io/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = String(key);\n if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.github.io/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.github.io/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.github.io/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n\n $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {\n // eslint-disable-next-line no-unused-vars\n stringify: function stringify(it, replacer, space) {\n var args = [it];\n var index = 1;\n var $replacer;\n while (arguments.length > index) args.push(arguments[index++]);\n $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return $stringify.apply(null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {\n createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n\n\n/***/ }),\n\n/***/ \"a630\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar from = __webpack_require__(\"4df4\");\nvar checkCorrectnessOfIteration = __webpack_require__(\"1c7e\");\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.github.io/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n\n\n/***/ }),\n\n/***/ \"a640\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n\n\n/***/ }),\n\n/***/ \"a691\":\n/***/ (function(module, exports) {\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n\n\n/***/ }),\n\n/***/ \"ab13\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n\n\n/***/ }),\n\n/***/ \"ac1f\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar exec = __webpack_require__(\"9263\");\n\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n\n\n/***/ }),\n\n/***/ \"ad6d\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar anObject = __webpack_require__(\"825a\");\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"ae40\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar fails = __webpack_require__(\"d039\");\nvar has = __webpack_require__(\"5135\");\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n\n\n/***/ }),\n\n/***/ \"ae93\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar getPrototypeOf = __webpack_require__(\"e163\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar has = __webpack_require__(\"5135\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar IS_PURE = __webpack_require__(\"c430\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nif (IteratorPrototype == undefined) IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nif (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n\n\n/***/ }),\n\n/***/ \"b041\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar classof = __webpack_require__(\"f5df\");\n\n// `Object.prototype.toString` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n\n\n/***/ }),\n\n/***/ \"b0c0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\n\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.github.io/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n\n\n/***/ }),\n\n/***/ \"b622\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar shared = __webpack_require__(\"5692\");\nvar has = __webpack_require__(\"5135\");\nvar uid = __webpack_require__(\"90e3\");\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(\"fdbf\");\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n\n\n/***/ }),\n\n/***/ \"b64b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar nativeKeys = __webpack_require__(\"df75\");\nvar fails = __webpack_require__(\"d039\");\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n\n\n/***/ }),\n\n/***/ \"b727\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar bind = __webpack_require__(\"0366\");\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n\n\n/***/ }),\n\n/***/ \"c04e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n\n/***/ \"c430\":\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n\n/***/ \"c6b6\":\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n\n/***/ \"c6cd\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar setGlobal = __webpack_require__(\"ce4e\");\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n\n\n/***/ }),\n\n/***/ \"c740\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $findIndex = __webpack_require__(\"b727\").findIndex;\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);\n\n// Shouldn't skip holes\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n\n\n/***/ }),\n\n/***/ \"c8ba\":\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n\n/***/ \"c975\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $indexOf = __webpack_require__(\"4d64\").indexOf;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.indexOf` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"ca84\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar indexOf = __webpack_require__(\"4d64\").indexOf;\nvar hiddenKeys = __webpack_require__(\"d012\");\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"caad\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $includes = __webpack_require__(\"4d64\").includes;\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n\n\n/***/ }),\n\n/***/ \"cc12\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar isObject = __webpack_require__(\"861d\");\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n\n/***/ \"ce4e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n\n\n/***/ }),\n\n/***/ \"d012\":\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n\n/***/ \"d039\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\n\n/***/ }),\n\n/***/ \"d066\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar path = __webpack_require__(\"428f\");\nvar global = __webpack_require__(\"da84\");\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n\n\n/***/ }),\n\n/***/ \"d1e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n\n\n/***/ }),\n\n/***/ \"d28b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar defineWellKnownSymbol = __webpack_require__(\"746f\");\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n\n\n/***/ }),\n\n/***/ \"d2bb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\nvar aPossiblePrototype = __webpack_require__(\"3bbe\");\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n\n\n/***/ }),\n\n/***/ \"d3b7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar toString = __webpack_require__(\"b041\");\n\n// `Object.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\n\n\n/***/ }),\n\n/***/ \"d44e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar defineProperty = __webpack_require__(\"9bf2\").f;\nvar has = __webpack_require__(\"5135\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n\n\n/***/ }),\n\n/***/ \"d58f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar aFunction = __webpack_require__(\"1c0b\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar toLength = __webpack_require__(\"50c4\");\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n\n\n/***/ }),\n\n/***/ \"d784\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// TODO: Remove from `core-js@4` since it's moved to entry points\n__webpack_require__(\"ac1f\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar fails = __webpack_require__(\"d039\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar regexpExec = __webpack_require__(\"9263\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nvar SPECIES = wellKnownSymbol('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$<a>') !== '7';\n});\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\nvar REPLACE = wellKnownSymbol('replace');\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\nmodule.exports = function (KEY, length, exec, sham) {\n var SYMBOL = wellKnownSymbol(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n\n if (KEY === 'split') {\n // We can't use real regex here since it causes deoptimization\n // and serious performance degradation in V8\n // https://github.com/zloirock/core-js/issues/306\n re = {};\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n re.flags = '';\n re[SYMBOL] = /./[SYMBOL];\n }\n\n re.exec = function () { execCalled = true; return null; };\n\n re[SYMBOL]('');\n return !execCalled;\n });\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !(\n REPLACE_SUPPORTS_NAMED_GROUPS &&\n REPLACE_KEEPS_$0 &&\n !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE\n )) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }, {\n REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,\n REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE\n });\n var stringMethod = methods[0];\n var regexMethod = methods[1];\n\n redefine(String.prototype, KEY, stringMethod);\n redefine(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return regexMethod.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return regexMethod.call(string, this); }\n );\n }\n\n if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);\n};\n\n\n/***/ }),\n\n/***/ \"d81d\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $map = __webpack_require__(\"b727\").map;\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"da84\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(\"c8ba\")))\n\n/***/ }),\n\n/***/ \"dbb4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar ownKeys = __webpack_require__(\"56ef\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar createProperty = __webpack_require__(\"8418\");\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n});\n\n\n/***/ }),\n\n/***/ \"dbf1\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return console; });\nfunction getConsole() {\n if (typeof window !== \"undefined\") {\n return window.console;\n }\n\n return global.console;\n}\n\nvar console = getConsole();\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(\"c8ba\")))\n\n/***/ }),\n\n/***/ \"ddb0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar DOMIterables = __webpack_require__(\"fdbc\");\nvar ArrayIteratorMethods = __webpack_require__(\"e260\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n\n\n/***/ }),\n\n/***/ \"df75\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar internalObjectKeys = __webpack_require__(\"ca84\");\nvar enumBugKeys = __webpack_require__(\"7839\");\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n\n\n/***/ }),\n\n/***/ \"e01a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// `Symbol.prototype.description` getter\n// https://tc39.github.io/ecma262/#sec-symbol.prototype.description\n\nvar $ = __webpack_require__(\"23e7\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar global = __webpack_require__(\"da84\");\nvar has = __webpack_require__(\"5135\");\nvar isObject = __webpack_require__(\"861d\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\nvar copyConstructorProperties = __webpack_require__(\"e893\");\n\nvar NativeSymbol = global.Symbol;\n\nif (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||\n // Safari 12 bug\n NativeSymbol().description !== undefined\n)) {\n var EmptyStringDescriptionStore = {};\n // wrap Symbol constructor for correct work with undefined description\n var SymbolWrapper = function Symbol() {\n var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);\n var result = this instanceof SymbolWrapper\n ? new NativeSymbol(description)\n // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'\n : description === undefined ? NativeSymbol() : NativeSymbol(description);\n if (description === '') EmptyStringDescriptionStore[result] = true;\n return result;\n };\n copyConstructorProperties(SymbolWrapper, NativeSymbol);\n var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;\n symbolPrototype.constructor = SymbolWrapper;\n\n var symbolToString = symbolPrototype.toString;\n var native = String(NativeSymbol('test')) == 'Symbol(test)';\n var regexp = /^Symbol\\((.*)\\)[^)]+$/;\n defineProperty(symbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n var symbol = isObject(this) ? this.valueOf() : this;\n var string = symbolToString.call(symbol);\n if (has(EmptyStringDescriptionStore, symbol)) return '';\n var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');\n return desc === '' ? undefined : desc;\n }\n });\n\n $({ global: true, forced: true }, {\n Symbol: SymbolWrapper\n });\n}\n\n\n/***/ }),\n\n/***/ \"e163\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar CORRECT_PROTOTYPE_GETTER = __webpack_require__(\"e177\");\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n\n\n/***/ }),\n\n/***/ \"e177\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n\n\n/***/ }),\n\n/***/ \"e260\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar defineIterator = __webpack_require__(\"7dd0\");\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.github.io/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/***/ }),\n\n/***/ \"e439\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar fails = __webpack_require__(\"d039\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar nativeGetOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n\n\n/***/ }),\n\n/***/ \"e538\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nexports.f = wellKnownSymbol;\n\n\n/***/ }),\n\n/***/ \"e893\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar ownKeys = __webpack_require__(\"56ef\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n\n\n/***/ }),\n\n/***/ \"e8b5\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"c6b6\");\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n\n\n/***/ }),\n\n/***/ \"e95a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar Iterators = __webpack_require__(\"3f8c\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n\n\n/***/ }),\n\n/***/ \"f5df\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar classofRaw = __webpack_require__(\"c6b6\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n\n\n/***/ }),\n\n/***/ \"f772\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(\"5692\");\nvar uid = __webpack_require__(\"90e3\");\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n\n\n/***/ }),\n\n/***/ \"fb15\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (true) {\n var getCurrentScript = __webpack_require__(\"8875\")\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_require__.p = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\n/* harmony default export */ var setPublicPath = (null);\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js\nvar es_array_concat = __webpack_require__(\"99af\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js\nvar es_array_filter = __webpack_require__(\"4de4\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js\nvar es_array_for_each = __webpack_require__(\"4160\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js\nvar es_array_index_of = __webpack_require__(\"c975\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js\nvar es_array_map = __webpack_require__(\"d81d\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js\nvar es_array_splice = __webpack_require__(\"a434\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js\nvar web_dom_collections_for_each = __webpack_require__(\"159b\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js\nvar es_symbol = __webpack_require__(\"a4d3\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js\nvar es_object_get_own_property_descriptor = __webpack_require__(\"e439\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js\nvar es_object_get_own_property_descriptors = __webpack_require__(\"dbb4\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js\nvar es_object_keys = __webpack_require__(\"b64b\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js\nfunction _defineProperty(obj, key, value) {\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\n return obj;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js\n\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js\nvar es_symbol_description = __webpack_require__(\"e01a\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js\nvar es_symbol_iterator = __webpack_require__(\"d28b\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js\nvar es_array_iterator = __webpack_require__(\"e260\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js\nvar es_object_to_string = __webpack_require__(\"d3b7\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js\nvar es_string_iterator = __webpack_require__(\"3ca3\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js\nvar web_dom_collections_iterator = __webpack_require__(\"ddb0\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js\n\n\n\n\n\n\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js\nvar es_array_from = __webpack_require__(\"a630\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js\nvar es_array_slice = __webpack_require__(\"fb6a\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js\nvar es_function_name = __webpack_require__(\"b0c0\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js\nvar es_regexp_to_string = __webpack_require__(\"25f0\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\n\n\n\n\n\n\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js\n\n\n\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js\n\n\n\n\n\n\n\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\n\n\n\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n// EXTERNAL MODULE: external {\"commonjs\":\"sortablejs\",\"commonjs2\":\"sortablejs\",\"amd\":\"sortablejs\",\"root\":\"Sortable\"}\nvar external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__(\"a352\");\nvar external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);\n\n// CONCATENATED MODULE: ./src/util/htmlHelper.js\nfunction removeNode(node) {\n if (node.parentElement !== null) {\n node.parentElement.removeChild(node);\n }\n}\n\nfunction insertNodeAt(fatherNode, node, position) {\n var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;\n fatherNode.insertBefore(node, refNode);\n}\n\n\n// EXTERNAL MODULE: ./src/util/console.js\nvar console = __webpack_require__(\"dbf1\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js\nvar es_array_reduce = __webpack_require__(\"13d5\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js\nvar es_object_entries = __webpack_require__(\"4fad\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js\nvar es_regexp_exec = __webpack_require__(\"ac1f\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js\nvar es_string_replace = __webpack_require__(\"5319\");\n\n// CONCATENATED MODULE: ./src/util/string.js\n\n\n\nfunction cached(fn) {\n var cache = Object.create(null);\n return function cachedFn(str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\n\nvar regex = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(regex, function (_, c) {\n return c.toUpperCase();\n });\n});\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.flat-map.js\nvar es_array_flat_map = __webpack_require__(\"5db7\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unscopables.flat-map.js\nvar es_array_unscopables_flat_map = __webpack_require__(\"73d9\");\n\n// CONCATENATED MODULE: ./src/core/sortableEvents.js\n\n\n\n\nvar manageAndEmit = [\"Start\", \"Add\", \"Remove\", \"Update\", \"End\"];\nvar emit = [\"Choose\", \"Unchoose\", \"Sort\", \"Filter\", \"Clone\"];\nvar manage = [\"Move\"];\nvar eventHandlerNames = [manage, manageAndEmit, emit].flatMap(function (events) {\n return events;\n}).map(function (evt) {\n return \"on\".concat(evt);\n});\nvar events = {\n manage: manage,\n manageAndEmit: manageAndEmit,\n emit: emit\n};\n\nfunction isReadOnly(eventName) {\n return eventHandlerNames.indexOf(eventName) !== -1;\n}\n\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js\nvar es_array_includes = __webpack_require__(\"caad\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js\nvar es_string_starts_with = __webpack_require__(\"2ca0\");\n\n// CONCATENATED MODULE: ./src/util/tags.js\n\n\nvar tags = [\"a\", \"abbr\", \"address\", \"area\", \"article\", \"aside\", \"audio\", \"b\", \"base\", \"bdi\", \"bdo\", \"blockquote\", \"body\", \"br\", \"button\", \"canvas\", \"caption\", \"cite\", \"code\", \"col\", \"colgroup\", \"data\", \"datalist\", \"dd\", \"del\", \"details\", \"dfn\", \"dialog\", \"div\", \"dl\", \"dt\", \"em\", \"embed\", \"fieldset\", \"figcaption\", \"figure\", \"footer\", \"form\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"head\", \"header\", \"hgroup\", \"hr\", \"html\", \"i\", \"iframe\", \"img\", \"input\", \"ins\", \"kbd\", \"label\", \"legend\", \"li\", \"link\", \"main\", \"map\", \"mark\", \"math\", \"menu\", \"menuitem\", \"meta\", \"meter\", \"nav\", \"noscript\", \"object\", \"ol\", \"optgroup\", \"option\", \"output\", \"p\", \"param\", \"picture\", \"pre\", \"progress\", \"q\", \"rb\", \"rp\", \"rt\", \"rtc\", \"ruby\", \"s\", \"samp\", \"script\", \"section\", \"select\", \"slot\", \"small\", \"source\", \"span\", \"strong\", \"style\", \"sub\", \"summary\", \"sup\", \"svg\", \"table\", \"tbody\", \"td\", \"template\", \"textarea\", \"tfoot\", \"th\", \"thead\", \"time\", \"title\", \"tr\", \"track\", \"u\", \"ul\", \"var\", \"video\", \"wbr\"];\n\nfunction isHtmlTag(name) {\n return tags.includes(name);\n}\n\nfunction isTransition(name) {\n return [\"transition-group\", \"TransitionGroup\"].includes(name);\n}\n\nfunction isHtmlAttribute(value) {\n return [\"id\", \"class\", \"role\", \"style\"].includes(value) || value.startsWith(\"data-\") || value.startsWith(\"aria-\") || value.startsWith(\"on\");\n}\n\n\n// CONCATENATED MODULE: ./src/core/componentBuilderHelper.js\n\n\n\n\n\n\n\n\n\n\n\n\nfunction project(entries) {\n return entries.reduce(function (res, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n res[key] = value;\n return res;\n }, {});\n}\n\nfunction getComponentAttributes(_ref3) {\n var $attrs = _ref3.$attrs,\n _ref3$componentData = _ref3.componentData,\n componentData = _ref3$componentData === void 0 ? {} : _ref3$componentData;\n var attributes = project(Object.entries($attrs).filter(function (_ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n key = _ref5[0],\n _ = _ref5[1];\n\n return isHtmlAttribute(key);\n }));\n return _objectSpread2(_objectSpread2({}, attributes), componentData);\n}\n\nfunction createSortableOption(_ref6) {\n var $attrs = _ref6.$attrs,\n callBackBuilder = _ref6.callBackBuilder;\n var options = project(getValidSortableEntries($attrs));\n Object.entries(callBackBuilder).forEach(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 2),\n eventType = _ref8[0],\n eventBuilder = _ref8[1];\n\n events[eventType].forEach(function (event) {\n options[\"on\".concat(event)] = eventBuilder(event);\n });\n });\n var draggable = \"[data-draggable]\".concat(options.draggable || \"\");\n return _objectSpread2(_objectSpread2({}, options), {}, {\n draggable: draggable\n });\n}\n\nfunction getValidSortableEntries(value) {\n return Object.entries(value).filter(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n key = _ref10[0],\n _ = _ref10[1];\n\n return !isHtmlAttribute(key);\n }).map(function (_ref11) {\n var _ref12 = _slicedToArray(_ref11, 2),\n key = _ref12[0],\n value = _ref12[1];\n\n return [camelize(key), value];\n }).filter(function (_ref13) {\n var _ref14 = _slicedToArray(_ref13, 2),\n key = _ref14[0],\n _ = _ref14[1];\n\n return !isReadOnly(key);\n });\n}\n\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js\nvar es_array_find_index = __webpack_require__(\"c740\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n// CONCATENATED MODULE: ./src/core/componentStructure.js\n\n\n\n\n\n\n\n\nvar getHtmlElementFromNode = function getHtmlElementFromNode(_ref) {\n var el = _ref.el;\n return el;\n};\n\nvar addContext = function addContext(domElement, context) {\n return domElement.__draggable_context = context;\n};\n\nvar getContext = function getContext(domElement) {\n return domElement.__draggable_context;\n};\n\nvar componentStructure_ComponentStructure = /*#__PURE__*/function () {\n function ComponentStructure(_ref2) {\n var _ref2$nodes = _ref2.nodes,\n header = _ref2$nodes.header,\n defaultNodes = _ref2$nodes.default,\n footer = _ref2$nodes.footer,\n root = _ref2.root,\n realList = _ref2.realList;\n\n _classCallCheck(this, ComponentStructure);\n\n this.defaultNodes = defaultNodes;\n this.children = [].concat(_toConsumableArray(header), _toConsumableArray(defaultNodes), _toConsumableArray(footer));\n this.externalComponent = root.externalComponent;\n this.rootTransition = root.transition;\n this.tag = root.tag;\n this.realList = realList;\n }\n\n _createClass(ComponentStructure, [{\n key: \"render\",\n value: function render(h, attributes) {\n var tag = this.tag,\n children = this.children,\n _isRootComponent = this._isRootComponent;\n var option = !_isRootComponent ? children : {\n default: function _default() {\n return children;\n }\n };\n return h(tag, attributes, option);\n }\n }, {\n key: \"updated\",\n value: function updated() {\n var defaultNodes = this.defaultNodes,\n realList = this.realList;\n defaultNodes.forEach(function (node, index) {\n addContext(getHtmlElementFromNode(node), {\n element: realList[index],\n index: index\n });\n });\n }\n }, {\n key: \"getUnderlyingVm\",\n value: function getUnderlyingVm(domElement) {\n return getContext(domElement);\n }\n }, {\n key: \"getVmIndexFromDomIndex\",\n value: function getVmIndexFromDomIndex(domIndex, element) {\n var defaultNodes = this.defaultNodes;\n var length = defaultNodes.length;\n var domChildren = element.children;\n var domElement = domChildren.item(domIndex);\n\n if (domElement === null) {\n return length;\n }\n\n var context = getContext(domElement);\n\n if (context) {\n return context.index;\n }\n\n if (length === 0) {\n return 0;\n }\n\n var firstDomListElement = getHtmlElementFromNode(defaultNodes[0]);\n\n var indexFirstDomListElement = _toConsumableArray(domChildren).findIndex(function (element) {\n return element === firstDomListElement;\n });\n\n return domIndex < indexFirstDomListElement ? 0 : length;\n }\n }, {\n key: \"_isRootComponent\",\n get: function get() {\n return this.externalComponent || this.rootTransition;\n }\n }]);\n\n return ComponentStructure;\n}();\n\n\n// EXTERNAL MODULE: external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}\nvar external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(\"8bbf\");\n\n// CONCATENATED MODULE: ./src/core/renderHelper.js\n\n\n\n\n\n\n\n\n\nfunction getSlot(slots, key) {\n var slotValue = slots[key];\n return slotValue ? slotValue() : [];\n}\n\nfunction computeNodes(_ref) {\n var $slots = _ref.$slots,\n realList = _ref.realList,\n getKey = _ref.getKey;\n var normalizedList = realList || [];\n\n var _map = [\"header\", \"footer\"].map(function (name) {\n return getSlot($slots, name);\n }),\n _map2 = _slicedToArray(_map, 2),\n header = _map2[0],\n footer = _map2[1];\n\n var item = $slots.item;\n\n if (!item) {\n throw new Error(\"draggable element must have an item slot\");\n }\n\n var defaultNodes = normalizedList.flatMap(function (element, index) {\n return item({\n element: element,\n index: index\n }).map(function (node) {\n node.key = getKey(element);\n node.props = _objectSpread2(_objectSpread2({}, node.props || {}), {}, {\n \"data-draggable\": true\n });\n return node;\n });\n });\n\n if (defaultNodes.length !== normalizedList.length) {\n throw new Error(\"Item slot must have only one child\");\n }\n\n return {\n header: header,\n footer: footer,\n default: defaultNodes\n };\n}\n\nfunction getRootInformation(tag) {\n var transition = isTransition(tag);\n var externalComponent = !isHtmlTag(tag) && !transition;\n return {\n transition: transition,\n externalComponent: externalComponent,\n tag: externalComponent ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"resolveComponent\"])(tag) : transition ? external_commonjs_vue_commonjs2_vue_root_Vue_[\"TransitionGroup\"] : tag\n };\n}\n\nfunction computeComponentStructure(_ref2) {\n var $slots = _ref2.$slots,\n tag = _ref2.tag,\n realList = _ref2.realList,\n getKey = _ref2.getKey;\n var nodes = computeNodes({\n $slots: $slots,\n realList: realList,\n getKey: getKey\n });\n var root = getRootInformation(tag);\n return new componentStructure_ComponentStructure({\n nodes: nodes,\n root: root,\n realList: realList\n });\n}\n\n\n// CONCATENATED MODULE: ./src/vuedraggable.js\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction _emit(evtName, evtData) {\n var _this = this;\n\n Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"nextTick\"])(function () {\n return _this.$emit(evtName.toLowerCase(), evtData);\n });\n}\n\nfunction _manage(evtName) {\n var _this2 = this;\n\n return function (evtData, originalElement) {\n if (_this2.realList !== null) {\n return _this2[\"onDrag\".concat(evtName)](evtData, originalElement);\n }\n };\n}\n\nfunction _manageAndEmit(evtName) {\n var _this3 = this;\n\n var delegateCallBack = _manage.call(this, evtName);\n\n return function (evtData, originalElement) {\n delegateCallBack.call(_this3, evtData, originalElement);\n\n _emit.call(_this3, evtName, evtData);\n };\n}\n\nvar draggingElement = null;\nvar props = {\n list: {\n type: Array,\n required: false,\n default: null\n },\n modelValue: {\n type: Array,\n required: false,\n default: null\n },\n itemKey: {\n type: [String, Function],\n required: true\n },\n clone: {\n type: Function,\n default: function _default(original) {\n return original;\n }\n },\n tag: {\n type: String,\n default: \"div\"\n },\n move: {\n type: Function,\n default: null\n },\n componentData: {\n type: Object,\n required: false,\n default: null\n }\n};\nvar emits = [\"update:modelValue\", \"change\"].concat(_toConsumableArray([].concat(_toConsumableArray(events.manageAndEmit), _toConsumableArray(events.emit)).map(function (evt) {\n return evt.toLowerCase();\n})));\nvar draggableComponent = Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"defineComponent\"])({\n name: \"draggable\",\n inheritAttrs: false,\n props: props,\n emits: emits,\n data: function data() {\n return {\n error: false\n };\n },\n render: function render() {\n try {\n this.error = false;\n var $slots = this.$slots,\n $attrs = this.$attrs,\n tag = this.tag,\n componentData = this.componentData,\n realList = this.realList,\n getKey = this.getKey;\n var componentStructure = computeComponentStructure({\n $slots: $slots,\n tag: tag,\n realList: realList,\n getKey: getKey\n });\n this.componentStructure = componentStructure;\n var attributes = getComponentAttributes({\n $attrs: $attrs,\n componentData: componentData\n });\n return componentStructure.render(external_commonjs_vue_commonjs2_vue_root_Vue_[\"h\"], attributes);\n } catch (err) {\n this.error = true;\n return Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"h\"])(\"pre\", {\n style: {\n color: \"red\"\n }\n }, err.stack);\n }\n },\n created: function created() {\n if (this.list !== null && this.modelValue !== null) {\n console[\"a\" /* console */].error(\"modelValue and list props are mutually exclusive! Please set one or another.\");\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n\n if (this.error) {\n return;\n }\n\n var $attrs = this.$attrs,\n $el = this.$el,\n componentStructure = this.componentStructure;\n componentStructure.updated();\n var sortableOptions = createSortableOption({\n $attrs: $attrs,\n callBackBuilder: {\n manageAndEmit: function manageAndEmit(event) {\n return _manageAndEmit.call(_this4, event);\n },\n emit: function emit(event) {\n return _emit.bind(_this4, event);\n },\n manage: function manage(event) {\n return _manage.call(_this4, event);\n }\n }\n });\n var targetDomElement = $el.nodeType === 1 ? $el : $el.parentElement;\n this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(targetDomElement, sortableOptions);\n this.targetDomElement = targetDomElement;\n targetDomElement.__draggable_component__ = this;\n },\n updated: function updated() {\n this.componentStructure.updated();\n },\n beforeUnmount: function beforeUnmount() {\n if (this._sortable !== undefined) this._sortable.destroy();\n },\n computed: {\n realList: function realList() {\n var list = this.list;\n return list ? list : this.modelValue;\n },\n getKey: function getKey() {\n var itemKey = this.itemKey;\n\n if (typeof itemKey === \"function\") {\n return itemKey;\n }\n\n return function (element) {\n return element[itemKey];\n };\n }\n },\n watch: {\n $attrs: {\n handler: function handler(newOptionValue) {\n var _sortable = this._sortable;\n if (!_sortable) return;\n getValidSortableEntries(newOptionValue).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n _sortable.option(key, value);\n });\n },\n deep: true\n }\n },\n methods: {\n getUnderlyingVm: function getUnderlyingVm(domElement) {\n return this.componentStructure.getUnderlyingVm(domElement) || null;\n },\n getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(htmElement) {\n //TODO check case where you need to see component children\n return htmElement.__draggable_component__;\n },\n emitChanges: function emitChanges(evt) {\n var _this5 = this;\n\n Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"nextTick\"])(function () {\n return _this5.$emit(\"change\", evt);\n });\n },\n alterList: function alterList(onList) {\n if (this.list) {\n onList(this.list);\n return;\n }\n\n var newList = _toConsumableArray(this.modelValue);\n\n onList(newList);\n this.$emit(\"update:modelValue\", newList);\n },\n spliceList: function spliceList() {\n var _arguments = arguments;\n\n var spliceList = function spliceList(list) {\n return list.splice.apply(list, _toConsumableArray(_arguments));\n };\n\n this.alterList(spliceList);\n },\n updatePosition: function updatePosition(oldIndex, newIndex) {\n var updatePosition = function updatePosition(list) {\n return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]);\n };\n\n this.alterList(updatePosition);\n },\n getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref3) {\n var to = _ref3.to,\n related = _ref3.related;\n var component = this.getUnderlyingPotencialDraggableComponent(to);\n\n if (!component) {\n return {\n component: component\n };\n }\n\n var list = component.realList;\n var context = {\n list: list,\n component: component\n };\n\n if (to !== related && list) {\n var destination = component.getUnderlyingVm(related) || {};\n return _objectSpread2(_objectSpread2({}, destination), context);\n }\n\n return context;\n },\n getVmIndexFromDomIndex: function getVmIndexFromDomIndex(domIndex) {\n return this.componentStructure.getVmIndexFromDomIndex(domIndex, this.targetDomElement);\n },\n onDragStart: function onDragStart(evt) {\n this.context = this.getUnderlyingVm(evt.item);\n evt.item._underlying_vm_ = this.clone(this.context.element);\n draggingElement = evt.item;\n },\n onDragAdd: function onDragAdd(evt) {\n var element = evt.item._underlying_vm_;\n\n if (element === undefined) {\n return;\n }\n\n removeNode(evt.item);\n var newIndex = this.getVmIndexFromDomIndex(evt.newIndex);\n this.spliceList(newIndex, 0, element);\n var added = {\n element: element,\n newIndex: newIndex\n };\n this.emitChanges({\n added: added\n });\n },\n onDragRemove: function onDragRemove(evt) {\n insertNodeAt(this.$el, evt.item, evt.oldIndex);\n\n if (evt.pullMode === \"clone\") {\n removeNode(evt.clone);\n return;\n }\n\n var _this$context = this.context,\n oldIndex = _this$context.index,\n element = _this$context.element;\n this.spliceList(oldIndex, 1);\n var removed = {\n element: element,\n oldIndex: oldIndex\n };\n this.emitChanges({\n removed: removed\n });\n },\n onDragUpdate: function onDragUpdate(evt) {\n removeNode(evt.item);\n insertNodeAt(evt.from, evt.item, evt.oldIndex);\n var oldIndex = this.context.index;\n var newIndex = this.getVmIndexFromDomIndex(evt.newIndex);\n this.updatePosition(oldIndex, newIndex);\n var moved = {\n element: this.context.element,\n oldIndex: oldIndex,\n newIndex: newIndex\n };\n this.emitChanges({\n moved: moved\n });\n },\n computeFutureIndex: function computeFutureIndex(relatedContext, evt) {\n if (!relatedContext.element) {\n return 0;\n }\n\n var domChildren = _toConsumableArray(evt.to.children).filter(function (el) {\n return el.style[\"display\"] !== \"none\";\n });\n\n var currentDomIndex = domChildren.indexOf(evt.related);\n var currentIndex = relatedContext.component.getVmIndexFromDomIndex(currentDomIndex);\n var draggedInList = domChildren.indexOf(draggingElement) !== -1;\n return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;\n },\n onDragMove: function onDragMove(evt, originalEvent) {\n var move = this.move,\n realList = this.realList;\n\n if (!move || !realList) {\n return true;\n }\n\n var relatedContext = this.getRelatedContextFromMoveEvent(evt);\n var futureIndex = this.computeFutureIndex(relatedContext, evt);\n\n var draggedContext = _objectSpread2(_objectSpread2({}, this.context), {}, {\n futureIndex: futureIndex\n });\n\n var sendEvent = _objectSpread2(_objectSpread2({}, evt), {}, {\n relatedContext: relatedContext,\n draggedContext: draggedContext\n });\n\n return move(sendEvent, originalEvent);\n },\n onDragEnd: function onDragEnd() {\n draggingElement = null;\n }\n }\n});\n/* harmony default export */ var vuedraggable = (draggableComponent);\n// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js\n\n\n/* harmony default export */ var entry_lib = __webpack_exports__[\"default\"] = (vuedraggable);\n\n\n\n/***/ }),\n\n/***/ \"fb6a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar isObject = __webpack_require__(\"861d\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar createProperty = __webpack_require__(\"8418\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n\n\n/***/ }),\n\n/***/ \"fc6a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n\n\n/***/ }),\n\n/***/ \"fdbc\":\n/***/ (function(module, exports) {\n\n// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n\n\n/***/ }),\n\n/***/ \"fdbf\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n\n\n/***/ })\n\n/******/ })[\"default\"];\n});\n//# sourceMappingURL=vuedraggable.umd.js.map","export let createNanoEvents = () => ({\n events: {},\n emit(event, ...args) {\n ;(this.events[event] || []).forEach(i => i(...args))\n },\n on(event, cb) {\n ;(this.events[event] = this.events[event] || []).push(cb)\n return () =>\n (this.events[event] = (this.events[event] || []).filter(i => i !== cb))\n }\n})\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _defineProperty(obj, key, value) {\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\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}"],"names":["makeMap","str","expectsLowerCase","map","Object","create","list","split","i","length","val","toLowerCase","PatchFlagNames","GLOBALS_WHITE_LISTED","isGloballyWhitelisted","range","generateCodeFrame","source","start","end","lines","newlineSequences","filter","_","idx","count","res","j","line","push","repeat","Math","max","String","lineLength","newLineSeqLength","pad","min","join","specialBooleanAttrs","isSpecialBooleanAttr","includeBooleanAttr","value","normalizeStyle","isArray","item","normalized","isString","parseStringStyle","key","isObject","listDelimiterRE","propertyDelimiterRE","cssText","ret","forEach","tmp","trim","normalizeClass","name","normalizeProps","props","class","klass","style","HTML_TAGS","SVG_TAGS","VOID_TAGS","isHTMLTag","isSVGTag","isVoidTag","looseCompareArrays","a","b","equal","looseEqual","aValidType","isDate","bValidType","getTime","aKeysCount","keys","bKeysCount","aHasKey","hasOwnProperty","bHasKey","looseIndexOf","arr","findIndex","toDisplayString","toString","objectToString","isFunction","JSON","stringify","replacer","_key","__v_isRef","isMap","size","entries","reduce","isSet","values","isPlainObject","EMPTY_OBJ","EMPTY_ARR","NOOP","NO","onRE","isOn","test","isModelListener","startsWith","extend","assign","remove","el","indexOf","splice","prototype","hasOwn","call","Array","toTypeString","Date","isSymbol","isPromise","then","catch","toRawType","slice","isIntegerKey","parseInt","isReservedProp","cacheStringFunction","fn","cache","hit","camelizeRE","camelize","replace","c","toUpperCase","hyphenateRE","hyphenate","capitalize","charAt","toHandlerKey","hasChanged","oldValue","is","invokeArrayFns","fns","arg","def","obj","defineProperty","configurable","enumerable","toNumber","n","parseFloat","isNaN","_globalThis","getGlobalThis","globalThis","self","window","g","global","isCallable","tryToString","TypeError","module","exports","argument","isConstructor","wellKnownSymbol","definePropertyModule","UNSCOPABLES","ArrayPrototype","undefined","f","S","index","unicode","isPrototypeOf","it","Prototype","$forEach","arrayMethodIsStrict","STRICT_METHOD","callbackfn","this","arguments","bind","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","lengthOfArrayLike","createProperty","getIterator","getIteratorMethod","arrayLike","O","IS_CONSTRUCTOR","argumentsLength","mapfn","mapping","result","step","iterator","next","iteratorMethod","done","toIndexedObject","toAbsoluteIndex","createMethod","IS_INCLUDES","$this","fromIndex","includes","uncurryThis","IndexedObject","arraySpeciesCreate","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","that","specificCreate","boundFunction","target","some","every","find","filterReject","fails","V8_VERSION","SPECIES","METHOD_NAME","array","constructor","foo","Boolean","method","k","fin","originalArray","C","arraySpeciesConstructor","anObject","iteratorClose","ENTRIES","error","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","from","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","CORRECT_ARGUMENTS","tryGet","tag","callee","TEST","Error","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","ownKeys","getOwnPropertyDescriptorModule","exceptions","getOwnPropertyDescriptor","MATCH","regexp","error1","error2","F","getPrototypeOf","requireObjectCoercible","quot","string","attribute","p1","IteratorPrototype","createPropertyDescriptor","setToStringTag","Iterators","returnThis","IteratorConstructor","NAME","ENUMERABLE_NEXT","DESCRIPTORS","bitmap","writable","toPropertyKey","propertyKey","$","IS_PURE","FunctionName","createIteratorConstructor","setPrototypeOf","createNonEnumerableProperty","redefine","IteratorsCore","PROPER_FUNCTION_NAME","PROPER","CONFIGURABLE_FUNCTION_NAME","CONFIGURABLE","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","proto","forced","path","wrappedWellKnownSymbolModule","Symbol","get","document","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","documentCreateElement","classList","DOMTokenListPrototype","userAgent","Pebble","classof","process","getBuiltIn","match","version","Deno","versions","v8","setGlobal","copyConstructorProperties","isForced","options","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","noTargetGet","sham","regexpExec","RegExpPrototype","RegExp","SHAM","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","re","flags","uncurriedNativeRegExpMethod","nativeMethod","arg2","forceStringMethod","uncurriedNativeMethod","$exec","FunctionPrototype","Function","apply","Reflect","aCallable","getDescriptor","aFunction","namespace","getMethod","usingIterator","V","P","func","floor","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","position","captures","namedCaptures","replacement","tailPos","m","symbols","ch","capture","check","console","propertyIsEnumerable","dummy","Wrapper","NewTarget","NewTargetPrototype","store","functionToString","inspectSource","cause","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","getterFor","state","type","wmget","wmhas","wmset","metadata","facade","STATE","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","feature","detection","data","normalize","POLYFILL","NATIVE","isRegExp","USE_SYMBOL_AS_UID","$Symbol","Result","stopped","ResultPrototype","iterable","unboundFunction","iterFn","AS_ENTRIES","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","kind","innerResult","innerError","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","toLength","log","LOG10E","log10","x","sign","flush","head","last","notify","toggle","node","promise","macrotask","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","IS_NODE","MutationObserver","WebKitMutationObserver","Promise","queueMicrotaskDescriptor","queueMicrotask","parent","domain","exit","enter","resolve","nextTick","createTextNode","observe","characterData","task","getOwnPropertySymbols","symbol","PromiseCapability","reject","$$resolve","$$reject","$default","globalIsFinite","isFinite","Number","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","$assign","concat","A","B","alphabet","chr","T","activeXDocument","definePropertiesModule","enumBugKeys","html","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","JS","display","appendChild","src","contentWindow","open","NullProtoObject","ActiveXObject","Properties","V8_PROTOTYPE_DEFINE_BUG","defineProperties","IE8_DOM_DEFINE","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","$getOwnPropertyNames","arraySlice","windowNames","getOwnPropertyNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","names","$propertyIsEnumerable","NASHORN_BUG","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","input","pref","valueOf","getOwnPropertyNamesModule","newPromiseCapability","promiseCapability","Queue","tail","add","entry","InternalStateModule","getInternalState","enforceInternalState","TEMPLATE","unsafe","simple","R","regexpFlags","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","re1","re2","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","PATCH","reCopy","group","raw","groups","sticky","charsAdded","strCopy","multiline","ignoreCase","dotAll","$RegExp","MISSED_STICKY","CONSTRUCTOR_NAME","Constructor","TAG","uid","SHARED","mode","copyright","aConstructor","defaultConstructor","toIntegerOrInfinity","charCodeAt","CONVERT_TO_STRING","pos","first","second","codeAt","RangeError","Infinity","whitespaces","non","whitespace","ltrim","rtrim","location","defer","channel","port","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","run","id","runner","listener","event","post","postMessage","protocol","host","args","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","integer","ceil","number","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","postfix","random","NATIVE_SYMBOL","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","inheritIfRequired","normalizeStringArgument","installErrorCause","clearErrorStack","ERROR_STACK_INSTALLABLE","FULL_NAME","wrapper","IS_AGGREGATE_ERROR","OPTIONS_POSITION","ERROR_NAME","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","message","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_INDEX_EXCEEDED","IS_CONCAT_SPREADABLE_SUPPORT","SPECIES_SUPPORT","isConcatSpreadable","spreadable","len","E","$filter","HAS_SPECIES_SUPPORT","$findIndex","addToUnscopables","FIND_INDEX","SKIPS_HOLES","$find","FIND","checkCorrectnessOfIteration","INCORRECT_ITERATION","$includes","defineIterator","ARRAY_ITERATOR","setInternalState","iterated","Arguments","un$Join","ES3_STRINGS","separator","$map","un$Slice","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","deleteCount","insertCount","actualDeleteCount","to","actualStart","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","exportWebAssemblyErrorCauseWrapper","init","FUNCTION_NAME_EXISTS","nameRE","regExpExec","$stringify","numberToString","tester","low","hi","fix","offset","prev","space","l","LN2","log2","trunc","thisNumberValue","NUMBER","NativeNumber","NumberPrototype","toNumeric","primValue","third","radix","maxCode","digits","code","NaN","NumberWrapper","numberIsFinite","$repeat","abs","pow","round","un$ToExponential","toExponential","ROUNDS_PROPERLY","THROWS_ON_INFINITY_FRACTION","PROPER_NON_FINITE_THIS_CHECK","fractionDigits","s","e","d","w","un$ToFixed","toFixed","acc","x2","multiply","c2","divide","dataToString","t","z","fractDigits","nativeGetOwnPropertyDescriptor","FAILS_ON_PRIMITIVES","getOwnPropertyDescriptors","nativeKeys","$values","NativePromise","speciesConstructor","promiseResolve","NON_GENERIC","real","onFinally","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","redefineAll","setSpecies","anInstance","iterate","microtask","hostReportErrors","newPromiseCapabilityModule","perform","IS_BROWSER","PROMISE","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","NATIVE_REJECTION_EVENT","PromiseRejectionEvent","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","SUBCLASSING","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","all","isThenable","callReaction","reaction","exited","ok","handler","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","initEvent","IS_UNHANDLED","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","onRejected","wrap","r","capability","$promiseResolve","remaining","alreadyCalled","race","un$Test","$toString","regExpFlags","TO_STRING","n$ToString","getFlags","NOT_GENERIC","INCORRECT_NAME","p","rf","notARegExp","correctIsRegExpLogic","stringIndexOf","searchString","STRING_ITERATOR","point","createHTML","forcedStringHTMLMethod","link","url","fixRegExpWellKnownSymbolLogic","advanceStringIndex","getSubstitution","REPLACE","maybeToString","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_SUPPORTS_NAMED_GROUPS","maybeCallNative","UNSAFE_SUBSTITUTE","searchValue","replaceValue","rx","functionalReplace","fullUnicode","results","matchStr","accumulatedResult","nextSourcePosition","replacerArgs","small","callRegExpExec","MAX_UINT32","$push","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","SPLIT","nativeSplit","internalSplit","limit","lim","lastLength","output","lastLastIndex","separatorCopy","splitter","unicodeMatching","q","sub","$trim","forcedStringTrimMethod","NativeSymbol","SymbolPrototype","EmptyStringDescriptionStore","SymbolWrapper","symbolToString","symbolValueOf","desc","defineWellKnownSymbol","nativeObjectCreate","getOwnPropertyNamesExternal","HIDDEN","QObject","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","$defineProperties","properties","$getOwnPropertySymbols","$create","IS_OBJECT_PROTOTYPE","keyFor","sym","useSetter","useSimple","FORCED_JSON_STRINGIFY","$replacer","hint","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","ArrayIteratorMethods","ArrayValues","runtime","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","err","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","context","Context","_invoke","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","enqueue","callInvokeWithMethodAndArg","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","reverse","pop","skipTempReset","rootEntry","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","enumerableOnly","_objectSpread2","_defineProperty","_typeof","_extends","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","o","minLen","arr2","pattern","navigator","IE11OrLess","Edge","FireFox","Safari","IOS","ChromeForAndroid","captureMode","passive","on","off","removeEventListener","matches","selector","substring","msMatchesSelector","webkitMatchesSelector","getParentOrHost","nodeType","parentNode","closest","ctx","includeCTX","_throttleTimeout","R_SPACE","toggleClass","className","css","prop","defaultView","getComputedStyle","currentStyle","matrix","selfOnly","appliedTransforms","transform","matrixFn","DOMMatrix","WebKitCSSMatrix","CSSMatrix","MSCSSMatrix","tagName","getElementsByTagName","getWindowScrollingElement","scrollingElement","documentElement","getRect","relativeToContainingBlock","relativeToNonStaticParent","undoScale","container","getBoundingClientRect","elRect","top","left","bottom","right","height","width","innerHeight","innerWidth","containerRect","elMatrix","scaleX","scaleY","isScrolledPast","elSide","parentSide","getParentAutoScrollElement","elSideVal","parentSideVal","visible","getChild","childNum","includeDragEl","currentChild","children","Sortable","ghost","dragged","draggable","lastChild","lastElementChild","previousElementSibling","nodeName","clone","getRelativeScrollOffset","offsetLeft","offsetTop","winScroller","scrollLeft","scrollTop","indexOfObject","includeSelf","elem","gotSelf","clientWidth","scrollWidth","clientHeight","scrollHeight","elemCSS","overflowX","overflowY","body","dst","isRectEqual","rect1","rect2","throttle","callback","ms","_this","cancelThrottle","clearTimeout","scrollBy","y","Polymer","jQuery","Zepto","dom","cloneNode","setRect","rect","unsetRect","expando","AnimationStateManager","animationCallbackId","animationStates","captureAnimationState","animation","child","fromRect","thisAnimationDuration","childMatrix","addAnimationState","removeAnimationState","animateAll","animating","animationTime","time","toRect","prevFromRect","prevToRect","animatingRect","targetMatrix","calculateRealTime","animate","animationResetTimer","currentRect","duration","translateX","translateY","animatingX","animatingY","forRepaintDummy","repaint","easing","animated","offsetWidth","sqrt","plugins","defaults","initializeByDefault","PluginManager","mount","plugin","option","pluginName","pluginEvent","eventName","sortable","evt","eventCanceled","cancel","eventNameGlobal","initializePlugins","initialized","modified","modifyOption","getEventProperties","eventProperties","modifiedValue","optionListeners","_ref","rootEl","targetEl","cloneEl","toEl","fromEl","oldIndex","newIndex","oldDraggableIndex","newDraggableIndex","originalEvent","putSortable","extraEventProperties","onName","substr","CustomEvent","bubbles","cancelable","pullMode","lastPutMode","allEventProperties","_excluded","dragEl","parentEl","ghostEl","nextEl","lastDownEl","cloneHidden","dragStarted","moved","activeSortable","active","hideGhostForTarget","_hideGhostForTarget","unhideGhostForTarget","_unhideGhostForTarget","cloneNowHidden","cloneNowShown","dispatchSortableEvent","_dispatchEvent","activeGroup","tapEvt","touchEvt","lastDx","lastDy","tapDistanceLeft","tapDistanceTop","lastTarget","lastDirection","targetMoveDistance","ghostRelativeParent","awaitingDragStarted","ignoreNextClick","sortables","pastFirstInvertThresh","isCircumstantialInvert","ghostRelativeParentInitialScroll","_silent","savedInputChecked","documentExists","PositionGhostAbsolutely","CSSFloatProperty","supportDraggable","supportCssPointerEvents","pointerEvents","_detectDirection","elCSS","elWidth","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth","child1","child2","firstChildCSS","secondChildCSS","firstChildWidth","marginLeft","marginRight","secondChildWidth","flexDirection","gridTemplateColumns","touchingSideChild2","_dragElInRowColumn","dragRect","targetRect","vertical","dragElS1Opp","dragElS2Opp","dragElOppLength","targetS1Opp","targetS2Opp","targetOppLength","_detectNearestEmptySortable","threshold","emptyInsertThreshold","insideHorizontally","insideVertically","_prepareGroup","toFn","pull","sameGroup","otherGroup","originalGroup","checkPull","checkPut","put","revertClone","preventDefault","stopPropagation","stopImmediatePropagation","nearestEmptyInsertDetectEvent","touches","nearest","clientX","clientY","_onDragOver","_checkOutsideTargetEl","_isOutsideThisEl","sort","disabled","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","ghostClass","chosenClass","dragClass","ignore","preventOnFilter","setData","dataTransfer","textContent","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","devicePixelRatio","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","nativeDraggable","_onTapStart","_globalDragOver","dropEffect","_onMove","willInsertAfter","retVal","onMoveFn","onMove","draggedRect","related","relatedRect","_disableDraggable","_unsilent","_ghostIsFirst","spacer","_ghostIsLast","_getSwapDirection","isLastTarget","mouseOnAxis","targetLength","targetS1","targetS2","invert","_getInsertDirection","_generateId","href","sum","_saveInputCheckedState","root","inputs","checked","_nextTick","_cancelNextTick","contains","_getDirection","touch","pointerType","originalTarget","shadowRoot","composedPath","button","isContentEditable","criteria","_prepareDragStart","dragStartFn","ownerDocument","nextSibling","_lastX","_lastY","_onDrop","_disableDelayedDragEvents","_triggerDragStart","_disableDelayedDrag","_delayedDragTouchMoveHandler","_dragStartTimer","_onTouchMove","_onDragStart","selection","getSelection","removeAllRanges","_dragStarted","fallback","_appendGhost","_nulling","_emulateDragOver","elementFromPoint","inserted","ghostMatrix","relativeScrollOffset","dx","dy","cssMatrix","_hideClone","cloneId","insertBefore","_loopId","setInterval","effectAllowed","_dragStartId","revert","isOwner","canSort","fromSortable","completedFired","dragOverEvent","_ignoreWhileAnimating","completed","elLastChild","changed","firstChild","targetBeforeFirstSwap","sibling","differentLevel","differentRowCol","side1","scrolledPastTop","scrollBefore","dragIndex","nextElementSibling","after","moveVector","extra","axis","insertion","_showClone","_offMoveEvents","_offUpEvents","clearInterval","save","handleEvent","toArray","order","getAttribute","useAnimation","items","destroy","querySelectorAll","removeAttribute","utils","cancelNextTick","detectDirection","element","_len","scrollEl","scrollRootEl","lastAutoScrollX","lastAutoScrollY","touchEvt$1","pointerElemChangedInterval","autoScrolls","scrolling","AutoScrollPlugin","AutoScroll","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","_handleAutoScroll","_handleFallbackAutoScroll","dragOverCompleted","_ref2","dragOverBubble","drop","clearPointerElemChangedInterval","clearAutoScrolls","nulling","autoScroll","ogElemScroller","newElem","pid","lastSwapEl","isFallback","scrollCustomFn","sens","speed","scrollThisInstance","scrollFn","layersOut","currentParent","canScrollX","canScrollY","scrollPosX","scrollPosY","vx","vy","layer","scrollOffsetY","scrollOffsetX","toSortable","changedTouches","onSpill","Revert","Remove","SwapPlugin","Swap","swapClass","dragStart","dragOverValid","swap","prevSwapEl","_ref3","swapNodes","swapItem","n1","n2","i1","i2","p2","isEqualNode","startIndex","_ref4","parentSortable","lastMultiDragSelect","multiDragSortable","dragEl$1","clonesFromRect","clonesHidden","multiDragElements","multiDragClones","initialFolding","folding","MultiDragPlugin","MultiDrag","_deselectMultiDrag","_checkKeyDown","_checkKeyUp","selectedClass","multiDragKey","multiDragElement","multiDragKeyDown","isMultiDrag","delayStartGlobal","delayEnded","setupClone","sortableIndex","insertMultiDragClones","showClone","hideClone","_ref5","dragStartGlobal","_ref6","multiDrag","_ref7","_this2","removeMultiDragElements","dragOver","_ref8","_ref9","insertMultiDragElements","_ref10","dragRectAbsolute","clonesHiddenBefore","dragOverAnimationCapture","_ref11","dragMatrix","dragOverAnimationComplete","_ref12","originalEvt","shiftKey","currentIndex","multiDragIndex","update","nullingGlobal","destroyGlobal","shift","select","deselect","_this3","oldIndicies","newIndicies","clones","clonesInserted","elementsInserted","sfc","__vccOpts","N","D","u","return","L","inheritAttrs","autocomplete","required","modelValue","placeholder","tabindex","autofocus","comboboxUid","emits","setup","focus","handleInput","handleChange","handleFocus","handleBlur","handleEscape","blur","render","$slots","ref","onInput","onChange","onFocus","onBlur","onKeyup","__file","U","validator","label","selected","collapseTags","dataAttrs","handleClick","collapsed","onMousedown","onClick","maxHeight","highlightedOriginalIndex","handleClickItem","handleMouseenter","role","hidden","highlighted","originalIndex","onMouseenter","H","valueBy","W","Z","G","Q","pointerForward","pointerBackward","pointerSet","Y","emptyModelValue","labelBy","disabledBy","default","groupBy","visibleOptions","multiple","searchable","searchPlaceholder","clearOnSelect","clearOnClose","taggable","loading","closeOnSelect","hideSelected","openDirection","refs","activeElement","relatedTarget","v","Set","deep","originalOption","Event","K","querySelector","paddingTop","paddingBottom","$el","immediate","J","X","ee","ne","te","instance","isFocusing","dropdown","searchingInputValue","handleInputForInput","handleChangeForInput","handleFocusForInput","handleBlurForInput","optionsWithInfo","addOrRemoveOption","innerPlaceholder","pointerFirst","pointerLast","typeAhead","components","VInput","VTags","VDropdown","__VERSION__","ae","le","h","$attrs","onKeypress","$event","onKeydown","readonly","alt","onEscape","onClickItem","script","autosize","minHeight","important","maxHeightScroll","computed","computedStyles","resize","isResizeImportant","overflow","isOverflowImportant","imp","isHeightImportant","watch","_val","$nextTick","$emit","contentHeight","heightVal","created","mounted","normalizeComponent","template","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","staticRenderFns","_compiled","functional","_scopeId","$vnode","ssrContext","__VUE_SSR_CONTEXT__","_registeredComponents","_ssrRegister","$root","$options","originalRender","existing","beforeCreate","normalizeComponent_1","__vue_script__","__vue_render__","_vm","_h","$createElement","_c","_self","directives","rawName","expression","domProps","composing","__vue_staticRenderFns__","__vue_inject_styles__","__vue_scope_id__","__vue_module_identifier__","__vue_is_functional_template__","TextareaAutosize","install","Vue","component","use","activeEffectScope","effectScopeStack","EffectScope","detached","effects","cleanups","scopes","fromParent","cleanup","effectScope","recordEffectScope","effect","scope","getCurrentScope","onScopeDispose","createDep","dep","wasTracked","trackOpBit","newTracked","initDepMarkers","deps","finalizeDepMarkers","ptr","delete","targetMap","effectTrackDepth","maxMarkerBits","effectStack","activeEffect","ITERATE_KEY","MAP_KEY_ITERATE_KEY","ReactiveEffect","scheduler","enableTracking","cleanupEffect","resetTracking","onStop","_effect","lazy","shouldTrack","trackStack","pauseTracking","track","isTracking","depsMap","Map","eventInfo","trackEffects","debuggerEventExtraInfo","trigger","newValue","oldTarget","triggerEffects","allowRecurse","isNonTrackableKeys","builtInSymbols","createGetter","shallowGet","readonlyGet","shallowReadonlyGet","arrayInstrumentations","createArrayInstrumentations","instrumentations","isReadonly","shallow","receiver","shallowReadonlyMap","readonlyMap","shallowReactiveMap","reactiveMap","targetIsArray","isRef","shouldUnwrap","reactive","createSetter","shallowSet","hadKey","deleteProperty","mutableHandlers","readonlyHandlers","shallowReactiveHandlers","shallowReadonlyHandlers","toShallow","get$1","isShallow","rawTarget","rawKey","toReadonly","toReactive","has$1","set$1","deleteEntry","hadItems","createForEach","thisArg","observed","createIterableMethod","targetIsMap","isPair","isKeyOnly","innerIterator","createReadonlyMethod","createInstrumentations","mutableInstrumentations","shallowInstrumentations","readonlyInstrumentations","shallowReadonlyInstrumentations","iteratorMethods","createInstrumentationGetter","mutableCollectionHandlers","shallowCollectionHandlers","readonlyCollectionHandlers","shallowReadonlyCollectionHandlers","targetTypeMap","rawType","getTargetType","isExtensible","createReactiveObject","shallowReactive","shallowReadonly","baseHandlers","collectionHandlers","proxyMap","existingProxy","targetType","proxy","Proxy","isReactive","isProxy","markRaw","trackRefValue","triggerRefValue","newVal","createRef","shallowRef","rawValue","RefImpl","_shallow","_rawValue","_value","triggerRef","unref","shallowUnwrapHandlers","proxyRefs","objectWithRefs","CustomRefImpl","factory","_get","_set","customRef","toRefs","toRef","ObjectRefImpl","_object","_defaultValue","defaultValue","ComputedRefImpl","getter","_setter","_dirty","getterOrOptions","debugOptions","onlyGetter","cRef","devtools","buffer","devtoolsNotInstalled","setDevtoolsHook","_a","_b","enabled","HTMLElement","replay","__VUE_DEVTOOLS_HOOK_REPLAY__","newHook","emit$1","rawArgs","vnode","modelArg","modifiersKey","handlerName","callWithAsyncErrorHandling","onceHandler","emitted","normalizeEmitsOptions","comp","appContext","asMixin","emitsCache","cached","hasExtends","extendEmits","normalizedFromExtend","mixins","extends","isEmitListener","currentRenderingInstance","currentScopeId","setCurrentRenderingInstance","__scopeId","pushScopeId","popScopeId","withScopeId","_id","withCtx","isNonScopedSlot","_n","renderFnWithContext","_d","setBlockTracking","prevInstance","renderComponentRoot","Component","withProxy","propsOptions","slots","attrs","renderCache","setupState","fallthroughAttrs","shapeFlag","proxyToUse","normalizeVNode","getFunctionalFallthrough","blockStack","handleError","createVNode","Comment","filterModelListeners","cloneVNode","dirs","transition","filterSingleRoot","singleRoot","isVNode","shouldUpdateComponent","prevVNode","nextVNode","optimized","prevProps","prevChildren","nextProps","nextChildren","patchFlag","emitsOptions","$stable","hasPropsChanged","dynamicProps","nextKeys","updateHOCHostEl","subTree","isSuspense","__isSuspense","SuspenseImpl","anchor","parentComponent","parentSuspense","isSVG","slotScopeIds","rendererInternals","mountSuspense","patchSuspense","hydrate","hydrateSuspense","createSuspenseBoundary","normalizeSuspenseChildren","Suspense","triggerEvent","eventListener","patch","hiddenContainer","suspense","pendingBranch","ssContent","ssFallback","setActiveBranch","um","unmount","newBranch","newFallback","activeBranch","isInFallback","isHydrating","isSameVNodeType","pendingId","timeout","move","isUnmounted","resume","delayEnter","afterLeave","hasUnresolvedAncestor","queuePostFlushCb","fallbackVNode","mountFallback","registerDep","setupRenderEffect","isInPendingSuspense","hydratedEl","asyncDep","asyncSetupResult","suspenseId","asyncResolved","handleSetupResult","doRemove","hydrateNode","isSlotChildren","normalizeSuspenseSlot","block","trackBlock","isBlockTreeEnabled","openBlock","currentBlock","closeBlock","singleChild","dynamicChildren","queueEffectWithSuspense","branch","provide","currentInstance","provides","parentProvides","inject","treatDefaultAsFactory","useTransitionState","isMounted","isLeaving","isUnmounting","leavingVNodes","onMounted","onBeforeUnmount","TransitionHookValidator","BaseTransitionImpl","appear","persisted","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","getCurrentInstance","prevTransitionKey","getTransitionRawChildren","rawProps","emptyPlaceholder","innerChild","getKeepAliveChild","enterHooks","resolveTransitionHooks","setTransitionHooks","oldChild","oldInnerChild","transitionKeyChanged","getTransitionKey","leavingHooks","delayLeave","earlyRemove","delayedLeave","leavingVNodesCache","getLeavingNodesForType","_leaveCb","BaseTransition","callHook","hooks","beforeEnter","leavingVNode","afterHook","cancelHook","_enterCb","cancelled","leave","isKeepAlive","keepComment","keyedFragmentCount","Fragment","defineComponent","isAsyncWrapper","__asyncLoader","defineAsyncComponent","loader","loadingComponent","errorComponent","suspensible","onError","userOnError","resolvedComp","pendingRequest","retries","retry","load","thisRequest","userRetry","userFail","__esModule","__asyncResolved","createInnerComp","loaded","delayed","queueJob","__isKeepAlive","KeepAliveImpl","include","exclude","sharedContext","renderer","_unmount","storageContainer","resetShapeFlag","pruneCache","getComponentName","pruneCacheEntry","activate","queuePostRenderEffect","isDeactivated","vnodeHook","onVnodeMounted","invokeVNodeHook","deactivate","da","onVnodeUnmounted","pendingCacheKey","cacheSubtree","getInnerChild","onUpdated","rawVNode","cachedVNode","KeepAlive","onActivated","registerKeepAliveHook","onDeactivated","wrappedHook","__wdc","injectHook","injectToKeepAliveRoot","keepAliveRoot","injected","onUnmounted","prepend","__weh","setCurrentInstance","unsetCurrentInstance","unshift","createHook","lifecycle","isInSSRComponentSetup","onBeforeMount","onBeforeUpdate","onServerPrefetch","onRenderTriggered","onRenderTracked","onErrorCaptured","shouldCacheAccess","applyOptions","resolveMergedOptions","publicThis","dataOptions","computedOptions","watchOptions","provideOptions","injectOptions","beforeMount","beforeUpdate","updated","activated","deactivated","beforeDestroy","beforeUnmount","destroyed","unmounted","renderTracked","renderTriggered","errorCaptured","serverPrefetch","expose","filters","checkDuplicateProperties","resolveInjections","config","unwrapInjectedRef","methodHandler","opt","createWatcher","registerLifecycleHook","register","_hook","exposed","unwrapRef","normalizeInject","createPathGetter","base","extendsOptions","globalMixins","optionsCache","optionMergeStrategies","resolved","mergeOptions","strats","strat","internalOptionMergeStrats","mergeDataFn","mergeObjectOptions","mergeAsArray","mergeWatchOptions","mergeInject","merged","initProps","isStateful","isSSR","InternalObjectKey","propsDefaults","setFullProps","updateProps","rawPrevProps","rawCurrentProps","hasAttrsChanged","kebabKey","resolvePropValue","propsToUpdate","camelizedKey","needCastKeys","rawCastValues","camelKey","castValues","isAbsent","hasDefault","normalizePropsOptions","propsCache","extendProps","normalizedKey","validatePropName","booleanIndex","getTypeIndex","stringIndex","getType","isSameType","expectedTypes","isInternalKey","normalizeSlotValue","normalizeSlot","rawSlot","normalizeObjectSlots","rawSlots","_ctx","normalizeVNodeSlots","initSlots","updateSlots","needDeletionCheck","deletionComparisonTarget","withDirectives","internalInstance","bindings","dir","modifiers","traverse","invokeDirectiveHook","oldBindings","binding","createAppContext","app","isNativeTag","performance","globalProperties","errorHandler","warnHandler","compilerOptions","createAppAPI","rootComponent","rootProps","installedPlugins","_uid","_component","_props","_container","_context","_instance","mixin","directive","rootContainer","isHydrate","__vue_app__","getExposeProxy","setRef","rawRef","oldRawRef","isUnmount","refValue","owner","oldRef","callWithErrorHandling","_isString","_isRef","doSet","hasMismatch","isSVGContainer","namespaceURI","isComment","createHydrationFunctions","mt","mountComponent","patchProp","insert","createComment","hasChildNodes","flushPostFlushCbs","isFragmentStart","onMismatch","handleMismatch","domType","nextNode","Text","Static","needToAdoptContent","staticCount","outerHTML","hydrateFragment","hydrateElement","locateClosingAsyncAnchor","previousSibling","createTextVNode","hydrateChildren","forcePatchValue","endsWith","vnodeHooks","onVnodeBeforeMount","innerHTML","cur","parentVNode","fragmentSlotScopeIds","isFragment","initFeatureFlags","createRenderer","baseCreateRenderer","createHydrationRenderer","createHydrationFns","__VUE__","hostInsert","hostRemove","hostPatchProp","hostCreateElement","createText","hostCreateText","hostCreateComment","setText","hostSetText","setElementText","hostSetElementText","hostParentNode","hostNextSibling","setScopeId","hostSetScopeId","hostCloneNode","insertStaticContent","hostInsertStaticContent","getNextHostNode","processText","processCommentNode","mountStaticNode","processFragment","processElement","processComponent","internals","moveStaticNode","removeStaticNode","mountElement","patchElement","mountChildren","unmountChildren","needCallTransitionHooks","cloneIfMounted","oldProps","newProps","toggleRecurse","onVnodeBeforeUpdate","areChildrenSVG","patchBlockChildren","patchChildren","patchProps","onVnodeUpdated","oldChildren","newChildren","fallbackContainer","oldVNode","newVNode","fragmentStartAnchor","fragmentEndAnchor","traverseStaticChildren","updateComponent","initialVNode","createComponentInstance","setupComponent","updateComponentPreRender","invalidateJob","componentUpdateFn","bu","originNext","nextTree","prevTree","bm","isAsyncWrapperVNode","hydrateSubTree","scopedInitialVNode","flushPreFlushCbs","c1","prevShapeFlag","patchKeyedChildren","patchUnkeyedChildren","oldLength","newLength","commonLength","nextChild","parentAnchor","l2","e1","e2","nextPos","s1","s2","keyToNewIndexMap","patched","toBePatched","maxNewIndexSoFar","newIndexToOldIndexMap","prevChild","increasingNewIndexSequence","getSequence","nextIndex","moveType","needTransition","performLeave","shouldInvokeDirs","shouldInvokeVnodeHook","onVnodeBeforeUnmount","unmountComponent","removeFragment","performRemove","bum","_vnode","mc","pc","pbc","createApp","allowed","ch1","ch2","arrI","isTeleport","__isTeleport","isTeleportDisabled","isTargetSVG","SVGElement","resolveTarget","targetSelector","TeleportImpl","mainAnchor","targetAnchor","wasDisabled","currentContainer","currentAnchor","moveTeleport","nextTarget","hydrateTeleport","isReorder","targetNode","_lpa","Teleport","COMPONENTS","DIRECTIVES","resolveComponent","maybeSelfReference","resolveAsset","NULL_DYNAMIC_COMPONENT","resolveDynamicComponent","resolveDirective","warnMissing","selfName","registry","disableTracking","vnodeArgsTransformer","setupBlock","createElementBlock","createBaseVNode","createBlock","__v_isVNode","transformVNodeArgs","transformer","normalizeKey","normalizeRef","ref_key","ref_for","isBlockNode","needFullChildrenNormalization","__v_skip","normalizeChildren","_createVNode","cloned","isClassComponent","guardReactiveProps","extraProps","mergeRef","mergedProps","mergeProps","text","flag","createStaticVNode","numberOfNodes","createCommentVNode","asBlock","memo","slot","slotFlag","toMerge","incoming","renderList","renderItem","createSlots","dynamicSlots","renderSlot","noSlotted","isCE","validSlotContent","ensureValidVNode","rendered","vnodes","toHandlers","getPublicInstance","isStatefulComponent","publicPropertiesMap","$data","$props","$refs","$parent","$forceUpdate","$watch","instanceWatch","PublicInstanceProxyHandlers","accessCache","normalizedProps","publicGetter","cssModule","__cssModules","RuntimeCompiledPublicInstanceProxyHandlers","unscopables","emptyAppContext","uid$1","exposeProxy","setupContext","bc","rtg","rtc","ec","sp","ce","compile","installWithProxy","setupResult","setupStatefulComponent","createSetupContext","resolvedResult","finishComponentSetup","__ssrInlineRender","ssrRender","registerRuntimeCompiler","_compile","_rc","skipOptions","isCustomElement","delimiters","componentCompilerOptions","finalCompilerOptions","createAttrsProxy","classifyRE","classify","formatComponentName","isRoot","inferFromRegistry","msg","appWarnHandler","trace","getComponentTrace","warnArgs","formatTrace","warn","currentVNode","normalizedStack","recurseCount","parentInstance","logs","formatTraceEntry","formatProps","formatProp","throwInDev","contextVNode","exposedInstance","errorInfo","errorCapturedHooks","appErrorHandler","logError","isFlushing","isFlushPending","flushIndex","pendingPreFlushCbs","activePreFlushCbs","preFlushIndex","pendingPostFlushCbs","activePostFlushCbs","postFlushIndex","resolvedPromise","currentFlushPromise","currentPreFlushParentJob","findInsertionIndex","middle","middleJobId","getId","job","queueFlush","flushJobs","queueCb","cb","activeQueue","pendingQueue","queuePreFlushCb","seen","parentJob","deduped","watchEffect","doWatch","watchPostEffect","watchSyncEffect","INITIAL_WATCHER_VALUE","onTrack","onTrigger","forceTrigger","isMultiSource","onInvalidate","baseGetter","segments","defineProps","defineEmits","defineExpose","withDefaults","useSlots","getContext","useAttrs","mergeDefaults","createPropsRestProxy","excludedKeys","withAsyncContext","getAwaitable","awaitable","propsOrChildren","ssrContextKey","useSSRContext","withMemo","isMemoSame","_ssrUtils","ssrUtils","resolveFilter","compatUtils","svgNS","doc","staticTemplateCache","nodeOps","createElementNS","setAttribute","nodeValue","before","patchClass","transitionClasses","_vtc","patchStyle","isCssString","setStyle","currentDisplay","importantRE","setProperty","prefixed","autoPrefix","prefixes","prefixCache","xlinkNS","patchAttr","removeAttributeNS","setAttributeNS","isBoolean","patchDOMProp","_getNow","skipTimestampCheck","timeStamp","ffMatch","cachedNow","getNow","patchEvent","prevValue","nextValue","invokers","_vei","existingInvoker","parseName","invoker","createInvoker","optionsModifierRE","initialValue","attached","patchStopImmediatePropagation","originalStop","_stopped","nativeOnRE","shouldSetAsProp","_trueValue","_falseValue","defineCustomElement","hydate","Comp","VueCustomElement","VueElement","initialProps","super","defineSSRCustomElement","BaseClass","_def","_connected","_resolved","_numberProps","attachShadow","connectedCallback","_resolveDef","disconnectedCallback","attributes","_setAttr","mutations","attributeName","styles","hasOptions","rawKeys","numberProps","_setProp","_getProp","_applyStyles","_update","asyncDef","shouldReflect","shouldUpdate","detail","useCssModule","modules","mod","useCssVars","setVars","setVarsOnVNode","ob","childList","disconnect","vars","setVarsOnNode","TRANSITION","ANIMATION","Transition","resolveTransitionProps","DOMTransitionPropsValidators","enterFromClass","enterActiveClass","enterToClass","appearFromClass","appearActiveClass","appearToClass","leaveFromClass","leaveActiveClass","leaveToClass","TransitionPropsValidators","hasExplicitCallback","baseProps","durations","normalizeDuration","enterDuration","leaveDuration","finishEnter","isAppear","removeTransitionClass","finishLeave","makeEnterHook","nextFrame","addTransitionClass","whenTransitionEnds","forceReflow","NumberOf","cls","requestAnimationFrame","endId","expectedType","explicitTimeout","_endId","resolveIfNotStale","propCount","getTransitionInfo","endEvent","ended","onEnd","getStyleProperties","transitionDelays","transitionDurations","transitionTimeout","getTimeout","animationDelays","animationDurations","animationTimeout","hasTransform","delays","toMs","offsetHeight","positionMap","newPositionMap","TransitionGroupImpl","moveClass","hasCSSTransform","callPendingCbs","recordPosition","movedChildren","applyTranslation","webkitTransform","transitionDuration","_moveCb","propertyName","cssTransitionProps","TransitionGroup","oldPos","newPos","getModelAssigner","onCompositionStart","onCompositionEnd","vModelText","_assign","castToNumber","domValue","vModelCheckbox","_modelValue","elementValue","getValue","found","filtered","getCheckboxValue","setChecked","vModelRadio","vModelSelect","isSetModel","selectedVal","setSelected","_binding","isMultiple","optionValue","selectedIndex","vModelDynamic","callModelHook","modelToUse","initVModelForSSR","getSSRProps","systemModifiers","modifierGuards","prevent","currentTarget","ctrl","ctrlKey","altKey","meta","metaKey","exact","withModifiers","guard","keyNames","esc","up","down","withKeys","eventKey","vShow","_vod","setDisplay","initVShowForSSR","rendererOptions","enabledHydration","ensureRenderer","ensureHydrationRenderer","containerOrSelector","normalizeContainer","Element","createSSRApp","ssrDirectiveInitialized","initDirectivesForSSR","defaultOnError","defaultOnWarn","createCompilerError","messages","additionalMessage","SyntaxError","FRAGMENT","TELEPORT","SUSPENSE","KEEP_ALIVE","BASE_TRANSITION","OPEN_BLOCK","CREATE_BLOCK","CREATE_ELEMENT_BLOCK","CREATE_VNODE","CREATE_ELEMENT_VNODE","CREATE_COMMENT","CREATE_TEXT","CREATE_STATIC","RESOLVE_COMPONENT","RESOLVE_DYNAMIC_COMPONENT","RESOLVE_DIRECTIVE","RESOLVE_FILTER","WITH_DIRECTIVES","RENDER_LIST","RENDER_SLOT","CREATE_SLOTS","TO_DISPLAY_STRING","MERGE_PROPS","NORMALIZE_CLASS","NORMALIZE_STYLE","NORMALIZE_PROPS","GUARD_REACTIVE_PROPS","TO_HANDLERS","CAMELIZE","CAPITALIZE","TO_HANDLER_KEY","SET_BLOCK_TRACKING","PUSH_SCOPE_ID","POP_SCOPE_ID","WITH_CTX","UNREF","IS_REF","WITH_MEMO","IS_MEMO_SAME","helperNameMap","registerRuntimeHelpers","helpers","locStub","column","createRoot","hoists","imports","temps","codegenNode","createVNodeCall","isBlock","isComponent","helper","getVNodeBlockHelper","inSSR","getVNodeHelper","createArrayExpression","elements","createObjectExpression","createObjectProperty","createSimpleExpression","isStatic","constType","createCompoundExpression","createCallExpression","createFunctionExpression","params","returns","newline","isSlot","createConditionalExpression","consequent","alternate","createCacheExpression","createBlockStatement","isStaticExp","isBuiltInType","expected","isCoreComponent","nonIdentifierRE","isSimpleIdentifier","validFirstIdentCharRE","validIdentCharRE","whitespaceRE","isMemberExpressionBrowser","stateStack","currentOpenBracketCount","currentOpenParensCount","currentStringType","char","isMemberExpression","getInnerRange","newLoc","advancePositionWithClone","numberOfCharacters","advancePositionWithMutation","linesCount","lastNewLinePos","findDir","allowEmpty","exp","findProp","dynamicOnly","isStaticArgOf","hasDynamicKeyVBind","isText","isVSlot","isTemplateNode","tagType","isSlotOutlet","ssr","propsHelperSet","getUnnormalizedProps","callPath","injectProp","propsWithInjection","parentCall","alreadyExists","propKeyName","toValidAssetId","getMemoedVNodeCall","makeBlock","removeHelper","getCompatValue","compatConfig","isCompatEnabled","checkCompatEnabled","decodeRE","decodeMap","gt","lt","amp","apos","defaultParserOptions","getNamespace","getTextMode","isPreTag","decodeEntities","rawText","onWarn","comments","createParserContext","getCursor","parseChildren","rawOptions","originalSource","inPre","inVPre","ancestors","ns","nodes","isEnd","parseInterpolation","emitError","parseComment","parseBogusComment","parseCDATA","advanceBy","parseTag","parseElement","isSpecialTemplateDirective","parseText","pushNode","removedWhitespace","shouldCondense","prevIndex","nestedIndex","contentStart","closeIndex","wasInPre","wasInVPre","isPreBoundary","isVPreBoundary","isSelfClosing","inlineTemplateProp","startsWithEndTagOpen","advanceSpaces","cursor","currentSource","parseAttributes","isBuiltInComponent","attributeNames","attr","parseAttribute","nameSet","parseAttributeValue","isPropShorthand","dirName","startOffset","lastIndexOf","getNewPosition","isQuoted","valueLoc","quote","endIndex","parseTextData","unexpectedChars","innerStart","innerEnd","rawContentLength","rawContent","preTrimContent","endOffset","endTokens","xs","hoistStatic","walk","isSingleElementRoot","doNotHoistNode","originalCount","hoistedCount","constantType","getConstantType","hoist","getPatchFlag","getGeneratedPropsConstantType","getNodeProps","vSlot","branches","transformHoist","constantCache","returnType","generatedPropsType","childType","expType","allowHoistedHelperSet","getConstantTypeOfHelperCall","keyType","valueType","createTransformContext","filename","prefixIdentifiers","cacheHandlers","nodeTransforms","directiveTransforms","expressionPlugins","slotted","ssrCssVars","bindingMetadata","inline","isTS","nameMatch","identifiers","vFor","vPre","vOnce","currentNode","childIndex","inVOnce","currentCount","helperString","replaceNode","removeNode","removalIndex","onNodeRemoved","addIdentifiers","removeIdentifiers","identifier","hoisted","traverseNode","createRootCodegen","traverseChildren","nodeRemoved","exitFns","onExit","createStructuralDirectiveTransform","PURE_ANNOTATION","createCodegenContext","ast","sourceMap","optimizeImports","runtimeGlobalName","runtimeModuleName","ssrRuntimeModuleName","indentLevel","pure","indent","deindent","withoutNewLine","generate","onContextCreated","hasHelpers","useWithBlock","preambleContext","genFunctionPreamble","functionName","signature","genAssets","genNode","preamble","toJSON","VueBinding","aliasHelper","staticHelpers","genHoists","assets","resolver","genNodeListAsArray","multilines","genNodeList","comma","genText","genExpression","genInterpolation","genCompoundExpression","genComment","genVNodeCall","genCallExpression","genObjectExpression","genArrayExpression","genFunctionExpression","genConditionalExpression","genCacheExpression","genExpressionAsPropertyKey","callHelper","genNullableArgs","needNewline","needsParens","isNested","transformIf","processIf","ifNode","siblings","createCodegenNodeForBranch","parentCondition","getParentCondition","processCodegen","createIfBranch","userKey","keyIndex","createChildrenCodegenNode","keyProperty","needFragmentWrapper","vnodeCall","transformFor","processFor","forNode","renderExp","keyProp","keyExp","isStableFragment","fragmentFlag","childBlock","isTemplate","slotOutlet","loop","createForLoopParams","parseResult","parseForExpression","valueAlias","keyAlias","objectIndexAlias","forAliasRE","forIteratorRE","stripParensRE","inMatch","LHS","RHS","createAliasExpression","valueContent","trimmedOffset","iteratorMatch","keyContent","keyOffset","indexContent","memoArgs","createParamsList","defaultFallback","trackSlotScopes","buildClientSlotFn","buildSlots","buildSlotFn","slotsProperties","hasDynamicSlots","onComponentSlot","hasTemplateSlots","hasNamedDefaultSlot","implicitDefaultChildren","seenSlotNames","slotElement","slotDir","slotChildren","slotLoc","slotName","slotProps","dirLoc","staticSlotName","slotFunction","vIf","vElse","buildDynamicSlot","conditional","buildDefaultSlotProperty","isNonWhitespaceContent","hasForwardedSlots","directiveImportMap","transformElement","vnodeTag","resolveComponentType","isDynamicComponent","vnodeProps","vnodeChildren","vnodePatchFlag","vnodeDynamicProps","dynamicPropNames","vnodeDirectives","shouldUseBlock","propsBuildResult","buildProps","buildDirectiveArgs","shouldBuildAsSlots","hasDynamicTextChild","stringifyDynamicPropNames","isExplicitDynamic","isComponentTag","isProp","isDir","builtIn","elementLoc","mergeArgs","runtimeDirectives","hasChildren","hasRef","hasClassBinding","hasStyleBinding","hasHydrationEventBinding","hasDynamicKeys","hasVnodeHook","analyzePatchFlag","isEventHandler","isVBind","isVOn","dedupeProperties","directiveTransform","needRuntime","propsExpression","classKeyIndex","styleKeyIndex","hasDynamicKey","isHandlerKey","classProp","styleProp","knownProps","dirArgs","trueExpression","modifier","propsNamesString","transformSlotOutlet","processSlotOutlet","slotArgs","expectedLen","nonNameProps","fnExpRE","transformOn","augmentor","shouldCache","isMemberExp","isInlineStatement","hasMultipleStatements","transformBind","_node","injectPrefix","prefix","transformText","hasText","callArgs","WeakSet","transformOnce","transformModel","createTransformProps","rawExp","expString","maybeRef","propName","assignmentExp","eventArg","validDivisionCharRE","transformFilter","rewriteFilter","parseFilter","inSingle","inDouble","inTemplateString","inRegex","curly","square","paren","lastFilterIndex","pushFilter","wrapFilter","seen$1","transformMemo","getBaseTransformPreset","model","baseCompile","isModuleMode","noopDirectiveTransform","V_MODEL_RADIO","V_MODEL_CHECKBOX","V_MODEL_TEXT","V_MODEL_SELECT","V_MODEL_DYNAMIC","V_ON_WITH_MODIFIERS","V_ON_WITH_KEYS","V_SHOW","TRANSITION_GROUP","decoder","decodeHtmlBrowser","asAttr","isRawTextContainer","parserOptions","transformStyle","parseInlineCSS","createDOMCompilerError","transformVHtml","transformVText","baseResult","directiveToUse","isInvalidType","isEventOptionModifier","isNonKeyModifier","maybeKeyModifier","isKeyboardEvent","resolveModifiers","keyModifiers","nonKeyModifiers","eventOptionModifiers","transformClick","isStaticClick","handlerExp","modifierPostfix","transformShow","ignoreSideEffectTags","DOMNodeTransforms","DOMDirectiveTransforms","cloak","show","compileCache","compileToFunction","__WEBPACK_EXTERNAL_MODULE__8bbf__","__WEBPACK_EXTERNAL_MODULE_a352__","installedModules","moduleId","property","$reduce","arrayMethodUsesToLength","USES_TO_LENGTH","Collection","toInteger","nativeToString","nativeStartsWith","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","search","$entries","flattenIntoArray","flatMap","sourceLen","objectHas","__webpack_require__","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","getCurrentScript","currentScript","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","scriptLocation","currentLocation","hash","scripts","readyState","returnMethod","RE","original","depth","mapper","targetIndex","sourceIndex","mapFn","ACCESSORS","thrower","argument0","argument1","FunctionPrototypeToString","PREFERRED_STRING","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","variable","IS_RIGHT","nativeRegExpMethod","stringMethod","regexMethod","__webpack_exports__","getConsole","symbolPrototype","native","_arrayWithHoles","_iterableToArrayLimit","_arr","_e","_s","_i","_nonIterableRest","_slicedToArray","external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_","external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default","parentElement","insertNodeAt","fatherNode","refNode","regex","manageAndEmit","manage","eventHandlerNames","events","isReadOnly","tags","isHtmlTag","isTransition","isHtmlAttribute","project","getComponentAttributes","_ref3$componentData","componentData","createSortableOption","callBackBuilder","getValidSortableEntries","eventType","eventBuilder","_ref13","_ref14","_classCallCheck","_defineProperties","_createClass","protoProps","staticProps","getHtmlElementFromNode","addContext","domElement","__draggable_context","componentStructure_ComponentStructure","ComponentStructure","_ref2$nodes","header","defaultNodes","footer","realList","externalComponent","rootTransition","_isRootComponent","domIndex","domChildren","firstDomListElement","indexFirstDomListElement","external_commonjs_vue_commonjs2_vue_root_Vue_","getSlot","slotValue","computeNodes","getKey","normalizedList","_map","_map2","getRootInformation","computeComponentStructure","_emit","evtName","evtData","_manage","originalElement","_manageAndEmit","delegateCallBack","draggingElement","itemKey","draggableComponent","componentStructure","color","_this4","sortableOptions","targetDomElement","_sortable","__draggable_component__","newOptionValue","getUnderlyingVm","getUnderlyingPotencialDraggableComponent","htmElement","emitChanges","_this5","alterList","onList","newList","spliceList","_arguments","updatePosition","getRelatedContextFromMoveEvent","destination","getVmIndexFromDomIndex","onDragStart","_underlying_vm_","onDragAdd","added","onDragRemove","_this$context","removed","onDragUpdate","computeFutureIndex","relatedContext","currentDomIndex","draggedInList","onDragMove","futureIndex","draggedContext","sendEvent","onDragEnd","vuedraggable","nativeSlice","createNanoEvents","for","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","arrayLikeToArray","arrayWithoutHoles","iterableToArray","nonIterableSpread"],"sourceRoot":""} \ No newline at end of file diff --git a/js/chunk-vendors.e1e0e06d.js b/js/chunk-vendors.e1e0e06d.js new file mode 100644 index 0000000..9acb142 --- /dev/null +++ b/js/chunk-vendors.e1e0e06d.js @@ -0,0 +1,14 @@ +(self["webpackChunkprofectus"]=self["webpackChunkprofectus"]||[]).push([[998],{3577:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{Z6:function(){return A},kT:function(){return I},NO:function(){return M},dG:function(){return N},m:function(){return o},_A:function(){return re},kC:function(){return ce},Nj:function(){return ue},l7:function(){return B},Kp:function(){return l},E9:function(){return pe},aU:function(){return le},RI:function(){return V},rs:function(){return ie},yA:function(){return f},ir:function(){return se},kJ:function(){return L},mf:function(){return z},e1:function(){return c},eS:function(){return S},S0:function(){return Q},_N:function(){return $},tR:function(){return P},Kn:function(){return G},F7:function(){return R},PO:function(){return Z},tI:function(){return J},Gg:function(){return ee},aN:function(){return w},DM:function(){return H},Pq:function(){return u},HD:function(){return W},yk:function(){return K},WB:function(){return _},WV:function(){return C},hq:function(){return k},fY:function(){return r},C_:function(){return m},vs:function(){return g},j5:function(){return d},yL:function(){return v},Od:function(){return F},zw:function(){return O},hR:function(){return ae},He:function(){return fe},W7:function(){return X}});const o={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",c=r(i),a=2;function l(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2===1));r=r.filter(((e,t)=>t%2===0));let i=0;const c=[];for(let l=0;l<r.length;l++)if(i+=r[l].length+(o[l]&&o[l].length||0),i>=t){for(let e=l-a;e<=l+a||n>i;e++){if(e<0||e>=r.length)continue;const a=e+1;c.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${r[e]}`);const s=r[e].length,u=o[e]&&o[e].length||0;if(e===l){const e=t-(i-(s+u)),r=Math.max(1,n>i?s-e:n-t);c.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>l){if(n>i){const e=Math.max(Math.min(n-i,s),1);c.push(" | "+"^".repeat(e))}i+=s+u}}break}return c.join("\n")}const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",u=r(s);function f(e){return!!e||""===e}function d(e){if(L(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=W(r)?v(r):d(r);if(o)for(const e in o)t[e]=o[e]}return t}return W(e)||G(e)?e:void 0}const p=/;(?![^(]*\))/g,h=/:(.+)/;function v(e){const t={};return e.split(p).forEach((e=>{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function m(e){let t="";if(W(e))t=e;else if(L(e))for(let n=0;n<e.length;n++){const r=m(e[n]);r&&(t+=r+" ")}else if(G(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function g(e){if(!e)return null;let{class:t,style:n}=e;return t&&!W(t)&&(e.class=m(t)),n&&(e.style=d(n)),e}const y="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",b="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",x="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",S=r(y),w=r(b),_=r(x);function E(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=C(e[r],t[r]);return n}function C(e,t){if(e===t)return!0;let n=U(e),r=U(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=L(e),r=L(t),n||r)return!(!n||!r)&&E(e,t);if(n=G(e),r=G(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!C(e[n],t[n]))return!1}}return String(e)===String(t)}function k(e,t){return e.findIndex((e=>C(e,t)))}const O=e=>null==e?"":L(e)||G(e)&&(e.toString===Y||!z(e.toString))?JSON.stringify(e,T,2):String(e),T=(e,t)=>t&&t.__v_isRef?T(e,t.value):$(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:H(t)?{[`Set(${t.size})`]:[...t.values()]}:!G(t)||L(t)||Z(t)?t:String(t),I={},A=[],N=()=>{},M=()=>!1,D=/^on[^a-z]/,R=e=>D.test(e),P=e=>e.startsWith("onUpdate:"),B=Object.assign,F=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},j=Object.prototype.hasOwnProperty,V=(e,t)=>j.call(e,t),L=Array.isArray,$=e=>"[object Map]"===q(e),H=e=>"[object Set]"===q(e),U=e=>e instanceof Date,z=e=>"function"===typeof e,W=e=>"string"===typeof e,K=e=>"symbol"===typeof e,G=e=>null!==e&&"object"===typeof e,J=e=>G(e)&&z(e.then)&&z(e.catch),Y=Object.prototype.toString,q=e=>Y.call(e),X=e=>q(e).slice(8,-1),Z=e=>"[object Object]"===q(e),Q=e=>W(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ee=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),te=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},ne=/-(\w)/g,re=te((e=>e.replace(ne,((e,t)=>t?t.toUpperCase():"")))),oe=/\B([A-Z])/g,ie=te((e=>e.replace(oe,"-$1").toLowerCase())),ce=te((e=>e.charAt(0).toUpperCase()+e.slice(1))),ae=te((e=>e?`on${ce(e)}`:"")),le=(e,t)=>!Object.is(e,t),se=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ue=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let de;const pe=()=>de||(de="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},9662:function(e,t,n){var r=n(7854),o=n(614),i=n(6330),c=r.TypeError;e.exports=function(e){if(o(e))return e;throw c(i(e)+" is not a function")}},6077:function(e,t,n){var r=n(7854),o=n(614),i=r.String,c=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw c("Can't set "+i(e)+" as a prototype")}},9670:function(e,t,n){var r=n(7854),o=n(111),i=r.String,c=r.TypeError;e.exports=function(e){if(o(e))return e;throw c(i(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),c=function(e){return function(t,n,c){var a,l=r(t),s=i(l),u=o(c,s);if(e&&n!=n){while(s>u)if(a=l[u++],a!=a)return!0}else for(;s>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(7854),o=n(1694),i=n(614),c=n(4326),a=n(5112),l=a("toStringTag"),s=r.Object,u="Arguments"==c(function(){return arguments}()),f=function(e,t){try{return e[t]}catch(n){}};e.exports=o?c:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=f(t=s(e),l))?n:u?c(t):"Object"==(r=c(t))&&i(t.callee)?"Arguments":r}},7741:function(e,t,n){var r=n(1702),o=r("".replace),i=function(e){return String(Error(e).stack)}("zxcasd"),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(i);e.exports=function(e,t){if(a&&"string"==typeof e)while(t--)e=o(e,c,"");return e}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),c=n(3070);e.exports=function(e,t,n){for(var a=o(t),l=c.f,s=i.f,u=0;u<a.length;u++){var f=a[u];r(e,f)||n&&r(n,f)||l(e,f,s(t,f))}}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,c=o(i)&&o(i.createElement);e.exports=function(e){return c?i.createElement(e):{}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),c=n(8113),a=i.process,l=i.Deno,s=a&&a.versions||l&&l.version,u=s&&s.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,n){var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),c=n(1320),a=n(3505),l=n(9920),s=n(4705);e.exports=function(e,t){var n,u,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(u=m?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,u)for(f in t){if(p=t[f],e.noTargetGet?(h=o(u,f),d=h&&h.value):d=u[f],n=s(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),c(u,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e){var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},6916:function(e){var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),l=a&&"something"===function(){}.name,s=a&&(!r||r&&c(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:s}},1702:function(e){var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r,r);e.exports=n?function(e){return e&&o(e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7854),o=n(1702),i=n(7293),c=n(4326),a=r.Object,l=o("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==c(e)?l(e,""):a(e)}:a},9587:function(e,t,n){var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var c,a;return i&&r(c=t.constructor)&&c!==n&&o(a=c.prototype)&&a!==n.prototype&&i(e,a),e}},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return c(e)}),e.exports=i.inspectSource},8340:function(e,t,n){var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},9909:function(e,t,n){var r,o,i,c=n(8536),a=n(7854),l=n(1702),s=n(111),u=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),v="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(e){return i(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(c||d.state){var x=d.state||(d.state=new g),S=l(x.get),w=l(x.has),_=l(x.set);r=function(e,t){if(w(x,e))throw new m(v);return t.facade=e,_(x,e,t),t},o=function(e){return S(x,e)||{}},i=function(e){return w(x,e)}}else{var E=p("state");h[E]=!0,r=function(e,t){if(f(e,E))throw new m(v);return t.facade=e,u(e,E,t),t},o=function(e){return f(e,E)?e[E]:{}},i=function(e){return f(e,E)}}e.exports={set:r,get:o,has:i,enforce:y,getterFor:b}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,c=function(e,t){var n=l[a(e)];return n==u||n!=s&&(o(t)?r(t):!!t)},a=c.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=c.data={},s=c.NATIVE="N",u=c.POLYFILL="P";e.exports=c},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(7854),o=n(5005),i=n(614),c=n(7976),a=n(3307),l=r.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&c(t.prototype,l(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(614),i=n(2788),c=r.WeakMap;e.exports=o(c)&&/native code/.test(i(c))},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){var r=n(7854),o=n(9781),i=n(4664),c=n(3353),a=n(9670),l=n(4948),s=r.TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=o?c?function(e,t,n){if(a(e),t=l(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=f(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),c=n(9114),a=n(5656),l=n(4948),s=n(2597),u=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=a(e),t=l(t),u)try{return f(e,t)}catch(n){}if(s(e,t))return c(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),c=n(1318).indexOf,a=n(3501),l=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,u=[];for(n in r)!o(a,n)&&o(r,n)&&l(u,n);while(t.length>s)o(r,n=t[s++])&&(~c(u,n)||l(u,n));return u}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(c){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(7854),o=n(6916),i=n(614),c=n(111),a=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!c(r=o(n,e)))return r;if(i(n=e.valueOf)&&!c(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!c(r=o(n,e)))return r;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),c=n(5181),a=n(9670),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=c.f;return n?l(t,n(e)):t}},1320:function(e,t,n){var r=n(7854),o=n(614),i=n(2597),c=n(8880),a=n(3505),l=n(2788),s=n(9909),u=n(6530).CONFIGURABLE,f=s.get,d=s.enforce,p=String(String).split("String");(e.exports=function(e,t,n,l){var s,f=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,v=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:t;o(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||u&&n.name!==m)&&c(n,"name",m),s=d(n),s.source||(s.source=p.join("string"==typeof m?m:""))),e!==r?(f?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:c(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||l(this)}))},4488:function(e,t,n){var r=n(7854),o=r.TypeError;e.exports=function(e){if(void 0==e)throw o("Can't call method on "+e);return e}},3505:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3505),i="__core-js_shared__",c=r[i]||o(i,{});e.exports=c},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.2",mode:r?"pure":"global",copyright:"© 2022 Denis Pushkarev (zloirock.ru)"})},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!==r||0===r?0:(r>0?n:t)(r)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(7854),o=n(4488),i=r.Object;e.exports=function(e){return i(o(e))}},7593:function(e,t,n){var r=n(7854),o=n(6916),i=n(111),c=n(2190),a=n(8173),l=n(2140),s=n(5112),u=r.TypeError,f=s("toPrimitive");e.exports=function(e,t){if(!i(e)||c(e))return e;var n,r=a(e,f);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||c(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(7854),o=n(648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e,t,n){var r=n(7854),o=r.String;e.exports=function(e){try{return o(e)}catch(t){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),c=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+c(++o+i,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),c=n(9711),a=n(133),l=n(3307),s=o("wks"),u=r.Symbol,f=u&&u["for"],d=l?u:u&&u.withoutSetter||c;e.exports=function(e){if(!i(s,e)||!a&&"string"!=typeof s[e]){var t="Symbol."+e;a&&i(u,e)?s[e]=u[e]:s[e]=l&&f?f(t):d(t)}return s[e]}},9191:function(e,t,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),c=n(7976),a=n(7674),l=n(9920),s=n(9587),u=n(6277),f=n(8340),d=n(7741),p=n(2914),h=n(1913);e.exports=function(e,t,n,v){var m=v?2:1,g=e.split("."),y=g[g.length-1],b=r.apply(null,g);if(b){var x=b.prototype;if(!h&&o(x,"cause")&&delete x.cause,!n)return b;var S=r("Error"),w=t((function(e,t){var n=u(v?t:e,void 0),r=v?new b(e):new b;return void 0!==n&&i(r,"message",n),p&&i(r,"stack",d(r.stack,2)),this&&c(x,this)&&s(r,this,w),arguments.length>m&&f(r,arguments[m]),r}));if(w.prototype=x,"Error"!==y&&(a?a(w,S):l(w,S,{name:!0})),l(w,b),!h)try{x.name!==y&&i(x,"name",y),x.constructor=w}catch(_){}return w}}},1703:function(e,t,n){var r=n(2109),o=n(7854),i=n(2104),c=n(9191),a="WebAssembly",l=o[a],s=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=c(e,t,s),r({global:!0,forced:s},n)},f=function(e,t){if(l&&l[e]){var n={};n[e]=c(a+"."+e,t,s),r({target:a,stat:!0,forced:s},n)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},1474:function(e,t,n){"use strict"; +/**! + * Sortable 1.14.0 + * @author RubaXa <trash@rubaxa.org> + * @author owenm <owen23355@gmail.com> + * @license MIT + */ +function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e,t){if(null==e)return{};var n,r,o=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){return f(e)||d(e)||p(e)||v()}function f(e){if(Array.isArray(e))return h(e)}function d(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,{MultiDrag:function(){return Ut},Sortable:function(){return nt},Swap:function(){return Nt}});var m="1.14.0";function g(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var y=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),b=g(/Edge/i),x=g(/firefox/i),S=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),w=g(/iP(ad|od|hone)/i),_=g(/chrome/i)&&g(/android/i),E={capture:!1,passive:!1};function C(e,t,n){e.addEventListener(t,n,!y&&E)}function k(e,t,n){e.removeEventListener(t,n,!y&&E)}function O(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function T(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function I(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&O(e,t):O(e,t))||r&&e===n)return e;if(e===n)break}while(e=T(e))}return null}var A,N=/\s+/g;function M(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(N," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(N," ")}}function D(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function R(e,t){var n="";if("string"===typeof e)n=e;else do{var r=D(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function B(){var e=document.scrollingElement;return e||document.documentElement}function F(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,c,a,l,s,u,f;if(e!==window&&e.parentNode&&e!==B()?(i=e.getBoundingClientRect(),c=i.top,a=i.left,l=i.bottom,s=i.right,u=i.height,f=i.width):(c=0,a=0,l=window.innerHeight,s=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!y))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var d=o.getBoundingClientRect();c-=d.top+parseInt(D(o,"border-top-width")),a-=d.left+parseInt(D(o,"border-left-width")),l=c+i.height,s=a+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=R(o||e),h=p&&p.a,v=p&&p.d;p&&(c/=v,a/=h,f/=h,u/=v,l=c+u,s=a+f)}return{top:c,left:a,bottom:l,right:s,width:f,height:u}}}function j(e,t,n){var r=z(e,!0),o=F(e)[t];while(r){var i=F(r)[n],c=void 0;if(c="top"===n||"left"===n?o>=i:o<=i,!c)return r;if(r===B())break;r=z(r,!1)}return!1}function V(e,t,n,r){var o=0,i=0,c=e.children;while(i<c.length){if("none"!==c[i].style.display&&c[i]!==nt.ghost&&(r||c[i]!==nt.dragged)&&I(c[i],n.draggable,e,!1)){if(o===t)return c[i];o++}i++}return null}function L(e,t){var n=e.lastElementChild;while(n&&(n===nt.ghost||"none"===D(n,"display")||t&&!O(n,t)))n=n.previousElementSibling;return n||null}function $(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===nt.clone||t&&!O(e,t)||n++;return n}function H(e){var t=0,n=0,r=B();if(e)do{var o=R(e),i=o.a,c=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*c}while(e!==r&&(e=e.parentNode));return[t,n]}function U(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function z(e,t){if(!e||!e.getBoundingClientRect)return B();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return B();if(r||t)return n;r=!0}}}while(n=n.parentNode);return B()}function W(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function K(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function G(e,t){return function(){if(!A){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),A=setTimeout((function(){A=void 0}),t)}}}function J(){clearTimeout(A),A=void 0}function Y(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function X(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function Z(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var Q="Sortable"+(new Date).getTime();function ee(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==D(e,"display")&&e!==nt.ghost){t.push({target:e,rect:F(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=R(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(U(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,c=n.fromRect,a=F(n),l=n.prevFromRect,s=n.prevToRect,u=e.rect,f=R(n,!0);f&&(a.top-=f.f,a.left-=f.e),n.toRect=a,n.thisAnimationDuration&&K(l,a)&&!K(c,a)&&(u.top-a.top)/(u.left-a.left)===(c.top-a.top)/(c.left-a.left)&&(t=ne(u,l,s,r.options)),K(a,c)||(n.prevFromRect=c,n.prevToRect=a,t||(t=r.options.animation),r.animate(n,u,a,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){D(e,"transition",""),D(e,"transform","");var o=R(this.el),i=o&&o.a,c=o&&o.d,a=(t.left-n.left)/(i||1),l=(t.top-n.top)/(c||1);e.animatingX=!!a,e.animatingY=!!l,D(e,"transform","translate3d("+a+"px,"+l+"px,0)"),this.forRepaintDummy=te(e),D(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function te(e){return e.offsetWidth}function ne(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var re=[],oe={initializeByDefault:!0},ie={mount:function(e){for(var t in oe)oe.hasOwnProperty(t)&&!(t in e)&&(e[t]=oe[t]);re.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),re.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";re.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in re.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,a(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return re.forEach((function(r){"function"===typeof r.eventProperties&&a(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return re.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function ce(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,c=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[Q],t){var m,g=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||y||b?(m=document.createEvent("Event"),m.initEvent(r,!0,!0)):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=i||n,m.clone=c,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=h?h.lastPutMode:void 0;var S=o(o({},v),ie.getEventProperties(r,t));for(var w in S)m[w]=S[w];n&&n.dispatchEvent(m),g[x]&&g[x].call(t,m)}}var ae=["evt"],le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,ae);ie.pluginEvent.bind(nt)(e,t,o({dragEl:ue,parentEl:fe,ghostEl:de,rootEl:pe,nextEl:he,lastDownEl:ve,cloneEl:me,cloneHidden:ge,dragStarted:Ae,putSortable:_e,activeSortable:nt.active,originalEvent:r,oldIndex:ye,oldDraggableIndex:xe,newIndex:be,newDraggableIndex:Se,hideGhostForTarget:Ze,unhideGhostForTarget:Qe,cloneNowHidden:function(){ge=!0},cloneNowShown:function(){ge=!1},dispatchSortableEvent:function(e){se({sortable:t,name:e,originalEvent:r})}},i))};function se(e){ce(o({putSortable:_e,cloneEl:me,targetEl:ue,rootEl:pe,oldIndex:ye,oldDraggableIndex:xe,newIndex:be,newDraggableIndex:Se},e))}var ue,fe,de,pe,he,ve,me,ge,ye,be,xe,Se,we,_e,Ee,Ce,ke,Oe,Te,Ie,Ae,Ne,Me,De,Re,Pe=!1,Be=!1,Fe=[],je=!1,Ve=!1,Le=[],$e=!1,He=[],Ue="undefined"!==typeof document,ze=w,We=b||y?"cssFloat":"float",Ke=Ue&&!_&&!w&&"draggable"in document.createElement("div"),Ge=function(){if(Ue){if(y)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Je=function(e,t){var n=D(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=V(e,0,t),i=V(e,1,t),c=o&&D(o),a=i&&D(i),l=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(o).width,s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+F(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&c["float"]&&"none"!==c["float"]){var u="left"===c["float"]?"left":"right";return!i||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===c.display||"flex"===c.display||"table"===c.display||"grid"===c.display||l>=r&&"none"===n[We]||i&&"none"===n[We]&&l+s>r)?"vertical":"horizontal"},Ye=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,c=n?t.left:t.top,a=n?t.right:t.bottom,l=n?t.width:t.height;return r===c||o===a||r+i/2===c+l/2},qe=function(e,t){var n;return Fe.some((function(r){var o=r[Q].options.emptyInsertThreshold;if(o&&!L(r)){var i=F(r),c=e>=i.left-o&&e<=i.right+o,a=t>=i.top-o&&t<=i.bottom+o;return c&&a?n=r:void 0}})),n},Xe=function(e){function t(e,n){return function(r,o,i,c){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,o,i,c),n)(r,o,i,c);var l=(n?r:o).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ze=function(){!Ge&&de&&D(de,"display","none")},Qe=function(){!Ge&&de&&D(de,"display","")};Ue&&document.addEventListener("click",(function(e){if(Be)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Be=!1,!1}),!0);var et=function(e){if(ue){e=e.touches?e.touches[0]:e;var t=qe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Q]._onDragOver(n)}}},tt=function(e){ue&&ue.parentNode[Q]._isOutsideThisEl(e.target)};function nt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[Q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Je(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==nt.supportPointer&&"PointerEvent"in window&&!S,emptyInsertThreshold:5};for(var r in ie.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Xe(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Ke,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(e,"pointerdown",this._onTapStart):(C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Fe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,ee())}function rt(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ot(e,t,n,r,o,i,c,a){var l,s,u=e[Q],f=u.options.onMove;return!window.CustomEvent||y||b?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||F(t),l.willInsertAfter=a,l.originalEvent=c,e.dispatchEvent(l),f&&(s=f.call(u,l,c)),s}function it(e){e.draggable=!1}function ct(){$e=!1}function at(e,t,n){var r=F(V(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function lt(e,t,n){var r=F(L(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function st(e,t,n,r,o,i,c,a){var l=r?e.clientY:e.clientX,s=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!c)if(a&&De<s*o){if(!je&&(1===Me?l>u+s*i/2:l<f-s*i/2)&&(je=!0),je)d=!0;else if(1===Me?l<u+De:l>f-De)return-Me}else if(l>u+s*(1-o)/2&&l<f-s*(1-o)/2)return ut(t);return d=d||c,d&&(l<u+s*i/2||l>f-s*i/2)?l>u+s/2?1:-1:0}function ut(e){return $(ue)<$(e)?1:-1}function ft(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function dt(e){He.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&He.push(r)}}function pt(e){return setTimeout(e,0)}function ht(e){return clearTimeout(e)}nt.prototype={constructor:nt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ne=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ue):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,c=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(c||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,s=r.filter;if(dt(n),!ue&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!S||!a||"SELECT"!==a.tagName.toUpperCase())&&(a=I(a,r.draggable,n,!1),(!a||!a.animated)&&ve!==a)){if(ye=$(a),xe=$(a,r.draggable),"function"===typeof s){if(s.call(this,e,a,this))return se({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),le("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(r){if(r=I(l,r.trim(),n,!1),r)return se({sortable:t,rootEl:r,name:"filter",targetEl:a,fromEl:n,toEl:n}),le("filter",t,{evt:e}),!0})),s))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!I(l,r.handle,n,!1)||this._prepareDragStart(e,c,a)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,c=o.options,a=i.ownerDocument;if(n&&!ue&&n.parentNode===i){var l=F(n);if(pe=i,ue=n,fe=ue.parentNode,he=ue.nextSibling,ve=n,we=c.group,nt.dragged=ue,Ee={target:ue,clientX:(t||e).clientX,clientY:(t||e).clientY},Te=Ee.clientX-l.left,Ie=Ee.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ue.style["will-change"]="all",r=function(){le("delayEnded",o,{evt:e}),nt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!x&&o.nativeDraggable&&(ue.draggable=!0),o._triggerDragStart(e,t),se({sortable:o,name:"choose",originalEvent:e}),M(ue,c.chosenClass,!0))},c.ignore.split(",").forEach((function(e){P(ue,e.trim(),it)})),C(a,"dragover",et),C(a,"mousemove",et),C(a,"touchmove",et),C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ue.draggable=!0),le("delayStart",this,{evt:e}),!c.delay||c.delayOnTouchOnly&&!t||this.nativeDraggable&&(b||y))r();else{if(nt.eventCanceled)return void this._onDrop();C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,c.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ue&&it(ue),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._disableDelayedDrag),k(e,"touchend",this._disableDelayedDrag),k(e,"touchcancel",this._disableDelayedDrag),k(e,"mousemove",this._delayedDragTouchMoveHandler),k(e,"touchmove",this._delayedDragTouchMoveHandler),k(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,t?"touchmove":"mousemove",this._onTouchMove):(C(ue,"dragend",this),C(pe,"dragstart",this._onDragStart));try{document.selection?pt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Pe=!1,pe&&ue){le("dragStarted",this,{evt:t}),this.nativeDraggable&&C(document,"dragover",tt);var n=this.options;!e&&M(ue,n.dragClass,!1),M(ue,n.ghostClass,!0),nt.active=this,e&&this._appendGhost(),se({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,Ze();var e=document.elementFromPoint(Ce.clientX,Ce.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ce.clientX,Ce.clientY),e===t)break;t=e}if(ue.parentNode[Q]._isOutsideThisEl(e),t)do{if(t[Q]){var n=void 0;if(n=t[Q]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Qe()}},_onTouchMove:function(e){if(Ee){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=de&&R(de,!0),c=de&&i&&i.a,a=de&&i&&i.d,l=ze&&Re&&H(Re),s=(o.clientX-Ee.clientX+r.x)/(c||1)+(l?l[0]-Le[0]:0)/(c||1),u=(o.clientY-Ee.clientY+r.y)/(a||1)+(l?l[1]-Le[1]:0)/(a||1);if(!nt.active&&!Pe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(de){i?(i.e+=s-(ke||0),i.f+=u-(Oe||0)):i={a:1,b:0,c:0,d:1,e:s,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");D(de,"webkitTransform",f),D(de,"mozTransform",f),D(de,"msTransform",f),D(de,"transform",f),ke=s,Oe=u,Ce=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!de){var e=this.options.fallbackOnBody?document.body:pe,t=F(ue,!0,ze,!0,e),n=this.options;if(ze){Re=e;while("static"===D(Re,"position")&&"none"===D(Re,"transform")&&Re!==document)Re=Re.parentNode;Re!==document.body&&Re!==document.documentElement?(Re===document&&(Re=B()),t.top+=Re.scrollTop,t.left+=Re.scrollLeft):Re=B(),Le=H(Re)}de=ue.cloneNode(!0),M(de,n.ghostClass,!1),M(de,n.fallbackClass,!0),M(de,n.dragClass,!0),D(de,"transition",""),D(de,"transform",""),D(de,"box-sizing","border-box"),D(de,"margin",0),D(de,"top",t.top),D(de,"left",t.left),D(de,"width",t.width),D(de,"height",t.height),D(de,"opacity","0.8"),D(de,"position",ze?"absolute":"fixed"),D(de,"zIndex","100000"),D(de,"pointerEvents","none"),nt.ghost=de,e.appendChild(de),D(de,"transform-origin",Te/parseInt(de.style.width)*100+"% "+Ie/parseInt(de.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;le("dragStart",this,{evt:e}),nt.eventCanceled?this._onDrop():(le("setupClone",this),nt.eventCanceled||(me=q(ue),me.draggable=!1,me.style["will-change"]="",this._hideClone(),M(me,this.options.chosenClass,!1),nt.clone=me),n.cloneId=pt((function(){le("clone",n),nt.eventCanceled||(n.options.removeCloneOnHide||pe.insertBefore(me,ue),n._hideClone(),se({sortable:n,name:"clone"}))})),!t&&M(ue,o.dragClass,!0),t?(Be=!0,n._loopId=setInterval(n._emulateDragOver,50)):(k(document,"mouseup",n._onDrop),k(document,"touchend",n._onDrop),k(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ue)),C(document,"drop",n),D(ue,"transform","translateZ(0)")),Pe=!0,n._dragStartId=pt(n._dragStarted.bind(n,t,e)),C(document,"selectstart",n),Ae=!0,S&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,c=this.el,a=e.target,l=this.options,s=l.group,u=nt.active,f=we===s,d=l.sort,p=_e||u,h=this,v=!1;if(!$e){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=I(a,l.draggable,c,!0),N("dragOver"),nt.eventCanceled)return v;if(ue.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return P(!1);if(Be=!1,u&&!l.disabled&&(f?d||(r=fe!==pe):_e===this||(this.lastPutMode=we.checkPull(this,u,ue,e))&&s.checkPut(this,u,ue,e))){if(i="vertical"===this._getDirection(e,a),t=F(ue),N("dragOverValid"),nt.eventCanceled)return v;if(r)return fe=pe,R(),this._hideClone(),N("revert"),nt.eventCanceled||(he?pe.insertBefore(ue,he):pe.appendChild(ue)),P(!0);var m=L(c,l.draggable);if(!m||lt(e,i,this)&&!m.animated){if(m===ue)return P(!1);if(m&&c===e.target&&(a=m),a&&(n=F(a)),!1!==ot(pe,c,ue,t,a,n,e,!!a))return R(),c.appendChild(ue),fe=c,B(),P(!0)}else if(m&&at(e,i,this)){var g=V(c,0,l,!0);if(g===ue)return P(!1);if(a=g,n=F(a),!1!==ot(pe,c,ue,t,a,n,e,!1))return R(),c.insertBefore(ue,g),fe=c,B(),P(!0)}else if(a.parentNode===c){n=F(a);var y,b,x=0,S=ue.parentNode!==c,w=!Ye(ue.animated&&ue.toRect||t,a.animated&&a.toRect||n,i),_=i?"top":"left",E=j(a,"top","top")||j(ue,"top","top"),C=E?E.scrollTop:void 0;if(Ne!==a&&(y=n[_],je=!1,Ve=!w&&l.invertSwap||S),x=st(e,a,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ve,Ne===a),0!==x){var k=$(ue);do{k-=x,b=fe.children[k]}while(b&&("none"===D(b,"display")||b===de))}if(0===x||b===a)return P(!1);Ne=a,Me=x;var O=a.nextElementSibling,T=!1;T=1===x;var A=ot(pe,c,ue,t,a,n,e,T);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),$e=!0,setTimeout(ct,30),R(),T&&!O?c.appendChild(ue):a.parentNode.insertBefore(ue,T?O:a),E&&Y(E,0,C-E.scrollTop),fe=ue.parentNode,void 0===y||Ve||(De=Math.abs(y-F(a)[_])),B(),P(!0)}if(c.contains(ue))return P(!1)}return!1}function N(l,s){le(l,h,o({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:p,target:a,completed:P,onMove:function(n,r){return ot(pe,c,ue,t,n,F(n),e,r)},changed:B},s))}function R(){N("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function P(t){return N("dragOverCompleted",{insertion:t}),t&&(f?u._hideClone():u._showClone(h),h!==p&&(M(ue,_e?_e.options.ghostClass:u.options.ghostClass,!1),M(ue,l.ghostClass,!0)),_e!==h&&h!==nt.active?_e=h:h===nt.active&&_e&&(_e=null),p===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){N("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ue&&!ue.animated||a===c&&!a.animated)&&(Ne=null),l.dragoverBubble||e.rootEl||a===document||(ue.parentNode[Q]._isOutsideThisEl(e.target),!t&&et(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function B(){be=$(ue),Se=$(ue,l.draggable),se({sortable:h,name:"change",toEl:c,newIndex:be,newDraggableIndex:Se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",et),k(document,"mousemove",et),k(document,"touchmove",et)},_offUpEvents:function(){var e=this.el.ownerDocument;k(e,"mouseup",this._onDrop),k(e,"touchend",this._onDrop),k(e,"pointerup",this._onDrop),k(e,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;be=$(ue),Se=$(ue,n.draggable),le("drop",this,{evt:e}),fe=ue&&ue.parentNode,be=$(ue),Se=$(ue,n.draggable),nt.eventCanceled||(Pe=!1,Ve=!1,je=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ht(this.cloneId),ht(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),S&&D(document.body,"user-select",""),D(ue,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),de&&de.parentNode&&de.parentNode.removeChild(de),(pe===fe||_e&&"clone"!==_e.lastPutMode)&&me&&me.parentNode&&me.parentNode.removeChild(me),ue&&(this.nativeDraggable&&k(ue,"dragend",this),it(ue),ue.style["will-change"]="",Ae&&!Pe&&M(ue,_e?_e.options.ghostClass:this.options.ghostClass,!1),M(ue,this.options.chosenClass,!1),se({sortable:this,name:"unchoose",toEl:fe,newIndex:null,newDraggableIndex:null,originalEvent:e}),pe!==fe?(be>=0&&(se({rootEl:fe,name:"add",toEl:fe,fromEl:pe,originalEvent:e}),se({sortable:this,name:"remove",toEl:fe,originalEvent:e}),se({rootEl:fe,name:"sort",toEl:fe,fromEl:pe,originalEvent:e}),se({sortable:this,name:"sort",toEl:fe,originalEvent:e})),_e&&_e.save()):be!==ye&&be>=0&&(se({sortable:this,name:"update",toEl:fe,originalEvent:e}),se({sortable:this,name:"sort",toEl:fe,originalEvent:e})),nt.active&&(null!=be&&-1!==be||(be=ye,Se=xe),se({sortable:this,name:"end",toEl:fe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){le("nulling",this),pe=ue=fe=de=he=me=ve=ge=Ee=Ce=Ae=be=Se=ye=xe=Ne=Me=_e=we=nt.dragged=nt.ghost=nt.clone=nt.active=null,He.forEach((function(e){e.checked=!0})),He.length=ke=Oe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ue&&(this._onDragOver(e),rt(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)e=n[r],I(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||ft(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];I(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return I(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ie.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Xe(n)},destroy:function(){le("destroy",this);var e=this.el;e[Q]=null,k(e,"mousedown",this._onTapStart),k(e,"touchstart",this._onTapStart),k(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(e,"dragover",this),k(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Fe.splice(Fe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ge){if(le("hideClone",this),nt.eventCanceled)return;D(me,"display","none"),this.options.removeCloneOnHide&&me.parentNode&&me.parentNode.removeChild(me),ge=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ge){if(le("showClone",this),nt.eventCanceled)return;ue.parentNode!=pe||this.options.group.revertClone?he?pe.insertBefore(me,he):pe.appendChild(me):pe.insertBefore(me,ue),this.options.group.revertClone&&this.animate(ue,me),D(me,"display",""),ge=!1}}else this._hideClone()}},Ue&&C(document,"touchmove",(function(e){(nt.active||Pe)&&e.cancelable&&e.preventDefault()})),nt.utils={on:C,off:k,css:D,find:P,is:function(e,t){return!!I(e,t,e,!1)},extend:W,throttle:G,closest:I,toggleClass:M,clone:q,index:$,nextTick:pt,cancelNextTick:ht,detectDirection:Je,getChild:V},nt.get=function(e){return e[Q]},nt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(nt.utils=o(o({},nt.utils),e.utils)),ie.mount(e)}))},nt.create=function(e,t){return new nt(e,t)},nt.version=m;var vt,mt,gt,yt,bt,xt,St=[],wt=!1;function _t(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):t.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),Ct(),Et(),J()},nulling:function(){bt=mt=vt=wt=xt=gt=yt=null,St.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(bt=e,t||this.options.forceAutoScrollFallback||b||y||S){Ot(e,this.options,i,t);var c=z(i,!0);!wt||xt&&r===gt&&o===yt||(xt&&Ct(),xt=setInterval((function(){var i=z(document.elementFromPoint(r,o),!0);i!==c&&(c=i,Et()),Ot(e,n.options,i,t)}),10),gt=r,yt=o)}else{if(!this.options.bubbleScroll||z(i,!0)===B())return void Et();Ot(e,this.options,z(i,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}function Et(){St.forEach((function(e){clearInterval(e.pid)})),St=[]}function Ct(){clearInterval(xt)}var kt,Ot=G((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,c=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=B(),u=!1;mt!==n&&(mt=n,Et(),vt=t.scroll,o=t.scrollFn,!0===vt&&(vt=z(n,!0)));var f=0,d=vt;do{var p=d,h=F(p),v=h.top,m=h.bottom,g=h.left,y=h.right,b=h.width,x=h.height,S=void 0,w=void 0,_=p.scrollWidth,E=p.scrollHeight,C=D(p),k=p.scrollLeft,O=p.scrollTop;p===s?(S=b<_&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w=x<E&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(S=b<_&&("auto"===C.overflowX||"scroll"===C.overflowX),w=x<E&&("auto"===C.overflowY||"scroll"===C.overflowY));var T=S&&(Math.abs(y-i)<=a&&k+b<_)-(Math.abs(g-i)<=a&&!!k),I=w&&(Math.abs(m-c)<=a&&O+x<E)-(Math.abs(v-c)<=a&&!!O);if(!St[f])for(var A=0;A<=f;A++)St[A]||(St[A]={});St[f].vx==T&&St[f].vy==I&&St[f].el===p||(St[f].el=p,St[f].vx=T,St[f].vy=I,clearInterval(St[f].pid),0==T&&0==I||(u=!0,St[f].pid=setInterval(function(){r&&0===this.layer&&nt.active._onTouchMove(bt);var t=St[this.layer].vy?St[this.layer].vy*l:0,n=St[this.layer].vx?St[this.layer].vx*l:0;"function"===typeof o&&"continue"!==o.call(nt.dragged.parentNode[Q],n,t,e,bt,St[this.layer].el)||Y(St[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==s&&(d=z(d,!1)));wt=u}}),30),Tt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,c=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var l=n||o;c();var s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(s.clientX,s.clientY);a(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function It(){}function At(){}function Nt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;kt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,c=e.cancel;if(o.options.swap){var a=this.sortable.el,l=this.options;if(n&&n!==a){var s=kt;!1!==r(n)?(M(n,l.swapClass,!0),kt=n):kt=null,s&&s!==kt&&M(s,l.swapClass,!1)}i(),t(!0),c()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,i=this.options;kt&&M(kt,i.swapClass,!1),kt&&(i.swap||n&&n.options.swap)&&r!==kt&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),Mt(r,kt),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){kt=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:kt}}})}function Mt(e,t){var n,r,o=e.parentNode,i=t.parentNode;o&&i&&!o.isEqualNode(t)&&!i.isEqualNode(e)&&(n=$(e),r=$(t),o.isEqualNode(i)&&n<r&&r++,o.insertBefore(t,o.children[n]),i.insertBefore(e,i.children[r]))}It.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=V(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Tt},a(It,{pluginName:"revertOnSpill"}),At.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Tt},a(At,{pluginName:"removeOnSpill"});var Dt,Rt,Pt,Bt,Ft,jt=[],Vt=[],Lt=!1,$t=!1,Ht=!1;function Ut(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?C(document,"pointerup",this._deselectMultiDrag):(C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag)),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";jt.length&&Rt===e?jt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Pt=t},delayEnded:function(){this.isMultiDrag=~jt.indexOf(Pt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<jt.length;r++)Vt.push(q(jt[r])),Vt[r].sortableIndex=jt[r].sortableIndex,Vt[r].draggable=!1,Vt[r].style["will-change"]="",M(Vt[r],this.options.selectedClass,!1),jt[r]===Pt&&M(Vt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||jt.length&&Rt===t&&(Wt(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Wt(!1,n),Vt.forEach((function(e){D(e,"display","")})),t(),Ft=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Vt.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Ft=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Rt&&Rt.multiDrag._deselectMultiDrag(),jt.forEach((function(e){e.sortableIndex=$(e)})),jt=jt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ht=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){jt.forEach((function(e){e!==Pt&&D(e,"position","absolute")}));var r=F(Pt,!1,!0,!0);jt.forEach((function(e){e!==Pt&&X(e,r)})),$t=!0,Lt=!0}n.animateAll((function(){$t=!1,Lt=!1,t.options.animation&&jt.forEach((function(e){Z(e)})),t.options.sort&&Kt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;$t&&~jt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;jt.length>1&&(jt.forEach((function(e){r.addAnimationState({target:e,rect:$t?F(e):o}),Z(e),e.fromRect=o,t.removeAnimationState(e)})),$t=!1,zt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,c=e.putSortable,a=this.options;if(r){if(n&&o._hideClone(),Lt=!1,a.animation&&jt.length>1&&($t||!n&&!o.options.sort&&!c)){var l=F(Pt,!1,!0,!0);jt.forEach((function(e){e!==Pt&&(X(e,l),i.appendChild(e))})),$t=!0}if(!n)if($t||Kt(),jt.length>1){var s=Ft;o._showClone(t),o.options.animation&&!Ft&&s&&Vt.forEach((function(e){o.addAnimationState({target:e,rect:Bt}),e.fromRect=Bt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(jt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Bt=a({},t);var o=R(Pt,!0);Bt.top-=o.f,Bt.left-=o.e}},dragOverAnimationComplete:function(){$t&&($t=!1,Kt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,c=e.oldIndex,a=e.putSortable,l=a||this.sortable;if(t){var s=this.options,u=r.children;if(!Ht)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(Pt,s.selectedClass,!~jt.indexOf(Pt)),~jt.indexOf(Pt))jt.splice(jt.indexOf(Pt),1),Dt=null,ce({sortable:o,rootEl:n,name:"deselect",targetEl:Pt,originalEvt:t});else{if(jt.push(Pt),ce({sortable:o,rootEl:n,name:"select",targetEl:Pt,originalEvt:t}),t.shiftKey&&Dt&&o.el.contains(Dt)){var f,d,p=$(Dt),h=$(Pt);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d<f;d++)~jt.indexOf(u[d])||(M(u[d],s.selectedClass,!0),jt.push(u[d]),ce({sortable:o,rootEl:n,name:"select",targetEl:u[d],originalEvt:t}))}else Dt=Pt;Rt=l}if(Ht&&this.isMultiDrag){if($t=!1,(r[Q].options.sort||r!==n)&&jt.length>1){var v=F(Pt),m=$(Pt,":not(."+this.options.selectedClass+")");if(!Lt&&s.animation&&(Pt.thisAnimationDuration=null),l.captureAnimationState(),!Lt&&(s.animation&&(Pt.fromRect=v,jt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Pt){var t=$t?F(e):v;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Kt(),jt.forEach((function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++})),c===$(Pt))){var g=!1;jt.forEach((function(e){e.sortableIndex===$(e)||(g=!0)})),g&&i("update")}jt.forEach((function(e){Z(e)})),l.animateAll()}Rt=l}(n===r||a&&"clone"!==a.lastPutMode)&&Vt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ht=!1,Vt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),k(document,"pointerup",this._deselectMultiDrag),k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ht||!Ht)&&Rt===this.sortable&&(!e||!I(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(jt.length){var t=jt[0];M(t,this.options.selectedClass,!1),jt.shift(),ce({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Q];t&&t.options.multiDrag&&!~jt.indexOf(e)&&(Rt&&Rt!==t&&(Rt.multiDrag._deselectMultiDrag(),Rt=t),M(e,t.options.selectedClass,!0),jt.push(e))},deselect:function(e){var t=e.parentNode[Q],n=jt.indexOf(e);t&&t.options.multiDrag&&~n&&(M(e,t.options.selectedClass,!1),jt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return jt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=$t&&r!==Pt?-1:$t?$(r,":not(."+e.options.selectedClass+")"):$(r),n.push({multiDragElement:r,index:o})})),{items:u(jt),clones:[].concat(Vt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function zt(e,t){jt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Wt(e,t){Vt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Kt(){jt.forEach((function(e){e!==Pt&&e.parentNode&&e.parentNode.removeChild(e)}))}nt.mount(new _t),nt.mount(At,It),t["default"]=nt},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},9179:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(4865);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var s={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=(0,r.ref)(null);return(0,r.onMounted)((function(){e.autofocus&&n.value.focus()})),(0,r.onUpdated)((function(){e.autofocus&&n.value.focus()})),{handleInput:function(e){t.emit("input",e),t.emit("update:modelValue",e.target.value)},handleChange:function(e){t.emit("change",e),t.emit("update:modelValue",e.target.value)},handleFocus:function(e){t.emit("focus",e)},handleBlur:function(e){t.emit("blur",e)},input:n,handleEscape:function(e){n.value.blur(),t.emit("escape",e)}}}},u={class:"vue-input"},f=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];s.render=function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.renderSlot)(e.$slots,"prepend"),(0,r.createElementVNode)("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return o.handleInput&&o.handleInput.apply(o,arguments)}),onChange:t[1]||(t[1]=function(){return o.handleChange&&o.handleChange.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(){return o.handleBlur&&o.handleBlur.apply(o,arguments)}),onKeyup:t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((function(){return o.handleEscape&&o.handleEscape.apply(o,arguments)}),["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,f),(0,r.renderSlot)(e.$slots,"append")])},s.__file="src/components/input.vue";var d={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==o(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:(0,r.inject)("dataAttrs"),handleClick:function(e){t.emit("click",e)}}},render:function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",(0,r.mergeProps)({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=(0,r.withModifiers)((function(){}),["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return o.handleClick&&o.handleClick.apply(o,arguments)})},o.dataAttrs),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.modelValue,(function(t){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t.key},[t.group?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:0,class:(0,r.normalizeClass)(["vue-tag",{selected:t.selected}])},[(0,r.renderSlot)(e.$slots,"default",{option:t},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.label),1)]}))],2))],64)})),128))],16)},__file:"src/components/tags.vue"},p={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==o(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:(0,r.inject)("dataAttrs"),handleClickItem:function(e,n){n.disabled||t.emit("click-item",e,n)},handleMouseenter:function(e,n){t.emit("mouseenter",e,n)}}}},h=["id","aria-multiselectable","aria-busy","aria-disabled"],v=["onClick","onMouseenter","id","aria-selected","aria-disabled"];p.render=function(e,t,n,o,i,c){return(0,r.openBlock)(),(0,r.createElementBlock)("ul",(0,r.mergeProps)({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=(0,r.withModifiers)((function(){}),["prevent"]))},o.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":o.dataAttrs["data-multiple"],"aria-busy":o.dataAttrs["data-loading"],"aria-disabled":o.dataAttrs["data-disabled"]}),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.modelValue,(function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t.key},[t.visible&&!1===t.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:0,onClick:function(e){return o.handleClickItem(e,t)},class:(0,r.normalizeClass)(["vue-dropdown-item",{selected:t.selected,disabled:t.disabled,highlighted:t.originalIndex===n.highlightedOriginalIndex,group:t.group}]),onMouseenter:function(e){return o.handleMouseenter(e,t)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(i),"aria-selected":!!t.selected||!!t.disabled&&void 0,"aria-disabled":t.disabled},[(0,r.renderSlot)(e.$slots,"default",{option:t},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.label),1)]}))],42,v)):(0,r.createCommentVNode)("v-if",!0)],64)})),128))],16,h)},p.__file="src/components/dropdown.vue";var m=function(e,t,n){var r=n.valueBy;return r(e)===r(t)},g=function(e,t,n){var r=n.valueBy;return e.some((function(e){return m(e,t,{valueBy:r})}))},y=function(e,t,n){var r=n.valueBy;return e.find((function(e){return r(e)===t}))},b=function(e,t,n){var r=n.max,o=n.valueBy;return g(e,t,{valueBy:o})||e.length>=r?e:e.concat(t)},x=function(e,t,n){var r=n.min,o=n.valueBy;return!1===g(e,t,{valueBy:o})||e.length<=r?e:e.filter((function(e){return!1===m(e,t,{valueBy:o})}))},S=function(e){return(0,r.computed)((function(){return"function"==typeof e.value?e.value:"string"==typeof e.value?function(t){return e.value.split(".").reduce((function(e,t){return e[t]}),t)}:function(e){return e}}))},w=function(e,t){var n=(0,r.computed)((function(){return e.value.reduce((function(e,t){return Object.assign(e,(n={},r=t.originalIndex,o=t,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})})),o=function(e){var r=n.value[e];return void 0!==r&&!1!==i(r)&&(t.value=e,!0)},i=function(e){return!e.disabled&&!e.hidden&&e.visible},c=(0,r.computed)((function(){return e.value.some((function(e){return i(e)}))}));return(0,r.watchEffect)((function(){if(!1===c.value&&(t.value=null),null!==t.value&&e.value.length<=t.value){var n,r=l(e.value.reverse());try{for(r.s();!(n=r.n()).done;){var a=n.value;if(o(a.originalIndex))break}}catch(e){r.e(e)}finally{r.f()}}if(null===t.value||!1===i(e.value[t.value])){var s,u=l(e.value);try{for(u.s();!(s=u.n()).done;){var f=s.value;if(o(f.originalIndex))break}}catch(e){u.e(e)}finally{u.f()}}})),{pointerForward:function(){if(!1!==c.value&&null!==t.value)for(var n=t.value+1,r=0;n!==t.value&&r++<e.value.length&&(e.value.length<=n&&(n=0),!o(n));)++n},pointerBackward:function(){if(!1!==c.value&&null!==t.value)for(var n=t.value-1,r=0;n!==t.value&&r++<e.value.length&&(n<0&&(n=e.value.length-1),!o(n));)--n},pointerSet:o}},_=(0,r.defineComponent)({name:"vue-select",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:"disabled",type:[String,Function]},groupBy:{default:"group",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:"Type to search",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:"off",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:"Select option",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return["top","bottom"].includes(e)}}},emits:["selected","removed","update:modelValue","focus","blur","toggle","opened","closed","search:input","search:change","search:focus","search:blur"],setup:function(e,t){var n=function(e){var t=(0,r.reactive)({}),n=S((0,r.toRef)(e,"labelBy"));(0,r.watchEffect)((function(){return t.labelBy=n.value}));var o=S((0,r.toRef)(e,"valueBy"));(0,r.watchEffect)((function(){return t.valueBy=o.value}));var i=S((0,r.toRef)(e,"disabledBy"));(0,r.watchEffect)((function(){return t.disabledBy=i.value}));var c=S((0,r.toRef)(e,"groupBy"));(0,r.watchEffect)((function(){return t.groupBy=c.value}));var a=(0,r.computed)((function(){return e.multiple?e.min:Math.min(1,e.min)}));(0,r.watchEffect)((function(){return t.min=a.value}));var l=(0,r.computed)((function(){return e.multiple?e.max:1}));return(0,r.watchEffect)((function(){return t.max=l.value})),(0,r.watchEffect)((function(){return t.options=e.options})),t}(e),o=(0,r.computed)((function(){var t;return null!==(t=e.emptyModelValue)&&void 0!==t?t:null})),c=(0,r.getCurrentInstance)(),a=(0,r.ref)(),s=(0,r.ref)(),u=(0,r.ref)(),f=(0,r.computed)((function(){var e;return null===(e=u.value)||void 0===e?void 0:e._.refs.input})),d=(0,r.ref)(!1);(0,r.watch)((function(){return d.value}),(function(){d.value?(t.emit("opened"),t.emit("focus"),e.searchable?(f.value!==document.activeElement&&f.value.focus(),t.emit("search:focus")):a.value.focus()):(e.searchable?(f.value===document.activeElement&&f.value.blur(),e.clearOnClose&&M(),t.emit("search:blur")):a.value.blur(),t.emit("closed"),t.emit("blur")),t.emit("toggle")}));var p=function(){e.disabled||(d.value=!0)},h=function(e){a.value.contains(null==e?void 0:e.relatedTarget)?setTimeout((function(){a.value.focus()})):d.value=!1};(0,r.watch)((function(){return e.disabled}),(function(){return h()}));var v=(0,r.ref)(""),m=(0,r.computed)((function(){return new RegExp(v.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")})),_=(0,r.computed)((function(){return v.value?n.options.filter((function(e){return m.value.test(n.labelBy(e))})):void 0})),E=(0,r.ref)([]),C=(0,r.computed)((function(){return new Set(E.value.map((function(e){return n.valueBy(e)})))})),k=function(){if(e.multiple){if(!1===Array.isArray(e.modelValue))return!1;if(E.value.length!==e.modelValue.length)return!1;if(Object.keys(E.value).some((function(t){return E.value[t]!==y(n.options,e.modelValue[t],{valueBy:n.valueBy})})))return!1}else{if(0===E.value.length&&e.modelValue!==o.value)return!1;if(1===E.value.length&&e.modelValue===o.value)return!1;if(E.value[0]!==y(n.options,e.modelValue,{valueBy:n.valueBy}))return!1}return!0},O=function(){if(!k()){E.value=[];var t,r=l(e.multiple?e.modelValue:e.modelValue===o.value?[]:[e.modelValue]);try{for(r.s();!(t=r.n()).done;){var i=t.value,c=y(n.options,i,{valueBy:n.valueBy});!1!==g(n.options,c,{valueBy:n.valueBy})&&(E.value=b(E.value,c,{max:1/0,valueBy:n.valueBy}))}}catch(t){r.e(t)}finally{r.f()}}};O(),(0,r.watch)((function(){return e.modelValue}),(function(){return O()}),{deep:!0}),(0,r.watch)((function(){return n.options}),(function(){E.value=n.options.filter((function(e){return C.value.has(n.valueBy(e))}))}),{deep:!0});var T,I=function(e,r){(r=r.originalOption).value.every((function(e){var t=y(n.options,e,{valueBy:n.valueBy});return g(E.value,t,{valueBy:n.valueBy})}))?r.value.forEach((function(e){var r=y(n.options,e,{valueBy:n.valueBy});E.value=x(E.value,r,{min:n.min,valueBy:n.valueBy}),t.emit("removed",r)})):r.value.forEach((function(e){var r=y(n.options,e,{valueBy:n.valueBy});g(E.value,r,{valueBy:n.valueBy})||(E.value=b(E.value,r,{max:n.max,valueBy:n.valueBy}),t.emit("selected",r))}))},A=function(r,o){if(o=o.originalOption,g(E.value,o,{valueBy:n.valueBy}))E.value=x(E.value,o,{min:n.min,valueBy:n.valueBy}),t.emit("removed",o);else{if(!e.multiple&&1===E.value.length){var i=E.value[0];E.value=x(E.value,E.value[0],{min:0,valueBy:n.valueBy}),t.emit("removed",i)}E.value=b(E.value,o,{max:n.max,valueBy:n.valueBy}),t.emit("selected",o)}},N=function(){if(!k()){var r=E.value.map((function(e){return n.valueBy(e)}));e.multiple?t.emit("update:modelValue",r):r.length?t.emit("update:modelValue",r[0]):t.emit("update:modelValue",o.value)}},M=function(){f.value.value="",f.value.dispatchEvent(new Event("input")),f.value.dispatchEvent(new Event("change"))},D=(0,r.computed)((function(){var t,r;return null!==(r=null!==(t=e.visibleOptions)&&void 0!==t?t:_.value)&&void 0!==r?r:n.options})),R=(0,r.ref)(0),P=(0,r.computed)((function(){var t,r=new Set(D.value.map((function(e){return n.valueBy(e)}))),o=n.options.map((function(t,o){var i,c={key:n.valueBy(t),label:n.labelBy(t),group:null!==(i=n.groupBy(t))&&void 0!==i&&i,originalIndex:o,originalOption:t};return c.selected=c.group?t.value.every((function(e){return C.value.has(e)})):C.value.has(n.valueBy(t)),c.disabled=c.group?n.disabledBy(t)||t.value.every((function(e){var t=y(n.options,e,{valueBy:n.valueBy});return n.disabledBy(t)})):n.disabledBy(t),c.visible=c.group?t.value.some((function(e){return r.has(e)})):r.has(n.valueBy(t)),c.hidden=!!e.hideSelected&&(c.group?t.value.every((function(e){return C.value.has(e)})):C.value.has(n.valueBy(t))),c})),i=l(o);try{for(i.s();!(t=i.n()).done;){var c=t.value;!1!==c.group&&c.disabled&&function(){var e=new Set(c.originalOption.value);o.filter((function(t){return e.has(n.valueBy(t.originalOption))})).forEach((function(e){return e.disabled=!0}))}()}}catch(t){i.e(t)}finally{i.f()}return o})),B=w(P,R),F=B.pointerForward,j=B.pointerBackward,V=B.pointerSet,L="",$=/^[\w]$/,H=(0,r.computed)((function(){var e=i(n.options.keys());return e.slice(R.value).concat(e.slice(0,R.value))})),U=function(){var e,t=null===(e=a.value)||void 0===e?void 0:e.querySelector(".highlighted");if(t&&s.value){var n,r=getComputedStyle(t);for(n=0;t.offsetTop+parseFloat(r.height)+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)>s.value.$el.clientHeight+s.value.$el.scrollTop&&n++<P.value.length;)s.value.$el.scrollTop=s.value.$el.scrollTop+parseFloat(r.height)+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);for(n=0;t.offsetTop<s.value.$el.scrollTop&&n++<P.value.length;)s.value.$el.scrollTop=s.value.$el.scrollTop-parseFloat(r.height)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)}};(0,r.watch)((function(){return[d.value,n.options,C.value]}),(function(e,t){!0!==(null==t?void 0:t[0])&&!1!==d.value&&0!==E.value.length&&(V(n.options.findIndex((function(e){return C.value.has(n.valueBy(e))}))),(0,r.nextTick)(U))}),{deep:!0,immediate:!0});var z=(0,r.computed)((function(){return{"data-is-focusing":d.value,"data-visible-length":P.value.filter((function(e){return e.visible&&!1===e.hidden})).length,"data-not-selected-length":n.options.length-P.value.filter((function(e){return e.selected})).length,"data-selected-length":P.value.filter((function(e){return e.selected})).length,"data-addable":P.value.filter((function(e){return e.selected})).length<n.max,"data-removable":P.value.filter((function(e){return e.selected})).length>n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}}));(0,r.provide)("dataAttrs",z);var W=(0,r.computed)((function(){return P.value.filter((function(e){return e.selected})).filter((function(e){return!e.group}))})),K=(0,r.computed)((function(){return e.multiple?0===W.value.length?e.placeholder:1===W.value.length?"1 option selected":W.value.length+" options selected":0===W.value.length?e.placeholder:W.value[0].label+""})),G=(0,r.computed)((function(){var t=W.value.map((function(e){return e.originalOption}));return e.multiple?t:t[0]||o.value})),J=(0,r.ref)();return(0,r.watch)((function(){return[e.openDirection,d.value]}),(function(){var t,n;J.value=null!==(n=null!==(t=e.openDirection)&&void 0!==t?t:function(){if(void 0!==a.value&&void 0!==window)return window.innerHeight-a.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())&&void 0!==n?n:"bottom"}),{immediate:!0}),{instance:c,isFocusing:d,wrapper:a,dropdown:s,input:u,focus:p,blur:h,toggle:function(){d.value?h():p()},searchingInputValue:v,handleInputForInput:function(e){t.emit("search:input",e)},handleChangeForInput:function(e){t.emit("search:change",e)},handleFocusForInput:function(e){p()},handleBlurForInput:function(e){h()},optionsWithInfo:P,addOrRemoveOption:function(t,n){e.disabled||(n.group&&e.multiple?I(t,n):A(t,n),N(),!0===e.closeOnSelect&&(d.value=!1),!0===e.clearOnSelect&&v.value&&M())},dataAttrs:z,innerPlaceholder:K,selected:G,highlightedOriginalIndex:R,pointerForward:function(){F(),(0,r.nextTick)(U)},pointerBackward:function(){j(),(0,r.nextTick)(U)},pointerFirst:function(){var e,t=l(n.options.keys());try{for(t.s();!(e=t.n()).done;){var o=e.value;if(V(o))break}}catch(e){t.e(e)}finally{t.f()}(0,r.nextTick)(U)},pointerLast:function(){var e,t=l(i(n.options.keys()).reverse());try{for(t.s();!(e=t.n()).done;){var o=e.value;if(V(o))break}}catch(e){t.e(e)}finally{t.f()}(0,r.nextTick)(U)},typeAhead:function(t){var r,o;if(!e.searchable){var i=!1;if($.test(t.key)?(L+=t.key.toLowerCase(),i=!0):"Space"===t.code&&(L+=" "),i){var c,a=l(H.value);try{for(a.s();!(c=a.n()).done;){var s=c.value;if(!0===(null===(o=null===(r=n.labelBy(n.options[s]))||void 0===r?void 0:r.toLowerCase())||void 0===o?void 0:o.startsWith(L))&&V(s))break}}catch(t){a.e(t)}finally{a.f()}clearTimeout(T),T=setTimeout((function(){L=""}),500)}}},pointerSet:V,direction:J}},components:{VInput:s,VTags:d,VDropdown:p}});_.__VERSION__="2.10.2";var E=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],C={ref:"header",class:"vue-select-header"},k={key:0,class:"vue-input"},O=["placeholder","autocomplete"],T=["onClick"],I=(0,r.createElementVNode)("span",{class:"icon loading"},[(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div")],-1),A={key:0,class:"vue-select-input-wrapper"},N=(0,r.createElementVNode)("span",{class:"icon loading"},[(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div"),(0,r.createElementVNode)("div")],-1);_.render=function(e,t,n,o,i,c){var a=(0,r.resolveComponent)("v-tags"),l=(0,r.resolveComponent)("v-input"),s=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(t){return!e.searchable&&e.blur(t)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=(0,r.withKeys)((0,r.withModifiers)((function(){return null!==e.highlightedOriginalIndex&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])}),["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)}),["prevent","exact"]),["down"])),t[13]||(t[13]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)}),["prevent","exact"]),["up"])),t[14]||(t[14]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)}),["prevent","exact"]),["home"])),t[15]||(t[15]=(0,r.withKeys)((0,r.withModifiers)((function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)}),["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":null===e.highlightedOriginalIndex?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[(0,r.createElementVNode)("div",C,[e.multiple&&e.taggable&&0===e.modelValue.length||!1===e.searchable&&!1===e.taggable?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.renderSlot)(e.$slots,"label",{selected:e.selected},(function(){return[(0,r.createElementVNode)("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,O)]}))])):(0,r.createCommentVNode)("v-if",!0),e.multiple&&e.taggable?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(a,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:(0,r.withCtx)((function(t){var n=t.option;return[(0,r.renderSlot)(e.$slots,"tag",{option:n.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,n)}},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1),(0,r.createElementVNode)("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:(0,r.withModifiers)((function(){return e.addOrRemoveOption(e.$event,n)}),["prevent","stop"])},null,8,T)]}))]})),_:3},8,["modelValue","collapse-tags","onClick"]),(0,r.renderSlot)(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=(0,r.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[e.searchable?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.searchingInputValue=t}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):(0,r.createCommentVNode)("v-if",!0),e.loading?(0,r.renderSlot)(e.$slots,"loading",{key:1},(function(){return[I]})):(0,r.renderSlot)(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=(0,r.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64))],512),e.multiple&&e.taggable&&e.searchable?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[(0,r.withDirectives)((0,r.createVNode)(l,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.searchingInputValue=t}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[r.vShow,e.isFocusing]]),e.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0},(function(){return[N]})):(0,r.createCommentVNode)("v-if",!0)])):(0,r.createCommentVNode)("v-if",!0),(0,r.createVNode)(s,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.optionsWithInfo=t}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(t,n){return e.pointerSet(n.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:(0,r.withCtx)((function(t){var n=t.option;return[(0,r.renderSlot)(e.$slots,"dropdown-item",{option:n.originalOption},(function(){return[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1)]}))]})),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,E)},_.__file="src/index.vue"},7197:function(e,t){"use strict"; +/*! + * vue-textarea-autosize v1.1.1 + * (c) 2019 Saymon + * Released under the MIT License. + */var n={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return!0===e||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,t=this.isHeightImportant?"important":"";return this.height="auto".concat(t?" !important":""),this.$nextTick((function(){var n=e.$el.scrollHeight+1;e.minHeight&&(n=n<e.minHeight?e.minHeight:n),e.maxHeight&&(n>e.maxHeight?(n=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var r=n+"px";e.height="".concat(r).concat(t?" !important":"")})),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function r(e,t,n,r,o,i,c,a,l,s){"boolean"!==typeof c&&(l=a,a=c,c=!1);var u,f="function"===typeof n?n.options:n;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},f._ssrRegister=u):t&&(u=c?function(){t.call(this,s(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),u)if(f.functional){var d=f.render;f.render=function(e,t){return u.call(t),d(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,u):[u]}return n}var o=r;const i=n;var c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],style:e.computedStyles,domProps:{value:e.val},on:{focus:e.resize,input:function(t){t.target.composing||(e.val=t.target.value)}}})},a=[];const l=void 0,s=void 0,u=void 0,f=!1;var d=o({render:c,staticRenderFns:a},l,i,s,f,u,void 0,void 0),p="1.1.1",h=function(e){e.component("TextareaAutosize",d)},v={install:h,version:p};"undefined"!==typeof window&&window.Vue&&window.Vue.use(v),t["Z"]=v},4865:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseTransition:function(){return Kt},Comment:function(){return jr},EffectScope:function(){return a},Fragment:function(){return Br},KeepAlive:function(){return cn},ReactiveEffect:function(){return C},Static:function(){return Vr},Suspense:function(){return Nt},Teleport:function(){return Or},Text:function(){return Fr},Transition:function(){return Jc},TransitionGroup:function(){return ha},VueElement:function(){return $c},callWithAsyncErrorHandling:function(){return oi},callWithErrorHandling:function(){return ri},camelize:function(){return o._A},capitalize:function(){return o.kC},cloneVNode:function(){return co},compatUtils:function(){return ac},compile:function(){return Ad},computed:function(){return at},createApp:function(){return Ya},createBlock:function(){return Yr},createCommentVNode:function(){return so},createElementBlock:function(){return Jr},createElementVNode:function(){return no},createHydrationRenderer:function(){return vr},createPropsRestProxy:function(){return Yi},createRenderer:function(){return hr},createSSRApp:function(){return qa},createSlots:function(){return go},createStaticVNode:function(){return lo},createTextVNode:function(){return ao},createVNode:function(){return ro},customRef:function(){return nt},defineAsyncComponent:function(){return tn},defineComponent:function(){return Qt},defineCustomElement:function(){return jc},defineEmits:function(){return Hi},defineExpose:function(){return Ui},defineProps:function(){return $i},defineSSRCustomElement:function(){return Vc},devtools:function(){return lt},effect:function(){return O},effectScope:function(){return l},getCurrentInstance:function(){return Io},getCurrentScope:function(){return u},getTransitionRawChildren:function(){return Zt},guardReactiveProps:function(){return io},h:function(){return Xi},handleError:function(){return ii},hydrate:function(){return Ja},initCustomFormatter:function(){return ec},initDirectivesForSSR:function(){return Qa},inject:function(){return Ht},isMemoSame:function(){return nc},isProxy:function(){return Ve},isReactive:function(){return Fe},isReadonly:function(){return je},isRef:function(){return Ke},isRuntimeOnly:function(){return Lo},isVNode:function(){return qr},markRaw:function(){return $e},mergeDefaults:function(){return Ji},mergeProps:function(){return ho},nextTick:function(){return xi},normalizeClass:function(){return o.C_},normalizeProps:function(){return o.vs},normalizeStyle:function(){return o.j5},onActivated:function(){return ln},onBeforeMount:function(){return mn},onBeforeUnmount:function(){return xn},onBeforeUpdate:function(){return yn},onDeactivated:function(){return sn},onErrorCaptured:function(){return Cn},onMounted:function(){return gn},onRenderTracked:function(){return En},onRenderTriggered:function(){return _n},onScopeDispose:function(){return f},onServerPrefetch:function(){return wn},onUnmounted:function(){return Sn},onUpdated:function(){return bn},openBlock:function(){return Hr},popScopeId:function(){return bt},provide:function(){return $t},proxyRefs:function(){return et},pushScopeId:function(){return yt},queuePostFlushCb:function(){return Oi},reactive:function(){return Me},readonly:function(){return Re},ref:function(){return Ge},registerRuntimeCompiler:function(){return Vo},render:function(){return Ga},renderList:function(){return mo},renderSlot:function(){return yo},resolveComponent:function(){return Ar},resolveDirective:function(){return Dr},resolveDynamicComponent:function(){return Mr},resolveFilter:function(){return cc},resolveTransitionHooks:function(){return Jt},setBlockTracking:function(){return Kr},setDevtoolsHook:function(){return ft},setTransitionHooks:function(){return Xt},shallowReactive:function(){return De},shallowReadonly:function(){return Pe},shallowRef:function(){return Je},ssrContextKey:function(){return Zi},ssrUtils:function(){return ic},stop:function(){return T},toDisplayString:function(){return o.zw},toHandlerKey:function(){return o.hR},toHandlers:function(){return xo},toRaw:function(){return Le},toRef:function(){return it},toRefs:function(){return rt},transformVNodeArgs:function(){return Zr},triggerRef:function(){return Xe},unref:function(){return Ze},useAttrs:function(){return Ki},useCssModule:function(){return Hc},useCssVars:function(){return Uc},useSSRContext:function(){return Qi},useSlots:function(){return Wi},useTransitionState:function(){return Ut},vModelCheckbox:function(){return Ea},vModelDynamic:function(){return Na},vModelRadio:function(){return ka},vModelSelect:function(){return Oa},vModelText:function(){return _a},vShow:function(){return Va},version:function(){return rc},warn:function(){return Xo},watch:function(){return Bi},watchEffect:function(){return Mi},watchPostEffect:function(){return Di},watchSyncEffect:function(){return Ri},withAsyncContext:function(){return qi},withCtx:function(){return St},withDefaults:function(){return zi},withDirectives:function(){return nr},withKeys:function(){return ja},withMemo:function(){return tc},withModifiers:function(){return Ba},withScopeId:function(){return xt}});var r={};n.r(r),n.d(r,{BaseTransition:function(){return Kt},Comment:function(){return jr},EffectScope:function(){return a},Fragment:function(){return Br},KeepAlive:function(){return cn},ReactiveEffect:function(){return C},Static:function(){return Vr},Suspense:function(){return Nt},Teleport:function(){return Or},Text:function(){return Fr},Transition:function(){return Jc},TransitionGroup:function(){return ha},VueElement:function(){return $c},callWithAsyncErrorHandling:function(){return oi},callWithErrorHandling:function(){return ri},camelize:function(){return o._A},capitalize:function(){return o.kC},cloneVNode:function(){return co},compatUtils:function(){return ac},computed:function(){return at},createApp:function(){return Ya},createBlock:function(){return Yr},createCommentVNode:function(){return so},createElementBlock:function(){return Jr},createElementVNode:function(){return no},createHydrationRenderer:function(){return vr},createPropsRestProxy:function(){return Yi},createRenderer:function(){return hr},createSSRApp:function(){return qa},createSlots:function(){return go},createStaticVNode:function(){return lo},createTextVNode:function(){return ao},createVNode:function(){return ro},customRef:function(){return nt},defineAsyncComponent:function(){return tn},defineComponent:function(){return Qt},defineCustomElement:function(){return jc},defineEmits:function(){return Hi},defineExpose:function(){return Ui},defineProps:function(){return $i},defineSSRCustomElement:function(){return Vc},devtools:function(){return lt},effect:function(){return O},effectScope:function(){return l},getCurrentInstance:function(){return Io},getCurrentScope:function(){return u},getTransitionRawChildren:function(){return Zt},guardReactiveProps:function(){return io},h:function(){return Xi},handleError:function(){return ii},hydrate:function(){return Ja},initCustomFormatter:function(){return ec},initDirectivesForSSR:function(){return Qa},inject:function(){return Ht},isMemoSame:function(){return nc},isProxy:function(){return Ve},isReactive:function(){return Fe},isReadonly:function(){return je},isRef:function(){return Ke},isRuntimeOnly:function(){return Lo},isVNode:function(){return qr},markRaw:function(){return $e},mergeDefaults:function(){return Ji},mergeProps:function(){return ho},nextTick:function(){return xi},normalizeClass:function(){return o.C_},normalizeProps:function(){return o.vs},normalizeStyle:function(){return o.j5},onActivated:function(){return ln},onBeforeMount:function(){return mn},onBeforeUnmount:function(){return xn},onBeforeUpdate:function(){return yn},onDeactivated:function(){return sn},onErrorCaptured:function(){return Cn},onMounted:function(){return gn},onRenderTracked:function(){return En},onRenderTriggered:function(){return _n},onScopeDispose:function(){return f},onServerPrefetch:function(){return wn},onUnmounted:function(){return Sn},onUpdated:function(){return bn},openBlock:function(){return Hr},popScopeId:function(){return bt},provide:function(){return $t},proxyRefs:function(){return et},pushScopeId:function(){return yt},queuePostFlushCb:function(){return Oi},reactive:function(){return Me},readonly:function(){return Re},ref:function(){return Ge},registerRuntimeCompiler:function(){return Vo},render:function(){return Ga},renderList:function(){return mo},renderSlot:function(){return yo},resolveComponent:function(){return Ar},resolveDirective:function(){return Dr},resolveDynamicComponent:function(){return Mr},resolveFilter:function(){return cc},resolveTransitionHooks:function(){return Jt},setBlockTracking:function(){return Kr},setDevtoolsHook:function(){return ft},setTransitionHooks:function(){return Xt},shallowReactive:function(){return De},shallowReadonly:function(){return Pe},shallowRef:function(){return Je},ssrContextKey:function(){return Zi},ssrUtils:function(){return ic},stop:function(){return T},toDisplayString:function(){return o.zw},toHandlerKey:function(){return o.hR},toHandlers:function(){return xo},toRaw:function(){return Le},toRef:function(){return it},toRefs:function(){return rt},transformVNodeArgs:function(){return Zr},triggerRef:function(){return Xe},unref:function(){return Ze},useAttrs:function(){return Ki},useCssModule:function(){return Hc},useCssVars:function(){return Uc},useSSRContext:function(){return Qi},useSlots:function(){return Wi},useTransitionState:function(){return Ut},vModelCheckbox:function(){return Ea},vModelDynamic:function(){return Na},vModelRadio:function(){return ka},vModelSelect:function(){return Oa},vModelText:function(){return _a},vShow:function(){return Va},version:function(){return rc},warn:function(){return Xo},watch:function(){return Bi},watchEffect:function(){return Mi},watchPostEffect:function(){return Di},watchSyncEffect:function(){return Ri},withAsyncContext:function(){return qi},withCtx:function(){return St},withDefaults:function(){return zi},withDirectives:function(){return nr},withKeys:function(){return ja},withMemo:function(){return tc},withModifiers:function(){return Ba},withScopeId:function(){return xt}});var o=n(3577);let i;const c=[];class a{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&i&&(this.parent=i,this.index=(i.scopes||(i.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0}on(){this.active&&(c.push(this),i=this)}off(){this.active&&(c.pop(),i=c[c.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function l(e){return new a(e)}function s(e,t){t=t||i,t&&t.active&&t.effects.push(e)}function u(){return i}function f(e){i&&i.cleanups.push(e)}const d=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p=e=>(e.w&b)>0,h=e=>(e.n&b)>0,v=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=b},m=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p(o)&&!h(o)?o.delete(e):t[n++]=o,o.w&=~b,o.n&=~b}t.length=n}},g=new WeakMap;let y=0,b=1;const x=30,S=[];let w;const _=Symbol(""),E=Symbol("");class C{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],s(this,n)}run(){if(!this.active)return this.fn();if(!S.includes(this))try{return S.push(w=this),M(),b=1<<++y,y<=x?v(this):k(this),this.fn()}finally{y<=x&&m(this),b=1<<--y,D(),S.pop();const e=S.length;w=e>0?S[e-1]:void 0}}stop(){this.active&&(k(this),this.onStop&&this.onStop(),this.active=!1)}}function k(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function O(e,t){e.effect&&(e=e.effect.fn);const n=new C(e);t&&((0,o.l7)(n,t),t.scope&&s(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function T(e){e.effect.stop()}let I=!0;const A=[];function N(){A.push(I),I=!1}function M(){A.push(I),I=!0}function D(){const e=A.pop();I=void 0===e||e}function R(e,t,n){if(!P())return;let r=g.get(e);r||g.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=d());const i=void 0;B(o,i)}function P(){return I&&void 0!==w}function B(e,t){let n=!1;y<=x?h(e)||(e.n|=b,n=!p(e)):n=!e.has(w),n&&(e.add(w),w.deps.push(e))}function F(e,t,n,r,i,c){const a=g.get(e);if(!a)return;let l=[];if("clear"===t)l=[...a.values()];else if("length"===n&&(0,o.kJ)(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&l.push(e)}));else switch(void 0!==n&&l.push(a.get(n)),t){case"add":(0,o.kJ)(e)?(0,o.S0)(n)&&l.push(a.get("length")):(l.push(a.get(_)),(0,o._N)(e)&&l.push(a.get(E)));break;case"delete":(0,o.kJ)(e)||(l.push(a.get(_)),(0,o._N)(e)&&l.push(a.get(E)));break;case"set":(0,o._N)(e)&&l.push(a.get(_));break}if(1===l.length)l[0]&&j(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);j(d(e))}}function j(e,t){for(const n of(0,o.kJ)(e)?e:[...e])(n!==w||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const V=(0,o.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(o.yk)),$=G(),H=G(!1,!0),U=G(!0),z=G(!0,!0),W=K();function K(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Le(this);for(let t=0,o=this.length;t<o;t++)R(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Le)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){N();const n=Le(this)[t].apply(this,e);return D(),n}})),e}function G(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?Ie:Te:t?Oe:ke).get(n))return n;const c=(0,o.kJ)(n);if(!e&&c&&(0,o.RI)(W,r))return Reflect.get(W,r,i);const a=Reflect.get(n,r,i);if((0,o.yk)(r)?L.has(r):V(r))return a;if(e||R(n,"get",r),t)return a;if(Ke(a)){const e=!c||!(0,o.S0)(r);return e?a.value:a}return(0,o.Kn)(a)?e?Re(a):Me(a):a}}const J=q(),Y=q(!0);function q(e=!1){return function(t,n,r,i){let c=t[n];if(!e&&!je(r)&&(r=Le(r),c=Le(c),!(0,o.kJ)(t)&&Ke(c)&&!Ke(r)))return c.value=r,!0;const a=(0,o.kJ)(t)&&(0,o.S0)(n)?Number(n)<t.length:(0,o.RI)(t,n),l=Reflect.set(t,n,r,i);return t===Le(i)&&(a?(0,o.aU)(r,c)&&F(t,"set",n,r,c):F(t,"add",n,r)),l}}function X(e,t){const n=(0,o.RI)(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&F(e,"delete",t,void 0,r),i}function Z(e,t){const n=Reflect.has(e,t);return(0,o.yk)(t)&&L.has(t)||R(e,"has",t),n}function Q(e){return R(e,"iterate",(0,o.kJ)(e)?"length":_),Reflect.ownKeys(e)}const ee={get:$,set:J,deleteProperty:X,has:Z,ownKeys:Q},te={get:U,set(e,t){return!0},deleteProperty(e,t){return!0}},ne=(0,o.l7)({},ee,{get:H,set:Y}),re=(0,o.l7)({},te,{get:z}),oe=e=>e,ie=e=>Reflect.getPrototypeOf(e);function ce(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Le(e),i=Le(t);t!==i&&!n&&R(o,"get",t),!n&&R(o,"get",i);const{has:c}=ie(o),a=r?oe:n?Ue:He;return c.call(o,t)?a(e.get(t)):c.call(o,i)?a(e.get(i)):void(e!==o&&e.get(t))}function ae(e,t=!1){const n=this["__v_raw"],r=Le(n),o=Le(e);return e!==o&&!t&&R(r,"has",e),!t&&R(r,"has",o),e===o?n.has(e):n.has(e)||n.has(o)}function le(e,t=!1){return e=e["__v_raw"],!t&&R(Le(e),"iterate",_),Reflect.get(e,"size",e)}function se(e){e=Le(e);const t=Le(this),n=ie(t),r=n.has.call(t,e);return r||(t.add(e),F(t,"add",e,e)),this}function ue(e,t){t=Le(t);const n=Le(this),{has:r,get:i}=ie(n);let c=r.call(n,e);c||(e=Le(e),c=r.call(n,e));const a=i.call(n,e);return n.set(e,t),c?(0,o.aU)(t,a)&&F(n,"set",e,t,a):F(n,"add",e,t),this}function fe(e){const t=Le(this),{has:n,get:r}=ie(t);let o=n.call(t,e);o||(e=Le(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,c=t.delete(e);return o&&F(t,"delete",e,void 0,i),c}function de(){const e=Le(this),t=0!==e.size,n=void 0,r=e.clear();return t&&F(e,"clear",void 0,void 0,n),r}function pe(e,t){return function(n,r){const o=this,i=o["__v_raw"],c=Le(i),a=t?oe:e?Ue:He;return!e&&R(c,"iterate",_),i.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function he(e,t,n){return function(...r){const i=this["__v_raw"],c=Le(i),a=(0,o._N)(c),l="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,u=i[e](...r),f=n?oe:t?Ue:He;return!t&&R(c,"iterate",s?E:_),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function ve(e){return function(...t){return"delete"!==e&&this}}function me(){const e={get(e){return ce(this,e)},get size(){return le(this)},has:ae,add:se,set:ue,delete:fe,clear:de,forEach:pe(!1,!1)},t={get(e){return ce(this,e,!1,!0)},get size(){return le(this)},has:ae,add:se,set:ue,delete:fe,clear:de,forEach:pe(!1,!0)},n={get(e){return ce(this,e,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:pe(!0,!1)},r={get(e){return ce(this,e,!0,!0)},get size(){return le(this,!0)},has(e){return ae.call(this,e,!0)},add:ve("add"),set:ve("set"),delete:ve("delete"),clear:ve("clear"),forEach:pe(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=he(o,!1,!1),n[o]=he(o,!0,!1),t[o]=he(o,!1,!0),r[o]=he(o,!0,!0)})),[e,n,t,r]}const[ge,ye,be,xe]=me();function Se(e,t){const n=t?e?xe:be:e?ye:ge;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.RI)(n,r)&&r in t?n:t,r,i)}const we={get:Se(!1,!1)},_e={get:Se(!1,!0)},Ee={get:Se(!0,!1)},Ce={get:Se(!0,!0)};const ke=new WeakMap,Oe=new WeakMap,Te=new WeakMap,Ie=new WeakMap;function Ae(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ne(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Ae((0,o.W7)(e))}function Me(e){return e&&e["__v_isReadonly"]?e:Be(e,!1,ee,we,ke)}function De(e){return Be(e,!1,ne,_e,Oe)}function Re(e){return Be(e,!0,te,Ee,Te)}function Pe(e){return Be(e,!0,re,Ce,Ie)}function Be(e,t,n,r,i){if(!(0,o.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const c=i.get(e);if(c)return c;const a=Ne(e);if(0===a)return e;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function Fe(e){return je(e)?Fe(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function je(e){return!(!e||!e["__v_isReadonly"])}function Ve(e){return Fe(e)||je(e)}function Le(e){const t=e&&e["__v_raw"];return t?Le(t):e}function $e(e){return(0,o.Nj)(e,"__v_skip",!0),e}const He=e=>(0,o.Kn)(e)?Me(e):e,Ue=e=>(0,o.Kn)(e)?Re(e):e;function ze(e){P()&&(e=Le(e),e.dep||(e.dep=d()),B(e.dep))}function We(e,t){e=Le(e),e.dep&&j(e.dep)}function Ke(e){return Boolean(e&&!0===e.__v_isRef)}function Ge(e){return Ye(e,!1)}function Je(e){return Ye(e,!0)}function Ye(e,t){return Ke(e)?e:new qe(e,t)}class qe{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Le(e),this._value=t?e:He(e)}get value(){return ze(this),this._value}set value(e){e=this._shallow?e:Le(e),(0,o.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:He(e),We(this,e))}}function Xe(e){We(e,void 0)}function Ze(e){return Ke(e)?e.value:e}const Qe={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ke(o)&&!Ke(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function et(e){return Fe(e)?e:new Proxy(e,Qe)}class tt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>ze(this)),(()=>We(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function nt(e){return new tt(e)}function rt(e){const t=(0,o.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=it(e,n);return t}class ot{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function it(e,t,n){const r=e[t];return Ke(r)?r:new ot(e,t,n)}class ct{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new C(e,(()=>{this._dirty||(this._dirty=!0,We(this))})),this["__v_isReadonly"]=n}get value(){const e=Le(this);return ze(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function at(e,t){let n,r;const i=(0,o.mf)(e);i?(n=e,r=o.dG):(n=e.get,r=e.set);const c=new ct(n,r,i||!r);return c}Promise.resolve();new Set;new Map;let lt,st=[],ut=!1;function ft(e,t){var n,r;if(lt=e,lt)lt.enabled=!0,st.forEach((({event:e,args:t})=>lt.emit(e,...t))),st=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){const e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push((e=>{ft(e,t)})),setTimeout((()=>{lt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ut=!0,st=[])}),3e3)}else ut=!0,st=[]}function dt(e,t,...n){const r=e.vnode.props||o.kT;let i=n;const c=t.startsWith("update:"),a=c&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:c}=r[e]||o.kT;c?i=n.map((e=>e.trim())):t&&(i=n.map(o.He))}let l;let s=r[l=(0,o.hR)(t)]||r[l=(0,o.hR)((0,o._A)(t))];!s&&c&&(s=r[l=(0,o.hR)((0,o.rs)(t))]),s&&oi(s,e,6,i);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,oi(u,e,6,i)}}function pt(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const c=e.emits;let a={},l=!1;if(!(0,o.mf)(e)){const r=e=>{const n=pt(e,t,!0);n&&(l=!0,(0,o.l7)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return c||l?((0,o.kJ)(c)?c.forEach((e=>a[e]=null)):(0,o.l7)(a,c),r.set(e,a),a):(r.set(e,null),null)}function ht(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let vt=null,mt=null;function gt(e){const t=vt;return vt=e,mt=e&&e.type.__scopeId||null,t}function yt(e){mt=e}function bt(){mt=null}const xt=e=>St;function St(e,t=vt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Kr(-1);const o=gt(t),i=e(...n);return gt(o),r._d&&Kr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function wt(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:c,propsOptions:[a],slots:l,attrs:s,emit:u,render:f,renderCache:d,data:p,setupState:h,ctx:v,inheritAttrs:m}=e;let g,y;const b=gt(e);try{if(4&n.shapeFlag){const e=i||r;g=uo(f.call(e,e,d,c,h,p,v)),y=s}else{const e=t;0,g=uo(e.length>1?e(c,{attrs:s,slots:l,emit:u}):e(c,null)),y=t.props?s:Et(s)}}catch(S){Lr.length=0,ii(S,e,1),g=ro(jr)}let x=g;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=x;e.length&&7&t&&(a&&e.some(o.tR)&&(y=Ct(y,a)),x=co(x,y))}return n.dirs&&(x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),g=x,gt(b),g}function _t(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!qr(r))return;if(r.type!==jr||"v-if"===r.children){if(t)return;t=r}}return t}const Et=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},Ct=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function kt(e,t,n){const{props:r,children:o,component:i}=e,{props:c,children:a,patchFlag:l}=t,s=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!a||a&&a.$stable)||r!==c&&(r?!c||Ot(r,c,s):!!c);if(1024&l)return!0;if(16&l)return r?Ot(r,c,s):!!c;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(c[n]!==r[n]&&!ht(s,n))return!0}}return!1}function Ot(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!ht(n,i))return!0}return!1}function Tt({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const It=e=>e.__isSuspense,At={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,c,a,l,s){null==e?Dt(t,n,r,o,i,c,a,l,s):Rt(e,t,n,r,o,c,a,l,s)},hydrate:Bt,create:Pt,normalize:Ft},Nt=At;function Mt(e,t){const n=e.props&&e.props[t];(0,o.mf)(n)&&n()}function Dt(e,t,n,r,o,i,c,a,l){const{p:s,o:{createElement:u}}=l,f=u("div"),d=e.suspense=Pt(e,o,r,t,f,n,i,c,a,l);s(null,d.pendingBranch=e.ssContent,f,null,r,d,i,c),d.deps>0?(Mt(e,"onPending"),Mt(e,"onFallback"),s(null,e.ssFallback,t,n,r,null,i,c),Lt(d,e.ssFallback)):d.resolve()}function Rt(e,t,n,r,o,i,c,a,{p:l,um:s,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:v,isInFallback:m,isHydrating:g}=f;if(v)f.pendingBranch=d,Xr(d,v)?(l(v,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0?f.resolve():m&&(l(h,p,n,r,o,null,i,c,a),Lt(f,p))):(f.pendingId++,g?(f.isHydrating=!1,f.activeBranch=v):s(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0?f.resolve():(l(h,p,n,r,o,null,i,c,a),Lt(f,p))):h&&Xr(d,h)?(l(h,d,n,r,o,f,i,c,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0&&f.resolve()));else if(h&&Xr(d,h))l(h,d,n,r,o,f,i,c,a),Lt(f,d);else if(Mt(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,o,f,i,c,a),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}function Pt(e,t,n,r,i,c,a,l,s,u,f=!1){const{p:d,m:p,um:h,n:v,o:{parentNode:m,remove:g}}=u,y=(0,o.He)(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:i,anchor:c,deps:0,pendingId:0,timeout:"number"===typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:i,parentComponent:c,container:a}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===b.pendingId&&p(r,a,t,0)});let{anchor:t}=b;n&&(t=v(n),h(n,c,b,!0)),e||p(r,a,t,0)}Lt(b,r),b.pendingBranch=null,b.isInFallback=!1;let l=b.parent,s=!1;while(l){if(l.pendingBranch){l.effects.push(...i),s=!0;break}l=l.parent}s||Oi(i),b.effects=[],Mt(t,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:i}=b;Mt(t,"onFallback");const c=v(n),a=()=>{b.isInFallback&&(d(null,e,o,c,r,null,i,l,s),Lt(b,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),b.isInFallback=!0,h(n,r,null,!0),u||a()},move(e,t,n){b.activeBranch&&p(b.activeBranch,e,t,n),b.container=e},next(){return b.activeBranch&&v(b.activeBranch)},registerDep(e,t){const n=!!b.pendingBranch;n&&b.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{ii(t,e,0)})).then((o=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;jo(e,o,!1),r&&(i.el=r);const c=!r&&e.subTree.el;t(e,i,m(r||e.subTree.el),r?null:v(e.subTree),b,a,s),c&&g(c),Tt(e,i.el),n&&0===--b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,e,t),b.pendingBranch&&h(b.pendingBranch,n,e,t)}};return b}function Bt(e,t,n,r,o,i,c,a,l){const s=t.suspense=Pt(t,r,n,e.parentNode,document.createElement("div"),null,o,i,c,a,!0),u=l(e,s.pendingBranch=t.ssContent,n,s,i,c);return 0===s.deps&&s.resolve(),u}function Ft(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=jt(r?n.default:n),e.ssFallback=r?jt(n.fallback):ro(jr)}function jt(e){let t;if((0,o.mf)(e)){const n=Wr&&e._c;n&&(e._d=!1,Hr()),e=e(),n&&(e._d=!0,t=$r,Ur())}if((0,o.kJ)(e)){const t=_t(e);0,e=t}return e=uo(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Vt(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):Oi(e)}function Lt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Tt(r,o))}function $t(e,t){if(To){let n=To.provides;const r=To.parent&&To.parent.provides;r===n&&(n=To.provides=Object.create(r)),n[e]=t}else 0}function Ht(e,t,n=!1){const r=To||vt;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function Ut(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gn((()=>{e.isMounted=!0})),xn((()=>{e.isUnmounting=!0})),e}const zt=[Function,Array],Wt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zt,onEnter:zt,onAfterEnter:zt,onEnterCancelled:zt,onBeforeLeave:zt,onLeave:zt,onAfterLeave:zt,onLeaveCancelled:zt,onBeforeAppear:zt,onAppear:zt,onAfterAppear:zt,onAppearCancelled:zt},setup(e,{slots:t}){const n=Io(),r=Ut();let o;return()=>{const i=t.default&&Zt(t.default(),!0);if(!i||!i.length)return;const c=Le(e),{mode:a}=c;const l=i[0];if(r.isLeaving)return Yt(l);const s=qt(l);if(!s)return Yt(l);const u=Jt(s,c,r,n);Xt(s,u);const f=n.subTree,d=f&&qt(f);let p=!1;const{getTransitionKey:h}=s.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,p=!0)}if(d&&d.type!==jr&&(!Xr(s,d)||p)){const e=Jt(d,c,r,n);if(Xt(d,e),"out-in"===a)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},Yt(l);"in-out"===a&&s.type!==jr&&(e.delayLeave=(e,t,n)=>{const o=Gt(r,d);o[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}},Kt=Wt;function Gt(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Jt(e,t,n,r){const{appear:o,mode:i,persisted:c=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:s,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,b=String(e.key),x=Gt(n,e),S=(e,t)=>{e&&oi(e,r,9,t)},w={mode:i,persisted:c,beforeEnter(t){let r=a;if(!n.isMounted){if(!o)return;r=v||a}t._leaveCb&&t._leaveCb(!0);const i=x[b];i&&Xr(e,i)&&i.el._leaveCb&&i.el._leaveCb(),S(r,[t])},enter(e){let t=l,r=s,i=u;if(!n.isMounted){if(!o)return;t=m||l,r=g||s,i=y||u}let c=!1;const a=e._enterCb=t=>{c||(c=!0,S(t?i:r,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(f,[t]);let i=!1;const c=t._leaveCb=n=>{i||(i=!0,r(),S(n?h:p,[t]),t._leaveCb=void 0,x[o]===e&&delete x[o])};x[o]=e,d?(d(t,c),d.length<=1&&c()):c()},clone(e){return Jt(e,t,n,r)}};return w}function Yt(e){if(rn(e))return e=co(e),e.children=null,e}function qt(e){return rn(e)?e.children?e.children[0]:void 0:e}function Xt(e,t){6&e.shapeFlag&&e.component?Xt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zt(e,t=!1){let n=[],r=0;for(let o=0;o<e.length;o++){const i=e[o];i.type===Br?(128&i.patchFlag&&r++,n=n.concat(Zt(i.children,t))):(t||i.type!==jr)&&n.push(i)}if(r>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Qt(e){return(0,o.mf)(e)?{setup:e,name:e.name}:e}const en=e=>!!e.type.__asyncLoader;function tn(e){(0,o.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:c,suspensible:a=!0,onError:l}=e;let s,u=null,f=0;const d=()=>(f++,u=null,p()),p=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{const r=()=>t(d()),o=()=>n(e);l(e,r,o,f+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),s=t,t))))};return Qt({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return s},setup(){const e=To;if(s)return()=>nn(s,e);const t=t=>{u=null,ii(t,e,13,!r)};if(a&&e.suspense||Po)return p().then((t=>()=>nn(t,e))).catch((e=>(t(e),()=>r?ro(r,{error:e}):null)));const o=Ge(!1),l=Ge(),f=Ge(!!i);return i&&setTimeout((()=>{f.value=!1}),i),null!=c&&setTimeout((()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${c}ms.`);t(e),l.value=e}}),c),p().then((()=>{o.value=!0,e.parent&&rn(e.parent.vnode)&&wi(e.parent.update)})).catch((e=>{t(e),l.value=e})),()=>o.value&&s?nn(s,e):l.value&&r?ro(r,{error:l.value}):n&&!f.value?ro(n):void 0}})}function nn(e,{vnode:{ref:t,props:n,children:r}}){const o=ro(e,n,r);return o.ref=t,o}const rn=e=>e.type.__isKeepAlive,on={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Io(),r=n.ctx;if(!r.renderer)return t.default;const i=new Map,c=new Set;let a=null;const l=n.suspense,{renderer:{p:s,m:u,um:f,o:{createElement:d}}}=r,p=d("div");function h(e){dn(e),f(e,n,l)}function v(e){i.forEach(((t,n)=>{const r=Go(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=i.get(e);a&&t.type===a.type?a&&dn(a):h(t),i.delete(e),c.delete(e)}r.activate=(e,t,n,r,i)=>{const c=e.component;u(e,t,n,0,l),s(c.vnode,e,t,n,c,l,r,e.slotScopeIds,i),pr((()=>{c.isDeactivated=!1,c.a&&(0,o.ir)(c.a);const t=e.props&&e.props.onVnodeMounted;t&&vo(t,c.parent,e)}),l)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,l),pr((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&vo(n,t.parent,e),t.isDeactivated=!0}),l)},Bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&v((t=>an(e,t))),t&&v((e=>!an(t,e)))}),{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&i.set(g,pn(n.subTree))};return gn(y),bn(y),xn((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=pn(t);if(e.type!==o.type)h(e);else{dn(o);const e=o.component.da;e&&pr(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!qr(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return a=null,r;let o=pn(r);const l=o.type,s=Go(en(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:f,max:d}=e;if(u&&(!s||!an(u,s))||f&&s&&an(f,s))return a=o,r;const p=null==o.key?l:o.key,h=i.get(p);return o.el&&(o=co(o),128&r.shapeFlag&&(r.ssContent=o)),g=p,h?(o.el=h.el,o.component=h.component,o.transition&&Xt(o,o.transition),o.shapeFlag|=512,c.delete(p),c.add(p)):(c.add(p),d&&c.size>parseInt(d,10)&&m(c.values().next().value)),o.shapeFlag|=256,a=o,r}}},cn=on;function an(e,t){return(0,o.kJ)(e)?e.some((e=>an(e,t))):(0,o.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function ln(e,t){un(e,"a",t)}function sn(e,t){un(e,"da",t)}function un(e,t,n=To){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(hn(t,r,n),n){let e=n.parent;while(e&&e.parent)rn(e.parent.vnode)&&fn(r,t,n,e),e=e.parent}}function fn(e,t,n,r){const i=hn(t,e,r,!0);Sn((()=>{(0,o.Od)(r[t],i)}),n)}function dn(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function pn(e){return 128&e.shapeFlag?e.ssContent:e}function hn(e,t,n=To,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;N(),Ao(n);const o=oi(t,n,e,r);return No(),D(),o});return r?o.unshift(i):o.push(i),i}}const vn=e=>(t,n=To)=>(!Po||"sp"===e)&&hn(e,t,n),mn=vn("bm"),gn=vn("m"),yn=vn("bu"),bn=vn("u"),xn=vn("bum"),Sn=vn("um"),wn=vn("sp"),_n=vn("rtg"),En=vn("rtc");function Cn(e,t=To){hn("ec",e,t)}let kn=!0;function On(e){const t=Nn(e),n=e.proxy,r=e.ctx;kn=!1,t.beforeCreate&&In(t.beforeCreate,e,"bc");const{data:i,computed:c,methods:a,watch:l,provide:s,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:v,activated:m,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:x,unmounted:S,render:w,renderTracked:_,renderTriggered:E,errorCaptured:C,serverPrefetch:k,expose:O,inheritAttrs:T,components:I,directives:A,filters:N}=t,M=null;if(u&&Tn(u,r,M,e.appContext.config.unwrapInjectedRef),a)for(const R in a){const e=a[R];(0,o.mf)(e)&&(r[R]=e.bind(n))}if(i){0;const t=i.call(n,n);0,(0,o.Kn)(t)&&(e.data=Me(t))}if(kn=!0,c)for(const R in c){const e=c[R],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const i=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,a=at({get:t,set:i});Object.defineProperty(r,R,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const o in l)An(l[o],r,n,o);if(s){const e=(0,o.mf)(s)?s.call(n):s;Reflect.ownKeys(e).forEach((t=>{$t(t,e[t])}))}function D(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&In(f,e,"c"),D(mn,d),D(gn,p),D(yn,h),D(bn,v),D(ln,m),D(sn,g),D(Cn,C),D(En,_),D(_n,E),D(xn,b),D(Sn,S),D(wn,k),(0,o.kJ)(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===o.dG&&(e.render=w),null!=T&&(e.inheritAttrs=T),I&&(e.components=I),A&&(e.directives=A)}function Tn(e,t,n=o.dG,r=!1){(0,o.kJ)(e)&&(e=Bn(e));for(const i in e){const n=e[i];let c;c=(0,o.Kn)(n)?"default"in n?Ht(n.from||i,n.default,!0):Ht(n.from||i):Ht(n),Ke(c)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e}):t[i]=c}}function In(e,t,n){oi((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function An(e,t,n,r){const i=r.includes(".")?Vi(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&Bi(i,n)}else if((0,o.mf)(e))Bi(i,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>An(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&Bi(i,r,e)}else 0}function Nn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,a=i.get(t);let l;return a?l=a:o.length||n||r?(l={},o.length&&o.forEach((e=>Mn(l,e,c,!0))),Mn(l,t,c)):l=t,i.set(t,l),l}function Mn(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Mn(e,i,n,!0),o&&o.forEach((t=>Mn(e,t,n,!0)));for(const c in t)if(r&&"expose"===c);else{const r=Dn[c]||n&&n[c];e[c]=r?r(e[c],t[c]):t[c]}return e}const Dn={data:Rn,props:jn,emits:jn,methods:jn,computed:jn,beforeCreate:Fn,created:Fn,beforeMount:Fn,mounted:Fn,beforeUpdate:Fn,updated:Fn,beforeDestroy:Fn,beforeUnmount:Fn,destroyed:Fn,unmounted:Fn,activated:Fn,deactivated:Fn,errorCaptured:Fn,serverPrefetch:Fn,components:jn,directives:jn,watch:Vn,provide:Rn,inject:Pn};function Rn(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function Pn(e,t){return jn(Bn(e),Bn(t))}function Bn(e){if((0,o.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fn(e,t){return e?[...new Set([].concat(e,t))]:t}function jn(e,t){return e?(0,o.l7)((0,o.l7)(Object.create(null),e),t):t}function Vn(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const r in t)n[r]=Fn(e[r],t[r]);return n}function Ln(e,t,n,r=!1){const i={},c={};(0,o.Nj)(c,Qr,1),e.propsDefaults=Object.create(null),Hn(e,t,i,c);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:De(i):e.type.props?e.props=i:e.props=c,e.attrs=c}function $n(e,t,n,r){const{props:i,attrs:c,vnode:{patchFlag:a}}=e,l=Le(i),[s]=e.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;Hn(e,t,i,c)&&(u=!0);for(const c in l)t&&((0,o.RI)(t,c)||(r=(0,o.rs)(c))!==c&&(0,o.RI)(t,r))||(s?!n||void 0===n[c]&&void 0===n[r]||(i[c]=Un(s,l,c,void 0,e,!0)):delete i[c]);if(c!==l)for(const e in c)t&&(0,o.RI)(t,e)||(delete c[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];const f=t[a];if(s)if((0,o.RI)(c,a))f!==c[a]&&(c[a]=f,u=!0);else{const t=(0,o._A)(a);i[t]=Un(s,l,t,f,e,!1)}else f!==c[a]&&(c[a]=f,u=!0)}}u&&F(e,"set","$attrs")}function Hn(e,t,n,r){const[i,c]=e.propsOptions;let a,l=!1;if(t)for(let s in t){if((0,o.Gg)(s))continue;const u=t[s];let f;i&&(0,o.RI)(i,f=(0,o._A)(s))?c&&c.includes(f)?(a||(a={}))[f]=u:n[f]=u:ht(e.emitsOptions,s)||s in r&&u===r[s]||(r[s]=u,l=!0)}if(c){const t=Le(n),r=a||o.kT;for(let a=0;a<c.length;a++){const l=c[a];n[l]=Un(i,t,l,r[l],e,!(0,o.RI)(r,l))}}return l}function Un(e,t,n,r,i,c){const a=e[n];if(null!=a){const e=(0,o.RI)(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&(0,o.mf)(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(Ao(i),r=o[n]=e.call(null,t),No())}else r=e}a[0]&&(c&&!e?r=!1:!a[1]||""!==r&&r!==(0,o.rs)(n)||(r=!0))}return r}function zn(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const c=e.props,a={},l=[];let s=!1;if(!(0,o.mf)(e)){const r=e=>{s=!0;const[n,r]=zn(e,t,!0);(0,o.l7)(a,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!c&&!s)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(c))for(let f=0;f<c.length;f++){0;const e=(0,o._A)(c[f]);Wn(e)&&(a[e]=o.kT)}else if(c){0;for(const e in c){const t=(0,o._A)(e);if(Wn(t)){const n=c[e],r=a[t]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:n;if(r){const e=Jn(Boolean,r.type),n=Jn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,o.RI)(r,"default"))&&l.push(t)}}}}const u=[a,l];return r.set(e,u),u}function Wn(e){return"$"!==e[0]}function Kn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Gn(e,t){return Kn(e)===Kn(t)}function Jn(e,t){return(0,o.kJ)(t)?t.findIndex((t=>Gn(t,e))):(0,o.mf)(t)&&Gn(t,e)?0:-1}const Yn=e=>"_"===e[0]||"$stable"===e,qn=e=>(0,o.kJ)(e)?e.map(uo):[uo(e)],Xn=(e,t,n)=>{const r=St(((...e)=>qn(t(...e))),n);return r._c=!1,r},Zn=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Yn(i))continue;const n=e[i];if((0,o.mf)(n))t[i]=Xn(i,n,r);else if(null!=n){0;const e=qn(n);t[i]=()=>e}}},Qn=(e,t)=>{const n=qn(t);e.slots.default=()=>n},er=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Le(t),(0,o.Nj)(t,"_",n)):Zn(t,e.slots={})}else e.slots={},t&&Qn(e,t);(0,o.Nj)(e.slots,Qr,1)},tr=(e,t,n)=>{const{vnode:r,slots:i}=e;let c=!0,a=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?c=!1:((0,o.l7)(i,t),n||1!==e||delete i._):(c=!t.$stable,Zn(t,i)),a=t}else t&&(Qn(e,t),a={default:1});if(c)for(const o in i)Yn(o)||o in a||delete i[o]};function nr(e,t){const n=vt;if(null===n)return e;const r=n.proxy,i=e.dirs||(e.dirs=[]);for(let c=0;c<t.length;c++){let[e,n,a,l=o.kT]=t[c];(0,o.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&Li(n),i.push({dir:e,instance:r,value:n,oldValue:void 0,arg:a,modifiers:l})}return e}function rr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let c=0;c<o.length;c++){const a=o[c];i&&(a.oldValue=i[c].value);let l=a.dir[r];l&&(N(),oi(l,n,8,[e.el,a,e,t]),D())}}function or(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ir=0;function cr(e,t){return function(n,r=null){null==r||(0,o.Kn)(r)||(r=null);const i=or(),c=new Set;let a=!1;const l=i.app={_uid:ir++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:rc,get config(){return i.config},set config(e){0},use(e,...t){return c.has(e)||(e&&(0,o.mf)(e.install)?(c.add(e),e.install(l,...t)):(0,o.mf)(e)&&(c.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(o,c,s){if(!a){const u=ro(n,r);return u.appContext=i,c&&t?t(u,o):e(u,o,s),a=!0,l._container=o,o.__vue_app__=l,zo(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l}};return l}}function ar(e,t,n,r,i=!1){if((0,o.kJ)(e))return void e.forEach(((e,c)=>ar(e,t&&((0,o.kJ)(t)?t[c]:t),n,r,i)));if(en(r)&&!i)return;const c=4&r.shapeFlag?zo(r.component)||r.component.proxy:r.el,a=i?null:c,{i:l,r:s}=e;const u=t&&t.r,f=l.refs===o.kT?l.refs={}:l.refs,d=l.setupState;if(null!=u&&u!==s&&((0,o.HD)(u)?(f[u]=null,(0,o.RI)(d,u)&&(d[u]=null)):Ke(u)&&(u.value=null)),(0,o.mf)(s))ri(s,l,12,[a,f]);else{const t=(0,o.HD)(s),r=Ke(s);if(t||r){const r=()=>{if(e.f){const n=t?f[s]:s.value;i?(0,o.kJ)(n)&&(0,o.Od)(n,c):(0,o.kJ)(n)?n.includes(c)||n.push(c):t?f[s]=[c]:(s.value=[c],e.k&&(f[e.k]=s.value))}else t?(f[s]=a,(0,o.RI)(d,s)&&(d[s]=a)):Ke(s)&&(s.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,pr(r,n)):r()}else 0}}let lr=!1;const sr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,ur=e=>8===e.nodeType;function fr(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:i,parentNode:c,remove:a,insert:l,createComment:s}}=e,u=(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void Ii();lr=!1,f(t.firstChild,e,null,null,null),Ii(),lr&&console.error("Hydration completed but contains mismatches.")},f=(n,r,o,a,l,s=!1)=>{const u=ur(n)&&"["===n.data,g=()=>v(n,r,o,a,l,u),{type:y,ref:b,shapeFlag:x}=r,S=n.nodeType;r.el=n;let w=null;switch(y){case Fr:3!==S?w=g():(n.data!==r.children&&(lr=!0,n.data=r.children),w=i(n));break;case jr:w=8!==S||u?g():i(n);break;case Vr:if(1===S){w=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=w.outerHTML),t===r.staticCount-1&&(r.anchor=w),w=i(w);return w}w=g();break;case Br:w=u?h(n,r,o,a,l,s):g();break;default:if(1&x)w=1!==S||r.type.toLowerCase()!==n.tagName.toLowerCase()?g():d(n,r,o,a,l,s);else if(6&x){r.slotScopeIds=l;const e=c(n);if(t(r,e,null,o,a,sr(e),s),w=u?m(n):i(n),en(r)){let t;u?(t=ro(Br),t.anchor=w?w.previousSibling:e.lastChild):t=3===n.nodeType?ao(""):ro("div"),t.el=n,r.component.subTree=t}}else 64&x?w=8!==S?g():r.type.hydrate(n,r,o,a,l,s,e,p):128&x&&(w=r.type.hydrate(n,r,o,a,sr(c(n)),l,s,e,f))}return null!=b&&ar(b,null,a,r),w},d=(e,t,n,i,c,l)=>{l=l||!!t.dynamicChildren;const{type:s,props:u,patchFlag:f,shapeFlag:d,dirs:h}=t,v="input"===s&&h||"option"===s;if(v||-1!==f){if(h&&rr(t,null,n,"created"),u)if(v||!l||48&f)for(const t in u)(v&&t.endsWith("value")||(0,o.F7)(t)&&!(0,o.Gg)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let s;if((s=u&&u.onVnodeBeforeMount)&&vo(s,n,t),h&&rr(t,null,n,"beforeMount"),((s=u&&u.onVnodeMounted)||h)&&Vt((()=>{s&&vo(s,n,t),h&&rr(t,null,n,"mounted")}),i),16&d&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,i,c,l);while(r){lr=!0;const e=r;r=r.nextSibling,a(e)}}else 8&d&&e.textContent!==t.children&&(lr=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,i,c,a)=>{a=a||!!t.dynamicChildren;const l=t.children,s=l.length;for(let u=0;u<s;u++){const t=a?l[u]:l[u]=uo(l[u]);if(e)e=f(e,t,o,i,c,a);else{if(t.type===Fr&&!t.children)continue;lr=!0,n(null,t,r,null,o,i,sr(r),c)}}return e},h=(e,t,n,r,o,a)=>{const{slotScopeIds:u}=t;u&&(o=o?o.concat(u):u);const f=c(e),d=p(i(e),t,f,n,r,o,a);return d&&ur(d)&&"]"===d.data?i(t.anchor=d):(lr=!0,l(t.anchor=s("]"),f,d),d)},v=(e,t,r,o,l,s)=>{if(lr=!0,t.el=null,s){const t=m(e);while(1){const n=i(e);if(!n||n===t)break;a(n)}}const u=i(e),f=c(e);return a(e),n(null,t,f,u,r,o,sr(f),l),u},m=e=>{let t=0;while(e)if(e=i(e),e&&ur(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[u,f]}function dr(){}const pr=Vt;function hr(e){return mr(e)}function vr(e){return mr(e,fr)}function mr(e,t){dr();const n=(0,o.E9)();n.__VUE__=!0;const{insert:r,remove:i,patchProp:c,createElement:a,createText:l,createComment:s,setText:u,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=o.dG,cloneNode:v,insertStaticContent:m}=e,g=(e,t,n,r=null,o=null,i=null,c=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Xr(e,t)&&(r=J(e),U(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:s,ref:u,shapeFlag:f}=t;switch(s){case Fr:y(e,t,n,r);break;case jr:b(e,t,n,r);break;case Vr:null==e&&x(t,n,r,c);break;case Br:M(e,t,n,r,o,i,c,a,l);break;default:1&f?_(e,t,n,r,o,i,c,a,l):6&f?R(e,t,n,r,o,i,c,a,l):(64&f||128&f)&&s.process(e,t,n,r,o,i,c,a,l,q)}null!=u&&o&&ar(u,e&&e.ref,i,t||e,!t)},y=(e,t,n,o)=>{if(null==e)r(t.el=l(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},b=(e,t,n,o)=>{null==e?r(t.el=s(t.children||""),n,o):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r)},S=({el:e,anchor:t},n,o)=>{let i;while(e&&e!==t)i=p(e),r(e,n,o),e=i;r(t,n,o)},w=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=p(e),i(e),e=n;i(t)},_=(e,t,n,r,o,i,c,a,l)=>{c=c||"svg"===t.type,null==e?E(t,n,r,o,i,c,a,l):T(e,t,o,i,c,a,l)},E=(e,t,n,i,l,s,u,d)=>{let p,h;const{type:m,props:g,shapeFlag:y,transition:b,patchFlag:x,dirs:S}=e;if(e.el&&void 0!==v&&-1===x)p=e.el=v(e.el);else{if(p=e.el=a(e.type,s,g&&g.is,g),8&y?f(p,e.children):16&y&&O(e.children,p,null,i,l,s&&"foreignObject"!==m,u,d),S&&rr(e,null,i,"created"),g){for(const t in g)"value"===t||(0,o.Gg)(t)||c(p,t,null,g[t],s,e.children,i,l,G);"value"in g&&c(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&vo(h,i,e)}k(p,e,e.scopeId,u,i)}S&&rr(e,null,i,"beforeMount");const w=(!l||l&&!l.pendingBranch)&&b&&!b.persisted;w&&b.beforeEnter(p),r(p,t,n),((h=g&&g.onVnodeMounted)||w||S)&&pr((()=>{h&&vo(h,i,e),w&&b.enter(p),S&&rr(e,null,i,"mounted")}),l)},k=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let i=0;i<r.length;i++)h(e,r[i]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;k(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},O=(e,t,n,r,o,i,c,a,l=0)=>{for(let s=l;s<e.length;s++){const l=e[s]=a?fo(e[s]):uo(e[s]);g(null,l,t,n,r,o,i,c,a)}},T=(e,t,n,r,i,a,l)=>{const s=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o.kT,v=t.props||o.kT;let m;n&&gr(n,!1),(m=v.onVnodeBeforeUpdate)&&vo(m,n,t,e),p&&rr(t,e,n,"beforeUpdate"),n&&gr(n,!0);const g=i&&"foreignObject"!==t.type;if(d?I(e.dynamicChildren,d,s,n,r,g,a):l||V(e,t,s,null,n,r,g,a,!1),u>0){if(16&u)A(s,t,h,v,n,r,i);else if(2&u&&h.class!==v.class&&c(s,"class",null,v.class,i),4&u&&c(s,"style",h.style,v.style,i),8&u){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const a=o[t],l=h[a],u=v[a];u===l&&"value"!==a||c(s,a,l,u,i,e.children,n,r,G)}}1&u&&e.children!==t.children&&f(s,t.children)}else l||null!=d||A(s,t,h,v,n,r,i);((m=v.onVnodeUpdated)||p)&&pr((()=>{m&&vo(m,n,t,e),p&&rr(t,e,n,"updated")}),r)},I=(e,t,n,r,o,i,c)=>{for(let a=0;a<t.length;a++){const l=e[a],s=t[a],u=l.el&&(l.type===Br||!Xr(l,s)||70&l.shapeFlag)?d(l.el):n;g(l,s,u,null,r,o,i,c,!0)}},A=(e,t,n,r,i,a,l)=>{if(n!==r){for(const s in r){if((0,o.Gg)(s))continue;const u=r[s],f=n[s];u!==f&&"value"!==s&&c(e,s,f,u,l,t.children,i,a,G)}if(n!==o.kT)for(const s in n)(0,o.Gg)(s)||s in r||c(e,s,n[s],null,l,t.children,i,a,G);"value"in r&&c(e,"value",n.value,r.value)}},M=(e,t,n,o,i,c,a,s,u)=>{const f=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;v&&(s=s?s.concat(v):v),null==e?(r(f,n,o),r(d,n,o),O(t.children,n,d,i,c,a,s,u)):p>0&&64&p&&h&&e.dynamicChildren?(I(e.dynamicChildren,h,n,i,c,a,s),(null!=t.key||i&&t===i.subTree)&&yr(e,t,!0)):V(e,t,n,d,i,c,a,s,u)},R=(e,t,n,r,o,i,c,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,c,l):P(t,n,r,o,i,c,l):B(e,t,l)},P=(e,t,n,r,o,i,c)=>{const a=e.component=Oo(e,r,o);if(rn(e)&&(a.ctx.renderer=q),Bo(a),a.asyncDep){if(o&&o.registerDep(a,F),!e.el){const e=a.subTree=ro(jr);b(null,e,t,n)}}else F(a,e,t,n,o,i,c)},B=(e,t,n)=>{const r=t.component=e.component;if(kt(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void j(r,t,n);r.next=t,Ei(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},F=(e,t,n,r,i,c,a)=>{const l=()=>{if(e.isMounted){let t,{next:n,bu:r,u:l,parent:s,vnode:u}=e,f=n;0,gr(e,!1),n?(n.el=u.el,j(e,n,a)):n=u,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&vo(t,s,n,u),gr(e,!0);const p=wt(e);0;const h=e.subTree;e.subTree=p,g(h,p,d(h.el),J(h),e,i,c),n.el=p.el,null===f&&Tt(e,p.el),l&&pr(l,i),(t=n.props&&n.props.onVnodeUpdated)&&pr((()=>vo(t,s,n,u)),i)}else{let a;const{el:l,props:s}=t,{bm:u,m:f,parent:d}=e,p=en(t);if(gr(e,!1),u&&(0,o.ir)(u),!p&&(a=s&&s.onVnodeBeforeMount)&&vo(a,d,t),gr(e,!0),l&&Z){const n=()=>{e.subTree=wt(e),Z(l,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const o=e.subTree=wt(e);0,g(null,o,n,r,e,i,c),t.el=o.el}if(f&&pr(f,i),!p&&(a=s&&s.onVnodeMounted)){const e=t;pr((()=>vo(a,d,e)),i)}256&t.shapeFlag&&e.a&&pr(e.a,i),e.isMounted=!0,t=n=r=null}},s=e.effect=new C(l,(()=>wi(e.update)),e.scope),u=e.update=s.run.bind(s);u.id=e.uid,gr(e,!0),u()},j=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,$n(e,t.props,r,n),tr(e,t.children,n),N(),Ti(void 0,e.update),D()},V=(e,t,n,r,o,i,c,a,l=!1)=>{const s=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void $(s,d,n,r,o,i,c,a,l);if(256&p)return void L(s,d,n,r,o,i,c,a,l)}8&h?(16&u&&G(s,o,i),d!==s&&f(n,d)):16&u?16&h?$(s,d,n,r,o,i,c,a,l):G(s,o,i,!0):(8&u&&f(n,""),16&h&&O(d,n,r,o,i,c,a,l))},L=(e,t,n,r,i,c,a,l,s)=>{e=e||o.Z6,t=t||o.Z6;const u=e.length,f=t.length,d=Math.min(u,f);let p;for(p=0;p<d;p++){const r=t[p]=s?fo(t[p]):uo(t[p]);g(e[p],r,n,null,i,c,a,l,s)}u>f?G(e,i,c,!0,!1,d):O(t,n,r,i,c,a,l,s,d)},$=(e,t,n,r,i,c,a,l,s)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;while(u<=d&&u<=p){const r=e[u],o=t[u]=s?fo(t[u]):uo(t[u]);if(!Xr(r,o))break;g(r,o,n,null,i,c,a,l,s),u++}while(u<=d&&u<=p){const r=e[d],o=t[p]=s?fo(t[p]):uo(t[p]);if(!Xr(r,o))break;g(r,o,n,null,i,c,a,l,s),d--,p--}if(u>d){if(u<=p){const e=p+1,o=e<f?t[e].el:r;while(u<=p)g(null,t[u]=s?fo(t[u]):uo(t[u]),n,o,i,c,a,l,s),u++}}else if(u>p)while(u<=d)U(e[u],i,c,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=p;u++){const e=t[u]=s?fo(t[u]):uo(t[u]);null!=e.key&&m.set(e.key,u)}let y,b=0;const x=p-v+1;let S=!1,w=0;const _=new Array(x);for(u=0;u<x;u++)_[u]=0;for(u=h;u<=d;u++){const r=e[u];if(b>=x){U(r,i,c,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(y=v;y<=p;y++)if(0===_[y-v]&&Xr(r,t[y])){o=y;break}void 0===o?U(r,i,c,!0):(_[o-v]=u+1,o>=w?w=o:S=!0,g(r,t[o],n,null,i,c,a,l,s),b++)}const E=S?br(_):o.Z6;for(y=E.length-1,u=x-1;u>=0;u--){const e=v+u,o=t[e],d=e+1<f?t[e+1].el:r;0===_[u]?g(null,o,n,d,i,c,a,l,s):S&&(y<0||u!==E[y]?H(o,n,d,2):y--)}}},H=(e,t,n,o,i=null)=>{const{el:c,type:a,transition:l,children:s,shapeFlag:u}=e;if(6&u)return void H(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void a.move(e,t,n,q);if(a===Br){r(c,t,n);for(let e=0;e<s.length;e++)H(s[e],t,n,o);return void r(e.anchor,t,n)}if(a===Vr)return void S(e,t,n);const f=2!==o&&1&u&&l;if(f)if(0===o)l.beforeEnter(c),r(c,t,n),pr((()=>l.enter(c)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=l,a=()=>r(c,t,n),s=()=>{e(c,(()=>{a(),i&&i()}))};o?o(c,a,s):s()}else r(c,t,n)},U=(e,t,n,r=!1,o=!1)=>{const{type:i,props:c,ref:a,children:l,dynamicChildren:s,shapeFlag:u,patchFlag:f,dirs:d}=e;if(null!=a&&ar(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&d,h=!en(e);let v;if(h&&(v=c&&c.onVnodeBeforeUnmount)&&vo(v,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&rr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,q,r):s&&(i!==Br||f>0&&64&f)?G(s,t,n,!1,!0):(i===Br&&384&f||!o&&16&u)&&G(l,t,n),r&&z(e)}(h&&(v=c&&c.onVnodeUnmounted)||p)&&pr((()=>{v&&vo(v,t,e),p&&rr(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Br)return void W(n,r);if(t===Vr)return void w(e);const c=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,c);r?r(e.el,c,i):i()}else c()},W=(e,t)=>{let n;while(e!==t)n=p(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:i,update:c,subTree:a,um:l}=e;r&&(0,o.ir)(r),i.stop(),c&&(c.active=!1,U(a,e,t,n)),l&&pr(l,t),pr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let c=i;c<e.length;c++)U(e[c],t,n,r,o)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Y=(e,t,n)=>{null==e?t._vnode&&U(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Ii(),t._vnode=e},q={p:g,um:U,m:H,r:z,mt:P,mc:O,pc:V,pbc:I,n:J,o:e};let X,Z;return t&&([X,Z]=t(q)),{render:Y,hydrate:X,createApp:cr(Y,X)}}function gr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yr(e,t,n=!1){const r=e.children,i=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let o=0;o<r.length;o++){const e=r[o];let t=i[o];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[o]=fo(i[o]),t.el=e.el),n||yr(e,t))}}function br(e){const t=e.slice(),n=[0];let r,o,i,c,a;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}i=0,c=n.length-1;while(i<c)a=i+c>>1,e[n[a]]<l?i=a+1:c=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,c=n[i-1];while(i-- >0)n[i]=c,c=t[c];return n}const xr=e=>e.__isTeleport,Sr=e=>e&&(e.disabled||""===e.disabled),wr=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,_r=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n},Er={__isTeleport:!0,process(e,t,n,r,o,i,c,a,l,s){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:v,createComment:m}}=s,g=Sr(t.props);let{shapeFlag:y,children:b,dynamicChildren:x}=t;if(null==e){const e=t.el=v(""),s=t.anchor=v("");p(e,n,r),p(s,n,r);const f=t.target=_r(t.props,h),d=t.targetAnchor=v("");f&&(p(d,f),c=c||wr(f));const m=(e,t)=>{16&y&&u(b,e,t,o,i,c,a,l)};g?m(n,s):f&&m(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,v=Sr(e.props),m=v?n:u,y=v?r:p;if(c=c||wr(u),x?(d(e.dynamicChildren,x,m,o,i,c,a),yr(e,t,!0)):l||f(e,t,m,y,o,i,c,a,!1),g)v||Cr(t,n,r,s,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=_r(t.props,h);e&&Cr(t,e,null,s,0)}else v&&Cr(t,u,p,s,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},c){const{shapeFlag:a,children:l,anchor:s,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(c||!Sr(d))&&(i(s),16&a))for(let p=0;p<l.length;p++){const e=l[p];o(e,t,n,!0,!!e.dynamicChildren)}},move:Cr,hydrate:kr};function Cr(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:c,anchor:a,shapeFlag:l,children:s,props:u}=e,f=2===i;if(f&&r(c,t,n),(!f||Sr(u))&&16&l)for(let d=0;d<s.length;d++)o(s[d],t,n,2);f&&r(a,t,n)}function kr(e,t,n,r,o,i,{o:{nextSibling:c,parentNode:a,querySelector:l}},s){const u=t.target=_r(t.props,l);if(u){const l=u._lpa||u.firstChild;16&t.shapeFlag&&(Sr(t.props)?(t.anchor=s(c(e),t,a(e),n,r,o,i),t.targetAnchor=l):(t.anchor=c(e),t.targetAnchor=s(l,t,u,n,r,o,i)),u._lpa=t.targetAnchor&&c(t.targetAnchor))}return t.anchor&&c(t.anchor)}const Or=Er,Tr="components",Ir="directives";function Ar(e,t){return Rr(Tr,e,!0,t)||e}const Nr=Symbol();function Mr(e){return(0,o.HD)(e)?Rr(Tr,e,!1)||e:e||Nr}function Dr(e){return Rr(Ir,e)}function Rr(e,t,n=!0,r=!1){const i=vt||To;if(i){const n=i.type;if(e===Tr){const e=Go(n);if(e&&(e===t||e===(0,o._A)(t)||e===(0,o.kC)((0,o._A)(t))))return n}const c=Pr(i[e]||n[e],t)||Pr(i.appContext[e],t);return!c&&r?n:c}}function Pr(e,t){return e&&(e[t]||e[(0,o._A)(t)]||e[(0,o.kC)((0,o._A)(t))])}const Br=Symbol(void 0),Fr=Symbol(void 0),jr=Symbol(void 0),Vr=Symbol(void 0),Lr=[];let $r=null;function Hr(e=!1){Lr.push($r=e?null:[])}function Ur(){Lr.pop(),$r=Lr[Lr.length-1]||null}let zr,Wr=1;function Kr(e){Wr+=e}function Gr(e){return e.dynamicChildren=Wr>0?$r||o.Z6:null,Ur(),Wr>0&&$r&&$r.push(e),e}function Jr(e,t,n,r,o,i){return Gr(no(e,t,n,r,o,i,!0))}function Yr(e,t,n,r,o){return Gr(ro(e,t,n,r,o,!0))}function qr(e){return!!e&&!0===e.__v_isVNode}function Xr(e,t){return e.type===t.type&&e.key===t.key}function Zr(e){zr=e}const Qr="__vInternal",eo=({key:e})=>null!=e?e:null,to=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||Ke(e)||(0,o.mf)(e)?{i:vt,r:e,k:t,f:!!n}:e:null;function no(e,t=null,n=null,r=0,i=null,c=(e===Br?0:1),a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eo(t),ref:t&&to(t),scopeId:mt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(po(s,n),128&c&&e.normalize(s)):n&&(s.shapeFlag|=(0,o.HD)(n)?8:16),Wr>0&&!a&&$r&&(s.patchFlag>0||6&c)&&32!==s.patchFlag&&$r.push(s),s}const ro=oo;function oo(e,t=null,n=null,r=0,i=null,c=!1){if(e&&e!==Nr||(e=jr),qr(e)){const r=co(e,t,!0);return n&&po(r,n),r}if(Yo(e)&&(e=e.__vccOpts),t){t=io(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&(Ve(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const a=(0,o.HD)(e)?1:It(e)?128:xr(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return no(e,t,n,r,i,a,c,!0)}function io(e){return e?Ve(e)||Qr in e?(0,o.l7)({},e):e:null}function co(e,t,n=!1){const{props:r,ref:i,patchFlag:c,children:a}=e,l=t?ho(r||{},t):r,s={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&eo(l),ref:t&&t.ref?n&&i?(0,o.kJ)(i)?i.concat(to(t)):[i,to(t)]:to(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Br?-1===c?16:16|c:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&co(e.ssContent),ssFallback:e.ssFallback&&co(e.ssFallback),el:e.el,anchor:e.anchor};return s}function ao(e=" ",t=0){return ro(Fr,null,e,t)}function lo(e,t){const n=ro(Vr,null,e);return n.staticCount=t,n}function so(e="",t=!1){return t?(Hr(),Yr(jr,null,e)):ro(jr,null,e)}function uo(e){return null==e||"boolean"===typeof e?ro(jr):(0,o.kJ)(e)?ro(Br,null,e.slice()):"object"===typeof e?fo(e):ro(Fr,null,String(e))}function fo(e){return null===e.el||e.memo?e:co(e)}function po(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Qr in t?3===r&&vt&&(1===vt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=vt}}else(0,o.mf)(t)?(t={default:t,_ctx:vt},n=32):(t=String(t),64&r?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function ho(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.C_)([t.class,r.class]));else if("style"===e)t.style=(0,o.j5)([t.style,r.style]);else if((0,o.F7)(e)){const n=t[e],i=r[e];n===i||(0,o.kJ)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function vo(e,t,n,r=null){oi(e,t,7,[n,r])}function mo(e,t,n,r){let i;const c=n&&n[r];if((0,o.kJ)(e)||(0,o.HD)(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,c&&c[n])}else if("number"===typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,c&&c[n])}else if((0,o.Kn)(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,c&&c[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,c&&c[r])}}else i=[];return n&&(n[r]=i),i}function go(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.kJ)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e}function yo(e,t,n={},r,o){if(vt.isCE)return ro("slot","default"===t?null:{name:t},r&&r());let i=e[t];i&&i._c&&(i._d=!1),Hr();const c=i&&bo(i(n)),a=Yr(Br,{key:n.key||`_${t}`},c||(r?r():[]),c&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function bo(e){return e.some((e=>!qr(e)||e.type!==jr&&!(e.type===Br&&!bo(e.children))))?e:null}function xo(e){const t={};for(const n in e)t[(0,o.hR)(n)]=e[n];return t}const So=e=>e?Mo(e)?zo(e)||e.proxy:So(e.parent):null,wo=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>Nn(e),$forceUpdate:e=>()=>wi(e.update),$nextTick:e=>xi.bind(e.proxy),$watch:e=>ji.bind(e)}),_o={get({_:e},t){const{ctx:n,setupState:r,data:i,props:c,accessCache:a,type:l,appContext:s}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return c[t]}else{if(r!==o.kT&&(0,o.RI)(r,t))return a[t]=1,r[t];if(i!==o.kT&&(0,o.RI)(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&(0,o.RI)(u,t))return a[t]=3,c[t];if(n!==o.kT&&(0,o.RI)(n,t))return a[t]=4,n[t];kn&&(a[t]=0)}}const f=wo[t];let d,p;return f?("$attrs"===t&&R(e,"get",t),f(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==o.kT&&(0,o.RI)(n,t)?(a[t]=4,n[t]):(p=s.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:c}=e;if(i!==o.kT&&(0,o.RI)(i,t))i[t]=n;else if(r!==o.kT&&(0,o.RI)(r,t))r[t]=n;else if((0,o.RI)(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(c[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:c}},a){let l;return!!n[a]||e!==o.kT&&(0,o.RI)(e,a)||t!==o.kT&&(0,o.RI)(t,a)||(l=c[0])&&(0,o.RI)(l,a)||(0,o.RI)(r,a)||(0,o.RI)(wo,a)||(0,o.RI)(i.config.globalProperties,a)}};const Eo=(0,o.l7)({},_o,{get(e,t){if(t!==Symbol.unscopables)return _o.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!(0,o.e1)(t);return n}});const Co=or();let ko=0;function Oo(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Co,c={uid:ko++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new a(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zn(r,i),emitsOptions:pt(r,i),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:r.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=dt.bind(null,c),e.ce&&e.ce(c),c}let To=null;const Io=()=>To||vt,Ao=e=>{To=e,e.scope.on()},No=()=>{To&&To.scope.off(),To=null};function Mo(e){return 4&e.vnode.shapeFlag}let Do,Ro,Po=!1;function Bo(e,t=!1){Po=t;const{props:n,children:r}=e.vnode,o=Mo(e);Ln(e,n,o,t),er(e,r);const i=o?Fo(e,t):void 0;return Po=!1,i}function Fo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$e(new Proxy(e.ctx,_o));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Uo(e):null;Ao(e),N();const i=ri(r,e,0,[e.props,n]);if(D(),No(),(0,o.tI)(i)){if(i.then(No,No),t)return i.then((n=>{jo(e,n,t)})).catch((t=>{ii(t,e,0)}));e.asyncDep=i}else jo(e,i,t)}else $o(e,t)}function jo(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=et(t)),$o(e,n)}function Vo(e){Do=e,Ro=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eo))}}const Lo=()=>!Do;function $o(e,t,n){const r=e.type;if(!e.render){if(!t&&Do&&!r.render){const t=r.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:a}=r,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:c},i),a);r.render=Do(t,l)}}e.render=r.render||o.dG,Ro&&Ro(e)}Ao(e),N(),On(e),D(),No()}function Ho(e){return new Proxy(e.attrs,{get(t,n){return R(e,"get","$attrs"),t[n]}})}function Uo(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Ho(e))},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(et($e(e.exposed)),{get(t,n){return n in t?t[n]:n in wo?wo[n](e):void 0}}))}const Wo=/(?:^|[-_])(\w)/g,Ko=e=>e.replace(Wo,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Go(e){return(0,o.mf)(e)&&e.displayName||e.name}function Jo(e,t,n=!1){let r=Go(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Ko(r):n?"App":"Anonymous"}function Yo(e){return(0,o.mf)(e)&&"__vccOpts"in e}const qo=[];function Xo(e,...t){N();const n=qo.length?qo[qo.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Zo();if(r)ri(r,n,11,[e+t.join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Jo(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...Qo(o)),console.warn(...n)}D()}function Zo(){let e=qo[qo.length-1];if(!e)return[];const t=[];while(e){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Qo(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...ei(e))})),t}function ei({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Jo(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...ti(e.props),i]:[o+i]}function ti(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...ni(n,e[n]))})),n.length>3&&t.push(" ..."),t}function ni(e,t,n){return(0,o.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"===typeof t||"boolean"===typeof t||null==t?n?t:[`${e}=${t}`]:Ke(t)?(t=ni(e,Le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Le(t),n?t:[`${e}=`,t])}function ri(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){ii(i,t,n)}return o}function oi(e,t,n,r){if((0,o.mf)(e)){const i=ri(e,t,n,r);return i&&(0,o.tI)(i)&&i.catch((e=>{ii(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(oi(e[o],t,n,r));return i}function ii(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const c=t.appContext.config.errorHandler;if(c)return void ri(c,null,10,[e,o,i])}ci(e,n,o,r)}function ci(e,t,n,r=!0){console.error(e)}let ai=!1,li=!1;const si=[];let ui=0;const fi=[];let di=null,pi=0;const hi=[];let vi=null,mi=0;const gi=Promise.resolve();let yi=null,bi=null;function xi(e){const t=yi||gi;return e?t.then(this?e.bind(this):e):t}function Si(e){let t=ui+1,n=si.length;while(t<n){const r=t+n>>>1,o=Ai(si[r]);o<e?t=r+1:n=r}return t}function wi(e){si.length&&si.includes(e,ai&&e.allowRecurse?ui+1:ui)||e===bi||(null==e.id?si.push(e):si.splice(Si(e.id),0,e),_i())}function _i(){ai||li||(li=!0,yi=gi.then(Ni))}function Ei(e){const t=si.indexOf(e);t>ui&&si.splice(t,1)}function Ci(e,t,n,r){(0,o.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),_i()}function ki(e){Ci(e,di,fi,pi)}function Oi(e){Ci(e,vi,hi,mi)}function Ti(e,t=null){if(fi.length){for(bi=t,di=[...new Set(fi)],fi.length=0,pi=0;pi<di.length;pi++)di[pi]();di=null,pi=0,bi=null,Ti(e,t)}}function Ii(e){if(hi.length){const e=[...new Set(hi)];if(hi.length=0,vi)return void vi.push(...e);for(vi=e,vi.sort(((e,t)=>Ai(e)-Ai(t))),mi=0;mi<vi.length;mi++)vi[mi]();vi=null,mi=0}}const Ai=e=>null==e.id?1/0:e.id;function Ni(e){li=!1,ai=!0,Ti(e),si.sort(((e,t)=>Ai(e)-Ai(t)));o.dG;try{for(ui=0;ui<si.length;ui++){const e=si[ui];e&&!1!==e.active&&ri(e,null,14)}}finally{ui=0,si.length=0,Ii(e),ai=!1,yi=null,(si.length||fi.length||hi.length)&&Ni(e)}}function Mi(e,t){return Fi(e,null,t)}function Di(e,t){return Fi(e,null,{flush:"post"})}function Ri(e,t){return Fi(e,null,{flush:"sync"})}const Pi={};function Bi(e,t,n){return Fi(e,t,n)}function Fi(e,t,{immediate:n,deep:r,flush:i,onTrack:c,onTrigger:a}=o.kT){const l=To;let s,u,f=!1,d=!1;if(Ke(e)?(s=()=>e.value,f=!!e._shallow):Fe(e)?(s=()=>e,r=!0):(0,o.kJ)(e)?(d=!0,f=e.some(Fe),s=()=>e.map((e=>Ke(e)?e.value:Fe(e)?Li(e):(0,o.mf)(e)?ri(e,l,2):void 0))):s=(0,o.mf)(e)?t?()=>ri(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),oi(e,l,3,[p])}:o.dG,t&&r){const e=s;s=()=>Li(e())}let p=e=>{u=g.onStop=()=>{ri(e,l,4)}};if(Po)return p=o.dG,t?n&&oi(t,l,3,[s(),d?[]:void 0,p]):s(),o.dG;let h=d?[]:Pi;const v=()=>{if(g.active)if(t){const e=g.run();(r||f||(d?e.some(((e,t)=>(0,o.aU)(e,h[t]))):(0,o.aU)(e,h)))&&(u&&u(),oi(t,l,3,[e,h===Pi?void 0:h,p]),h=e)}else g.run()};let m;v.allowRecurse=!!t,m="sync"===i?v:"post"===i?()=>pr(v,l&&l.suspense):()=>{!l||l.isMounted?ki(v):v()};const g=new C(s,m);return t?n?v():h=g.run():"post"===i?pr(g.run.bind(g),l&&l.suspense):g.run(),()=>{g.stop(),l&&l.scope&&(0,o.Od)(l.scope.effects,g)}}function ji(e,t,n){const r=this.proxy,i=(0,o.HD)(e)?e.includes(".")?Vi(r,e):()=>r[e]:e.bind(r,r);let c;(0,o.mf)(t)?c=t:(c=t.handler,n=t);const a=To;Ao(this);const l=Fi(i,c.bind(r),n);return a?Ao(a):No(),l}function Vi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Li(e,t){if(!(0,o.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),Ke(e))Li(e.value,t);else if((0,o.kJ)(e))for(let n=0;n<e.length;n++)Li(e[n],t);else if((0,o.DM)(e)||(0,o._N)(e))e.forEach((e=>{Li(e,t)}));else if((0,o.PO)(e))for(const n in e)Li(e[n],t);return e}function $i(){return null}function Hi(){return null}function Ui(e){0}function zi(e,t){return null}function Wi(){return Gi().slots}function Ki(){return Gi().attrs}function Gi(){const e=Io();return e.setupContext||(e.setupContext=Uo(e))}function Ji(e,t){const n=(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const r in t){const e=n[r];e?(0,o.kJ)(e)||(0,o.mf)(e)?n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(n[r]={default:t[r]})}return n}function Yi(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qi(e){const t=Io();let n=e();return No(),(0,o.tI)(n)&&(n=n.catch((e=>{throw Ao(t),e}))),[n,()=>Ao(t)]}function Xi(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?qr(t)?ro(e,null,[t]):ro(e,t):ro(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&qr(n)&&(n=[n]),ro(e,t,n))}const Zi=Symbol(""),Qi=()=>{{const e=Ht(Zi);return e||Xo("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ec(){return void 0}function tc(e,t,n,r){const o=n[r];if(o&&nc(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function nc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==t[r])return!1;return Wr>0&&$r&&$r.push(e),!0}const rc="3.2.26",oc={createComponentInstance:Oo,setupComponent:Bo,renderComponentRoot:wt,setCurrentRenderingInstance:gt,isVNode:qr,normalizeVNode:uo},ic=oc,cc=null,ac=null,lc="http://www.w3.org/2000/svg",sc="undefined"!==typeof document?document:null,uc=new Map,fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?sc.createElementNS(lc,e):sc.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>sc.createTextNode(e),createComment:e=>sc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const o=n?n.previousSibling:t.lastChild;let i=uc.get(e);if(!i){const t=sc.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,i=t.content,r){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}uc.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function dc(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function pc(e,t,n){const r=e.style,i=(0,o.HD)(n);if(n&&!i){for(const e in n)vc(r,e,n[e]);if(t&&!(0,o.HD)(t))for(const e in t)null==n[e]&&vc(r,e,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const hc=/\s*!important$/;function vc(e,t,n){if((0,o.kJ)(n))n.forEach((n=>vc(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=yc(e,t);hc.test(n)?e.setProperty((0,o.rs)(r),n.replace(hc,""),"important"):e[r]=n}}const mc=["Webkit","Moz","ms"],gc={};function yc(e,t){const n=gc[t];if(n)return n;let r=(0,o._A)(t);if("filter"!==r&&r in e)return gc[t]=r;r=(0,o.kC)(r);for(let o=0;o<mc.length;o++){const n=mc[o]+r;if(n in e)return gc[t]=n}return t}const bc="http://www.w3.org/1999/xlink";function xc(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(bc,t.slice(6,t.length)):e.setAttributeNS(bc,t,n);else{const r=(0,o.Pq)(t);null==n||r&&!(0,o.yA)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Sc(e,t,n,r,i,c,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,c),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=(0,o.yA)(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(l){}return void e.removeAttribute(t)}}try{e[t]=n}catch(s){0}}let wc=Date.now,_c=!1;if("undefined"!==typeof window){wc()>document.createEvent("Event").timeStamp&&(wc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);_c=!!(e&&Number(e[1])<=53)}let Ec=0;const Cc=Promise.resolve(),kc=()=>{Ec=0},Oc=()=>Ec||(Cc.then(kc),Ec=wc());function Tc(e,t,n,r){e.addEventListener(t,n,r)}function Ic(e,t,n,r){e.removeEventListener(t,n,r)}function Ac(e,t,n,r,o=null){const i=e._vei||(e._vei={}),c=i[t];if(r&&c)c.value=r;else{const[n,a]=Mc(t);if(r){const c=i[t]=Dc(r,o);Tc(e,n,c,a)}else c&&(Ic(e,n,c,a),i[t]=void 0)}}const Nc=/(?:Once|Passive|Capture)$/;function Mc(e){let t;if(Nc.test(e)){let n;t={};while(n=e.match(Nc))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,o.rs)(e.slice(2)),t]}function Dc(e,t){const n=e=>{const r=e.timeStamp||wc();(_c||r>=n.attached-1)&&oi(Rc(e,n.value),t,5,[e])};return n.value=e,n.attached=Oc(),n}function Rc(e,t){if((0,o.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}const Pc=/^on[a-z]/,Bc=(e,t,n,r,i=!1,c,a,l,s)=>{"class"===t?dc(e,r,i):"style"===t?pc(e,n,r):(0,o.F7)(t)?(0,o.tR)(t)||Ac(e,t,n,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Fc(e,t,r,i))?Sc(e,t,r,c,a,l,s):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),xc(e,t,r,i))};function Fc(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Pc.test(t)&&(0,o.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Pc.test(t)||!(0,o.HD)(n))&&t in e))))}function jc(e,t){const n=Qt(e);class r extends $c{constructor(e){super(n,e,t)}}return r.def=n,r}const Vc=e=>jc(e,Ja),Lc="undefined"!==typeof HTMLElement?HTMLElement:class{};class $c extends Lc{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,xi((()=>{this._connected||(Ga(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,r=!(0,o.kJ)(t),i=t?r?Object.keys(t):t:[];let c;if(r)for(const a in this._props){const e=t[a];(e===Number||e&&e.type===Number)&&(this._props[a]=(0,o.He)(this._props[a]),(c||(c=Object.create(null)))[a]=!0)}this._numberProps=c;for(const o of Object.keys(this))"_"!==o[0]&&this._setProp(o,this[o],!0,!1);for(const a of i.map(o._A))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,o.He)(t)),this._setProp((0,o._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,o.rs)(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute((0,o.rs)(e),t+""):t||this.removeAttribute((0,o.rs)(e))))}_update(){Ga(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ro(this._def,(0,o.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;while(t=t&&(t.parentNode||t.host))if(t instanceof $c){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Hc(e="$style"){{const t=Io();if(!t)return o.kT;const n=t.type.__cssModules;if(!n)return o.kT;const r=n[e];return r||o.kT}}function Uc(e){const t=Io();if(!t)return;const n=()=>zc(t.subTree,e(t.proxy));Di(n),gn((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Sn((()=>e.disconnect()))}))}function zc(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{zc(n.activeBranch,t)}))}while(e.component)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Wc(e.el,t);else if(e.type===Br)e.children.forEach((e=>zc(e,t)));else if(e.type===Vr){let{el:n,anchor:r}=e;while(n){if(Wc(n,t),n===r)break;n=n.nextSibling}}}function Wc(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Kc="transition",Gc="animation",Jc=(e,{slots:t})=>Xi(Kt,Qc(e),t);Jc.displayName="Transition";const Yc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qc=Jc.props=(0,o.l7)({},Kt.props,Yc),Xc=(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},Zc=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function Qc(e){const t={};for(const o in e)o in Yc||(t[o]=e[o]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:c=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=c,appearActiveClass:u=a,appearToClass:f=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=ea(i),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:S,onLeaveCancelled:w,onBeforeAppear:_=y,onAppear:E=b,onAppearCancelled:C=x}=t,k=(e,t,n)=>{ra(e,t?f:l),ra(e,t?u:a),n&&n()},O=(e,t)=>{ra(e,h),ra(e,p),t&&t()},T=e=>(t,n)=>{const o=e?E:b,i=()=>k(t,e,n);Xc(o,[t,i]),oa((()=>{ra(t,e?s:c),na(t,e?f:l),Zc(o)||ca(t,r,m,i)}))};return(0,o.l7)(t,{onBeforeEnter(e){Xc(y,[e]),na(e,c),na(e,a)},onBeforeAppear(e){Xc(_,[e]),na(e,s),na(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){const n=()=>O(e,t);na(e,d),ua(),na(e,p),oa((()=>{ra(e,d),na(e,h),Zc(S)||ca(e,r,g,n)})),Xc(S,[e,n])},onEnterCancelled(e){k(e,!1),Xc(x,[e])},onAppearCancelled(e){k(e,!0),Xc(C,[e])},onLeaveCancelled(e){O(e),Xc(w,[e])}})}function ea(e){if(null==e)return null;if((0,o.Kn)(e))return[ta(e.enter),ta(e.leave)];{const t=ta(e);return[t,t]}}function ta(e){const t=(0,o.He)(e);return t}function na(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function ra(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function oa(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ia=0;function ca(e,t,n,r){const o=e._endId=++ia,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:c,timeout:a,propCount:l}=aa(e,t);if(!c)return r();const s=c+"end";let u=0;const f=()=>{e.removeEventListener(s,d),i()},d=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{u<l&&f()}),a+1),e.addEventListener(s,d)}function aa(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(Kc+"Delay"),i=r(Kc+"Duration"),c=la(o,i),a=r(Gc+"Delay"),l=r(Gc+"Duration"),s=la(a,l);let u=null,f=0,d=0;t===Kc?c>0&&(u=Kc,f=c,d=i.length):t===Gc?s>0&&(u=Gc,f=s,d=l.length):(f=Math.max(c,s),u=f>0?c>s?Kc:Gc:null,d=u?u===Kc?i.length:l.length:0);const p=u===Kc&&/\b(transform|all)(,|$)/.test(n[Kc+"Property"]);return{type:u,timeout:f,propCount:d,hasTransform:p}}function la(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>sa(t)+sa(e[n]))))}function sa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ua(){return document.body.offsetHeight}const fa=new WeakMap,da=new WeakMap,pa={name:"TransitionGroup",props:(0,o.l7)({},qc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Io(),r=Ut();let o,i;return bn((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!ya(o[0].el,n.vnode.el,t))return;o.forEach(va),o.forEach(ma);const r=o.filter(ga);ua(),r.forEach((e=>{const n=e.el,r=n.style;na(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,ra(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const c=Le(e),a=Qc(c);let l=c.tag||Br;o=i,i=t.default?Zt(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&Xt(t,Jt(t,a,r,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];Xt(t,Jt(t,a,r,n)),fa.set(t,t.el.getBoundingClientRect())}return ro(l,null,i)}}},ha=pa;function va(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ma(e){da.set(e,e.el.getBoundingClientRect())}function ga(e){const t=fa.get(e),n=da.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}function ya(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=aa(r);return o.removeChild(r),i}const ba=e=>{const t=e.props["onUpdate:modelValue"];return(0,o.kJ)(t)?e=>(0,o.ir)(t,e):t};function xa(e){e.target.composing=!0}function Sa(e){const t=e.target;t.composing&&(t.composing=!1,wa(t,"input"))}function wa(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const _a={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=ba(i);const c=r||i.props&&"number"===i.props.type;Tc(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():c&&(r=(0,o.He)(r)),e._assign(r)})),n&&Tc(e,"change",(()=>{e.value=e.value.trim()})),t||(Tc(e,"compositionstart",xa),Tc(e,"compositionend",Sa),Tc(e,"change",Sa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},c){if(e._assign=ba(c),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&(0,o.He)(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Ea={deep:!0,created(e,t,n){e._assign=ba(n),Tc(e,"change",(()=>{const t=e._modelValue,n=Ia(e),r=e.checked,i=e._assign;if((0,o.kJ)(t)){const e=(0,o.hq)(t,n),c=-1!==e;if(r&&!c)i(t.concat(n));else if(!r&&c){const n=[...t];n.splice(e,1),i(n)}}else if((0,o.DM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Aa(e,r))}))},mounted:Ca,beforeUpdate(e,t,n){e._assign=ba(n),Ca(e,t,n)}};function Ca(e,{value:t,oldValue:n},r){e._modelValue=t,(0,o.kJ)(t)?e.checked=(0,o.hq)(t,r.props.value)>-1:(0,o.DM)(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=(0,o.WV)(t,Aa(e,!0)))}const ka={created(e,{value:t},n){e.checked=(0,o.WV)(t,n.props.value),e._assign=ba(n),Tc(e,"change",(()=>{e._assign(Ia(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ba(r),t!==n&&(e.checked=(0,o.WV)(t,r.props.value))}},Oa={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=(0,o.DM)(t);Tc(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,o.He)(Ia(e)):Ia(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=ba(r)},mounted(e,{value:t}){Ta(e,t)},beforeUpdate(e,t,n){e._assign=ba(n)},updated(e,{value:t}){Ta(e,t)}};function Ta(e,t){const n=e.multiple;if(!n||(0,o.kJ)(t)||(0,o.DM)(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],c=Ia(i);if(n)(0,o.kJ)(t)?i.selected=(0,o.hq)(t,c)>-1:i.selected=t.has(c);else if((0,o.WV)(Ia(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ia(e){return"_value"in e?e._value:e.value}function Aa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Na={created(e,t,n){Ma(e,t,n,null,"created")},mounted(e,t,n){Ma(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ma(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ma(e,t,n,r,"updated")}};function Ma(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=Oa;break;case"TEXTAREA":i=_a;break;default:switch(n.props&&n.props.type){case"checkbox":i=Ea;break;case"radio":i=ka;break;default:i=_a}}const c=i[o];c&&c(e,t,n,r)}function Da(){_a.getSSRProps=({value:e})=>({value:e}),ka.getSSRProps=({value:e},t)=>{if(t.props&&(0,o.WV)(t.props.value,e))return{checked:!0}},Ea.getSSRProps=({value:e},t)=>{if((0,o.kJ)(e)){if(t.props&&(0,o.hq)(e,t.props.value)>-1)return{checked:!0}}else if((0,o.DM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}}}const Ra=["ctrl","shift","alt","meta"],Pa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ra.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ba=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Pa[t[e]];if(r&&r(n,t))return}return e(n,...r)},Fa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ja=(e,t)=>n=>{if(!("key"in n))return;const r=(0,o.rs)(n.key);return t.some((e=>e===r||Fa[e]===r))?e(n):void 0},Va={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):La(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),La(e,!0),r.enter(e)):r.leave(e,(()=>{La(e,!1)})):La(e,t))},beforeUnmount(e,{value:t}){La(e,t)}};function La(e,t){e.style.display=t?e._vod:"none"}function $a(){Va.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ha=(0,o.l7)({patchProp:Bc},fc);let Ua,za=!1;function Wa(){return Ua||(Ua=hr(Ha))}function Ka(){return Ua=za?Ua:vr(Ha),za=!0,Ua}const Ga=(...e)=>{Wa().render(...e)},Ja=(...e)=>{Ka().hydrate(...e)},Ya=(...e)=>{const t=Wa().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Xa(e);if(!r)return;const i=t._component;(0,o.mf)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const c=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),c},t},qa=(...e)=>{const t=Ka().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Xa(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Xa(e){if((0,o.HD)(e)){const t=document.querySelector(e);return t}return e}let Za=!1;const Qa=()=>{Za||(Za=!0,Da(),$a())};function el(e){throw e}function tl(e){}function nl(e,t,n,r){const o=e,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const rl=Symbol(""),ol=Symbol(""),il=Symbol(""),cl=Symbol(""),al=Symbol(""),ll=Symbol(""),sl=Symbol(""),ul=Symbol(""),fl=Symbol(""),dl=Symbol(""),pl=Symbol(""),hl=Symbol(""),vl=Symbol(""),ml=Symbol(""),gl=Symbol(""),yl=Symbol(""),bl=Symbol(""),xl=Symbol(""),Sl=Symbol(""),wl=Symbol(""),_l=Symbol(""),El=Symbol(""),Cl=Symbol(""),kl=Symbol(""),Ol=Symbol(""),Tl=Symbol(""),Il=Symbol(""),Al=Symbol(""),Nl=Symbol(""),Ml=Symbol(""),Dl=Symbol(""),Rl=Symbol(""),Pl=Symbol(""),Bl=Symbol(""),Fl=Symbol(""),jl=Symbol(""),Vl=Symbol(""),Ll=Symbol(""),$l=Symbol(""),Hl={[rl]:"Fragment",[ol]:"Teleport",[il]:"Suspense",[cl]:"KeepAlive",[al]:"BaseTransition",[ll]:"openBlock",[sl]:"createBlock",[ul]:"createElementBlock",[fl]:"createVNode",[dl]:"createElementVNode",[pl]:"createCommentVNode",[hl]:"createTextVNode",[vl]:"createStaticVNode",[ml]:"resolveComponent",[gl]:"resolveDynamicComponent",[yl]:"resolveDirective",[bl]:"resolveFilter",[xl]:"withDirectives",[Sl]:"renderList",[wl]:"renderSlot",[_l]:"createSlots",[El]:"toDisplayString",[Cl]:"mergeProps",[kl]:"normalizeClass",[Ol]:"normalizeStyle",[Tl]:"normalizeProps",[Il]:"guardReactiveProps",[Al]:"toHandlers",[Nl]:"camelize",[Ml]:"capitalize",[Dl]:"toHandlerKey",[Rl]:"setBlockTracking",[Pl]:"pushScopeId",[Bl]:"popScopeId",[Fl]:"withCtx",[jl]:"unref",[Vl]:"isRef",[Ll]:"withMemo",[$l]:"isMemoSame"};function Ul(e){Object.getOwnPropertySymbols(e).forEach((t=>{Hl[t]=e[t]}))}const zl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Wl(e,t=zl){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function Kl(e,t,n,r,o,i,c,a=!1,l=!1,s=!1,u=zl){return e&&(a?(e.helper(ll),e.helper(Cs(e.inSSR,s))):e.helper(Es(e.inSSR,s)),c&&e.helper(xl)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:c,isBlock:a,disableTracking:l,isComponent:s,loc:u}}function Gl(e,t=zl){return{type:17,loc:t,elements:e}}function Jl(e,t=zl){return{type:15,loc:t,properties:e}}function Yl(e,t){return{type:16,loc:zl,key:(0,o.HD)(e)?ql(e,!0):e,value:t}}function ql(e,t=!1,n=zl,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Xl(e,t=zl){return{type:8,loc:t,children:e}}function Zl(e,t=[],n=zl){return{type:14,loc:n,callee:e,arguments:t}}function Ql(e,t,n=!1,r=!1,o=zl){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function es(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:zl}}function ts(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:zl}}function ns(e){return{type:21,body:e,loc:zl}}const rs=e=>4===e.type&&e.isStatic,os=(e,t)=>e===t||e===(0,o.rs)(t);function is(e){return os(e,"Teleport")?ol:os(e,"Suspense")?il:os(e,"KeepAlive")?cl:os(e,"BaseTransition")?al:void 0}const cs=/^\d|[^\$\w]/,as=e=>!cs.test(e),ls=/[A-Za-z_$\xA0-\uFFFF]/,ss=/[\.\?\w$\xA0-\uFFFF]/,us=/\s+[.[]\s*|\s*[.[]\s+/g,fs=e=>{e=e.trim().replace(us,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let c=0;c<e.length;c++){const a=e.charAt(c);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,o++;else if(!(0===c?ls:ss).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,i=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,i=a;else if("("===a)o++;else if(")"===a){if(c===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null);break}}return!r&&!o},ds=fs;function ps(e,t,n){const r=e.source.slice(t,t+n),o={source:r,start:hs(e.start,e.source,t),end:e.end};return null!=n&&(o.end=hs(e.start,e.source,t+n)),o}function hs(e,t,n=t.length){return vs((0,o.l7)({},e),t,n)}function vs(e,t,n=t.length){let r=0,o=-1;for(let i=0;i<n;i++)10===t.charCodeAt(i)&&(r++,o=i);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function ms(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&((0,o.HD)(t)?i.name===t:t.test(i.name)))return i}}function gs(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&ys(i.arg,t))return i}}function ys(e,t){return!(!e||!rs(e)||e.content!==t)}function bs(e){return e.props.some((e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic)))}function xs(e){return 5===e.type||2===e.type}function Ss(e){return 7===e.type&&"slot"===e.name}function ws(e){return 1===e.type&&3===e.tagType}function _s(e){return 1===e.type&&2===e.tagType}function Es(e,t){return e||t?fl:dl}function Cs(e,t){return e||t?sl:ul}const ks=new Set([Tl,Il]);function Os(e,t=[]){if(e&&!(0,o.HD)(e)&&14===e.type){const n=e.callee;if(!(0,o.HD)(n)&&ks.has(n))return Os(e.arguments[0],t.concat(e))}return[e,t]}function Ts(e,t,n){let r,i,c=13===e.type?e.props:e.arguments[2],a=[];if(c&&!(0,o.HD)(c)&&14===c.type){const e=Os(c);c=e[0],a=e[1],i=a[a.length-1]}if(null==c||(0,o.HD)(c))r=Jl([t]);else if(14===c.type){const e=c.arguments[0];(0,o.HD)(e)||15!==e.type?c.callee===Al?r=Zl(n.helper(Cl),[Jl([t]),c]):c.arguments.unshift(Jl([t])):e.properties.unshift(t),!r&&(r=c)}else if(15===c.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=c.properties.some((e=>4===e.key.type&&e.key.content===n))}e||c.properties.unshift(t),r=c}else r=Zl(n.helper(Cl),[Jl([t]),c]),i&&i.callee===Il&&(i=a[a.length-2]);13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function Is(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function As(e){return 14===e.type&&e.callee===Ll?e.arguments[1].returns:e}function Ns(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Es(r,e.isComponent)),t(ll),t(Cs(r,e.isComponent)))}function Ms(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function Ds(e,t){const n=Ms("MODE",t),r=Ms(e,t);return 3===n?!0===r:!1!==r}function Rs(e,t,n,...r){const o=Ds(e,t);return o}const Ps=/&(gt|lt|amp|apos|quot);/g,Bs={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Fs={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:o.NO,isPreTag:o.NO,isCustomElement:o.NO,decodeEntities:e=>e.replace(Ps,((e,t)=>Bs[t])),onError:el,onWarn:tl,comments:!1};function js(e,t={}){const n=Vs(e,t),r=tu(n);return Wl(Ls(n,0,[]),nu(n,r))}function Vs(e,t){const n=(0,o.l7)({},Fs);let r;for(r in t)n[r]=void 0===t[r]?Fs[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Ls(e,t,n){const r=ru(n),i=r?r.ns:0,c=[];while(!su(e,t,n)){const a=e.source;let l;if(0===t||1===t)if(!e.inVPre&&ou(a,e.options.delimiters[0]))l=Zs(e,t);else if(0===t&&"<"===a[0])if(1===a.length)lu(e,5,1);else if("!"===a[1])ou(a,"\x3c!--")?l=Us(e):ou(a,"<!DOCTYPE")?l=zs(e):ou(a,"<![CDATA[")?0!==i?l=Hs(e,n):(lu(e,1),l=zs(e)):(lu(e,11),l=zs(e));else if("/"===a[1])if(2===a.length)lu(e,5,2);else{if(">"===a[2]){lu(e,14,2),iu(e,3);continue}if(/[a-z]/i.test(a[2])){lu(e,23),Gs(e,1,r);continue}lu(e,12,2),l=zs(e)}else/[a-z]/i.test(a[1])?(l=Ws(e,n),Ds("COMPILER_NATIVE_TEMPLATE",e)&&l&&"template"===l.tag&&!l.props.some((e=>7===e.type&&Ks(e.name)))&&(l=l.children)):"?"===a[1]?(lu(e,21,1),l=zs(e)):lu(e,12,1);if(l||(l=Qs(e,t)),(0,o.kJ)(l))for(let e=0;e<l.length;e++)$s(c,l[e]);else $s(c,l)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<c.length;n++){const r=c[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(a=!0,c[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=c[n-1],o=c[n+1];!e||!o||t&&(3===e.type||3===o.type||1===e.type&&1===o.type&&/[\r\n]/.test(r.content))?(a=!0,c[n]=null):r.content=" "}}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=c[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?c.filter(Boolean):c}function $s(e,t){if(2===t.type){const n=ru(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Hs(e,t){iu(e,9);const n=Ls(e,3,t);return 0===e.source.length?lu(e,6):iu(e,3),n}function Us(e){const t=tu(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&lu(e,0),r[1]&&lu(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let o=1,i=0;while(-1!==(i=t.indexOf("\x3c!--",o)))iu(e,i-o+1),i+4<t.length&&lu(e,16),o=i+1;iu(e,r.index+r[0].length-o+1)}else n=e.source.slice(4),iu(e,e.source.length),lu(e,7);return{type:3,content:n,loc:nu(e,t)}}function zs(e){const t=tu(e),n="?"===e.source[1]?1:2;let r;const o=e.source.indexOf(">");return-1===o?(r=e.source.slice(n),iu(e,e.source.length)):(r=e.source.slice(n,o),iu(e,o+1)),{type:3,content:r,loc:nu(e,t)}}function Ws(e,t){const n=e.inPre,r=e.inVPre,o=ru(t),i=Gs(e,0,o),c=e.inPre&&!n,a=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return c&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const l=e.options.getTextMode(i,o),s=Ls(e,l,t);t.pop();{const t=i.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&Rs("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=nu(e,i.loc.end);t.value={type:2,content:n.source,loc:n}}}if(i.children=s,uu(e.source,i.tag))Gs(e,1,o);else if(lu(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=s[0];t&&ou(t.loc.source,"\x3c!--")&&lu(e,8)}return i.loc=nu(e,i.loc.start),c&&(e.inPre=!1),a&&(e.inVPre=!1),i}const Ks=(0,o.fY)("if,else,else-if,for,slot");function Gs(e,t,n){const r=tu(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),c=i[1],a=e.options.getNamespace(c,n);iu(e,i[0].length),cu(e);const l=tu(e),s=e.source;e.options.isPreTag(c)&&(e.inPre=!0);let u=Ys(e,t);0===t&&!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,(0,o.l7)(e,l),e.source=s,u=Ys(e,t).filter((e=>"v-pre"!==e.name)));let f=!1;if(0===e.source.length?lu(e,9):(f=ou(e.source,"/>"),1===t&&f&&lu(e,4),iu(e,f?2:1)),1===t)return;let d=0;return e.inVPre||("slot"===c?d=2:"template"===c?u.some((e=>7===e.type&&Ks(e.name)))&&(d=3):Js(c,u,e)&&(d=1)),{type:1,ns:a,tag:c,tagType:d,props:u,isSelfClosing:f,children:[],loc:nu(e,r),codegenNode:void 0}}function Js(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||is(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const e=t[o];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if(Rs("COMPILER_IS_ON_ELEMENT",n,e.loc))return!0}}else{if("is"===e.name)return!0;if("bind"===e.name&&ys(e.arg,"is")&&Rs("COMPILER_IS_ON_ELEMENT",n,e.loc))return!0}}}function Ys(e,t){const n=[],r=new Set;while(e.source.length>0&&!ou(e.source,">")&&!ou(e.source,"/>")){if(ou(e.source,"/")){lu(e,22),iu(e,1),cu(e);continue}1===t&&lu(e,3);const o=qs(e,r);6===o.type&&o.value&&"class"===o.name&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&lu(e,15),cu(e)}return n}function qs(e,t){const n=tu(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source),o=r[0];t.has(o)&&lu(e,2),t.add(o),"="===o[0]&&lu(e,19);{const t=/["'<]/g;let n;while(n=t.exec(o))lu(e,17,n.index)}let i;iu(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(cu(e),iu(e,1),cu(e),i=Xs(e),i||lu(e,13));const c=nu(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let r,a=ou(o,"."),l=t[1]||(a||ou(o,":")?"bind":ou(o,"@")?"on":"slot");if(t[2]){const i="slot"===l,c=o.lastIndexOf(t[2]),a=nu(e,au(e,n,c),au(e,n,c+t[2].length+(i&&t[3]||"").length));let s=t[2],u=!0;s.startsWith("[")?(u=!1,s.endsWith("]")?s=s.slice(1,s.length-1):(lu(e,27),s=s.slice(1))):i&&(s+=t[3]||""),r={type:4,content:s,isStatic:u,constType:u?3:0,loc:a}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=hs(e.start,i.content),e.source=e.source.slice(1,-1)}const s=t[3]?t[3].slice(1).split("."):[];return a&&s.push("prop"),"bind"===l&&r&&s.includes("sync")&&Rs("COMPILER_V_BIND_SYNC",e,c,r.loc.source)&&(l="model",s.splice(s.indexOf("sync"),1)),{type:7,name:l,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:r,modifiers:s,loc:c}}return!e.inVPre&&ou(o,"v-")&&lu(e,26),{type:6,name:o,value:i&&{type:2,content:i.content,loc:i.loc},loc:c}}function Xs(e){const t=tu(e);let n;const r=e.source[0],o='"'===r||"'"===r;if(o){iu(e,1);const t=e.source.indexOf(r);-1===t?n=eu(e,e.source.length,4):(n=eu(e,t,4),iu(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let o;while(o=r.exec(t[0]))lu(e,18,o.index);n=eu(e,t[0].length,4)}return{content:n,isQuoted:o,loc:nu(e,t)}}function Zs(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(-1===o)return void lu(e,25);const i=tu(e);iu(e,n.length);const c=tu(e),a=tu(e),l=o-n.length,s=e.source.slice(0,l),u=eu(e,l,t),f=u.trim(),d=u.indexOf(f);d>0&&vs(c,s,d);const p=l-(u.length-f.length-d);return vs(a,s,p),iu(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:nu(e,c,a)},loc:nu(e,i)}}function Qs(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let c=0;c<n.length;c++){const t=e.source.indexOf(n[c],1);-1!==t&&r>t&&(r=t)}const o=tu(e),i=eu(e,r,t);return{type:2,content:i,loc:nu(e,o)}}function eu(e,t,n){const r=e.source.slice(0,t);return iu(e,t),2===n||3===n||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===n)}function tu(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function nu(e,t,n){return n=n||tu(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function ru(e){return e[e.length-1]}function ou(e,t){return e.startsWith(t)}function iu(e,t){const{source:n}=e;vs(e,n,t),e.source=n.slice(t)}function cu(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&iu(e,t[0].length)}function au(e,t,n){return hs(t,e.originalSource.slice(t.offset,n),n)}function lu(e,t,n,r=tu(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(nl(t,{start:r,end:r,source:""}))}function su(e,t,n){const r=e.source;switch(t){case 0:if(ou(r,"</"))for(let e=n.length-1;e>=0;--e)if(uu(r,n[e].tag))return!0;break;case 1:case 2:{const e=ru(n);if(e&&uu(r,e.tag))return!0;break}case 3:if(ou(r,"]]>"))return!0;break}return!r}function uu(e,t){return ou(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function fu(e,t){pu(e,t,du(e,e.children[0]))}function du(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!_s(t)}function pu(e,t,n=!1){const{children:r}=e,i=r.length;let c=0;for(let o=0;o<r.length;o++){const e=r[o];if(1===e.type&&0===e.tagType){const r=n?0:hu(e,t);if(r>0){if(r>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),c++;continue}}else{const n=e.codegenNode;if(13===n.type){const r=bu(n);if((!r||512===r||1===r)&&gu(e,t)>=2){const r=yu(e);r&&(n.props=t.hoist(r))}n.dynamicProps&&(n.dynamicProps=t.hoist(n.dynamicProps))}}}else 12===e.type&&hu(e.content,t)>=2&&(e.codegenNode=t.hoist(e.codegenNode),c++);if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,pu(e,t),n&&t.scopes.vSlot--}else if(11===e.type)pu(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)pu(e.branches[n],t,1===e.branches[n].children.length)}c&&t.transformHoist&&t.transformHoist(r,t,e),c&&c===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,o.kJ)(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Gl(e.codegenNode.children)))}function hu(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;const c=bu(i);if(c)return n.set(e,0),0;{let r=3;const o=gu(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=hu(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=hu(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}return i.isBlock&&(t.removeHelper(ll),t.removeHelper(Cs(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Es(t.inSSR,i.isComponent))),n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return hu(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if((0,o.HD)(r)||(0,o.yk)(r))continue;const i=hu(r,t);if(0===i)return 0;i<a&&(a=i)}return a;default:return 0}}const vu=new Set([kl,Ol,Tl,Il]);function mu(e,t){if(14===e.type&&!(0,o.HD)(e.callee)&&vu.has(e.callee)){const n=e.arguments[0];if(4===n.type)return hu(n,t);if(14===n.type)return mu(n,t)}return 0}function gu(e,t){let n=3;const r=yu(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],c=hu(o,t);if(0===c)return c;let a;if(c<n&&(n=c),a=4===i.type?hu(i,t):14===i.type?mu(i,t):0,0===a)return a;a<n&&(n=a)}}return n}function yu(e){const t=e.codegenNode;if(13===t.type)return t.props}function bu(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function xu(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:c=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:s=o.dG,isCustomElement:u=o.dG,expressionPlugins:f=[],scopeId:d=null,slotted:p=!0,ssr:h=!1,inSSR:v=!1,ssrCssVars:m="",bindingMetadata:g=o.kT,inline:y=!1,isTS:b=!1,onError:x=el,onWarn:S=tl,compatConfig:w}){const _=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={selfName:_&&(0,o.kC)((0,o._A)(_[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:c,directiveTransforms:a,transformHoist:l,isBuiltInComponent:s,isCustomElement:u,expressionPlugins:f,scopeId:d,slotted:p,ssr:h,inSSR:v,ssrCssVars:m,bindingMetadata:g,inline:y,isTS:b,onError:x,onWarn:S,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){const t=E.helpers.get(e);if(t){const n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString(e){return`_${Hl[E.helper(e)]}`},replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,o.HD)(e)&&(e=ql(e)),E.hoists.push(e);const t=ql(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return ts(E.cached++,e,t)}};return E.filters=new Set,E}function Su(e,t){const n=xu(e,t);Eu(e,n),t.hoistStatic&&fu(e,n),t.ssr||wu(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function wu(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(du(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Ns(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;o.m[64];0,e.codegenNode=Kl(t,n(rl),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}function _u(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];(0,o.HD)(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Eu(i,t))}}function Eu(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let c=0;c<n.length;c++){const i=n[c](e,t);if(i&&((0,o.kJ)(i)?r.push(...i):r.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(pl);break;case 5:t.ssr||t.helper(El);break;case 9:for(let n=0;n<e.branches.length;n++)Eu(e.branches[n],t);break;case 10:case 11:case 1:case 0:_u(e,t);break}t.currentNode=e;let i=r.length;while(i--)r[i]()}function Cu(e,t){const n=(0,o.HD)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(Ss))return;const i=[];for(let c=0;c<o.length;c++){const a=o[c];if(7===a.type&&n(a.name)){o.splice(c,1),c--;const n=t(e,a,r);n&&i.push(n)}}return i}}}const ku="/*#__PURE__*/";function Ou(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:c=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:s="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:c,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:s,ssr:u,isTS:f,inSSR:d,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Hl[e]}`},push(e,t){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e))}return p}function Tu(e,t={}){const n=Ou(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:c,deindent:a,newline:l,scopeId:s,ssr:u}=n,f=e.helpers.length>0,d=!i&&"module"!==r,p=n;Iu(e,p);const h=u?"ssrRender":"render",v=u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],m=v.join(", ");if(o(`function ${h}(${m}) {`),c(),d&&(o("with (_ctx) {"),c(),f&&(o(`const { ${e.helpers.map((e=>`${Hl[e]}: _${Hl[e]}`)).join(", ")} } = _Vue`),o("\n"),l())),e.components.length&&(Au(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Au(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Au(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n"),l()),u||o("return "),e.codegenNode?Ru(e.codegenNode,n):o("null"),d&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Iu(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:c,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,s=a,u=e=>`${Hl[e]}: _${Hl[e]}`;if(e.helpers.length>0&&(o(`const _Vue = ${s}\n`),e.hoists.length)){const t=[fl,dl,pl,hl,vl].filter((t=>e.helpers.includes(t))).map(u).join(", ");o(`const { ${t} } = _Vue\n`)}Nu(e.hoists,t),i(),o("return ")}function Au(e,t,{helper:n,push:r,newline:o,isTS:i}){const c=n("filter"===t?bl:"component"===t?ml:yl);for(let a=0;a<e.length;a++){let n=e[a];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),r(`const ${Is(n,t)} = ${c}(${JSON.stringify(n)}${l?", true":""})${i?"!":""}`),a<e.length-1&&o()}}function Nu(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:c}=t;r();for(let a=0;a<e.length;a++){const o=e[a];o&&(n(`const _hoisted_${a+1} = `),Ru(o,t),r())}t.pure=!1}function Mu(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Du(e,t,n),n&&t.deindent(),t.push("]")}function Du(e,t,n=!1,r=!0){const{push:i,newline:c}=t;for(let a=0;a<e.length;a++){const l=e[a];(0,o.HD)(l)?i(l):(0,o.kJ)(l)?Mu(l,t):Ru(l,t),a<e.length-1&&(n?(r&&i(","),c()):r&&i(", "))}}function Ru(e,t){if((0,o.HD)(e))t.push(e);else if((0,o.yk)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Ru(e.codegenNode,t);break;case 2:Pu(e,t);break;case 4:Bu(e,t);break;case 5:Fu(e,t);break;case 12:Ru(e.codegenNode,t);break;case 8:ju(e,t);break;case 3:Lu(e,t);break;case 13:$u(e,t);break;case 14:Uu(e,t);break;case 15:zu(e,t);break;case 17:Wu(e,t);break;case 18:Ku(e,t);break;case 19:Gu(e,t);break;case 20:Ju(e,t);break;case 21:Du(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:0}}function Pu(e,t){t.push(JSON.stringify(e.content),e)}function Bu(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Fu(e,t){const{push:n,helper:r,pure:o}=t;o&&n(ku),n(`${r(El)}(`),Ru(e.content,t),n(")")}function ju(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];(0,o.HD)(r)?t.push(r):Ru(r,t)}}function Vu(e,t){const{push:n}=t;if(8===e.type)n("["),ju(e,t),n("]");else if(e.isStatic){const t=as(e.content)?e.content:JSON.stringify(e.content);n(t,e)}else n(`[${e.content}]`,e)}function Lu(e,t){const{push:n,helper:r,pure:o}=t;o&&n(ku),n(`${r(pl)}(${JSON.stringify(e.content)})`,e)}function $u(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:c,children:a,patchFlag:l,dynamicProps:s,directives:u,isBlock:f,disableTracking:d,isComponent:p}=e;u&&n(r(xl)+"("),f&&n(`(${r(ll)}(${d?"true":""}), `),o&&n(ku);const h=f?Cs(t.inSSR,p):Es(t.inSSR,p);n(r(h)+"(",e),Du(Hu([i,c,a,l,s]),t),n(")"),f&&n(")"),u&&(n(", "),Ru(u,t),n(")"))}function Hu(e){let t=e.length;while(t--)if(null!=e[t])break;return e.slice(0,t+1).map((e=>e||"null"))}function Uu(e,t){const{push:n,helper:r,pure:i}=t,c=(0,o.HD)(e.callee)?e.callee:r(e.callee);i&&n(ku),n(c+"(",e),Du(e.arguments,t),n(")")}function zu(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:c}=e;if(!c.length)return void n("{}",e);const a=c.length>1||!1;n(a?"{":"{ "),a&&r();for(let l=0;l<c.length;l++){const{key:e,value:r}=c[l];Vu(e,t),n(": "),Ru(r,t),l<c.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}function Wu(e,t){Mu(e.elements,t)}function Ku(e,t){const{push:n,indent:r,deindent:i}=t,{params:c,returns:a,body:l,newline:s,isSlot:u}=e;u&&n(`_${Hl[Fl]}(`),n("(",e),(0,o.kJ)(c)?Du(c,t):c&&Ru(c,t),n(") => "),(s||l)&&(n("{"),r()),a?(s&&n("return "),(0,o.kJ)(a)?Mu(a,t):Ru(a,t)):l&&Ru(l,t),(s||l)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Gu(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:c,indent:a,deindent:l,newline:s}=t;if(4===n.type){const e=!as(n.content);e&&c("("),Bu(n,t),e&&c(")")}else c("("),Ru(n,t),c(")");i&&a(),t.indentLevel++,i||c(" "),c("? "),Ru(r,t),t.indentLevel--,i&&s(),i||c(" "),c(": ");const u=19===o.type;u||t.indentLevel++,Ru(o,t),u||t.indentLevel--,i&&l(!0)}function Ju(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:c}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Rl)}(-1),`),c()),n(`_cache[${e.index}] = `),Ru(e.value,t),e.isVNode&&(n(","),c(),n(`${r(Rl)}(1),`),c(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const Yu=Cu(/^(if|else|else-if)$/,((e,t,n)=>qu(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),c=0;while(i-- >=0){const e=o[i];e&&9===e.type&&(c+=e.branches.length)}return()=>{if(r)e.codegenNode=Zu(t,c,n);else{const r=ef(e.codegenNode);r.alternate=Zu(t,c+e.branches.length-1,n)}}}))));function qu(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(nl(28,t.loc)),t.exp=ql("true",!1,r)}if("if"===t.name){const o=Xu(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);while(i-- >=-1){const c=o[i];if(!c||2!==c.type||c.content.trim().length){if(c&&9===c.type){"else-if"===t.name&&void 0===c.branches[c.branches.length-1].condition&&n.onError(nl(30,e.loc)),n.removeNode();const o=Xu(e,t);0,c.branches.push(o);const i=r&&r(c,o,!1);Eu(o,n),i&&i(),n.currentNode=null}else n.onError(nl(30,e.loc));break}n.removeNode(c)}}}function Xu(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||ms(e,"for")?[e]:e.children,userKey:gs(e,"key")}}function Zu(e,t,n){return e.condition?es(e.condition,Qu(e,t,n),Zl(n.helper(pl),['""',"true"])):Qu(e,t,n)}function Qu(e,t,n){const{helper:r}=n,i=Yl("key",ql(`${t}`,!1,zl,2)),{children:c}=e,a=c[0],l=1!==c.length||1!==a.type;if(l){if(1===c.length&&11===a.type){const e=a.codegenNode;return Ts(e,i,n),e}{let t=64;o.m[64];return Kl(n,r(rl),Jl([i]),c,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=As(e);return 13===t.type&&Ns(t,n),Ts(t,i,n),e}}function ef(e){while(1)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}const tf=Cu("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return nf(e,t,n,(t=>{const i=Zl(r(Sl),[t.source]),c=ms(e,"memo"),a=gs(e,"key"),l=a&&(6===a.type?ql(a.value.content,!0):a.exp),s=a?Yl("key",l):null,u=4===t.source.type&&t.source.constType>0,f=u?64:a?128:256;return t.codegenNode=Kl(n,r(rl),void 0,i,f+"",void 0,void 0,!0,!u,!1,e.loc),()=>{let a;const f=ws(e),{children:d}=t;const p=1!==d.length||1!==d[0].type,h=_s(e)?e:f&&1===e.children.length&&_s(e.children[0])?e.children[0]:null;if(h?(a=h.codegenNode,f&&s&&Ts(a,s,n)):p?a=Kl(n,r(rl),s?Jl([s]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(a=d[0].codegenNode,f&&s&&Ts(a,s,n),a.isBlock!==!u&&(a.isBlock?(o(ll),o(Cs(n.inSSR,a.isComponent))):o(Es(n.inSSR,a.isComponent))),a.isBlock=!u,a.isBlock?(r(ll),r(Cs(n.inSSR,a.isComponent))):r(Es(n.inSSR,a.isComponent))),c){const e=Ql(sf(t.parseResult,[ql("_cached")]));e.body=ns([Xl(["const _memo = (",c.exp,")"]),Xl(["if (_cached",...l?[" && _cached.key === ",l]:[],` && ${n.helperString($l)}(_cached, _memo)) return _cached`]),Xl(["const _item = ",a]),ql("_item.memo = _memo"),ql("return _item")]),i.arguments.push(e,ql("_cache"),ql(String(n.cached++)))}else i.arguments.push(Ql(sf(t.parseResult),a,!0))}}))}));function nf(e,t,n,r){if(!t.exp)return void n.onError(nl(31,t.loc));const o=af(t.exp,n);if(!o)return void n.onError(nl(32,t.loc));const{addIdentifiers:i,removeIdentifiers:c,scopes:a}=n,{source:l,value:s,key:u,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:s,keyAlias:u,objectIndexAlias:f,parseResult:o,children:ws(e)?e.children:[e]};n.replaceNode(d),a.vFor++;const p=r&&r(d);return()=>{a.vFor--,p&&p()}}const rf=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,of=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,cf=/^\(|\)$/g;function af(e,t){const n=e.loc,r=e.content,o=r.match(rf);if(!o)return;const[,i,c]=o,a={source:lf(n,c.trim(),r.indexOf(c,i.length)),value:void 0,key:void 0,index:void 0};let l=i.trim().replace(cf,"").trim();const s=i.indexOf(l),u=l.match(of);if(u){l=l.replace(of,"").trim();const e=u[1].trim();let t;if(e&&(t=r.indexOf(e,s+l.length),a.key=lf(n,e,t)),u[2]){const o=u[2].trim();o&&(a.index=lf(n,o,r.indexOf(o,a.key?t+e.length:s+l.length)))}}return l&&(a.value=lf(n,l,s)),a}function lf(e,t,n){return ql(t,!1,ps(e,n,t.length))}function sf({value:e,key:t,index:n},r=[]){return uf([e,t,n,...r])}function uf(e){let t=e.length;while(t--)if(e[t])break;return e.slice(0,t+1).map(((e,t)=>e||ql("_".repeat(t+1),!1)))}const ff=ql("undefined",!1),df=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ms(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},pf=(e,t,n)=>Ql(e,t,!1,!0,t.length?t[0].loc:n);function hf(e,t,n=pf){t.helper(Fl);const{children:r,loc:o}=e,i=[],c=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=ms(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!rs(e)&&(a=!0),i.push(Yl(e||ql("default",!0),n(t,r,o)))}let s=!1,u=!1;const f=[],d=new Set;for(let v=0;v<r.length;v++){const e=r[v];let o;if(!ws(e)||!(o=ms(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(l){t.onError(nl(37,o.loc));break}s=!0;const{children:p,loc:h}=e,{arg:m=ql("default",!0),exp:g,loc:y}=o;let b;rs(m)?b=m?m.content:"default":a=!0;const x=n(g,p,h);let S,w,_;if(S=ms(e,"if"))a=!0,c.push(es(S.exp,vf(m,x),ff));else if(w=ms(e,/^else(-if)?$/,!0)){let e,n=v;while(n--)if(e=r[n],3!==e.type)break;if(e&&ws(e)&&ms(e,"if")){r.splice(v,1),v--;let e=c[c.length-1];while(19===e.alternate.type)e=e.alternate;e.alternate=w.exp?es(w.exp,vf(m,x),ff):vf(m,x)}else t.onError(nl(30,w.loc))}else if(_=ms(e,"for")){a=!0;const e=_.parseResult||af(_.exp,t);e?c.push(Zl(t.helper(Sl),[e.source,Ql(sf(e),vf(m,x),!0)])):t.onError(nl(32,_.loc))}else{if(b){if(d.has(b)){t.onError(nl(38,y));continue}d.add(b),"default"===b&&(u=!0)}i.push(Yl(m,x))}}if(!l){const e=(e,r)=>{const i=n(e,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),Yl("default",i)};s?f.length&&f.some((e=>gf(e)))&&(u?t.onError(nl(39,f[0].loc)):i.push(e(void 0,f))):i.push(e(void 0,r))}const p=a?2:mf(e.children)?3:1;let h=Jl(i.concat(Yl("_",ql(p+"",!1))),o);return c.length&&(h=Zl(t.helper(_l),[h,Gl(c)])),{slots:h,hasDynamicSlots:a}}function vf(e,t){return Jl([Yl("name",e),Yl("fn",t)])}function mf(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||mf(n.children))return!0;break;case 9:if(mf(n.branches))return!0;break;case 10:case 11:if(mf(n.children))return!0;break}}return!1}function gf(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():gf(e.content))}const yf=new WeakMap,bf=(e,t)=>function(){if(e=t.currentNode,1!==e.type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let c=i?xf(e,t):`"${n}"`;const a=(0,o.Kn)(c)&&c.callee===gl;let l,s,u,f,d,p,h=0,v=a||c===ol||c===il||!i&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=Sf(e,t);l=n.props,h=n.patchFlag,d=n.dynamicPropNames;const r=n.directives;p=r&&r.length?Gl(r.map((e=>Ef(e,t)))):void 0,n.shouldUseBlock&&(v=!0)}if(e.children.length>0){c===cl&&(v=!0,h|=1024);const n=i&&c!==ol&&c!==cl;if(n){const{slots:n,hasDynamicSlots:r}=hf(e,t);s=n,r&&(h|=1024)}else if(1===e.children.length&&c!==ol){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===hu(n,t)&&(h|=1),s=o||2===r?n:e.children}else s=e.children}0!==h&&(u=String(h),d&&d.length&&(f=Cf(d))),e.codegenNode=Kl(t,c,l,s,u,f,p,!!v,!1,i,e.loc)};function xf(e,t,n=!1){let{tag:r}=e;const o=kf(r),i=gs(e,"is");if(i)if(o||Ds("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&ql(i.value.content,!0):i.exp;if(e)return Zl(t.helper(gl),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const c=!o&&ms(e,"is");if(c&&c.exp)return Zl(t.helper(gl),[c.exp]);const a=is(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(ml),t.components.add(r),Is(r,"component"))}function Sf(e,t,n=e.props,r=!1){const{tag:i,loc:c,children:a}=e,l=1===e.tagType;let s=[];const u=[],f=[],d=a.length>0;let p=!1,h=0,v=!1,m=!1,g=!1,y=!1,b=!1,x=!1;const S=[],w=({key:e,value:n})=>{if(rs(e)){const r=e.content,i=(0,o.F7)(r);if(l||!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||(0,o.Gg)(r)||(y=!0),i&&(0,o.Gg)(r)&&(x=!0),20===n.type||(4===n.type||8===n.type)&&hu(n,t)>0)return;"ref"===r?v=!0:"class"===r?m=!0:"style"===r?g=!0:"key"===r||S.includes(r)||S.push(r),!l||"class"!==r&&"style"!==r||S.includes(r)||S.push(r)}else b=!0};for(let E=0;E<n.length;E++){const a=n[E];if(6===a.type){const{loc:e,name:n,value:r}=a;let o=!0;if("ref"===n&&(v=!0,t.scopes.vFor>0&&s.push(Yl(ql("ref_for",!0),ql("true")))),"is"===n&&(kf(i)||r&&r.content.startsWith("vue:")||Ds("COMPILER_IS_ON_ELEMENT",t)))continue;s.push(Yl(ql(n,!0,ps(e,0,n.length)),ql(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:h,exp:v,loc:m}=a,g="bind"===n,y="on"===n;if("slot"===n){l||t.onError(nl(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&ys(h,"is")&&(kf(i)||Ds("COMPILER_IS_ON_ELEMENT",t)))continue;if(y&&r)continue;if((g&&ys(h,"key")||y&&d&&ys(h,"vue:before-update"))&&(p=!0),g&&ys(h,"ref")&&t.scopes.vFor>0&&s.push(Yl(ql("ref_for",!0),ql("true"))),!h&&(g||y)){if(b=!0,v)if(s.length&&(u.push(Jl(wf(s),c)),s=[]),g){if(Ds("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(v);continue}u.push(v)}else u.push({type:14,loc:m,callee:t.helper(Al),arguments:[v]});else t.onError(nl(g?34:35,m));continue}const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:i}=x(a,e,t);!r&&n.forEach(w),s.push(...n),i&&(f.push(a),(0,o.yk)(i)&&yf.set(a,i))}else f.push(a),d&&(p=!0)}}let _;if(u.length?(s.length&&u.push(Jl(wf(s),c)),_=u.length>1?Zl(t.helper(Cl),u,c):u[0]):s.length&&(_=Jl(wf(s),c)),b?h|=16:(m&&!l&&(h|=2),g&&!l&&(h|=4),S.length&&(h|=8),y&&(h|=32)),p||0!==h&&32!==h||!(v||x||f.length>0)||(h|=512),!t.inSSR&&_)switch(_.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<_.properties.length;t++){const o=_.properties[t].key;rs(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=_.properties[e],i=_.properties[n];r?_=Zl(t.helper(Tl),[_]):(o&&!rs(o.value)&&(o.value=Zl(t.helper(kl),[o.value])),!i||rs(i.value)||!g&&17!==i.value.type||(i.value=Zl(t.helper(Ol),[i.value])));break;case 14:break;default:_=Zl(t.helper(Tl),[Zl(t.helper(Il),[_])]);break}return{props:_,directives:f,patchFlag:h,dynamicPropNames:S,shouldUseBlock:p}}function wf(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const c=i.key.content,a=t.get(c);a?("style"===c||"class"===c||(0,o.F7)(c))&&_f(a,i):(t.set(c,i),n.push(i))}return n}function _f(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Gl([e.value,t.value],e.loc)}function Ef(e,t){const n=[],r=yf.get(e);r?n.push(t.helperString(r)):(t.helper(yl),t.directives.add(e.name),n.push(Is(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ql("true",!1,o);n.push(Jl(e.modifiers.map((e=>Yl(e,t))),o))}return Gl(n,e.loc)}function Cf(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function kf(e){return"component"===e||"Component"===e}const Of=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},Tf=/-(\w)/g,If=Of((e=>e.replace(Tf,((e,t)=>t?t.toUpperCase():"")))),Af=(e,t)=>{if(_s(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=Nf(e,t),c=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(c[2]=i,a=3),n.length&&(c[3]=Ql([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),c.splice(a),e.codegenNode=Zl(t.helper(wl),c,r)}};function Nf(e,t){let n,r='"default"';const o=[];for(let i=0;i<e.props.length;i++){const t=e.props[i];6===t.type?t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=If(t.name),o.push(t))):"bind"===t.name&&ys(t.arg,"name")?t.exp&&(r=t.exp):("bind"===t.name&&t.arg&&rs(t.arg)&&(t.arg.content=If(t.arg.content)),o.push(t))}if(o.length>0){const{props:r,directives:i}=Sf(e,t,o);n=r,i.length&&t.onError(nl(36,i[0].loc))}return{slotName:r,slotProps:n}}const Mf=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Df=(e,t,n,r)=>{const{loc:i,modifiers:c,arg:a}=e;let l;if(e.exp||c.length||n.onError(nl(35,i)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=ql((0,o.hR)((0,o._A)(e)),!0,a.loc)}else l=Xl([`${n.helperString(Dl)}(`,a,")"]);else l=a,l.children.unshift(`${n.helperString(Dl)}(`),l.children.push(")");let s=e.exp;s&&!s.content.trim()&&(s=void 0);let u=n.cacheHandlers&&!s&&!n.inVOnce;if(s){const e=ds(s.content),t=!(e||Mf.test(s.content)),n=s.content.includes(";");0,(t||u&&e)&&(s=Xl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,s,n?"}":")"]))}let f={props:[Yl(l,s||ql("() => {}",!1,i))]};return r&&(f=r(f)),u&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach((e=>e.key.isHandlerKey=!0)),f},Rf=(e,t,n)=>{const{exp:r,modifiers:i,loc:c}=e,a=e.arg;return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),i.includes("camel")&&(4===a.type?a.isStatic?a.content=(0,o._A)(a.content):a.content=`${n.helperString(Nl)}(${a.content})`:(a.children.unshift(`${n.helperString(Nl)}(`),a.children.push(")"))),n.inSSR||(i.includes("prop")&&Pf(a,"."),i.includes("attr")&&Pf(a,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(nl(34,c)),{props:[Yl(a,ql("",!0,c))]}):{props:[Yl(a,r)]}},Pf=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Bf=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(xs(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!xs(i)){r=void 0;break}r||(r=n[e]={type:8,loc:t.loc,children:[t]}),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(xs(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==hu(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Zl(t.helper(hl),o)}}}}},Ff=new WeakSet,jf=(e,t)=>{if(1===e.type&&ms(e,"once",!0)){if(Ff.has(e)||t.inVOnce)return;return Ff.add(e),t.inVOnce=!0,t.helper(Rl),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Vf=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(nl(41,e.loc)),Lf();const i=r.loc.source,c=4===r.type?r.content:i;n.bindingMetadata[i];const a=!1;if(!c.trim()||!ds(c)&&!a)return n.onError(nl(42,r.loc)),Lf();const l=o||ql("modelValue",!0),s=o?rs(o)?`onUpdate:${o.content}`:Xl(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;const f=n.isTS?"($event: any)":"$event";u=Xl([`${f} => ((`,r,") = $event)"]);const d=[Yl(l,e.exp),Yl(s,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(as(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?rs(o)?`${o.content}Modifiers`:Xl([o,' + "Modifiers"']):"modelModifiers";d.push(Yl(n,ql(`{ ${t} }`,!1,e.loc,2)))}return Lf(d)};function Lf(e=[]){return{props:e}}const $f=/[\w).+\-_$\]]/,Hf=(e,t)=>{Ds("COMPILER_FILTER",t)&&(5===e.type&&Uf(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Uf(e.exp,t)})))};function Uf(e,t){if(4===e.type)zf(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"===typeof r&&(4===r.type?zf(r,t):8===r.type?Uf(e,t):5===r.type&&Uf(r.content,t))}}function zf(e,t){const n=e.content;let r,o,i,c,a=!1,l=!1,s=!1,u=!1,f=0,d=0,p=0,h=0,v=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),a)39===r&&92!==o&&(a=!1);else if(l)34===r&&92!==o&&(l=!1);else if(s)96===r&&92!==o&&(s=!1);else if(u)47===r&&92!==o&&(u=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||f||d||p){switch(r){case 34:l=!0;break;case 39:a=!0;break;case 96:s=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--;break}if(47===r){let e,t=i-1;for(;t>=0;t--)if(e=n.charAt(t)," "!==e)break;e&&$f.test(e)||(u=!0)}}else void 0===c?(h=i+1,c=n.slice(0,i).trim()):m();function m(){v.push(n.slice(h,i).trim()),h=i+1}if(void 0===c?c=n.slice(0,i).trim():0!==h&&m(),v.length){for(i=0;i<v.length;i++)c=Wf(c,v[i],t);e.content=c}}function Wf(e,t,n){n.helper(bl);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Is(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Is(o,"filter")}(${e}${")"!==i?","+i:i}`}}const Kf=new WeakSet,Gf=(e,t)=>{if(1===e.type){const n=ms(e,"memo");if(!n||Kf.has(e))return;return Kf.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Ns(r,t),e.codegenNode=Zl(t.helper(Ll),[n.exp,Ql(void 0,r),"_cache",String(t.cached++)]))}}};function Jf(e){return[[jf,Yu,Gf,tf,Hf,Af,bf,df,Bf],{on:Df,bind:Rf,model:Vf}]}function Yf(e,t={}){const n=t.onError||el,r="module"===t.mode;!0===t.prefixIdentifiers?n(nl(46)):r&&n(nl(47));const i=!1;t.cacheHandlers&&n(nl(48)),t.scopeId&&!r&&n(nl(49));const c=(0,o.HD)(e)?js(e,t):e,[a,l]=Jf();return Su(c,(0,o.l7)({},t,{prefixIdentifiers:i,nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},l,t.directiveTransforms||{})})),Tu(c,(0,o.l7)({},t,{prefixIdentifiers:i}))}const qf=()=>({props:[]}),Xf=Symbol(""),Zf=Symbol(""),Qf=Symbol(""),ed=Symbol(""),td=Symbol(""),nd=Symbol(""),rd=Symbol(""),od=Symbol(""),id=Symbol(""),cd=Symbol("");let ad;function ld(e,t=!1){return ad||(ad=document.createElement("div")),t?(ad.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ad.children[0].getAttribute("foo")):(ad.innerHTML=e,ad.textContent)}Ul({[Xf]:"vModelRadio",[Zf]:"vModelCheckbox",[Qf]:"vModelText",[ed]:"vModelSelect",[td]:"vModelDynamic",[nd]:"withModifiers",[rd]:"withKeys",[od]:"vShow",[id]:"Transition",[cd]:"TransitionGroup"});const sd=(0,o.fY)("style,iframe,script,noscript",!0),ud={isVoidTag:o.WB,isNativeTag:e=>(0,o.eS)(e)||(0,o.aN)(e),isPreTag:e=>"pre"===e,decodeEntities:ld,isBuiltInComponent:e=>os(e,"Transition")?id:os(e,"TransitionGroup")?cd:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(sd(e))return 2}return 0}},fd=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ql("style",!0,t.loc),exp:dd(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},dd=(e,t)=>{const n=(0,o.yL)(e);return ql(JSON.stringify(n),!1,t,3)};function pd(e,t){return nl(e,t,void 0)}const hd=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(50,o)),t.children.length&&(n.onError(pd(51,o)),t.children.length=0),{props:[Yl(ql("innerHTML",!0,o),r||ql("",!0))]}},vd=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(52,o)),t.children.length&&(n.onError(pd(53,o)),t.children.length=0),{props:[Yl(ql("textContent",!0),r?Zl(n.helperString(El),[r],o):ql("",!0))]}},md=(e,t,n)=>{const r=Vf(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(pd(55,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let c=Qf,a=!1;if("input"===o||i){const r=gs(t,"type");if(r){if(7===r.type)c=td;else if(r.value)switch(r.value.content){case"radio":c=Xf;break;case"checkbox":c=Zf;break;case"file":a=!0,n.onError(pd(56,e.loc));break;default:break}}else bs(t)&&(c=td)}else"select"===o&&(c=ed);a||(r.needRuntime=n.helper(c))}else n.onError(pd(54,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},gd=(0,o.fY)("passive,once,capture"),yd=(0,o.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),bd=(0,o.fY)("left,right"),xd=(0,o.fY)("onkeyup,onkeydown,onkeypress",!0),Sd=(e,t,n,r)=>{const o=[],i=[],c=[];for(let a=0;a<t.length;a++){const l=t[a];"native"===l&&Rs("COMPILER_V_ON_NATIVE",n,r)||gd(l)?c.push(l):bd(l)?rs(e)?xd(e.content)?o.push(l):i.push(l):(o.push(l),i.push(l)):yd(l)?i.push(l):o.push(l)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:c}},wd=(e,t)=>{const n=rs(e)&&"onclick"===e.content.toLowerCase();return n?ql(t,!0):4!==e.type?Xl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e},_d=(e,t,n)=>Df(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:c}=t.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:s}=Sd(i,r,n,e.loc);if(l.includes("right")&&(i=wd(i,"onContextmenu")),l.includes("middle")&&(i=wd(i,"onMouseup")),l.length&&(c=Zl(n.helper(nd),[c,JSON.stringify(l)])),!a.length||rs(i)&&!xd(i.content)||(c=Zl(n.helper(rd),[c,JSON.stringify(a)])),s.length){const e=s.map(o.kC).join("");i=rs(i)?ql(`${i.content}${e}`,!0):Xl(["(",i,`) + "${e}"`])}return{props:[Yl(i,c)]}})),Ed=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(pd(58,o)),{props:[],needRuntime:n.helper(od)}};const Cd=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(pd(60,e.loc)),t.removeNode())},kd=[fd],Od={cloak:qf,html:hd,text:vd,model:md,on:_d,show:Ed};function Td(e,t={}){return Yf(e,(0,o.l7)({},ud,t,{nodeTransforms:[Cd,...kd,...t.nodeTransforms||[]],directiveTransforms:(0,o.l7)({},Od,t.directiveTransforms||{}),transformHoist:null}))}const Id=Object.create(null);function Ad(e,t){if(!(0,o.HD)(e)){if(!e.nodeType)return o.dG;e=e.innerHTML}const n=e,i=Id[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const{code:c}=Td(e,(0,o.l7)({hoistStatic:!0,onError:void 0,onWarn:o.dG},t));const a=new Function("Vue",c)(r);return a._rc=!0,Id[n]=a}Vo(Ad)},9980:function(e,t,n){(function(t,r){e.exports=r(n(4865),n(1474))})("undefined"!==typeof self&&self,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return c.slice()}};e.exports.f=function(e){return c&&"[object Window]"==i.call(e)?a(e):o(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),c=n("fc6a"),a=n("c04e"),l=n("5135"),s=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=c(e),t=a(t,!0),s)try{return u(e,t)}catch(n){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),c=n("ae40"),a=i("reduce"),l=c("reduce",{1:0});r({target:"Array",proto:!0,forced:!a||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),c=n("9112");for(var a in o){var l=r[a],s=l&&l.prototype;if(s&&s.forEach!==i)try{c(s,"forEach",i)}catch(u){s.forEach=i}}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),c=o("forEach"),a=i("forEach");e.exports=c&&a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),o=r("iterator"),i=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),c=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[],n=t.constructor={};return n[c]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),c=n("6eeb"),a=n("ce4e"),l=n("e893"),s=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h,v=e.target,m=e.global,g=e.stat;if(u=m?r:g?r[v]||a(v,{}):(r[v]||{}).prototype,u)for(f in t){if(p=t[f],e.noTargetGet?(h=o(u,f),d=h&&h.value):d=u[f],n=s(m?f:v+(g?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),c(u,f,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),c=n("ad6d"),a="toString",l=RegExp.prototype,s=l[a],u=i((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),f=s.name!=a;(u||f)&&r(RegExp.prototype,a,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?c.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),c=n("5a34"),a=n("1d80"),l=n("ab13"),s=n("c430"),u="".startsWith,f=Math.min,d=l("startsWith"),p=!s&&!d&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!p&&!d},{startsWith:function(e){var t=String(a(this));c(e);var n=i(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,o,i=n("da84"),c=n("342f"),a=i.process,l=a&&a.versions,s=l&&l.v8;s?(r=s.split("."),o=r[0]+r[1]):c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),c=i("iterator");e.exports=function(e){if(void 0!=e)return e[c]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),c=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);var n,r=c(t),a=r.length,l=0;while(a>l)o.f(e,n=r[l++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),c="String Iterator",a=o.set,l=o.getterFor(c);i(String,"String",(function(e){a(this,{type:c,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),c=r("unscopables"),a=Array.prototype;void 0==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),e.exports=function(e){a[c][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),c=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),c=function(e){return function(t,n,c){var a,l=r(t),s=o(l.length),u=i(c,s);if(e&&n!=n){while(s>u)if(a=l[u++],a!=a)return!0}else for(;s>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),c=n("ae40"),a=i("filter"),l=c("filter");r({target:"Array",proto:!0,forced:!a||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),c=n("e95a"),a=n("50c4"),l=n("8418"),s=n("35a1");e.exports=function(e){var t,n,u,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=s(h),x=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&c(b))for(t=a(h.length),n=new v(t);t>x;x++)p=y?g(h[x],x):h[x],l(n,x,p);else for(f=b.call(h),d=f.next,n=new v;!(u=d.call(f)).done;x++)p=y?i(f,g,[u.value,x],!0):u.value,l(n,x,p);return n.length=x,n}},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),c=n("50c4"),a=n("a691"),l=n("1d80"),s=n("8aa5"),u=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=l(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&y||"string"===typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var l=o(e),p=String(this),h="function"===typeof r;h||(r=String(r));var v=l.global;if(v){var S=l.unicode;l.lastIndex=0}var w=[];while(1){var _=u(l,p);if(null===_)break;if(w.push(_),!v)break;var E=String(_[0]);""===E&&(l.lastIndex=s(p,c(l.lastIndex),S))}for(var C="",k=0,O=0;O<w.length;O++){_=w[O];for(var T=String(_[0]),I=f(d(a(_.index),p.length),0),A=[],N=1;N<_.length;N++)A.push(m(_[N]));var M=_.groups;if(h){var D=[T].concat(A,I,p);void 0!==M&&D.push(M);var R=String(r.apply(void 0,D))}else R=x(T,p,I,A,M,r);I>=k&&(C+=p.slice(k,I)+R,k=I+T.length)}return C+p.slice(k)}];function x(e,n,r,o,c,a){var l=r+e.length,s=o.length,u=v;return void 0!==c&&(c=i(c),u=h),t.call(a,u,(function(t,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":a=c[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>s){var f=p(u/10);return 0===f?t:f<=s?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}a=o[u-1]}return void 0===a?"":a}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),c=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(c(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){"use strict";var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),c=n("50c4"),a=n("1c0b"),l=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=c(n.length);return a(e),t=l(n,0),t.length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,c,a=String(o(t)),l=r(n),s=a.length;return l<0||l>=s?e?"":void 0:(i=a.charCodeAt(l),i<55296||i>56319||l+1===s||(c=a.charCodeAt(l+1))<56320||c>57343?e?a.charAt(l):i:e?a.slice(l,l+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),c=i("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[c],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,i,c=n("7f9a"),a=n("da84"),l=n("861d"),s=n("9112"),u=n("5135"),f=n("f772"),d=n("d012"),p=a.WeakMap,h=function(e){return i(e)?o(e):r(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(c){var m=new p,g=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},i=function(e){return y.call(m,e)}}else{var x=f("state");d[x]=!0,r=function(e,t){return s(e,x,t),t},o=function(e){return u(e,x)?e[x]:{}},i=function(e){return u(e,x)}}e.exports={set:r,get:o,has:i,enforce:h,getterFor:v}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=n("5135"),c=n("ce4e"),a=n("8925"),l=n("69f3"),s=l.get,u=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,a){var l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(s=!0):delete e[t],s?e[t]=n:o(e,t,n)):s?e[t]=n:c(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||a(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),c=n("d1e7").f,a=function(e){return function(t){var n,a=i(t),l=o(a),s=l.length,u=0,f=[];while(s>u)n=l[u++],r&&!c.call(a,n)||f.push(e?[n,a[n]]:a[n]);return f}};e.exports={entries:a(!0),values:a(!1)}},"73d9":function(e,t,n){var r=n("44d2");r("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),c=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||c(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),c=n("7839"),a=n("d012"),l=n("1be4"),s=n("cc12"),u=n("f772"),f=">",d="<",p="prototype",h="script",v=u("IE_PROTO"),m=function(){},g=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=s("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?y(r):b();var e=c.length;while(e--)delete x[p][c[e]];return x()};a[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=x(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),c=n("d2bb"),a=n("d44e"),l=n("9112"),s=n("6eeb"),u=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,n,u,p,S,w){o(n,t,u);var _,E,C,k=function(e){if(e===p&&N)return N;if(!v&&e in I)return I[e];switch(e){case g:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",T=!1,I=e.prototype,A=I[m]||I["@@iterator"]||p&&I[p],N=!v&&A||k(p),M="Array"==t&&I.entries||A;if(M&&(_=i(M.call(new e)),h!==Object.prototype&&_.next&&(f||i(_)===h||(c?c(_,h):"function"!=typeof _[m]&&l(_,m,x)),a(_,O,!0,!0),f&&(d[O]=x))),p==y&&A&&A.name!==y&&(T=!0,N=function(){return A.call(this)}),f&&!w||I[m]===N||l(I,m,N),d[t]=N,p)if(E={values:k(y),keys:S?N:k(g),entries:k(b)},w)for(C in E)(v||T||!(C in I))&&s(I,C,E[C]);else r({target:t,proto:!0,forced:v||T},E);return E}},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var c=r(t);c in e?o.f(e,c,i(0,n)):e[c]=n}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var r,o,i;(function(n,c){o=[],r=c,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(p.stack)||c.exec(p.stack),l=a&&a[1]||!1,s=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===l)return f[d];if(l===u&&f[d].innerHTML&&f[d].innerHTML.trim()===o)return f[d]}return null}}return e}))},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=RegExp.prototype.exec,c=String.prototype.replace,a=i,l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),s=o.UNSUPPORTED_Y||o.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],f=l||u||s;f&&(a=function(e){var t,n,o,a,f=this,d=s&&f.sticky,p=r.call(f),h=f.source,v=0,m=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),u&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=f.lastIndex),o=i.call(d?n:f,m),d?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:l&&o&&(f.lastIndex=f.global?o.index+o[0].length:t),u&&o&&o.length>1&&c.call(o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o}),e.exports=a},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,i=function(e,t){var n=a[c(e)];return n==s||n!=l&&("function"==typeof t?r(t):!!t)},c=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},l=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},"99af":function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),c=n("861d"),a=n("7b0b"),l=n("50c4"),s=n("8418"),u=n("65f0"),f=n("1dde"),d=n("b622"),p=n("2d00"),h=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!c(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)},x=!g||!y;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,o,i,c=a(this),f=u(c,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?c:arguments[t],b(i)){if(o=l(i.length),d+o>v)throw TypeError(m);for(n=0;n<o;n++,d++)n in i&&s(f,d,i[n])}else{if(d>=v)throw TypeError(m);s(f,d++,i)}return f.length=d,f}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(c){var i=e["return"];throw void 0!==i&&r(i.call(e)),c}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),c=n("c04e"),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(i(e),t=c(t,!0),i(n),o)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),c=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),c(e,s,!1,!0),a[s]=l,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,n){"use strict";var r=n("e8b5"),o=n("50c4"),i=n("0366"),c=function(e,t,n,a,l,s,u,f){var d,p=l,h=0,v=!!u&&i(u,f,3);while(h<a){if(h in n){if(d=v?v(n[h],h,t):n[h],s>0&&r(d))p=c(e,t,d,o(d.length),p,s-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=c},a352:function(e,n){e.exports=t},a434:function(e,t,n){"use strict";var r=n("23e7"),o=n("23cb"),i=n("a691"),c=n("50c4"),a=n("7b0b"),l=n("65f0"),s=n("8418"),u=n("1dde"),f=n("ae40"),d=u("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,u,f,d,p,y=a(this),b=c(y.length),x=o(e,b),S=arguments.length;if(0===S?n=r=0:1===S?(n=0,r=b-x):(n=S-2,r=v(h(i(t),0),b-x)),b+n-r>m)throw TypeError(g);for(u=l(y,r),f=0;f<r;f++)d=x+f,d in y&&s(u,f,y[d]);if(u.length=r,n<r){for(f=x;f<b-r;f++)d=f+r,p=f+n,d in y?y[p]=y[d]:delete y[p];for(f=b;f>b-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>x;f--)d=f+r-1,p=f+n-1,d in y?y[p]=y[d]:delete y[p];for(f=0;f<n;f++)y[f+x]=arguments[f+2];return y.length=b-r+n,u}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),c=n("c430"),a=n("83ab"),l=n("4930"),s=n("fdbf"),u=n("d039"),f=n("5135"),d=n("e8b5"),p=n("861d"),h=n("825a"),v=n("7b0b"),m=n("fc6a"),g=n("c04e"),y=n("5c6c"),b=n("7c73"),x=n("df75"),S=n("241c"),w=n("057f"),_=n("7418"),E=n("06cf"),C=n("9bf2"),k=n("d1e7"),O=n("9112"),T=n("6eeb"),I=n("5692"),A=n("f772"),N=n("d012"),M=n("90e3"),D=n("b622"),R=n("e538"),P=n("746f"),B=n("d44e"),F=n("69f3"),j=n("b727").forEach,V=A("hidden"),L="Symbol",$="prototype",H=D("toPrimitive"),U=F.set,z=F.getterFor(L),W=Object[$],K=o.Symbol,G=i("JSON","stringify"),J=E.f,Y=C.f,q=w.f,X=k.f,Z=I("symbols"),Q=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=o.QObject,oe=!re||!re[$]||!re[$].findChild,ie=a&&u((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=J(W,t);r&&delete W[t],Y(e,t,n),r&&e!==W&&Y(W,t,r)}:Y,ce=function(e,t){var n=Z[e]=b(K[$]);return U(n,{type:L,tag:e,description:t}),a||(n.description=t),n},ae=s?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof K},le=function(e,t,n){e===W&&le(Q,t,n),h(e);var r=g(t,!0);return h(n),f(Z,r)?(n.enumerable?(f(e,V)&&e[V][r]&&(e[V][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,V)||Y(e,V,y(1,{})),e[V][r]=!0),ie(e,r,n)):Y(e,r,n)},se=function(e,t){h(e);var n=m(t),r=x(n).concat(he(n));return j(r,(function(t){a&&!fe.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?b(e):se(b(e),t)},fe=function(e){var t=g(e,!0),n=X.call(this,t);return!(this===W&&f(Z,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(Z,t)||f(this,V)&&this[V][t])||n)},de=function(e,t){var n=m(e),r=g(t,!0);if(n!==W||!f(Z,r)||f(Q,r)){var o=J(n,r);return!o||!f(Z,r)||f(n,V)&&n[V][r]||(o.enumerable=!0),o}},pe=function(e){var t=q(m(e)),n=[];return j(t,(function(e){f(Z,e)||f(N,e)||n.push(e)})),n},he=function(e){var t=e===W,n=q(t?Q:m(e)),r=[];return j(n,(function(e){!f(Z,e)||t&&!f(W,e)||r.push(Z[e])})),r};if(l||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===W&&n.call(Q,e),f(this,V)&&f(this[V],t)&&(this[V][t]=!1),ie(this,t,y(1,e))};return a&&oe&&ie(W,t,{configurable:!0,set:n}),ce(t,e)},T(K[$],"toString",(function(){return z(this).tag})),T(K,"withoutSetter",(function(e){return ce(M(e),e)})),k.f=fe,C.f=le,E.f=de,S.f=w.f=pe,_.f=he,R.f=function(e){return ce(D(e),e)},a&&(Y(K[$],"description",{configurable:!0,get:function(){return z(this).description}}),c||T(W,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:K}),j(x(ne),(function(e){P(e)})),r({target:L,stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=K(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!a},{create:ue,defineProperty:le,defineProperties:se,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:u((function(){_.f(1)}))},{getOwnPropertySymbols:function(e){return _.f(v(e))}}),G){var ve=!l||u((function(){var e=K();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));r({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var r,o=[e],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,G.apply(null,o)}})}K[$][H]||O(K[$],H,K[$].valueOf),B(K,L),N[V]=!0},a630:function(e,t,n){var r=n("23e7"),o=n("4df4"),i=n("1c7e"),c=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:c},{from:o})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n("b622"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("5135"),c=Object.defineProperty,a={},l=function(e){throw e};e.exports=function(e,t){if(i(a,e))return a[e];t||(t={});var n=[][e],s=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,f=i(t,1)?t[1]:void 0;return a[e]=!!n&&!o((function(){if(s&&!r)return!0;var e={length:-1};s?c(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,f)}))}},ae93:function(e,t,n){"use strict";var r,o,i,c=n("e163"),a=n("9112"),l=n("5135"),s=n("b622"),u=n("c430"),f=s("iterator"),d=!1,p=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=c(c(i)),o!==Object.prototype&&(r=o)):d=!0),void 0==r&&(r={}),u||l(r,f)||a(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},b041:function(e,t,n){"use strict";var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&o(i,l,{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),o=n("5692"),i=n("5135"),c=n("90e3"),a=n("4930"),l=n("fdbf"),s=o("wks"),u=r.Symbol,f=l?u:u&&u.withoutSetter||c;e.exports=function(e){return i(s,e)||(a&&i(u,e)?s[e]=u[e]:s[e]=f("Symbol."+e)),s[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),i=n("df75"),c=n("d039"),a=c((function(){i(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(e){return i(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),c=n("50c4"),a=n("65f0"),l=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,u=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=i(p),x=o(b),S=r(h,v,3),w=c(x.length),_=0,E=m||a,C=t?E(p,w):n?E(p,0):void 0;w>_;_++)if((d||_ in x)&&(g=x[_],y=S(g,_,b),e))if(t)C[_]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:l.call(C,g)}else if(u)return!1;return f?-1:s||u?u:C}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});e.exports=c},c740:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),c=n("ae40"),a="findIndex",l=!0,s=c(a);a in[]&&Array(1)[a]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),c=n("ae40"),a=[].indexOf,l=!!a&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),u=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!s||!u},{indexOf:function(e){return l?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,c=n("d012");e.exports=function(e,t){var n,a=o(e),l=0,s=[];for(n in a)!r(c,n)&&r(a,n)&&s.push(n);while(t.length>l)r(a,n=t[l++])&&(~i(s,n)||s.push(n));return s}},caad:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2"),c=n("ae40"),a=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!a},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),i=r.document,c=o(i)&&o(i.createElement);e.exports=function(e){return c?i.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),o=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),c=i("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,c)&&r(e,c,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),c=n("50c4"),a=function(e){return function(t,n,a,l){r(n);var s=o(t),u=i(s),f=c(s.length),d=e?f-1:0,p=e?-1:1;if(a<2)while(1){if(d in u){l=u[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in u&&(l=n(l,u[d],d,s));return l}};e.exports={left:a(!1),right:a(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),c=n("9263"),a=n("9112"),l=i("species"),s=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),f=i("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=i(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!s||!u||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===c?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],x=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),c=n("ae40"),a=i("map"),l=c("map");r({target:"Array",proto:!0,forced:!a||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),c=n("fc6a"),a=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=c(e),o=a.f,s=i(r),u={},f=0;while(s.length>f)n=o(r,t=s[f++]),void 0!==n&&l(u,t,n);return u}})},dbf1:function(e,t,n){"use strict";(function(e){function r(){return"undefined"!==typeof window?window.console:e.console}n.d(t,"a",(function(){return o}));var o=r()}).call(this,n("c8ba"))},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),c=n("9112"),a=n("b622"),l=a("iterator"),s=a("toStringTag"),u=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==u)try{c(p,l,u)}catch(v){p[l]=u}if(p[s]||c(p,s,f),o[f])for(var h in i)if(p[h]!==i[h])try{c(p,h,i[h])}catch(v){p[h]=i[h]}}}},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),c=n("5135"),a=n("861d"),l=n("9bf2").f,s=n("e893"),u=i.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new u(e):void 0===e?u():u(e);return""===e&&(f[t]=!0),t};s(d,u);var p=d.prototype=u.prototype;p.constructor=d;var h=p.toString,v="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(c(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),c=n("e177"),a=i("IE_PROTO"),l=Object.prototype;e.exports=c?Object.getPrototypeOf:function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),c=n("69f3"),a=n("7dd0"),l="Array Iterator",s=c.set,u=c.getterFor(l);e.exports=a(Array,"Array",(function(e,t){s(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),c=n("06cf").f,a=n("83ab"),l=o((function(){c(1)})),s=!a||l;r({target:"Object",stat:!0,forced:s,sham:!a},{getOwnPropertyDescriptor:function(e,t){return c(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),c=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=c.f,l=i.f,s=0;s<n.length;s++){var u=n[s];r(e,u)||a(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),c=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||c[i]===e)}},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),c=i("toStringTag"),a="Arguments"==o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),c))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){if(Array.isArray(e))return e}n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function u(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done);r=!0)if(n.push(c.value),t&&n.length===t)break}catch(l){o=!0,i=l}finally{try{r||null==a["return"]||a["return"]()}finally{if(o)throw i}}return n}}n("a630"),n("fb6a"),n("b0c0"),n("25f0");function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return s(e)||u(e,t)||d(e,t)||p()}function v(e){if(Array.isArray(e))return f(e)}function m(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return v(e)||m(e)||d(e)||g()}var b=n("a352"),x=n.n(b);function S(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function w(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var _=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");function E(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,k=E((function(e){return e.replace(C,(function(e,t){return t.toUpperCase()}))})),O=(n("5db7"),n("73d9"),["Start","Add","Remove","Update","End"]),T=["Choose","Unchoose","Sort","Filter","Clone"],I=["Move"],A=[I,O,T].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),N={manage:I,manageAndEmit:O,emit:T};function M(e){return-1!==A.indexOf(e)}n("caad"),n("2ca0");var D=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function R(e){return D.includes(e)}function P(e){return["transition-group","TransitionGroup"].includes(e)}function B(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function F(e){return e.reduce((function(e,t){var n=h(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}function j(e){var t=e.$attrs,n=e.componentData,r=void 0===n?{}:n,o=F(Object.entries(t).filter((function(e){var t=h(e,2),n=t[0];t[1];return B(n)})));return l(l({},o),r)}function V(e){var t=e.$attrs,n=e.callBackBuilder,r=F(L(t));Object.entries(n).forEach((function(e){var t=h(e,2),n=t[0],o=t[1];N[n].forEach((function(e){r["on".concat(e)]=o(e)}))}));var o="[data-draggable]".concat(r.draggable||"");return l(l({},r),{},{draggable:o})}function L(e){return Object.entries(e).filter((function(e){var t=h(e,2),n=t[0];t[1];return!B(n)})).map((function(e){var t=h(e,2),n=t[0],r=t[1];return[k(n),r]})).filter((function(e){var t=h(e,2),n=t[0];t[1];return!M(n)}))}n("c740");function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return t&&H(e.prototype,t),n&&H(e,n),e}var z=function(e){var t=e.el;return t},W=function(e,t){return e.__draggable_context=t},K=function(e){return e.__draggable_context},G=function(){function e(t){var n=t.nodes,r=n.header,o=n.default,i=n.footer,c=t.root,a=t.realList;$(this,e),this.defaultNodes=o,this.children=[].concat(y(r),y(o),y(i)),this.externalComponent=c.externalComponent,this.rootTransition=c.transition,this.tag=c.tag,this.realList=a}return U(e,[{key:"render",value:function(e,t){var n=this.tag,r=this.children,o=this._isRootComponent,i=o?{default:function(){return r}}:r;return e(n,t,i)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,n){W(z(e),{element:t[n],index:n})}))}},{key:"getUnderlyingVm",value:function(e){return K(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,r=n.length,o=t.children,i=o.item(e);if(null===i)return r;var c=K(i);if(c)return c.index;if(0===r)return 0;var a=z(n[0]),l=y(o).findIndex((function(e){return e===a}));return e<l?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),J=n("8bbf");function Y(e,t){var n=e[t];return n?n():[]}function q(e){var t=e.$slots,n=e.realList,r=e.getKey,o=n||[],i=["header","footer"].map((function(e){return Y(t,e)})),c=h(i,2),a=c[0],s=c[1],u=t.item;if(!u)throw new Error("draggable element must have an item slot");var f=o.flatMap((function(e,t){return u({element:e,index:t}).map((function(t){return t.key=r(e),t.props=l(l({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(f.length!==o.length)throw new Error("Item slot must have only one child");return{header:a,footer:s,default:f}}function X(e){var t=P(e),n=!R(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(J["resolveComponent"])(e):t?J["TransitionGroup"]:e}}function Z(e){var t=e.$slots,n=e.tag,r=e.realList,o=e.getKey,i=q({$slots:t,realList:r,getKey:o}),c=X(n);return new G({nodes:i,root:c,realList:r})}function Q(e,t){var n=this;Object(J["nextTick"])((function(){return n.$emit(e.toLowerCase(),t)}))}function ee(e){var t=this;return function(n,r){if(null!==t.realList)return t["onDrag".concat(e)](n,r)}}function te(e){var t=this,n=ee.call(this,e);return function(r,o){n.call(t,r,o),Q.call(t,e,r)}}var ne=null,re={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},oe=["update:modelValue","change"].concat(y([].concat(y(N.manageAndEmit),y(N.emit)).map((function(e){return e.toLowerCase()})))),ie=Object(J["defineComponent"])({name:"draggable",inheritAttrs:!1,props:re,emits:oe,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,o=this.realList,i=this.getKey,c=Z({$slots:e,tag:n,realList:o,getKey:i});this.componentStructure=c;var a=j({$attrs:t,componentData:r});return c.render(J["h"],a)}catch(l){return this.error=!0,Object(J["h"])("pre",{style:{color:"red"}},l.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&_["a"].error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el,r=this.componentStructure;r.updated();var o=V({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return te.call(e,t)},emit:function(t){return Q.bind(e,t)},manage:function(t){return ee.call(e,t)}}}),i=1===n.nodeType?n:n.parentElement;this._sortable=new x.a(i,o),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"===typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&L(e).forEach((function(e){var n=h(e,2),r=n[0],o=n[1];t.option(r,o)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(J["nextTick"])((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=y(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,y(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};if(t!==n&&o){var c=r.getUnderlyingVm(n)||{};return l(l({},c),i)}return i},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),ne=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){S(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(w(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var o={element:r,oldIndex:n};this.emitChanges({removed:o})}else S(e.clone)},onDragUpdate:function(e){S(e.item),w(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=y(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r),i=-1!==n.indexOf(ne);return i||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var o=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(o,e),c=l(l({},this.context),{},{futureIndex:i}),a=l(l({},e),{},{relatedContext:o,draggedContext:c});return n(a,t)},onDragEnd:function(){ne=null}}}),ce=ie;t["default"]=ce},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),c=n("23cb"),a=n("50c4"),l=n("fc6a"),s=n("8418"),u=n("b622"),f=n("1dde"),d=n("ae40"),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),m=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,u,f=l(this),d=a(f.length),p=c(e,d),h=c(void 0===t?d:t,d);if(i(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(g(h-p,0)),u=0;p<h;p++,u++)p in f&&s(r,u,f[p]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}))},8111:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=()=>({events:{},emit(e,...t){(this.events[e]||[]).forEach((e=>e(...t)))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter((e=>e!==t))}})},2482:function(e,t,n){"use strict";function r(e,t,n){return(()=>void 0!==t&&null!==t&&t[Symbol.for("in")]?t[Symbol.for("in")](e):t in e)()?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})}}]); +//# sourceMappingURL=chunk-vendors.e1e0e06d.js.map \ No newline at end of file diff --git a/js/chunk-vendors.e1e0e06d.js.map b/js/chunk-vendors.e1e0e06d.js.map new file mode 100644 index 0000000..6ff8e65 --- /dev/null +++ b/js/chunk-vendors.e1e0e06d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/chunk-vendors.e1e0e06d.js","mappings":"iHAOA,SAASA,EAAQC,EAAKC,GAClB,MAAMC,EAAMC,OAAOC,OAAO,MACpBC,EAAOL,EAAIM,MAAM,KACvB,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC7BL,EAAIG,EAAKE,KAAM,EAEnB,OAAON,EAAmBQ,KAASP,EAAIO,EAAIC,eAAiBD,KAASP,EAAIO,G,kmCAM7E,MAAME,EAAiB,CACnB,CAAC,GAAe,OAChB,CAAC,GAAgB,QACjB,CAAC,GAAgB,QACjB,CAAC,GAAgB,QACjB,CAAC,IAAsB,aACvB,CAAC,IAA0B,iBAC3B,CAAC,IAA2B,kBAC5B,CAAC,KAA2B,iB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","sources":["webpack://profectus/./node_modules/@vue/shared/dist/shared.esm-bundler.js","webpack://profectus/./node_modules/core-js/internals/a-callable.js","webpack://profectus/./node_modules/core-js/internals/a-possible-prototype.js","webpack://profectus/./node_modules/core-js/internals/an-object.js","webpack://profectus/./node_modules/core-js/internals/array-includes.js","webpack://profectus/./node_modules/core-js/internals/classof-raw.js","webpack://profectus/./node_modules/core-js/internals/classof.js","webpack://profectus/./node_modules/core-js/internals/clear-error-stack.js","webpack://profectus/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://profectus/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://profectus/./node_modules/core-js/internals/create-property-descriptor.js","webpack://profectus/./node_modules/core-js/internals/descriptors.js","webpack://profectus/./node_modules/core-js/internals/document-create-element.js","webpack://profectus/./node_modules/core-js/internals/engine-user-agent.js","webpack://profectus/./node_modules/core-js/internals/engine-v8-version.js","webpack://profectus/./node_modules/core-js/internals/enum-bug-keys.js","webpack://profectus/./node_modules/core-js/internals/error-stack-installable.js","webpack://profectus/./node_modules/core-js/internals/export.js","webpack://profectus/./node_modules/core-js/internals/fails.js","webpack://profectus/./node_modules/core-js/internals/function-apply.js","webpack://profectus/./node_modules/core-js/internals/function-call.js","webpack://profectus/./node_modules/core-js/internals/function-name.js","webpack://profectus/./node_modules/core-js/internals/function-uncurry-this.js","webpack://profectus/./node_modules/core-js/internals/get-built-in.js","webpack://profectus/./node_modules/core-js/internals/get-method.js","webpack://profectus/./node_modules/core-js/internals/global.js","webpack://profectus/./node_modules/core-js/internals/has-own-property.js","webpack://profectus/./node_modules/core-js/internals/hidden-keys.js","webpack://profectus/./node_modules/core-js/internals/ie8-dom-define.js","webpack://profectus/./node_modules/core-js/internals/indexed-object.js","webpack://profectus/./node_modules/core-js/internals/inherit-if-required.js","webpack://profectus/./node_modules/core-js/internals/inspect-source.js","webpack://profectus/./node_modules/core-js/internals/install-error-cause.js","webpack://profectus/./node_modules/core-js/internals/internal-state.js","webpack://profectus/./node_modules/core-js/internals/is-callable.js","webpack://profectus/./node_modules/core-js/internals/is-forced.js","webpack://profectus/./node_modules/core-js/internals/is-object.js","webpack://profectus/./node_modules/core-js/internals/is-pure.js","webpack://profectus/./node_modules/core-js/internals/is-symbol.js","webpack://profectus/./node_modules/core-js/internals/length-of-array-like.js","webpack://profectus/./node_modules/core-js/internals/native-symbol.js","webpack://profectus/./node_modules/core-js/internals/native-weak-map.js","webpack://profectus/./node_modules/core-js/internals/normalize-string-argument.js","webpack://profectus/./node_modules/core-js/internals/object-define-property.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://profectus/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://profectus/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://profectus/./node_modules/core-js/internals/object-keys-internal.js","webpack://profectus/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://profectus/./node_modules/core-js/internals/object-set-prototype-of.js","webpack://profectus/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://profectus/./node_modules/core-js/internals/own-keys.js","webpack://profectus/./node_modules/core-js/internals/redefine.js","webpack://profectus/./node_modules/core-js/internals/require-object-coercible.js","webpack://profectus/./node_modules/core-js/internals/set-global.js","webpack://profectus/./node_modules/core-js/internals/shared-key.js","webpack://profectus/./node_modules/core-js/internals/shared-store.js","webpack://profectus/./node_modules/core-js/internals/shared.js","webpack://profectus/./node_modules/core-js/internals/to-absolute-index.js","webpack://profectus/./node_modules/core-js/internals/to-indexed-object.js","webpack://profectus/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://profectus/./node_modules/core-js/internals/to-length.js","webpack://profectus/./node_modules/core-js/internals/to-object.js","webpack://profectus/./node_modules/core-js/internals/to-primitive.js","webpack://profectus/./node_modules/core-js/internals/to-property-key.js","webpack://profectus/./node_modules/core-js/internals/to-string-tag-support.js","webpack://profectus/./node_modules/core-js/internals/to-string.js","webpack://profectus/./node_modules/core-js/internals/try-to-string.js","webpack://profectus/./node_modules/core-js/internals/uid.js","webpack://profectus/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://profectus/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://profectus/./node_modules/core-js/internals/well-known-symbol.js","webpack://profectus/./node_modules/core-js/internals/wrap-error-constructor-with-cause.js","webpack://profectus/./node_modules/core-js/modules/es.error.cause.js","webpack://profectus/./node_modules/sortablejs/modular/sortable.esm.js","webpack://profectus/./node_modules/vue-loader/dist/exportHelper.js","webpack://profectus/./node_modules/vue-next-select/dist/vue-next-select.es.prod.js","webpack://profectus/./node_modules/vue-textarea-autosize/dist/vue-textarea-autosize.esm.js","webpack://profectus/./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","webpack://profectus/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","webpack://profectus/./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","webpack://profectus/./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js","webpack://profectus/./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js","webpack://profectus/./node_modules/vue/dist/vue.esm-bundler.js","webpack://profectus/./node_modules/vuedraggable/dist/vuedraggable.umd.js","webpack://profectus/./node_modules/nanoevents/index.js","webpack://profectus/./node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["/**\r\n * Make a map and return a function for checking if a key\r\n * is in that map.\r\n * IMPORTANT: all calls of this function must be prefixed with\r\n * \\/\\*#\\_\\_PURE\\_\\_\\*\\/\r\n * So that rollup can tree-shake them if necessary.\r\n */\r\nfunction makeMap(str, expectsLowerCase) {\r\n const map = Object.create(null);\r\n const list = str.split(',');\r\n for (let i = 0; i < list.length; i++) {\r\n map[list[i]] = true;\r\n }\r\n return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];\r\n}\n\n/**\r\n * dev only flag -> name mapping\r\n */\r\nconst PatchFlagNames = {\r\n [1 /* TEXT */]: `TEXT`,\r\n [2 /* CLASS */]: `CLASS`,\r\n [4 /* STYLE */]: `STYLE`,\r\n [8 /* PROPS */]: `PROPS`,\r\n [16 /* FULL_PROPS */]: `FULL_PROPS`,\r\n [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,\r\n [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,\r\n [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,\r\n [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,\r\n [512 /* NEED_PATCH */]: `NEED_PATCH`,\r\n [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,\r\n [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,\r\n [-1 /* HOISTED */]: `HOISTED`,\r\n [-2 /* BAIL */]: `BAIL`\r\n};\n\n/**\r\n * Dev only\r\n */\r\nconst slotFlagsText = {\r\n [1 /* STABLE */]: 'STABLE',\r\n [2 /* DYNAMIC */]: 'DYNAMIC',\r\n [3 /* FORWARDED */]: 'FORWARDED'\r\n};\n\nconst GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +\r\n 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +\r\n 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';\r\nconst isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);\n\nconst range = 2;\r\nfunction generateCodeFrame(source, start = 0, end = source.length) {\r\n // Split the content into individual lines but capture the newline sequence\r\n // that separated each line. This is important because the actual sequence is\r\n // needed to properly take into account the full line length for offset\r\n // comparison\r\n let lines = source.split(/(\\r?\\n)/);\r\n // Separate the lines and newline sequences into separate arrays for easier referencing\r\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\r\n lines = lines.filter((_, idx) => idx % 2 === 0);\r\n let count = 0;\r\n const res = [];\r\n for (let i = 0; i < lines.length; i++) {\r\n count +=\r\n lines[i].length +\r\n ((newlineSequences[i] && newlineSequences[i].length) || 0);\r\n if (count >= start) {\r\n for (let j = i - range; j <= i + range || end > count; j++) {\r\n if (j < 0 || j >= lines.length)\r\n continue;\r\n const line = j + 1;\r\n res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);\r\n const lineLength = lines[j].length;\r\n const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;\r\n if (j === i) {\r\n // push underline\r\n const pad = start - (count - (lineLength + newLineSeqLength));\r\n const length = Math.max(1, end > count ? lineLength - pad : end - start);\r\n res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));\r\n }\r\n else if (j > i) {\r\n if (end > count) {\r\n const length = Math.max(Math.min(end - count, lineLength), 1);\r\n res.push(` | ` + '^'.repeat(length));\r\n }\r\n count += lineLength + newLineSeqLength;\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n return res.join('\\n');\r\n}\n\n/**\r\n * On the client we only need to offer special cases for boolean attributes that\r\n * have different names from their corresponding dom properties:\r\n * - itemscope -> N/A\r\n * - allowfullscreen -> allowFullscreen\r\n * - formnovalidate -> formNoValidate\r\n * - ismap -> isMap\r\n * - nomodule -> noModule\r\n * - novalidate -> noValidate\r\n * - readonly -> readOnly\r\n */\r\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\r\nconst isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);\r\n/**\r\n * The full list is needed during SSR to produce the correct initial markup.\r\n */\r\nconst isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +\r\n `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +\r\n `loop,open,required,reversed,scoped,seamless,` +\r\n `checked,muted,multiple,selected`);\r\n/**\r\n * Boolean attributes should be included if the value is truthy or ''.\r\n * e.g. `<select multiple>` compiles to `{ multiple: '' }`\r\n */\r\nfunction includeBooleanAttr(value) {\r\n return !!value || value === '';\r\n}\r\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\r\nconst attrValidationCache = {};\r\nfunction isSSRSafeAttrName(name) {\r\n if (attrValidationCache.hasOwnProperty(name)) {\r\n return attrValidationCache[name];\r\n }\r\n const isUnsafe = unsafeAttrCharRE.test(name);\r\n if (isUnsafe) {\r\n console.error(`unsafe attribute name: ${name}`);\r\n }\r\n return (attrValidationCache[name] = !isUnsafe);\r\n}\r\nconst propsToAttrMap = {\r\n acceptCharset: 'accept-charset',\r\n className: 'class',\r\n htmlFor: 'for',\r\n httpEquiv: 'http-equiv'\r\n};\r\n/**\r\n * CSS properties that accept plain numbers\r\n */\r\nconst isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +\r\n `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +\r\n `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +\r\n `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +\r\n `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +\r\n `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +\r\n // SVG\r\n `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +\r\n `stroke-miterlimit,stroke-opacity,stroke-width`);\r\n/**\r\n * Known attributes, this is used for stringification of runtime static nodes\r\n * so that we don't stringify bindings that cannot be set from HTML.\r\n * Don't also forget to allow `data-*` and `aria-*`!\r\n * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes\r\n */\r\nconst isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +\r\n `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +\r\n `border,buffered,capture,challenge,charset,checked,cite,class,code,` +\r\n `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +\r\n `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +\r\n `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +\r\n `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +\r\n `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +\r\n `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +\r\n `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +\r\n `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +\r\n `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +\r\n `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +\r\n `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +\r\n `value,width,wrap`);\r\n/**\r\n * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute\r\n */\r\nconst isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +\r\n `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +\r\n `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +\r\n `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +\r\n `color-interpolation-filters,color-profile,color-rendering,` +\r\n `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +\r\n `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +\r\n `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +\r\n `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +\r\n `font-family,font-size,font-size-adjust,font-stretch,font-style,` +\r\n `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +\r\n `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +\r\n `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +\r\n `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +\r\n `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +\r\n `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +\r\n `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +\r\n `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +\r\n `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +\r\n `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +\r\n `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +\r\n `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +\r\n `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +\r\n `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +\r\n `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +\r\n `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +\r\n `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +\r\n `strikethrough-position,strikethrough-thickness,string,stroke,` +\r\n `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +\r\n `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +\r\n `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +\r\n `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +\r\n `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +\r\n `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +\r\n `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +\r\n `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +\r\n `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +\r\n `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +\r\n `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);\n\nfunction normalizeStyle(value) {\r\n if (isArray(value)) {\r\n const res = {};\r\n for (let i = 0; i < value.length; i++) {\r\n const item = value[i];\r\n const normalized = isString(item)\r\n ? parseStringStyle(item)\r\n : normalizeStyle(item);\r\n if (normalized) {\r\n for (const key in normalized) {\r\n res[key] = normalized[key];\r\n }\r\n }\r\n }\r\n return res;\r\n }\r\n else if (isString(value)) {\r\n return value;\r\n }\r\n else if (isObject(value)) {\r\n return value;\r\n }\r\n}\r\nconst listDelimiterRE = /;(?![^(]*\\))/g;\r\nconst propertyDelimiterRE = /:(.+)/;\r\nfunction parseStringStyle(cssText) {\r\n const ret = {};\r\n cssText.split(listDelimiterRE).forEach(item => {\r\n if (item) {\r\n const tmp = item.split(propertyDelimiterRE);\r\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\r\n }\r\n });\r\n return ret;\r\n}\r\nfunction stringifyStyle(styles) {\r\n let ret = '';\r\n if (!styles || isString(styles)) {\r\n return ret;\r\n }\r\n for (const key in styles) {\r\n const value = styles[key];\r\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\r\n if (isString(value) ||\r\n (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {\r\n // only render valid values\r\n ret += `${normalizedKey}:${value};`;\r\n }\r\n }\r\n return ret;\r\n}\r\nfunction normalizeClass(value) {\r\n let res = '';\r\n if (isString(value)) {\r\n res = value;\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const normalized = normalizeClass(value[i]);\r\n if (normalized) {\r\n res += normalized + ' ';\r\n }\r\n }\r\n }\r\n else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n res += name + ' ';\r\n }\r\n }\r\n }\r\n return res.trim();\r\n}\r\nfunction normalizeProps(props) {\r\n if (!props)\r\n return null;\r\n let { class: klass, style } = props;\r\n if (klass && !isString(klass)) {\r\n props.class = normalizeClass(klass);\r\n }\r\n if (style) {\r\n props.style = normalizeStyle(style);\r\n }\r\n return props;\r\n}\n\n// These tag configs are shared between compiler-dom and runtime-dom, so they\r\n// https://developer.mozilla.org/en-US/docs/Web/HTML/Element\r\nconst HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +\r\n 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +\r\n 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +\r\n 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +\r\n 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +\r\n 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +\r\n 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +\r\n 'option,output,progress,select,textarea,details,dialog,menu,' +\r\n 'summary,template,blockquote,iframe,tfoot';\r\n// https://developer.mozilla.org/en-US/docs/Web/SVG/Element\r\nconst SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +\r\n 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +\r\n 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +\r\n 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +\r\n 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +\r\n 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +\r\n 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +\r\n 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +\r\n 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +\r\n 'text,textPath,title,tspan,unknown,use,view';\r\nconst VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';\r\nconst isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);\r\nconst isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);\r\nconst isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);\n\nconst escapeRE = /[\"'&<>]/;\r\nfunction escapeHtml(string) {\r\n const str = '' + string;\r\n const match = escapeRE.exec(str);\r\n if (!match) {\r\n return str;\r\n }\r\n let html = '';\r\n let escaped;\r\n let index;\r\n let lastIndex = 0;\r\n for (index = match.index; index < str.length; index++) {\r\n switch (str.charCodeAt(index)) {\r\n case 34: // \"\r\n escaped = '"';\r\n break;\r\n case 38: // &\r\n escaped = '&';\r\n break;\r\n case 39: // '\r\n escaped = ''';\r\n break;\r\n case 60: // <\r\n escaped = '<';\r\n break;\r\n case 62: // >\r\n escaped = '>';\r\n break;\r\n default:\r\n continue;\r\n }\r\n if (lastIndex !== index) {\r\n html += str.slice(lastIndex, index);\r\n }\r\n lastIndex = index + 1;\r\n html += escaped;\r\n }\r\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\r\n}\r\n// https://www.w3.org/TR/html52/syntax.html#comments\r\nconst commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;\r\nfunction escapeHtmlComment(src) {\r\n return src.replace(commentStripRE, '');\r\n}\n\nfunction looseCompareArrays(a, b) {\r\n if (a.length !== b.length)\r\n return false;\r\n let equal = true;\r\n for (let i = 0; equal && i < a.length; i++) {\r\n equal = looseEqual(a[i], b[i]);\r\n }\r\n return equal;\r\n}\r\nfunction looseEqual(a, b) {\r\n if (a === b)\r\n return true;\r\n let aValidType = isDate(a);\r\n let bValidType = isDate(b);\r\n if (aValidType || bValidType) {\r\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\r\n }\r\n aValidType = isArray(a);\r\n bValidType = isArray(b);\r\n if (aValidType || bValidType) {\r\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\r\n }\r\n aValidType = isObject(a);\r\n bValidType = isObject(b);\r\n if (aValidType || bValidType) {\r\n /* istanbul ignore if: this if will probably never be called */\r\n if (!aValidType || !bValidType) {\r\n return false;\r\n }\r\n const aKeysCount = Object.keys(a).length;\r\n const bKeysCount = Object.keys(b).length;\r\n if (aKeysCount !== bKeysCount) {\r\n return false;\r\n }\r\n for (const key in a) {\r\n const aHasKey = a.hasOwnProperty(key);\r\n const bHasKey = b.hasOwnProperty(key);\r\n if ((aHasKey && !bHasKey) ||\r\n (!aHasKey && bHasKey) ||\r\n !looseEqual(a[key], b[key])) {\r\n return false;\r\n }\r\n }\r\n }\r\n return String(a) === String(b);\r\n}\r\nfunction looseIndexOf(arr, val) {\r\n return arr.findIndex(item => looseEqual(item, val));\r\n}\n\n/**\r\n * For converting {{ interpolation }} values to displayed strings.\r\n * @private\r\n */\r\nconst toDisplayString = (val) => {\r\n return val == null\r\n ? ''\r\n : isArray(val) ||\r\n (isObject(val) &&\r\n (val.toString === objectToString || !isFunction(val.toString)))\r\n ? JSON.stringify(val, replacer, 2)\r\n : String(val);\r\n};\r\nconst replacer = (_key, val) => {\r\n // can't use isRef here since @vue/shared has no deps\r\n if (val && val.__v_isRef) {\r\n return replacer(_key, val.value);\r\n }\r\n else if (isMap(val)) {\r\n return {\r\n [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {\r\n entries[`${key} =>`] = val;\r\n return entries;\r\n }, {})\r\n };\r\n }\r\n else if (isSet(val)) {\r\n return {\r\n [`Set(${val.size})`]: [...val.values()]\r\n };\r\n }\r\n else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\r\n return String(val);\r\n }\r\n return val;\r\n};\n\nconst EMPTY_OBJ = (process.env.NODE_ENV !== 'production')\r\n ? Object.freeze({})\r\n : {};\r\nconst EMPTY_ARR = (process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];\r\nconst NOOP = () => { };\r\n/**\r\n * Always return false.\r\n */\r\nconst NO = () => false;\r\nconst onRE = /^on[^a-z]/;\r\nconst isOn = (key) => onRE.test(key);\r\nconst isModelListener = (key) => key.startsWith('onUpdate:');\r\nconst extend = Object.assign;\r\nconst remove = (arr, el) => {\r\n const i = arr.indexOf(el);\r\n if (i > -1) {\r\n arr.splice(i, 1);\r\n }\r\n};\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\r\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\r\nconst isArray = Array.isArray;\r\nconst isMap = (val) => toTypeString(val) === '[object Map]';\r\nconst isSet = (val) => toTypeString(val) === '[object Set]';\r\nconst isDate = (val) => val instanceof Date;\r\nconst isFunction = (val) => typeof val === 'function';\r\nconst isString = (val) => typeof val === 'string';\r\nconst isSymbol = (val) => typeof val === 'symbol';\r\nconst isObject = (val) => val !== null && typeof val === 'object';\r\nconst isPromise = (val) => {\r\n return isObject(val) && isFunction(val.then) && isFunction(val.catch);\r\n};\r\nconst objectToString = Object.prototype.toString;\r\nconst toTypeString = (value) => objectToString.call(value);\r\nconst toRawType = (value) => {\r\n // extract \"RawType\" from strings like \"[object RawType]\"\r\n return toTypeString(value).slice(8, -1);\r\n};\r\nconst isPlainObject = (val) => toTypeString(val) === '[object Object]';\r\nconst isIntegerKey = (key) => isString(key) &&\r\n key !== 'NaN' &&\r\n key[0] !== '-' &&\r\n '' + parseInt(key, 10) === key;\r\nconst isReservedProp = /*#__PURE__*/ makeMap(\r\n// the leading comma is intentional so empty string \"\" is also included\r\n',key,ref,ref_for,ref_key,' +\r\n 'onVnodeBeforeMount,onVnodeMounted,' +\r\n 'onVnodeBeforeUpdate,onVnodeUpdated,' +\r\n 'onVnodeBeforeUnmount,onVnodeUnmounted');\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null);\r\n return ((str) => {\r\n const hit = cache[str];\r\n return hit || (cache[str] = fn(str));\r\n });\r\n};\r\nconst camelizeRE = /-(\\w)/g;\r\n/**\r\n * @private\r\n */\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\r\n});\r\nconst hyphenateRE = /\\B([A-Z])/g;\r\n/**\r\n * @private\r\n */\r\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());\r\n/**\r\n * @private\r\n */\r\nconst capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\r\n/**\r\n * @private\r\n */\r\nconst toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\r\n// compare whether a value has changed, accounting for NaN.\r\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\r\nconst invokeArrayFns = (fns, arg) => {\r\n for (let i = 0; i < fns.length; i++) {\r\n fns[i](arg);\r\n }\r\n};\r\nconst def = (obj, key, value) => {\r\n Object.defineProperty(obj, key, {\r\n configurable: true,\r\n enumerable: false,\r\n value\r\n });\r\n};\r\nconst toNumber = (val) => {\r\n const n = parseFloat(val);\r\n return isNaN(n) ? val : n;\r\n};\r\nlet _globalThis;\r\nconst getGlobalThis = () => {\r\n return (_globalThis ||\r\n (_globalThis =\r\n typeof globalThis !== 'undefined'\r\n ? globalThis\r\n : typeof self !== 'undefined'\r\n ? self\r\n : typeof window !== 'undefined'\r\n ? window\r\n : typeof global !== 'undefined'\r\n ? global\r\n : {}));\r\n};\n\nexport { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw TypeError(\"Can't set \" + String(argument) + ' as a prototype');\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string') {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var call = Function.prototype.call;\n\nmodule.exports = call.bind ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = bind && bind.bind(call, call);\n\nmodule.exports = bind ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : Object(it);\n} : Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar TypeError = global.TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var name = options && options.name !== undefined ? options.name : key;\n var state;\n if (isCallable(value)) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n createNonEnumerableProperty(value, 'name', name);\n }\n state = enforceInternalState(value);\n if (!state.source) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n }\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n});\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.20.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2022 Denis Pushkarev (zloirock.ru)'\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- safe\n return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar clearErrorStack = require('../internals/clear-error-stack');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O);\n }\n};\n\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","/**!\n * Sortable 1.14.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\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\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\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\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\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\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\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.14.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\n * @param {Number} x X position\n * @param {Number} y Y position\n * @return {HTMLElement} Element of the first found nearest Sortable\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\n * @class Sortable\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n el.appendChild(dragEl);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\n * Serializes the item into an array of string.\n * @returns {String[]}\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\n * Sorts the elements according to the array.\n * @param {String[]} order order of the items\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\n * Save the current sorting\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\n * @param {HTMLElement} el\n * @param {String} [selector] default: `options.draggable`\n * @returns {HTMLElement|null}\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\n * Set/get option\n * @param {string} name\n * @param {*} [value]\n * @returns {*}\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\n * Destroy\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\n * Gets the direction dragEl must be swapped relative to target in order to make it\n * seem that dragEl has been \"inserted\" into that element's position\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\n * @return {Number} Direction dragEl must be swapped\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\n * Generate id\n * @param {HTMLElement} el\n * @returns {String}\n * @private\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\n * Get the Sortable instance of an element\n * @param {HTMLElement} element The element\n * @return {Sortable|undefined} The instance of Sortable\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\n * Mount a plugin to Sortable\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\n * Create sortable instance\n * @param {HTMLElement} el\n * @param {Object} [options]\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvt: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvt: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvt: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvt: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\n * Selects the provided multi-drag item\n * @param {HTMLElement} el The element to be selected\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\n * Deselects the provided multi-drag item\n * @param {HTMLElement} el The element to be deselected\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\n * Insert multi-drag clones\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\n * @param {HTMLElement} rootEl\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n","import{ref as e,onMounted as n,onUpdated as t,openBlock as a,createElementBlock as l,renderSlot as o,createElementVNode as u,withKeys as i,withModifiers as r,inject as c,mergeProps as d,Fragment as s,renderList as p,normalizeClass as v,toDisplayString as f,createCommentVNode as g,reactive as y,toRef as m,computed as h,watchEffect as b,defineComponent as B,getCurrentInstance as I,watch as x,nextTick as w,provide as M,resolveComponent as k,createVNode as O,withCtx as F,createBlock as V,withDirectives as S,vShow as A}from\"vue\";function T(e){return(T=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function C(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function D(e,n){if(e){if(\"string\"==typeof e)return N(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N(e,n):void 0}}function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function E(e,n){var t=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!t){if(Array.isArray(e)||(t=D(e))||n&&e&&\"number\"==typeof e.length){t&&(e=t);var a=0,l=function(){};return{s:l,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:l}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,u=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){i=!0,o=e},f:function(){try{u||null==t.return||t.return()}finally{if(i)throw o}}}}var L={inheritAttrs:!1,name:\"vue-input\",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:[\"update:modelValue\",\"input\",\"change\",\"focus\",\"blur\",\"escape\"],setup:function(a,l){var o=e(null);return n((function(){a.autofocus&&o.value.focus()})),t((function(){a.autofocus&&o.value.focus()})),{handleInput:function(e){l.emit(\"input\",e),l.emit(\"update:modelValue\",e.target.value)},handleChange:function(e){l.emit(\"change\",e),l.emit(\"update:modelValue\",e.target.value)},handleFocus:function(e){l.emit(\"focus\",e)},handleBlur:function(e){l.emit(\"blur\",e)},input:o,handleEscape:function(e){o.value.blur(),l.emit(\"escape\",e)}}}},j={class:\"vue-input\"},$=[\"autocomplete\",\"modelValue\",\"placeholder\",\"disabled\",\"tabindex\",\"autofocus\",\"aria-controls\",\"aria-labelledby\"];L.render=function(e,n,t,c,d,s){return a(),l(\"div\",j,[o(e.$slots,\"prepend\"),u(\"input\",{ref:\"input\",autocomplete:t.autocomplete,modelValue:t.modelValue,placeholder:t.placeholder,disabled:t.disabled,onInput:n[0]||(n[0]=function(){return c.handleInput&&c.handleInput.apply(c,arguments)}),onChange:n[1]||(n[1]=function(){return c.handleChange&&c.handleChange.apply(c,arguments)}),onFocus:n[2]||(n[2]=function(){return c.handleFocus&&c.handleFocus.apply(c,arguments)}),onBlur:n[3]||(n[3]=function(){return c.handleBlur&&c.handleBlur.apply(c,arguments)}),onKeyup:n[4]||(n[4]=i(r((function(){return c.handleEscape&&c.handleEscape.apply(c,arguments)}),[\"exact\"]),[\"esc\"])),tabindex:t.tabindex,autofocus:t.autofocus,\"aria-autocomplete\":\"list\",\"aria-controls\":\"vs\".concat(t.comboboxUid,\"-listbox\"),\"aria-labelledby\":\"vs\".concat(t.comboboxUid,\"-combobox\")},null,40,$),o(e.$slots,\"append\")])},L.__file=\"src/components/input.vue\";var U={inheritAttrs:!1,name:\"vue-tags\",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&\"boolean\"==typeof e.selected}))}},collapseTags:{type:Boolean}},emits:[\"click\"],setup:function(e,n){return{dataAttrs:c(\"dataAttrs\"),handleClick:function(e){n.emit(\"click\",e)}}}};U.render=function(e,n,t,i,c,y){return a(),l(\"ul\",d({class:[\"vue-tags\",{collapsed:t.collapseTags}],onMousedown:n[0]||(n[0]=r((function(){}),[\"prevent\"])),tabindex:\"-1\",onClick:n[1]||(n[1]=function(){return i.handleClick&&i.handleClick.apply(i,arguments)})},i.dataAttrs),[(a(!0),l(s,null,p(t.modelValue,(function(n){return a(),l(s,{key:n.key},[n.group?g(\"v-if\",!0):(a(),l(\"li\",{key:0,class:v([\"vue-tag\",{selected:n.selected}])},[o(e.$slots,\"default\",{option:n},(function(){return[u(\"span\",null,f(n.label),1)]}))],2))],64)})),128))],16)},U.__file=\"src/components/tags.vue\";var z={inheritAttrs:!1,name:\"vue-dropdown\",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&\"boolean\"==typeof e.selected}))}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:[\"click-item\",\"mouseenter\"],setup:function(e,n){return{dataAttrs:c(\"dataAttrs\"),handleClickItem:function(e,t){t.disabled||n.emit(\"click-item\",e,t)},handleMouseenter:function(e,t){n.emit(\"mouseenter\",e,t)}}}},P=[\"id\",\"aria-multiselectable\",\"aria-busy\",\"aria-disabled\"],q=[\"onClick\",\"onMouseenter\",\"id\",\"aria-selected\",\"aria-disabled\"];z.render=function(e,n,t,i,c,y){return a(),l(\"ul\",d({class:\"vue-dropdown\",style:{maxHeight:t.maxHeight+\"px\"},onMousedown:n[0]||(n[0]=r((function(){}),[\"prevent\"]))},i.dataAttrs,{role:\"listbox\",id:\"vs\".concat(t.comboboxUid,\"-listbox\"),\"aria-multiselectable\":i.dataAttrs[\"data-multiple\"],\"aria-busy\":i.dataAttrs[\"data-loading\"],\"aria-disabled\":i.dataAttrs[\"data-disabled\"]}),[(a(!0),l(s,null,p(t.modelValue,(function(n,r){return a(),l(s,{key:n.key},[n.visible&&!1===n.hidden?(a(),l(\"li\",{key:0,onClick:function(e){return i.handleClickItem(e,n)},class:v([\"vue-dropdown-item\",{selected:n.selected,disabled:n.disabled,highlighted:n.originalIndex===t.highlightedOriginalIndex,group:n.group}]),onMouseenter:function(e){return i.handleMouseenter(e,n)},role:\"option\",id:\"vs\".concat(t.comboboxUid,\"-option-\").concat(r),\"aria-selected\":!!n.selected||!!n.disabled&&void 0,\"aria-disabled\":n.disabled},[o(e.$slots,\"default\",{option:n},(function(){return[u(\"span\",null,f(n.label),1)]}))],42,q)):g(\"v-if\",!0)],64)})),128))],16,P)},z.__file=\"src/components/dropdown.vue\";var H=function(e,n,t){var a=t.valueBy;return a(e)===a(n)},_=function(e,n,t){var a=t.valueBy;return e.some((function(e){return H(e,n,{valueBy:a})}))},W=function(e,n,t){var a=t.valueBy;return e.find((function(e){return a(e)===n}))},Z=function(e,n,t){var a=t.max,l=t.valueBy;return _(e,n,{valueBy:l})||e.length>=a?e:e.concat(n)},R=function(e,n,t){var a=t.min,l=t.valueBy;return!1===_(e,n,{valueBy:l})||e.length<=a?e:e.filter((function(e){return!1===H(e,n,{valueBy:l})}))},G=function(e){return h((function(){return\"function\"==typeof e.value?e.value:\"string\"==typeof e.value?function(n){return e.value.split(\".\").reduce((function(e,n){return e[n]}),n)}:function(e){return e}}))},Q=function(e,n){var t=h((function(){return e.value.reduce((function(e,n){return Object.assign(e,(t={},a=n.originalIndex,l=n,a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t));var t,a,l}),{})})),a=function(e){var a=t.value[e];return void 0!==a&&(!1!==l(a)&&(n.value=e,!0))},l=function(e){return!e.disabled&&!e.hidden&&e.visible},o=h((function(){return e.value.some((function(e){return l(e)}))}));return b((function(){if(!1===o.value&&(n.value=null),null!==n.value&&e.value.length<=n.value){var t,u=E(e.value.reverse());try{for(u.s();!(t=u.n()).done;){var i=t.value;if(a(i.originalIndex))break}}catch(e){u.e(e)}finally{u.f()}}if(null===n.value||!1===l(e.value[n.value])){var r,c=E(e.value);try{for(c.s();!(r=c.n()).done;){var d=r.value;if(a(d.originalIndex))break}}catch(e){c.e(e)}finally{c.f()}}})),{pointerForward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value+1,l=0;t!==n.value&&l++<e.value.length&&(e.value.length<=t&&(t=0),!a(t));)++t},pointerBackward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value-1,l=0;t!==n.value&&l++<e.value.length&&(t<0&&(t=e.value.length-1),!a(t));)--t},pointerSet:a}};var Y=B({name:\"vue-select\",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:\"disabled\",type:[String,Function]},groupBy:{default:\"group\",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:\"Type to search\",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:\"off\",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:\"Select option\",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return[\"top\",\"bottom\"].includes(e)}}},emits:[\"selected\",\"removed\",\"update:modelValue\",\"focus\",\"blur\",\"toggle\",\"opened\",\"closed\",\"search:input\",\"search:change\",\"search:focus\",\"search:blur\"],setup:function(n,t){var a=function(e){var n=y({}),t=G(m(e,\"labelBy\"));b((function(){return n.labelBy=t.value}));var a=G(m(e,\"valueBy\"));b((function(){return n.valueBy=a.value}));var l=G(m(e,\"disabledBy\"));b((function(){return n.disabledBy=l.value}));var o=G(m(e,\"groupBy\"));b((function(){return n.groupBy=o.value}));var u=h((function(){return e.multiple?e.min:Math.min(1,e.min)}));b((function(){return n.min=u.value}));var i=h((function(){return e.multiple?e.max:1}));return b((function(){return n.max=i.value})),b((function(){return n.options=e.options})),n}(n),l=h((function(){var e;return null!==(e=n.emptyModelValue)&&void 0!==e?e:null})),o=I(),u=e(),i=e(),r=e(),c=h((function(){var e;return null===(e=r.value)||void 0===e?void 0:e._.refs.input})),d=e(!1);x((function(){return d.value}),(function(){d.value?(t.emit(\"opened\"),t.emit(\"focus\"),n.searchable?(c.value!==document.activeElement&&c.value.focus(),t.emit(\"search:focus\")):u.value.focus()):(n.searchable?(c.value===document.activeElement&&c.value.blur(),n.clearOnClose&&D(),t.emit(\"search:blur\")):u.value.blur(),t.emit(\"closed\"),t.emit(\"blur\")),t.emit(\"toggle\")}));var s=function(){n.disabled||(d.value=!0)},p=function(e){u.value.contains(null==e?void 0:e.relatedTarget)?setTimeout((function(){u.value.focus()})):d.value=!1};x((function(){return n.disabled}),(function(){return p()}));var v=e(\"\"),f=h((function(){return new RegExp(v.value.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),\"i\")})),g=h((function(){return v.value?a.options.filter((function(e){return f.value.test(a.labelBy(e))})):void 0})),B=e([]),k=h((function(){return new Set(B.value.map((function(e){return a.valueBy(e)})))})),O=function(){if(n.multiple){if(!1===Array.isArray(n.modelValue))return!1;if(B.value.length!==n.modelValue.length)return!1;if(Object.keys(B.value).some((function(e){return B.value[e]!==W(a.options,n.modelValue[e],{valueBy:a.valueBy})})))return!1}else{if(0===B.value.length&&n.modelValue!==l.value)return!1;if(1===B.value.length&&n.modelValue===l.value)return!1;if(B.value[0]!==W(a.options,n.modelValue,{valueBy:a.valueBy}))return!1}return!0},F=function(){if(!O()){B.value=[];var e,t=E(n.multiple?n.modelValue:n.modelValue===l.value?[]:[n.modelValue]);try{for(t.s();!(e=t.n()).done;){var o=e.value,u=W(a.options,o,{valueBy:a.valueBy});!1!==_(a.options,u,{valueBy:a.valueBy})&&(B.value=Z(B.value,u,{max:1/0,valueBy:a.valueBy}))}}catch(e){t.e(e)}finally{t.f()}}};F(),x((function(){return n.modelValue}),(function(){return F()}),{deep:!0}),x((function(){return a.options}),(function(){B.value=a.options.filter((function(e){return k.value.has(a.valueBy(e))}))}),{deep:!0});var V,S=function(e,n){(n=n.originalOption).value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return _(B.value,n,{valueBy:a.valueBy})}))?n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});B.value=R(B.value,n,{min:a.min,valueBy:a.valueBy}),t.emit(\"removed\",n)})):n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});_(B.value,n,{valueBy:a.valueBy})||(B.value=Z(B.value,n,{max:a.max,valueBy:a.valueBy}),t.emit(\"selected\",n))}))},A=function(e,l){if(l=l.originalOption,_(B.value,l,{valueBy:a.valueBy}))B.value=R(B.value,l,{min:a.min,valueBy:a.valueBy}),t.emit(\"removed\",l);else{if(!n.multiple&&1===B.value.length){var o=B.value[0];B.value=R(B.value,B.value[0],{min:0,valueBy:a.valueBy}),t.emit(\"removed\",o)}B.value=Z(B.value,l,{max:a.max,valueBy:a.valueBy}),t.emit(\"selected\",l)}},T=function(){if(!O()){var e=B.value.map((function(e){return a.valueBy(e)}));n.multiple?t.emit(\"update:modelValue\",e):e.length?t.emit(\"update:modelValue\",e[0]):t.emit(\"update:modelValue\",l.value)}},D=function(){c.value.value=\"\",c.value.dispatchEvent(new Event(\"input\")),c.value.dispatchEvent(new Event(\"change\"))},N=h((function(){var e,t;return null!==(t=null!==(e=n.visibleOptions)&&void 0!==e?e:g.value)&&void 0!==t?t:a.options})),L=e(0),j=h((function(){var e,t=new Set(N.value.map((function(e){return a.valueBy(e)}))),l=a.options.map((function(e,l){var o,u={key:a.valueBy(e),label:a.labelBy(e),group:null!==(o=a.groupBy(e))&&void 0!==o&&o,originalIndex:l,originalOption:e};return u.selected=u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e)),u.disabled=u.group?a.disabledBy(e)||e.value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return a.disabledBy(n)})):a.disabledBy(e),u.visible=u.group?e.value.some((function(e){return t.has(e)})):t.has(a.valueBy(e)),u.hidden=!!n.hideSelected&&(u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e))),u})),o=E(l);try{for(o.s();!(e=o.n()).done;){var u=e.value;!1!==u.group&&(u.disabled&&function(){var e=new Set(u.originalOption.value);l.filter((function(n){return e.has(a.valueBy(n.originalOption))})).forEach((function(e){return e.disabled=!0}))}())}}catch(e){o.e(e)}finally{o.f()}return l})),$=Q(j,L),U=$.pointerForward,z=$.pointerBackward,P=$.pointerSet,q=\"\",H=/^[\\w]$/,Y=h((function(){var e=C(a.options.keys());return e.slice(L.value).concat(e.slice(0,L.value))})),K=function(){var e,n=null===(e=u.value)||void 0===e?void 0:e.querySelector(\".highlighted\");if(n&&i.value){var t,a=getComputedStyle(n);for(t=0;n.offsetTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)>i.value.$el.clientHeight+i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);for(t=0;n.offsetTop<i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop-parseFloat(a.height)-parseFloat(a.paddingTop)-parseFloat(a.paddingBottom)}};x((function(){return[d.value,a.options,k.value]}),(function(e,n){!0!==(null==n?void 0:n[0])&&!1!==d.value&&0!==B.value.length&&(P(a.options.findIndex((function(e){return k.value.has(a.valueBy(e))}))),w(K))}),{deep:!0,immediate:!0});var J=h((function(){return{\"data-is-focusing\":d.value,\"data-visible-length\":j.value.filter((function(e){return e.visible&&!1===e.hidden})).length,\"data-not-selected-length\":a.options.length-j.value.filter((function(e){return e.selected})).length,\"data-selected-length\":j.value.filter((function(e){return e.selected})).length,\"data-addable\":j.value.filter((function(e){return e.selected})).length<a.max,\"data-removable\":j.value.filter((function(e){return e.selected})).length>a.min,\"data-total-length\":a.options.length,\"data-multiple\":n.multiple,\"data-loading\":n.loading,\"data-disabled\":n.disabled}}));M(\"dataAttrs\",J);var X=h((function(){return j.value.filter((function(e){return e.selected})).filter((function(e){return!e.group}))})),ee=h((function(){return n.multiple?0===X.value.length?n.placeholder:1===X.value.length?\"1 option selected\":X.value.length+\" options selected\":0===X.value.length?n.placeholder:X.value[0].label+\"\"})),ne=h((function(){var e=X.value.map((function(e){return e.originalOption}));return n.multiple?e:e[0]||l.value})),te=e();return x((function(){return[n.openDirection,d.value]}),(function(){var e,t;te.value=null!==(t=null!==(e=n.openDirection)&&void 0!==e?e:function(){if(void 0===u.value)return;if(void 0===window)return;return window.innerHeight-u.value.getBoundingClientRect().bottom>=n.maxHeight?\"bottom\":\"top\"}())&&void 0!==t?t:\"bottom\"}),{immediate:!0}),{instance:o,isFocusing:d,wrapper:u,dropdown:i,input:r,focus:s,blur:p,toggle:function(){d.value?p():s()},searchingInputValue:v,handleInputForInput:function(e){t.emit(\"search:input\",e)},handleChangeForInput:function(e){t.emit(\"search:change\",e)},handleFocusForInput:function(e){s()},handleBlurForInput:function(e){p()},optionsWithInfo:j,addOrRemoveOption:function(e,t){n.disabled||(t.group&&n.multiple?S(e,t):A(e,t),T(),!0===n.closeOnSelect&&(d.value=!1),!0===n.clearOnSelect&&v.value&&D())},dataAttrs:J,innerPlaceholder:ee,selected:ne,highlightedOriginalIndex:L,pointerForward:function(){U(),w(K)},pointerBackward:function(){z(),w(K)},pointerFirst:function(){var e,n=E(a.options.keys());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}w(K)},pointerLast:function(){var e,n=E(C(a.options.keys()).reverse());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}w(K)},typeAhead:function(e){var t,l;if(!n.searchable){var o=!1;if(H.test(e.key)?(q+=e.key.toLowerCase(),o=!0):\"Space\"===e.code&&(q+=\" \"),o){var u,i=E(Y.value);try{for(i.s();!(u=i.n()).done;){var r=u.value;if(!0===(null===(l=null===(t=a.labelBy(a.options[r]))||void 0===t?void 0:t.toLowerCase())||void 0===l?void 0:l.startsWith(q))&&P(r))break}}catch(e){i.e(e)}finally{i.f()}clearTimeout(V),V=setTimeout((function(){q=\"\"}),500)}}},pointerSet:P,direction:te}},components:{VInput:L,VTags:U,VDropdown:z}});Y.__VERSION__=\"2.10.2\";var K=[\"tabindex\",\"id\",\"role\",\"aria-expanded\",\"aria-owns\",\"aria-activedescendant\",\"aria-busy\",\"aria-disabled\"],J={ref:\"header\",class:\"vue-select-header\"},X={key:0,class:\"vue-input\"},ee=[\"placeholder\",\"autocomplete\"],ne=[\"onClick\"],te=u(\"span\",{class:\"icon loading\"},[u(\"div\"),u(\"div\"),u(\"div\")],-1),ae={key:0,class:\"vue-select-input-wrapper\"},le=u(\"span\",{class:\"icon loading\"},[u(\"div\"),u(\"div\"),u(\"div\")],-1);Y.render=function(e,n,t,c,p,y){var m=k(\"v-tags\"),h=k(\"v-input\"),b=k(\"v-dropdown\");return a(),l(\"div\",d({ref:\"wrapper\",class:[\"vue-select\",[\"direction-\".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:n[9]||(n[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:n[10]||(n[10]=function(n){return!e.searchable&&e.blur(n)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:n[11]||(n[11]=i(r((function(){return null!==e.highlightedOriginalIndex&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])}),[\"prevent\",\"exact\"]),[\"enter\"])),onKeydown:[n[12]||(n[12]=i(r((function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"down\"])),n[13]||(n[13]=i(r((function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"up\"])),n[14]||(n[14]=i(r((function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"home\"])),n[15]||(n[15]=i(r((function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)}),[\"prevent\",\"exact\"]),[\"end\"])),n[16]||(n[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:\"vs\".concat(e.instance.uid,\"-combobox\"),role:e.searchable?\"combobox\":null,\"aria-expanded\":e.isFocusing,\"aria-haspopup\":\"listbox\",\"aria-owns\":\"vs\".concat(e.instance.uid,\"-listbox\"),\"aria-activedescendant\":null===e.highlightedOriginalIndex?null:\"vs\".concat(e.instance.uid,\"-option-\").concat(e.highlightedOriginalIndex),\"aria-busy\":e.loading,\"aria-disabled\":e.disabled}),[u(\"div\",J,[e.multiple&&e.taggable&&0===e.modelValue.length||!1===e.searchable&&!1===e.taggable?(a(),l(\"div\",X,[o(e.$slots,\"label\",{selected:e.selected},(function(){return[u(\"input\",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:\"\",onClick:n[0]||(n[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,ee)]}))])):g(\"v-if\",!0),e.multiple&&e.taggable?(a(),l(s,{key:1},[O(m,{modelValue:e.optionsWithInfo,\"collapse-tags\":e.collapseTags,tabindex:\"-1\",onClick:e.focus},{default:F((function(n){var t=n.option;return[o(e.$slots,\"tag\",{option:t.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,t)}},(function(){return[u(\"span\",null,f(t.label),1),u(\"img\",{src:\"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==\",alt:\"delete tag\",class:\"icon delete\",onClick:r((function(){return e.addOrRemoveOption(e.$event,t)}),[\"prevent\",\"stop\"])},null,8,ne)]}))]})),_:3},8,[\"modelValue\",\"collapse-tags\",\"onClick\"]),o(e.$slots,\"toggle\",{isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[u(\"span\",{class:v([\"icon arrow-downward\",{active:e.isFocusing}]),onClick:n[1]||(n[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[2]||(n[2]=r((function(){}),[\"prevent\",\"stop\"]))},null,34)]}))],64)):(a(),l(s,{key:2},[e.searchable?(a(),V(h,{key:0,ref:\"input\",modelValue:e.searchingInputValue,\"onUpdate:modelValue\":n[3]||(n[3]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,[\"modelValue\",\"disabled\",\"autocomplete\",\"placeholder\",\"onInput\",\"onChange\",\"onFocus\",\"onBlur\",\"onEscape\",\"autofocus\",\"tabindex\",\"comboboxUid\"])):g(\"v-if\",!0),e.loading?o(e.$slots,\"loading\",{key:1},(function(){return[te]})):o(e.$slots,\"toggle\",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[u(\"span\",{class:v([\"icon arrow-downward\",{active:e.isFocusing}]),onClick:n[4]||(n[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[5]||(n[5]=r((function(){}),[\"prevent\",\"stop\"]))},null,34)]}))],64))],512),e.multiple&&e.taggable&&e.searchable?(a(),l(\"div\",ae,[S(O(h,{ref:\"input\",modelValue:e.searchingInputValue,\"onUpdate:modelValue\":n[6]||(n[6]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,[\"modelValue\",\"disabled\",\"autocomplete\",\"placeholder\",\"onInput\",\"onChange\",\"onFocus\",\"onBlur\",\"onEscape\",\"autofocus\",\"tabindex\",\"comboboxUid\"]),[[A,e.isFocusing]]),e.loading?o(e.$slots,\"loading\",{key:0},(function(){return[le]})):g(\"v-if\",!0)])):g(\"v-if\",!0),O(b,{ref:\"dropdown\",modelValue:e.optionsWithInfo,\"onUpdate:modelValue\":n[7]||(n[7]=function(n){return e.optionsWithInfo=n}),onClickItem:e.addOrRemoveOption,onMouseenter:n[8]||(n[8]=function(n,t){return e.pointerSet(t.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:F((function(n){var t=n.option;return[o(e.$slots,\"dropdown-item\",{option:t.originalOption},(function(){return[u(\"span\",null,f(t.label),1)]}))]})),_:3},8,[\"modelValue\",\"onClickItem\",\"comboboxUid\",\"maxHeight\",\"highlightedOriginalIndex\"])],16,K)},Y.__file=\"src/index.vue\";export{Y as default};\n","/*!\n * vue-textarea-autosize v1.1.1 \n * (c) 2019 Saymon\n * Released under the MIT License.\n */\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'TextareaAutosize',\n props: {\n value: {\n type: [String, Number],\n default: ''\n },\n autosize: {\n type: Boolean,\n default: true\n },\n minHeight: {\n type: [Number],\n 'default': null\n },\n maxHeight: {\n type: [Number],\n 'default': null\n },\n\n /*\n * Force !important for style properties\n */\n important: {\n type: [Boolean, Array],\n default: false\n }\n },\n data: function data() {\n return {\n // data property for v-model binding with real textarea tag\n val: null,\n // works when content height becomes more then value of the maxHeight property\n maxHeightScroll: false,\n height: 'auto'\n };\n },\n computed: {\n computedStyles: function computedStyles() {\n if (!this.autosize) return {};\n return {\n resize: !this.isResizeImportant ? 'none' : 'none !important',\n height: this.height,\n overflow: this.maxHeightScroll ? 'auto' : !this.isOverflowImportant ? 'hidden' : 'hidden !important'\n };\n },\n isResizeImportant: function isResizeImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('resize');\n },\n isOverflowImportant: function isOverflowImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('overflow');\n },\n isHeightImportant: function isHeightImportant() {\n var imp = this.important;\n return imp === true || Array.isArray(imp) && imp.includes('height');\n }\n },\n watch: {\n value: function value(val) {\n this.val = val;\n },\n val: function val(_val) {\n this.$nextTick(this.resize);\n this.$emit('input', _val);\n },\n minHeight: function minHeight() {\n this.$nextTick(this.resize);\n },\n maxHeight: function maxHeight() {\n this.$nextTick(this.resize);\n },\n autosize: function autosize(val) {\n if (val) this.resize();\n }\n },\n methods: {\n resize: function resize() {\n var _this = this;\n\n var important = this.isHeightImportant ? 'important' : '';\n this.height = \"auto\".concat(important ? ' !important' : '');\n this.$nextTick(function () {\n var contentHeight = _this.$el.scrollHeight + 1;\n\n if (_this.minHeight) {\n contentHeight = contentHeight < _this.minHeight ? _this.minHeight : contentHeight;\n }\n\n if (_this.maxHeight) {\n if (contentHeight > _this.maxHeight) {\n contentHeight = _this.maxHeight;\n _this.maxHeightScroll = true;\n } else {\n _this.maxHeightScroll = false;\n }\n }\n\n var heightVal = contentHeight + 'px';\n _this.height = \"\".concat(heightVal).concat(important ? ' !important' : '');\n });\n return this;\n }\n },\n created: function created() {\n this.val = this.value;\n },\n mounted: function mounted() {\n this.resize();\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.val),expression:\"val\"}],style:(_vm.computedStyles),domProps:{\"value\":(_vm.val)},on:{\"focus\":_vm.resize,\"input\":function($event){if($event.target.composing){ return; }_vm.val=$event.target.value;}}})};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var TextareaAutosize = normalizeComponent_1(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar version = '1.1.1';\n\nvar install = function install(Vue) {\n Vue.component('TextareaAutosize', TextareaAutosize);\n};\n\nvar plugin = {\n install: install,\n version: version\n};\n\nif (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(plugin);\n}\n\nexport default plugin;\n","import { extend, isArray, isMap, isIntegerKey, isSymbol, hasOwn, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\r\n console.warn(`[Vue warn] ${msg}`, ...args);\r\n}\n\nlet activeEffectScope;\r\nconst effectScopeStack = [];\r\nclass EffectScope {\r\n constructor(detached = false) {\r\n this.active = true;\r\n this.effects = [];\r\n this.cleanups = [];\r\n if (!detached && activeEffectScope) {\r\n this.parent = activeEffectScope;\r\n this.index =\r\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\r\n }\r\n }\r\n run(fn) {\r\n if (this.active) {\r\n try {\r\n this.on();\r\n return fn();\r\n }\r\n finally {\r\n this.off();\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`cannot run an inactive effect scope.`);\r\n }\r\n }\r\n on() {\r\n if (this.active) {\r\n effectScopeStack.push(this);\r\n activeEffectScope = this;\r\n }\r\n }\r\n off() {\r\n if (this.active) {\r\n effectScopeStack.pop();\r\n activeEffectScope = effectScopeStack[effectScopeStack.length - 1];\r\n }\r\n }\r\n stop(fromParent) {\r\n if (this.active) {\r\n this.effects.forEach(e => e.stop());\r\n this.cleanups.forEach(cleanup => cleanup());\r\n if (this.scopes) {\r\n this.scopes.forEach(e => e.stop(true));\r\n }\r\n // nested scope, dereference from parent to avoid memory leaks\r\n if (this.parent && !fromParent) {\r\n // optimized O(1) removal\r\n const last = this.parent.scopes.pop();\r\n if (last && last !== this) {\r\n this.parent.scopes[this.index] = last;\r\n last.index = this.index;\r\n }\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction effectScope(detached) {\r\n return new EffectScope(detached);\r\n}\r\nfunction recordEffectScope(effect, scope) {\r\n scope = scope || activeEffectScope;\r\n if (scope && scope.active) {\r\n scope.effects.push(effect);\r\n }\r\n}\r\nfunction getCurrentScope() {\r\n return activeEffectScope;\r\n}\r\nfunction onScopeDispose(fn) {\r\n if (activeEffectScope) {\r\n activeEffectScope.cleanups.push(fn);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`onScopeDispose() is called when there is no active effect scope` +\r\n ` to be associated with.`);\r\n }\r\n}\n\nconst createDep = (effects) => {\r\n const dep = new Set(effects);\r\n dep.w = 0;\r\n dep.n = 0;\r\n return dep;\r\n};\r\nconst wasTracked = (dep) => (dep.w & trackOpBit) > 0;\r\nconst newTracked = (dep) => (dep.n & trackOpBit) > 0;\r\nconst initDepMarkers = ({ deps }) => {\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].w |= trackOpBit; // set was tracked\r\n }\r\n }\r\n};\r\nconst finalizeDepMarkers = (effect) => {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n let ptr = 0;\r\n for (let i = 0; i < deps.length; i++) {\r\n const dep = deps[i];\r\n if (wasTracked(dep) && !newTracked(dep)) {\r\n dep.delete(effect);\r\n }\r\n else {\r\n deps[ptr++] = dep;\r\n }\r\n // clear bits\r\n dep.w &= ~trackOpBit;\r\n dep.n &= ~trackOpBit;\r\n }\r\n deps.length = ptr;\r\n }\r\n};\n\nconst targetMap = new WeakMap();\r\n// The number of effects currently being tracked recursively.\r\nlet effectTrackDepth = 0;\r\nlet trackOpBit = 1;\r\n/**\r\n * The bitwise track markers support at most 30 levels of recursion.\r\n * This value is chosen to enable modern JS engines to use a SMI on all platforms.\r\n * When recursion depth is greater, fall back to using a full cleanup.\r\n */\r\nconst maxMarkerBits = 30;\r\nconst effectStack = [];\r\nlet activeEffect;\r\nconst ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : '');\r\nconst MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : '');\r\nclass ReactiveEffect {\r\n constructor(fn, scheduler = null, scope) {\r\n this.fn = fn;\r\n this.scheduler = scheduler;\r\n this.active = true;\r\n this.deps = [];\r\n recordEffectScope(this, scope);\r\n }\r\n run() {\r\n if (!this.active) {\r\n return this.fn();\r\n }\r\n if (!effectStack.includes(this)) {\r\n try {\r\n effectStack.push((activeEffect = this));\r\n enableTracking();\r\n trackOpBit = 1 << ++effectTrackDepth;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n initDepMarkers(this);\r\n }\r\n else {\r\n cleanupEffect(this);\r\n }\r\n return this.fn();\r\n }\r\n finally {\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n finalizeDepMarkers(this);\r\n }\r\n trackOpBit = 1 << --effectTrackDepth;\r\n resetTracking();\r\n effectStack.pop();\r\n const n = effectStack.length;\r\n activeEffect = n > 0 ? effectStack[n - 1] : undefined;\r\n }\r\n }\r\n }\r\n stop() {\r\n if (this.active) {\r\n cleanupEffect(this);\r\n if (this.onStop) {\r\n this.onStop();\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction cleanupEffect(effect) {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].delete(effect);\r\n }\r\n deps.length = 0;\r\n }\r\n}\r\nfunction effect(fn, options) {\r\n if (fn.effect) {\r\n fn = fn.effect.fn;\r\n }\r\n const _effect = new ReactiveEffect(fn);\r\n if (options) {\r\n extend(_effect, options);\r\n if (options.scope)\r\n recordEffectScope(_effect, options.scope);\r\n }\r\n if (!options || !options.lazy) {\r\n _effect.run();\r\n }\r\n const runner = _effect.run.bind(_effect);\r\n runner.effect = _effect;\r\n return runner;\r\n}\r\nfunction stop(runner) {\r\n runner.effect.stop();\r\n}\r\nlet shouldTrack = true;\r\nconst trackStack = [];\r\nfunction pauseTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = false;\r\n}\r\nfunction enableTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = true;\r\n}\r\nfunction resetTracking() {\r\n const last = trackStack.pop();\r\n shouldTrack = last === undefined ? true : last;\r\n}\r\nfunction track(target, type, key) {\r\n if (!isTracking()) {\r\n return;\r\n }\r\n let depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n targetMap.set(target, (depsMap = new Map()));\r\n }\r\n let dep = depsMap.get(key);\r\n if (!dep) {\r\n depsMap.set(key, (dep = createDep()));\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { effect: activeEffect, target, type, key }\r\n : undefined;\r\n trackEffects(dep, eventInfo);\r\n}\r\nfunction isTracking() {\r\n return shouldTrack && activeEffect !== undefined;\r\n}\r\nfunction trackEffects(dep, debuggerEventExtraInfo) {\r\n let shouldTrack = false;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n if (!newTracked(dep)) {\r\n dep.n |= trackOpBit; // set newly tracked\r\n shouldTrack = !wasTracked(dep);\r\n }\r\n }\r\n else {\r\n // Full cleanup mode.\r\n shouldTrack = !dep.has(activeEffect);\r\n }\r\n if (shouldTrack) {\r\n dep.add(activeEffect);\r\n activeEffect.deps.push(dep);\r\n if ((process.env.NODE_ENV !== 'production') && activeEffect.onTrack) {\r\n activeEffect.onTrack(Object.assign({\r\n effect: activeEffect\r\n }, debuggerEventExtraInfo));\r\n }\r\n }\r\n}\r\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\r\n const depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n // never been tracked\r\n return;\r\n }\r\n let deps = [];\r\n if (type === \"clear\" /* CLEAR */) {\r\n // collection being cleared\r\n // trigger all effects for target\r\n deps = [...depsMap.values()];\r\n }\r\n else if (key === 'length' && isArray(target)) {\r\n depsMap.forEach((dep, key) => {\r\n if (key === 'length' || key >= newValue) {\r\n deps.push(dep);\r\n }\r\n });\r\n }\r\n else {\r\n // schedule runs for SET | ADD | DELETE\r\n if (key !== void 0) {\r\n deps.push(depsMap.get(key));\r\n }\r\n // also run for iteration key on ADD | DELETE | Map.SET\r\n switch (type) {\r\n case \"add\" /* ADD */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n else if (isIntegerKey(key)) {\r\n // new index added to array -> length changes\r\n deps.push(depsMap.get('length'));\r\n }\r\n break;\r\n case \"delete\" /* DELETE */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n break;\r\n case \"set\" /* SET */:\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n }\r\n break;\r\n }\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { target, type, key, newValue, oldValue, oldTarget }\r\n : undefined;\r\n if (deps.length === 1) {\r\n if (deps[0]) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(deps[0], eventInfo);\r\n }\r\n else {\r\n triggerEffects(deps[0]);\r\n }\r\n }\r\n }\r\n else {\r\n const effects = [];\r\n for (const dep of deps) {\r\n if (dep) {\r\n effects.push(...dep);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(createDep(effects), eventInfo);\r\n }\r\n else {\r\n triggerEffects(createDep(effects));\r\n }\r\n }\r\n}\r\nfunction triggerEffects(dep, debuggerEventExtraInfo) {\r\n // spread into array for stabilization\r\n for (const effect of isArray(dep) ? dep : [...dep]) {\r\n if (effect !== activeEffect || effect.allowRecurse) {\r\n if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {\r\n effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));\r\n }\r\n if (effect.scheduler) {\r\n effect.scheduler();\r\n }\r\n else {\r\n effect.run();\r\n }\r\n }\r\n }\r\n}\n\nconst isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);\r\nconst builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol)\r\n .map(key => Symbol[key])\r\n .filter(isSymbol));\r\nconst get = /*#__PURE__*/ createGetter();\r\nconst shallowGet = /*#__PURE__*/ createGetter(false, true);\r\nconst readonlyGet = /*#__PURE__*/ createGetter(true);\r\nconst shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);\r\nconst arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();\r\nfunction createArrayInstrumentations() {\r\n const instrumentations = {};\r\n ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n const arr = toRaw(this);\r\n for (let i = 0, l = this.length; i < l; i++) {\r\n track(arr, \"get\" /* GET */, i + '');\r\n }\r\n // we run the method using the original args first (which may be reactive)\r\n const res = arr[key](...args);\r\n if (res === -1 || res === false) {\r\n // if that didn't work, run it again using raw values.\r\n return arr[key](...args.map(toRaw));\r\n }\r\n else {\r\n return res;\r\n }\r\n };\r\n });\r\n ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n pauseTracking();\r\n const res = toRaw(this)[key].apply(this, args);\r\n resetTracking();\r\n return res;\r\n };\r\n });\r\n return instrumentations;\r\n}\r\nfunction createGetter(isReadonly = false, shallow = false) {\r\n return function get(target, key, receiver) {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */ &&\r\n receiver ===\r\n (isReadonly\r\n ? shallow\r\n ? shallowReadonlyMap\r\n : readonlyMap\r\n : shallow\r\n ? shallowReactiveMap\r\n : reactiveMap).get(target)) {\r\n return target;\r\n }\r\n const targetIsArray = isArray(target);\r\n if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\r\n return Reflect.get(arrayInstrumentations, key, receiver);\r\n }\r\n const res = Reflect.get(target, key, receiver);\r\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\r\n return res;\r\n }\r\n if (!isReadonly) {\r\n track(target, \"get\" /* GET */, key);\r\n }\r\n if (shallow) {\r\n return res;\r\n }\r\n if (isRef(res)) {\r\n // ref unwrapping - does not apply for Array + integer key.\r\n const shouldUnwrap = !targetIsArray || !isIntegerKey(key);\r\n return shouldUnwrap ? res.value : res;\r\n }\r\n if (isObject(res)) {\r\n // Convert returned value into a proxy as well. we do the isObject check\r\n // here to avoid invalid value warning. Also need to lazy access readonly\r\n // and reactive here to avoid circular dependency.\r\n return isReadonly ? readonly(res) : reactive(res);\r\n }\r\n return res;\r\n };\r\n}\r\nconst set = /*#__PURE__*/ createSetter();\r\nconst shallowSet = /*#__PURE__*/ createSetter(true);\r\nfunction createSetter(shallow = false) {\r\n return function set(target, key, value, receiver) {\r\n let oldValue = target[key];\r\n if (!shallow && !isReadonly(value)) {\r\n value = toRaw(value);\r\n oldValue = toRaw(oldValue);\r\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n }\r\n const hadKey = isArray(target) && isIntegerKey(key)\r\n ? Number(key) < target.length\r\n : hasOwn(target, key);\r\n const result = Reflect.set(target, key, value, receiver);\r\n // don't trigger if target is something up in the prototype chain of original\r\n if (target === toRaw(receiver)) {\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n }\r\n return result;\r\n };\r\n}\r\nfunction deleteProperty(target, key) {\r\n const hadKey = hasOwn(target, key);\r\n const oldValue = target[key];\r\n const result = Reflect.deleteProperty(target, key);\r\n if (result && hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction has(target, key) {\r\n const result = Reflect.has(target, key);\r\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\r\n track(target, \"has\" /* HAS */, key);\r\n }\r\n return result;\r\n}\r\nfunction ownKeys(target) {\r\n track(target, \"iterate\" /* ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);\r\n return Reflect.ownKeys(target);\r\n}\r\nconst mutableHandlers = {\r\n get,\r\n set,\r\n deleteProperty,\r\n has,\r\n ownKeys\r\n};\r\nconst readonlyHandlers = {\r\n get: readonlyGet,\r\n set(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n },\r\n deleteProperty(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n }\r\n};\r\nconst shallowReactiveHandlers = /*#__PURE__*/ extend({}, mutableHandlers, {\r\n get: shallowGet,\r\n set: shallowSet\r\n});\r\n// Props handlers are special in the sense that it should not unwrap top-level\r\n// refs (in order to allow refs to be explicitly passed down), but should\r\n// retain the reactivity of the normal readonly object.\r\nconst shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {\r\n get: shallowReadonlyGet\r\n});\n\nconst toShallow = (value) => value;\r\nconst getProto = (v) => Reflect.getPrototypeOf(v);\r\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\r\n // #1772: readonly(reactive(Map)) should return readonly + reactive version\r\n // of the value\r\n target = target[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (key !== rawKey) {\r\n !isReadonly && track(rawTarget, \"get\" /* GET */, key);\r\n }\r\n !isReadonly && track(rawTarget, \"get\" /* GET */, rawKey);\r\n const { has } = getProto(rawTarget);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n if (has.call(rawTarget, key)) {\r\n return wrap(target.get(key));\r\n }\r\n else if (has.call(rawTarget, rawKey)) {\r\n return wrap(target.get(rawKey));\r\n }\r\n else if (target !== rawTarget) {\r\n // #3602 readonly(reactive(Map))\r\n // ensure that the nested reactive `Map` can do tracking for itself\r\n target.get(key);\r\n }\r\n}\r\nfunction has$1(key, isReadonly = false) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (key !== rawKey) {\r\n !isReadonly && track(rawTarget, \"has\" /* HAS */, key);\r\n }\r\n !isReadonly && track(rawTarget, \"has\" /* HAS */, rawKey);\r\n return key === rawKey\r\n ? target.has(key)\r\n : target.has(key) || target.has(rawKey);\r\n}\r\nfunction size(target, isReadonly = false) {\r\n target = target[\"__v_raw\" /* RAW */];\r\n !isReadonly && track(toRaw(target), \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return Reflect.get(target, 'size', target);\r\n}\r\nfunction add(value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const proto = getProto(target);\r\n const hadKey = proto.has.call(target, value);\r\n if (!hadKey) {\r\n target.add(value);\r\n trigger(target, \"add\" /* ADD */, value, value);\r\n }\r\n return this;\r\n}\r\nfunction set$1(key, value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get.call(target, key);\r\n target.set(key, value);\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* SET */, key, value, oldValue);\r\n }\r\n return this;\r\n}\r\nfunction deleteEntry(key) {\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get ? get.call(target, key) : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.delete(key);\r\n if (hadKey) {\r\n trigger(target, \"delete\" /* DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction clear() {\r\n const target = toRaw(this);\r\n const hadItems = target.size !== 0;\r\n const oldTarget = (process.env.NODE_ENV !== 'production')\r\n ? isMap(target)\r\n ? new Map(target)\r\n : new Set(target)\r\n : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.clear();\r\n if (hadItems) {\r\n trigger(target, \"clear\" /* CLEAR */, undefined, undefined, oldTarget);\r\n }\r\n return result;\r\n}\r\nfunction createForEach(isReadonly, isShallow) {\r\n return function forEach(callback, thisArg) {\r\n const observed = this;\r\n const target = observed[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly && track(rawTarget, \"iterate\" /* ITERATE */, ITERATE_KEY);\r\n return target.forEach((value, key) => {\r\n // important: make sure the callback is\r\n // 1. invoked with the reactive map as `this` and 3rd arg\r\n // 2. the value received should be a corresponding reactive/readonly.\r\n return callback.call(thisArg, wrap(value), wrap(key), observed);\r\n });\r\n };\r\n}\r\nfunction createIterableMethod(method, isReadonly, isShallow) {\r\n return function (...args) {\r\n const target = this[\"__v_raw\" /* RAW */];\r\n const rawTarget = toRaw(target);\r\n const targetIsMap = isMap(rawTarget);\r\n const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);\r\n const isKeyOnly = method === 'keys' && targetIsMap;\r\n const innerIterator = target[method](...args);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly &&\r\n track(rawTarget, \"iterate\" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\r\n // return a wrapped iterator which returns observed versions of the\r\n // values emitted from the real iterator\r\n return {\r\n // iterator protocol\r\n next() {\r\n const { value, done } = innerIterator.next();\r\n return done\r\n ? { value, done }\r\n : {\r\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\r\n done\r\n };\r\n },\r\n // iterable protocol\r\n [Symbol.iterator]() {\r\n return this;\r\n }\r\n };\r\n };\r\n}\r\nfunction createReadonlyMethod(type) {\r\n return function (...args) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\r\n console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\r\n }\r\n return type === \"delete\" /* DELETE */ ? false : this;\r\n };\r\n}\r\nfunction createInstrumentations() {\r\n const mutableInstrumentations = {\r\n get(key) {\r\n return get$1(this, key);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, false)\r\n };\r\n const shallowInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, false, true);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, true)\r\n };\r\n const readonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, false)\r\n };\r\n const shallowReadonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* ADD */),\r\n set: createReadonlyMethod(\"set\" /* SET */),\r\n delete: createReadonlyMethod(\"delete\" /* DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* CLEAR */),\r\n forEach: createForEach(true, true)\r\n };\r\n const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];\r\n iteratorMethods.forEach(method => {\r\n mutableInstrumentations[method] = createIterableMethod(method, false, false);\r\n readonlyInstrumentations[method] = createIterableMethod(method, true, false);\r\n shallowInstrumentations[method] = createIterableMethod(method, false, true);\r\n shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);\r\n });\r\n return [\r\n mutableInstrumentations,\r\n readonlyInstrumentations,\r\n shallowInstrumentations,\r\n shallowReadonlyInstrumentations\r\n ];\r\n}\r\nconst [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();\r\nfunction createInstrumentationGetter(isReadonly, shallow) {\r\n const instrumentations = shallow\r\n ? isReadonly\r\n ? shallowReadonlyInstrumentations\r\n : shallowInstrumentations\r\n : isReadonly\r\n ? readonlyInstrumentations\r\n : mutableInstrumentations;\r\n return (target, key, receiver) => {\r\n if (key === \"__v_isReactive\" /* IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* RAW */) {\r\n return target;\r\n }\r\n return Reflect.get(hasOwn(instrumentations, key) && key in target\r\n ? instrumentations\r\n : target, key, receiver);\r\n };\r\n}\r\nconst mutableCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, false)\r\n};\r\nconst shallowCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, true)\r\n};\r\nconst readonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, false)\r\n};\r\nconst shallowReadonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, true)\r\n};\r\nfunction checkIdentityKeys(target, has, key) {\r\n const rawKey = toRaw(key);\r\n if (rawKey !== key && has.call(target, rawKey)) {\r\n const type = toRawType(target);\r\n console.warn(`Reactive ${type} contains both the raw and reactive ` +\r\n `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +\r\n `which can lead to inconsistencies. ` +\r\n `Avoid differentiating between the raw and reactive versions ` +\r\n `of an object and only use the reactive version if possible.`);\r\n }\r\n}\n\nconst reactiveMap = new WeakMap();\r\nconst shallowReactiveMap = new WeakMap();\r\nconst readonlyMap = new WeakMap();\r\nconst shallowReadonlyMap = new WeakMap();\r\nfunction targetTypeMap(rawType) {\r\n switch (rawType) {\r\n case 'Object':\r\n case 'Array':\r\n return 1 /* COMMON */;\r\n case 'Map':\r\n case 'Set':\r\n case 'WeakMap':\r\n case 'WeakSet':\r\n return 2 /* COLLECTION */;\r\n default:\r\n return 0 /* INVALID */;\r\n }\r\n}\r\nfunction getTargetType(value) {\r\n return value[\"__v_skip\" /* SKIP */] || !Object.isExtensible(value)\r\n ? 0 /* INVALID */\r\n : targetTypeMap(toRawType(value));\r\n}\r\nfunction reactive(target) {\r\n // if trying to observe a readonly proxy, return the readonly version.\r\n if (target && target[\"__v_isReadonly\" /* IS_READONLY */]) {\r\n return target;\r\n }\r\n return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\r\n}\r\n/**\r\n * Return a shallowly-reactive copy of the original object, where only the root\r\n * level properties are reactive. It also does not auto-unwrap refs (even at the\r\n * root level).\r\n */\r\nfunction shallowReactive(target) {\r\n return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);\r\n}\r\n/**\r\n * Creates a readonly copy of the original object. Note the returned copy is not\r\n * made reactive, but `readonly` can be called on an already reactive object.\r\n */\r\nfunction readonly(target) {\r\n return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\r\n}\r\n/**\r\n * Returns a reactive-copy of the original object, where only the root level\r\n * properties are readonly, and does NOT unwrap refs nor recursively convert\r\n * returned properties.\r\n * This is used for creating the props proxy object for stateful components.\r\n */\r\nfunction shallowReadonly(target) {\r\n return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);\r\n}\r\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\r\n if (!isObject(target)) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`value cannot be made reactive: ${String(target)}`);\r\n }\r\n return target;\r\n }\r\n // target is already a Proxy, return it.\r\n // exception: calling readonly() on a reactive object\r\n if (target[\"__v_raw\" /* RAW */] &&\r\n !(isReadonly && target[\"__v_isReactive\" /* IS_REACTIVE */])) {\r\n return target;\r\n }\r\n // target already has corresponding Proxy\r\n const existingProxy = proxyMap.get(target);\r\n if (existingProxy) {\r\n return existingProxy;\r\n }\r\n // only a whitelist of value types can be observed.\r\n const targetType = getTargetType(target);\r\n if (targetType === 0 /* INVALID */) {\r\n return target;\r\n }\r\n const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);\r\n proxyMap.set(target, proxy);\r\n return proxy;\r\n}\r\nfunction isReactive(value) {\r\n if (isReadonly(value)) {\r\n return isReactive(value[\"__v_raw\" /* RAW */]);\r\n }\r\n return !!(value && value[\"__v_isReactive\" /* IS_REACTIVE */]);\r\n}\r\nfunction isReadonly(value) {\r\n return !!(value && value[\"__v_isReadonly\" /* IS_READONLY */]);\r\n}\r\nfunction isProxy(value) {\r\n return isReactive(value) || isReadonly(value);\r\n}\r\nfunction toRaw(observed) {\r\n const raw = observed && observed[\"__v_raw\" /* RAW */];\r\n return raw ? toRaw(raw) : observed;\r\n}\r\nfunction markRaw(value) {\r\n def(value, \"__v_skip\" /* SKIP */, true);\r\n return value;\r\n}\r\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\r\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction trackRefValue(ref) {\r\n if (isTracking()) {\r\n ref = toRaw(ref);\r\n if (!ref.dep) {\r\n ref.dep = createDep();\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n trackEffects(ref.dep, {\r\n target: ref,\r\n type: \"get\" /* GET */,\r\n key: 'value'\r\n });\r\n }\r\n else {\r\n trackEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction triggerRefValue(ref, newVal) {\r\n ref = toRaw(ref);\r\n if (ref.dep) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(ref.dep, {\r\n target: ref,\r\n type: \"set\" /* SET */,\r\n key: 'value',\r\n newValue: newVal\r\n });\r\n }\r\n else {\r\n triggerEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction isRef(r) {\r\n return Boolean(r && r.__v_isRef === true);\r\n}\r\nfunction ref(value) {\r\n return createRef(value, false);\r\n}\r\nfunction shallowRef(value) {\r\n return createRef(value, true);\r\n}\r\nfunction createRef(rawValue, shallow) {\r\n if (isRef(rawValue)) {\r\n return rawValue;\r\n }\r\n return new RefImpl(rawValue, shallow);\r\n}\r\nclass RefImpl {\r\n constructor(value, _shallow) {\r\n this._shallow = _shallow;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this._rawValue = _shallow ? value : toRaw(value);\r\n this._value = _shallow ? value : toReactive(value);\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n return this._value;\r\n }\r\n set value(newVal) {\r\n newVal = this._shallow ? newVal : toRaw(newVal);\r\n if (hasChanged(newVal, this._rawValue)) {\r\n this._rawValue = newVal;\r\n this._value = this._shallow ? newVal : toReactive(newVal);\r\n triggerRefValue(this, newVal);\r\n }\r\n }\r\n}\r\nfunction triggerRef(ref) {\r\n triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);\r\n}\r\nfunction unref(ref) {\r\n return isRef(ref) ? ref.value : ref;\r\n}\r\nconst shallowUnwrapHandlers = {\r\n get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),\r\n set: (target, key, value, receiver) => {\r\n const oldValue = target[key];\r\n if (isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n else {\r\n return Reflect.set(target, key, value, receiver);\r\n }\r\n }\r\n};\r\nfunction proxyRefs(objectWithRefs) {\r\n return isReactive(objectWithRefs)\r\n ? objectWithRefs\r\n : new Proxy(objectWithRefs, shallowUnwrapHandlers);\r\n}\r\nclass CustomRefImpl {\r\n constructor(factory) {\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));\r\n this._get = get;\r\n this._set = set;\r\n }\r\n get value() {\r\n return this._get();\r\n }\r\n set value(newVal) {\r\n this._set(newVal);\r\n }\r\n}\r\nfunction customRef(factory) {\r\n return new CustomRefImpl(factory);\r\n}\r\nfunction toRefs(object) {\r\n if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) {\r\n console.warn(`toRefs() expects a reactive object but received a plain one.`);\r\n }\r\n const ret = isArray(object) ? new Array(object.length) : {};\r\n for (const key in object) {\r\n ret[key] = toRef(object, key);\r\n }\r\n return ret;\r\n}\r\nclass ObjectRefImpl {\r\n constructor(_object, _key, _defaultValue) {\r\n this._object = _object;\r\n this._key = _key;\r\n this._defaultValue = _defaultValue;\r\n this.__v_isRef = true;\r\n }\r\n get value() {\r\n const val = this._object[this._key];\r\n return val === undefined ? this._defaultValue : val;\r\n }\r\n set value(newVal) {\r\n this._object[this._key] = newVal;\r\n }\r\n}\r\nfunction toRef(object, key, defaultValue) {\r\n const val = object[key];\r\n return isRef(val)\r\n ? val\r\n : new ObjectRefImpl(object, key, defaultValue);\r\n}\n\nclass ComputedRefImpl {\r\n constructor(getter, _setter, isReadonly) {\r\n this._setter = _setter;\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this.effect = new ReactiveEffect(getter, () => {\r\n if (!this._dirty) {\r\n this._dirty = true;\r\n triggerRefValue(this);\r\n }\r\n });\r\n this[\"__v_isReadonly\" /* IS_READONLY */] = isReadonly;\r\n }\r\n get value() {\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n const self = toRaw(this);\r\n trackRefValue(self);\r\n if (self._dirty) {\r\n self._dirty = false;\r\n self._value = self.effect.run();\r\n }\r\n return self._value;\r\n }\r\n set value(newValue) {\r\n this._setter(newValue);\r\n }\r\n}\r\nfunction computed(getterOrOptions, debugOptions) {\r\n let getter;\r\n let setter;\r\n const onlyGetter = isFunction(getterOrOptions);\r\n if (onlyGetter) {\r\n getter = getterOrOptions;\r\n setter = (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n console.warn('Write operation failed: computed value is readonly');\r\n }\r\n : NOOP;\r\n }\r\n else {\r\n getter = getterOrOptions.get;\r\n setter = getterOrOptions.set;\r\n }\r\n const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter);\r\n if ((process.env.NODE_ENV !== 'production') && debugOptions) {\r\n cRef.effect.onTrack = debugOptions.onTrack;\r\n cRef.effect.onTrigger = debugOptions.onTrigger;\r\n }\r\n return cRef;\r\n}\n\nvar _a;\r\nconst tick = Promise.resolve();\r\nconst queue = [];\r\nlet queued = false;\r\nconst scheduler = (fn) => {\r\n queue.push(fn);\r\n if (!queued) {\r\n queued = true;\r\n tick.then(flush);\r\n }\r\n};\r\nconst flush = () => {\r\n for (let i = 0; i < queue.length; i++) {\r\n queue[i]();\r\n }\r\n queue.length = 0;\r\n queued = false;\r\n};\r\nclass DeferredComputedRefImpl {\r\n constructor(getter) {\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this[_a] = true;\r\n let compareTarget;\r\n let hasCompareTarget = false;\r\n let scheduled = false;\r\n this.effect = new ReactiveEffect(getter, (computedTrigger) => {\r\n if (this.dep) {\r\n if (computedTrigger) {\r\n compareTarget = this._value;\r\n hasCompareTarget = true;\r\n }\r\n else if (!scheduled) {\r\n const valueToCompare = hasCompareTarget ? compareTarget : this._value;\r\n scheduled = true;\r\n hasCompareTarget = false;\r\n scheduler(() => {\r\n if (this.effect.active && this._get() !== valueToCompare) {\r\n triggerRefValue(this);\r\n }\r\n scheduled = false;\r\n });\r\n }\r\n // chained upstream computeds are notified synchronously to ensure\r\n // value invalidation in case of sync access; normal effects are\r\n // deferred to be triggered in scheduler.\r\n for (const e of this.dep) {\r\n if (e.computed) {\r\n e.scheduler(true /* computedTrigger */);\r\n }\r\n }\r\n }\r\n this._dirty = true;\r\n });\r\n this.effect.computed = true;\r\n }\r\n _get() {\r\n if (this._dirty) {\r\n this._dirty = false;\r\n return (this._value = this.effect.run());\r\n }\r\n return this._value;\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n return toRaw(this)._get();\r\n }\r\n}\r\n_a = \"__v_isReadonly\" /* IS_READONLY */;\r\nfunction deferredComputed(getter) {\r\n return new DeferredComputedRefImpl(getter);\r\n}\n\nexport { EffectScope, ITERATE_KEY, ReactiveEffect, computed, customRef, deferredComputed, effect, effectScope, enableTracking, getCurrentScope, isProxy, isReactive, isReadonly, isRef, markRaw, onScopeDispose, pauseTracking, proxyRefs, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref };\n","import { toRaw, ref, pauseTracking, resetTracking, reactive, computed, isRef, shallowReactive, trigger, ReactiveEffect, isProxy, shallowReadonly, track, EffectScope, markRaw, proxyRefs, isReactive, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, computed, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';\nimport { getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, isFunction, toNumber, hyphenate, camelize, isArray, isOn, hasOwn, isModelListener, isObject, remove, isString, invokeArrayFns, isPromise, NOOP, def, isReservedProp, EMPTY_ARR, capitalize, toRawType, makeMap, NO, normalizeClass, normalizeStyle, isGloballyWhitelisted, hasChanged, isSet, isMap, isPlainObject } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\n/* eslint-disable no-restricted-globals */\r\nlet isHmrUpdating = false;\r\nconst hmrDirtyComponents = new Set();\r\n// Expose the HMR runtime on the global object\r\n// This makes it entirely tree-shakable without polluting the exports and makes\r\n// it easier to be used in toolings like vue-loader\r\n// Note: for a component to be eligible for HMR it also needs the __hmrId option\r\n// to be set so that its instances can be registered / removed.\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\r\n createRecord: tryWrap(createRecord),\r\n rerender: tryWrap(rerender),\r\n reload: tryWrap(reload)\r\n };\r\n}\r\nconst map = new Map();\r\nfunction registerHMR(instance) {\r\n const id = instance.type.__hmrId;\r\n let record = map.get(id);\r\n if (!record) {\r\n createRecord(id, instance.type);\r\n record = map.get(id);\r\n }\r\n record.instances.add(instance);\r\n}\r\nfunction unregisterHMR(instance) {\r\n map.get(instance.type.__hmrId).instances.delete(instance);\r\n}\r\nfunction createRecord(id, initialDef) {\r\n if (map.has(id)) {\r\n return false;\r\n }\r\n map.set(id, {\r\n initialDef: normalizeClassComponent(initialDef),\r\n instances: new Set()\r\n });\r\n return true;\r\n}\r\nfunction normalizeClassComponent(component) {\r\n return isClassComponent(component) ? component.__vccOpts : component;\r\n}\r\nfunction rerender(id, newRender) {\r\n const record = map.get(id);\r\n if (!record) {\r\n return;\r\n }\r\n // update initial record (for not-yet-rendered component)\r\n record.initialDef.render = newRender;\r\n [...record.instances].forEach(instance => {\r\n if (newRender) {\r\n instance.render = newRender;\r\n normalizeClassComponent(instance.type).render = newRender;\r\n }\r\n instance.renderCache = [];\r\n // this flag forces child components with slot content to update\r\n isHmrUpdating = true;\r\n instance.update();\r\n isHmrUpdating = false;\r\n });\r\n}\r\nfunction reload(id, newComp) {\r\n const record = map.get(id);\r\n if (!record)\r\n return;\r\n newComp = normalizeClassComponent(newComp);\r\n // update initial def (for not-yet-rendered components)\r\n updateComponentDef(record.initialDef, newComp);\r\n // create a snapshot which avoids the set being mutated during updates\r\n const instances = [...record.instances];\r\n for (const instance of instances) {\r\n const oldComp = normalizeClassComponent(instance.type);\r\n if (!hmrDirtyComponents.has(oldComp)) {\r\n // 1. Update existing comp definition to match new one\r\n if (oldComp !== record.initialDef) {\r\n updateComponentDef(oldComp, newComp);\r\n }\r\n // 2. mark definition dirty. This forces the renderer to replace the\r\n // component on patch.\r\n hmrDirtyComponents.add(oldComp);\r\n }\r\n // 3. invalidate options resolution cache\r\n instance.appContext.optionsCache.delete(instance.type);\r\n // 4. actually update\r\n if (instance.ceReload) {\r\n // custom element\r\n hmrDirtyComponents.add(oldComp);\r\n instance.ceReload(newComp.styles);\r\n hmrDirtyComponents.delete(oldComp);\r\n }\r\n else if (instance.parent) {\r\n // 4. Force the parent instance to re-render. This will cause all updated\r\n // components to be unmounted and re-mounted. Queue the update so that we\r\n // don't end up forcing the same parent to re-render multiple times.\r\n queueJob(instance.parent.update);\r\n // instance is the inner component of an async custom element\r\n // invoke to reset styles\r\n if (instance.parent.type.__asyncLoader &&\r\n instance.parent.ceReload) {\r\n instance.parent.ceReload(newComp.styles);\r\n }\r\n }\r\n else if (instance.appContext.reload) {\r\n // root instance mounted via createApp() has a reload method\r\n instance.appContext.reload();\r\n }\r\n else if (typeof window !== 'undefined') {\r\n // root instance inside tree created via raw render(). Force reload.\r\n window.location.reload();\r\n }\r\n else {\r\n console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');\r\n }\r\n }\r\n // 5. make sure to cleanup dirty hmr components after update\r\n queuePostFlushCb(() => {\r\n for (const instance of instances) {\r\n hmrDirtyComponents.delete(normalizeClassComponent(instance.type));\r\n }\r\n });\r\n}\r\nfunction updateComponentDef(oldComp, newComp) {\r\n extend(oldComp, newComp);\r\n for (const key in oldComp) {\r\n if (key !== '__file' && !(key in newComp)) {\r\n delete oldComp[key];\r\n }\r\n }\r\n}\r\nfunction tryWrap(fn) {\r\n return (id, arg) => {\r\n try {\r\n return fn(id, arg);\r\n }\r\n catch (e) {\r\n console.error(e);\r\n console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +\r\n `Full reload required.`);\r\n }\r\n };\r\n}\n\nlet devtools;\r\nlet buffer = [];\r\nlet devtoolsNotInstalled = false;\r\nfunction emit(event, ...args) {\r\n if (devtools) {\r\n devtools.emit(event, ...args);\r\n }\r\n else if (!devtoolsNotInstalled) {\r\n buffer.push({ event, args });\r\n }\r\n}\r\nfunction setDevtoolsHook(hook, target) {\r\n var _a, _b;\r\n devtools = hook;\r\n if (devtools) {\r\n devtools.enabled = true;\r\n buffer.forEach(({ event, args }) => devtools.emit(event, ...args));\r\n buffer = [];\r\n }\r\n else if (\r\n // handle late devtools injection - only do this if we are in an actual\r\n // browser environment to avoid the timer handle stalling test runner exit\r\n // (#4815)\r\n // eslint-disable-next-line no-restricted-globals\r\n typeof window !== 'undefined' &&\r\n // some envs mock window but not fully\r\n window.HTMLElement &&\r\n // also exclude jsdom\r\n !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {\r\n const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);\r\n replay.push((newHook) => {\r\n setDevtoolsHook(newHook, target);\r\n });\r\n // clear buffer after 3s - the user probably doesn't have devtools installed\r\n // at all, and keeping the buffer will cause memory leaks (#4738)\r\n setTimeout(() => {\r\n if (!devtools) {\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n }, 3000);\r\n }\r\n else {\r\n // non-browser env, assume not installed\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n}\r\nfunction devtoolsInitApp(app, version) {\r\n emit(\"app:init\" /* APP_INIT */, app, version, {\r\n Fragment,\r\n Text,\r\n Comment,\r\n Static\r\n });\r\n}\r\nfunction devtoolsUnmountApp(app) {\r\n emit(\"app:unmount\" /* APP_UNMOUNT */, app);\r\n}\r\nconst devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\r\nconst devtoolsComponentUpdated = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\r\nconst devtoolsComponentRemoved = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:removed\" /* COMPONENT_REMOVED */);\r\nfunction createDevtoolsComponentHook(hook) {\r\n return (component) => {\r\n emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);\r\n };\r\n}\r\nconst devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\r\nconst devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\r\nfunction createDevtoolsPerformanceHook(hook) {\r\n return (component, type, time) => {\r\n emit(hook, component.appContext.app, component.uid, component, type, time);\r\n };\r\n}\r\nfunction devtoolsComponentEmit(component, event, params) {\r\n emit(\"component:emit\" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);\r\n}\n\nfunction emit$1(instance, event, ...rawArgs) {\r\n const props = instance.vnode.props || EMPTY_OBJ;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const { emitsOptions, propsOptions: [propsOptions] } = instance;\r\n if (emitsOptions) {\r\n if (!(event in emitsOptions) &&\r\n !(false )) {\r\n if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {\r\n warn(`Component emitted event \"${event}\" but it is neither declared in ` +\r\n `the emits option nor as an \"${toHandlerKey(event)}\" prop.`);\r\n }\r\n }\r\n else {\r\n const validator = emitsOptions[event];\r\n if (isFunction(validator)) {\r\n const isValid = validator(...rawArgs);\r\n if (!isValid) {\r\n warn(`Invalid event arguments: event validation failed for event \"${event}\".`);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n let args = rawArgs;\r\n const isModelListener = event.startsWith('update:');\r\n // for v-model update:xxx events, apply modifiers on args\r\n const modelArg = isModelListener && event.slice(7);\r\n if (modelArg && modelArg in props) {\r\n const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;\r\n const { number, trim } = props[modifiersKey] || EMPTY_OBJ;\r\n if (trim) {\r\n args = rawArgs.map(a => a.trim());\r\n }\r\n else if (number) {\r\n args = rawArgs.map(toNumber);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentEmit(instance, event, args);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const lowerCaseEvent = event.toLowerCase();\r\n if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {\r\n warn(`Event \"${lowerCaseEvent}\" is emitted in component ` +\r\n `${formatComponentName(instance, instance.type)} but the handler is registered for \"${event}\". ` +\r\n `Note that HTML attributes are case-insensitive and you cannot use ` +\r\n `v-on to listen to camelCase events when using in-DOM templates. ` +\r\n `You should probably use \"${hyphenate(event)}\" instead of \"${event}\".`);\r\n }\r\n }\r\n let handlerName;\r\n let handler = props[(handlerName = toHandlerKey(event))] ||\r\n // also try camelCase event handler (#2249)\r\n props[(handlerName = toHandlerKey(camelize(event)))];\r\n // for v-model update:xxx events, also trigger kebab-case equivalent\r\n // for props passed via kebab-case\r\n if (!handler && isModelListener) {\r\n handler = props[(handlerName = toHandlerKey(hyphenate(event)))];\r\n }\r\n if (handler) {\r\n callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n const onceHandler = props[handlerName + `Once`];\r\n if (onceHandler) {\r\n if (!instance.emitted) {\r\n instance.emitted = {};\r\n }\r\n else if (instance.emitted[handlerName]) {\r\n return;\r\n }\r\n instance.emitted[handlerName] = true;\r\n callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n}\r\nfunction normalizeEmitsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.emitsCache;\r\n const cached = cache.get(comp);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const raw = comp.emits;\r\n let normalized = {};\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendEmits = (raw) => {\r\n const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);\r\n if (normalizedFromExtend) {\r\n hasExtends = true;\r\n extend(normalized, normalizedFromExtend);\r\n }\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendEmits);\r\n }\r\n if (comp.extends) {\r\n extendEmits(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendEmits);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n cache.set(comp, null);\r\n return null;\r\n }\r\n if (isArray(raw)) {\r\n raw.forEach(key => (normalized[key] = null));\r\n }\r\n else {\r\n extend(normalized, raw);\r\n }\r\n cache.set(comp, normalized);\r\n return normalized;\r\n}\r\n// Check if an incoming prop key is a declared emit event listener.\r\n// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are\r\n// both considered matched listeners.\r\nfunction isEmitListener(options, key) {\r\n if (!options || !isOn(key)) {\r\n return false;\r\n }\r\n key = key.slice(2).replace(/Once$/, '');\r\n return (hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||\r\n hasOwn(options, hyphenate(key)) ||\r\n hasOwn(options, key));\r\n}\n\n/**\r\n * mark the current rendering instance for asset resolution (e.g.\r\n * resolveComponent, resolveDirective) during render\r\n */\r\nlet currentRenderingInstance = null;\r\nlet currentScopeId = null;\r\n/**\r\n * Note: rendering calls maybe nested. The function returns the parent rendering\r\n * instance if present, which should be restored after the render is done:\r\n *\r\n * ```js\r\n * const prev = setCurrentRenderingInstance(i)\r\n * // ...render\r\n * setCurrentRenderingInstance(prev)\r\n * ```\r\n */\r\nfunction setCurrentRenderingInstance(instance) {\r\n const prev = currentRenderingInstance;\r\n currentRenderingInstance = instance;\r\n currentScopeId = (instance && instance.type.__scopeId) || null;\r\n return prev;\r\n}\r\n/**\r\n * Set scope id when creating hoisted vnodes.\r\n * @private compiler helper\r\n */\r\nfunction pushScopeId(id) {\r\n currentScopeId = id;\r\n}\r\n/**\r\n * Technically we no longer need this after 3.0.8 but we need to keep the same\r\n * API for backwards compat w/ code generated by compilers.\r\n * @private\r\n */\r\nfunction popScopeId() {\r\n currentScopeId = null;\r\n}\r\n/**\r\n * Only for backwards compat\r\n * @private\r\n */\r\nconst withScopeId = (_id) => withCtx;\r\n/**\r\n * Wrap a slot function to memoize current rendering instance\r\n * @private compiler helper\r\n */\r\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only\r\n) {\r\n if (!ctx)\r\n return fn;\r\n // already normalized\r\n if (fn._n) {\r\n return fn;\r\n }\r\n const renderFnWithContext = (...args) => {\r\n // If a user calls a compiled slot inside a template expression (#1745), it\r\n // can mess up block tracking, so by default we disable block tracking and\r\n // force bail out when invoking a compiled slot (indicated by the ._d flag).\r\n // This isn't necessary if rendering a compiled `<slot>`, so we flip the\r\n // ._d flag off when invoking the wrapped fn inside `renderSlot`.\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(-1);\r\n }\r\n const prevInstance = setCurrentRenderingInstance(ctx);\r\n const res = fn(...args);\r\n setCurrentRenderingInstance(prevInstance);\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(ctx);\r\n }\r\n return res;\r\n };\r\n // mark normalized to avoid duplicated wrapping\r\n renderFnWithContext._n = true;\r\n // mark this as compiled by default\r\n // this is used in vnode.ts -> normalizeChildren() to set the slot\r\n // rendering flag.\r\n renderFnWithContext._c = true;\r\n // disable block tracking by default\r\n renderFnWithContext._d = true;\r\n return renderFnWithContext;\r\n}\n\n/**\r\n * dev only flag to track whether $attrs was used during render.\r\n * If $attrs was used during render then the warning for failed attrs\r\n * fallthrough can be suppressed.\r\n */\r\nlet accessedAttrs = false;\r\nfunction markAttrsAccessed() {\r\n accessedAttrs = true;\r\n}\r\nfunction renderComponentRoot(instance) {\r\n const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;\r\n let result;\r\n let fallthroughAttrs;\r\n const prev = setCurrentRenderingInstance(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n accessedAttrs = false;\r\n }\r\n try {\r\n if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {\r\n // withProxy is a proxy with a different `has` trap only for\r\n // runtime-compiled render functions using `with` block.\r\n const proxyToUse = withProxy || proxy;\r\n result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));\r\n fallthroughAttrs = attrs;\r\n }\r\n else {\r\n // functional\r\n const render = Component;\r\n // in dev, mark attrs accessed if optional props (attrs === props)\r\n if ((process.env.NODE_ENV !== 'production') && attrs === props) {\r\n markAttrsAccessed();\r\n }\r\n result = normalizeVNode(render.length > 1\r\n ? render(props, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get attrs() {\r\n markAttrsAccessed();\r\n return attrs;\r\n },\r\n slots,\r\n emit\r\n }\r\n : { attrs, slots, emit })\r\n : render(props, null /* we know it doesn't need it */));\r\n fallthroughAttrs = Component.props\r\n ? attrs\r\n : getFunctionalFallthrough(attrs);\r\n }\r\n }\r\n catch (err) {\r\n blockStack.length = 0;\r\n handleError(err, instance, 1 /* RENDER_FUNCTION */);\r\n result = createVNode(Comment);\r\n }\r\n // attr merging\r\n // in dev mode, comments are preserved, and it's possible for a template\r\n // to have comments along side the root element which makes it a fragment\r\n let root = result;\r\n let setRoot = undefined;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n result.patchFlag > 0 &&\r\n result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {\r\n [root, setRoot] = getChildRoot(result);\r\n }\r\n if (fallthroughAttrs && inheritAttrs !== false) {\r\n const keys = Object.keys(fallthroughAttrs);\r\n const { shapeFlag } = root;\r\n if (keys.length) {\r\n if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {\r\n if (propsOptions && keys.some(isModelListener)) {\r\n // If a v-model listener (onUpdate:xxx) has a corresponding declared\r\n // prop, it indicates this component expects to handle v-model and\r\n // it should not fallthrough.\r\n // related: #1543, #1643, #1989\r\n fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);\r\n }\r\n root = cloneVNode(root, fallthroughAttrs);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !accessedAttrs && root.type !== Comment) {\r\n const allAttrs = Object.keys(attrs);\r\n const eventAttrs = [];\r\n const extraAttrs = [];\r\n for (let i = 0, l = allAttrs.length; i < l; i++) {\r\n const key = allAttrs[i];\r\n if (isOn(key)) {\r\n // ignore v-model handlers when they fail to fallthrough\r\n if (!isModelListener(key)) {\r\n // remove `on`, lowercase first letter to reflect event casing\r\n // accurately\r\n eventAttrs.push(key[2].toLowerCase() + key.slice(3));\r\n }\r\n }\r\n else {\r\n extraAttrs.push(key);\r\n }\r\n }\r\n if (extraAttrs.length) {\r\n warn(`Extraneous non-props attributes (` +\r\n `${extraAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes.`);\r\n }\r\n if (eventAttrs.length) {\r\n warn(`Extraneous non-emits event listeners (` +\r\n `${eventAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes. ` +\r\n `If the listener is intended to be a component custom event listener only, ` +\r\n `declare it using the \"emits\" option.`);\r\n }\r\n }\r\n }\r\n }\r\n // inherit directives\r\n if (vnode.dirs) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Runtime directive used on component with non-element root node. ` +\r\n `The directives will not function as intended.`);\r\n }\r\n root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;\r\n }\r\n // inherit transition data\r\n if (vnode.transition) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Component inside <Transition> renders non-element root node ` +\r\n `that cannot be animated.`);\r\n }\r\n root.transition = vnode.transition;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && setRoot) {\r\n setRoot(root);\r\n }\r\n else {\r\n result = root;\r\n }\r\n setCurrentRenderingInstance(prev);\r\n return result;\r\n}\r\n/**\r\n * dev only\r\n * In dev mode, template root level comments are rendered, which turns the\r\n * template into a fragment root, but we need to locate the single element\r\n * root for attrs and scope id processing.\r\n */\r\nconst getChildRoot = (vnode) => {\r\n const rawChildren = vnode.children;\r\n const dynamicChildren = vnode.dynamicChildren;\r\n const childRoot = filterSingleRoot(rawChildren);\r\n if (!childRoot) {\r\n return [vnode, undefined];\r\n }\r\n const index = rawChildren.indexOf(childRoot);\r\n const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;\r\n const setRoot = (updatedRoot) => {\r\n rawChildren[index] = updatedRoot;\r\n if (dynamicChildren) {\r\n if (dynamicIndex > -1) {\r\n dynamicChildren[dynamicIndex] = updatedRoot;\r\n }\r\n else if (updatedRoot.patchFlag > 0) {\r\n vnode.dynamicChildren = [...dynamicChildren, updatedRoot];\r\n }\r\n }\r\n };\r\n return [normalizeVNode(childRoot), setRoot];\r\n};\r\nfunction filterSingleRoot(children) {\r\n let singleRoot;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isVNode(child)) {\r\n // ignore user comment\r\n if (child.type !== Comment || child.children === 'v-if') {\r\n if (singleRoot) {\r\n // has more than 1 non-comment child, return now\r\n return;\r\n }\r\n else {\r\n singleRoot = child;\r\n }\r\n }\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n return singleRoot;\r\n}\r\nconst getFunctionalFallthrough = (attrs) => {\r\n let res;\r\n for (const key in attrs) {\r\n if (key === 'class' || key === 'style' || isOn(key)) {\r\n (res || (res = {}))[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst filterModelListeners = (attrs, props) => {\r\n const res = {};\r\n for (const key in attrs) {\r\n if (!isModelListener(key) || !(key.slice(9) in props)) {\r\n res[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst isElementRoot = (vnode) => {\r\n return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||\r\n vnode.type === Comment // potential v-if branch switch\r\n );\r\n};\r\nfunction shouldUpdateComponent(prevVNode, nextVNode, optimized) {\r\n const { props: prevProps, children: prevChildren, component } = prevVNode;\r\n const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;\r\n const emits = component.emitsOptions;\r\n // Parent component's render function was hot-updated. Since this may have\r\n // caused the child component's slots content to have changed, we need to\r\n // force the child to update as well.\r\n if ((process.env.NODE_ENV !== 'production') && (prevChildren || nextChildren) && isHmrUpdating) {\r\n return true;\r\n }\r\n // force child update for runtime directive or transition on component vnode.\r\n if (nextVNode.dirs || nextVNode.transition) {\r\n return true;\r\n }\r\n if (optimized && patchFlag >= 0) {\r\n if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {\r\n // slot content that references values that might have changed,\r\n // e.g. in a v-for\r\n return true;\r\n }\r\n if (patchFlag & 16 /* FULL_PROPS */) {\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n // presence of this flag indicates props are always non-null\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n else if (patchFlag & 8 /* PROPS */) {\r\n const dynamicProps = nextVNode.dynamicProps;\r\n for (let i = 0; i < dynamicProps.length; i++) {\r\n const key = dynamicProps[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emits, key)) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // this path is only taken by manually written render functions\r\n // so presence of any children leads to a forced update\r\n if (prevChildren || nextChildren) {\r\n if (!nextChildren || !nextChildren.$stable) {\r\n return true;\r\n }\r\n }\r\n if (prevProps === nextProps) {\r\n return false;\r\n }\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n if (!nextProps) {\r\n return true;\r\n }\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n return false;\r\n}\r\nfunction hasPropsChanged(prevProps, nextProps, emitsOptions) {\r\n const nextKeys = Object.keys(nextProps);\r\n if (nextKeys.length !== Object.keys(prevProps).length) {\r\n return true;\r\n }\r\n for (let i = 0; i < nextKeys.length; i++) {\r\n const key = nextKeys[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emitsOptions, key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction updateHOCHostEl({ vnode, parent }, el // HostNode\r\n) {\r\n while (parent && parent.subTree === vnode) {\r\n (vnode = parent.vnode).el = el;\r\n parent = parent.parent;\r\n }\r\n}\n\nconst isSuspense = (type) => type.__isSuspense;\r\n// Suspense exposes a component-like API, and is treated like a component\r\n// in the compiler, but internally it's a special built-in type that hooks\r\n// directly into the renderer.\r\nconst SuspenseImpl = {\r\n name: 'Suspense',\r\n // In order to make Suspense tree-shakable, we need to avoid importing it\r\n // directly in the renderer. The renderer checks for the __isSuspense flag\r\n // on a vnode's type and calls the `process` method, passing in renderer\r\n // internals.\r\n __isSuspense: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, \r\n // platform-specific impl passed from renderer\r\n rendererInternals) {\r\n if (n1 == null) {\r\n mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n else {\r\n patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n },\r\n hydrate: hydrateSuspense,\r\n create: createSuspenseBoundary,\r\n normalize: normalizeSuspenseChildren\r\n};\r\n// Force-casted public typing for h and TSX props inference\r\nconst Suspense = (SuspenseImpl );\r\nfunction triggerEvent(vnode, name) {\r\n const eventListener = vnode.props && vnode.props[name];\r\n if (isFunction(eventListener)) {\r\n eventListener();\r\n }\r\n}\r\nfunction mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {\r\n const { p: patch, o: { createElement } } = rendererInternals;\r\n const hiddenContainer = createElement('div');\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));\r\n // start mounting the content subtree in an off-dom container\r\n patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);\r\n // now check if we have encountered any async deps\r\n if (suspense.deps > 0) {\r\n // has async\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onPending');\r\n triggerEvent(vnode, 'onFallback');\r\n // mount the fallback tree\r\n patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds);\r\n setActiveBranch(suspense, vnode.ssFallback);\r\n }\r\n else {\r\n // Suspense has no async deps. Just resolve.\r\n suspense.resolve();\r\n }\r\n}\r\nfunction patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {\r\n const suspense = (n2.suspense = n1.suspense);\r\n suspense.vnode = n2;\r\n n2.el = n1.el;\r\n const newBranch = n2.ssContent;\r\n const newFallback = n2.ssFallback;\r\n const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;\r\n if (pendingBranch) {\r\n suspense.pendingBranch = newBranch;\r\n if (isSameVNodeType(newBranch, pendingBranch)) {\r\n // same root type but content may have changed.\r\n patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else if (isInFallback) {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else {\r\n // toggled before pending tree is resolved\r\n suspense.pendingId++;\r\n if (isHydrating) {\r\n // if toggled before hydration is finished, the current DOM tree is\r\n // no longer valid. set it as the active branch so it will be unmounted\r\n // when resolved\r\n suspense.isHydrating = false;\r\n suspense.activeBranch = pendingBranch;\r\n }\r\n else {\r\n unmount(pendingBranch, parentComponent, suspense);\r\n }\r\n // increment pending ID. this is used to invalidate async callbacks\r\n // reset suspense state\r\n suspense.deps = 0;\r\n // discard effects from pending branch\r\n suspense.effects.length = 0;\r\n // discard previous container\r\n suspense.hiddenContainer = createElement('div');\r\n if (isInFallback) {\r\n // already in fallback state\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // toggled \"back\" to current active branch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n // force resolve\r\n suspense.resolve(true);\r\n }\r\n else {\r\n // switched to a 3rd branch\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // root did not change, just normal patch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newBranch);\r\n }\r\n else {\r\n // root node toggled\r\n // invoke @pending event\r\n triggerEvent(n2, 'onPending');\r\n // mount pending branch in off-dom container\r\n suspense.pendingBranch = newBranch;\r\n suspense.pendingId++;\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n // incoming branch has no async deps, resolve now.\r\n suspense.resolve();\r\n }\r\n else {\r\n const { timeout, pendingId } = suspense;\r\n if (timeout > 0) {\r\n setTimeout(() => {\r\n if (suspense.pendingId === pendingId) {\r\n suspense.fallback(newFallback);\r\n }\r\n }, timeout);\r\n }\r\n else if (timeout === 0) {\r\n suspense.fallback(newFallback);\r\n }\r\n }\r\n }\r\n }\r\n}\r\nlet hasWarned = false;\r\nfunction createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && !false && !hasWarned) {\r\n hasWarned = true;\r\n // @ts-ignore `console.info` cannot be null error\r\n console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);\r\n }\r\n const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;\r\n const timeout = toNumber(vnode.props && vnode.props.timeout);\r\n const suspense = {\r\n vnode,\r\n parent,\r\n parentComponent,\r\n isSVG,\r\n container,\r\n hiddenContainer,\r\n anchor,\r\n deps: 0,\r\n pendingId: 0,\r\n timeout: typeof timeout === 'number' ? timeout : -1,\r\n activeBranch: null,\r\n pendingBranch: null,\r\n isInFallback: true,\r\n isHydrating,\r\n isUnmounted: false,\r\n effects: [],\r\n resolve(resume = false) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!resume && !suspense.pendingBranch) {\r\n throw new Error(`suspense.resolve() is called without a pending branch.`);\r\n }\r\n if (suspense.isUnmounted) {\r\n throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);\r\n }\r\n }\r\n const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;\r\n if (suspense.isHydrating) {\r\n suspense.isHydrating = false;\r\n }\r\n else if (!resume) {\r\n const delayEnter = activeBranch &&\r\n pendingBranch.transition &&\r\n pendingBranch.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = () => {\r\n if (pendingId === suspense.pendingId) {\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n };\r\n }\r\n // this is initial anchor on mount\r\n let { anchor } = suspense;\r\n // unmount current active tree\r\n if (activeBranch) {\r\n // if the fallback tree was mounted, it may have been moved\r\n // as part of a parent suspense. get the latest anchor for insertion\r\n anchor = next(activeBranch);\r\n unmount(activeBranch, parentComponent, suspense, true);\r\n }\r\n if (!delayEnter) {\r\n // move content from off-dom container to actual container\r\n move(pendingBranch, container, anchor, 0 /* ENTER */);\r\n }\r\n }\r\n setActiveBranch(suspense, pendingBranch);\r\n suspense.pendingBranch = null;\r\n suspense.isInFallback = false;\r\n // flush buffered effects\r\n // check if there is a pending parent suspense\r\n let parent = suspense.parent;\r\n let hasUnresolvedAncestor = false;\r\n while (parent) {\r\n if (parent.pendingBranch) {\r\n // found a pending parent suspense, merge buffered post jobs\r\n // into that parent\r\n parent.effects.push(...effects);\r\n hasUnresolvedAncestor = true;\r\n break;\r\n }\r\n parent = parent.parent;\r\n }\r\n // no pending parent suspense, flush all jobs\r\n if (!hasUnresolvedAncestor) {\r\n queuePostFlushCb(effects);\r\n }\r\n suspense.effects = [];\r\n // invoke @resolve event\r\n triggerEvent(vnode, 'onResolve');\r\n },\r\n fallback(fallbackVNode) {\r\n if (!suspense.pendingBranch) {\r\n return;\r\n }\r\n const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onFallback');\r\n const anchor = next(activeBranch);\r\n const mountFallback = () => {\r\n if (!suspense.isInFallback) {\r\n return;\r\n }\r\n // mount the fallback tree\r\n patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, fallbackVNode);\r\n };\r\n const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = mountFallback;\r\n }\r\n suspense.isInFallback = true;\r\n // unmount current active branch\r\n unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now\r\n true // shouldRemove\r\n );\r\n if (!delayEnter) {\r\n mountFallback();\r\n }\r\n },\r\n move(container, anchor, type) {\r\n suspense.activeBranch &&\r\n move(suspense.activeBranch, container, anchor, type);\r\n suspense.container = container;\r\n },\r\n next() {\r\n return suspense.activeBranch && next(suspense.activeBranch);\r\n },\r\n registerDep(instance, setupRenderEffect) {\r\n const isInPendingSuspense = !!suspense.pendingBranch;\r\n if (isInPendingSuspense) {\r\n suspense.deps++;\r\n }\r\n const hydratedEl = instance.vnode.el;\r\n instance\r\n .asyncDep.catch(err => {\r\n handleError(err, instance, 0 /* SETUP_FUNCTION */);\r\n })\r\n .then(asyncSetupResult => {\r\n // retry when the setup() promise resolves.\r\n // component may have been unmounted before resolve.\r\n if (instance.isUnmounted ||\r\n suspense.isUnmounted ||\r\n suspense.pendingId !== instance.suspenseId) {\r\n return;\r\n }\r\n // retry from this component\r\n instance.asyncResolved = true;\r\n const { vnode } = instance;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(vnode);\r\n }\r\n handleSetupResult(instance, asyncSetupResult, false);\r\n if (hydratedEl) {\r\n // vnode may have been replaced if an update happened before the\r\n // async dep is resolved.\r\n vnode.el = hydratedEl;\r\n }\r\n const placeholder = !hydratedEl && instance.subTree.el;\r\n setupRenderEffect(instance, vnode, \r\n // component may have been moved before resolve.\r\n // if this is not a hydration, instance.subTree will be the comment\r\n // placeholder.\r\n parentNode(hydratedEl || instance.subTree.el), \r\n // anchor will not be used if this is hydration, so only need to\r\n // consider the comment placeholder case.\r\n hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);\r\n if (placeholder) {\r\n remove(placeholder);\r\n }\r\n updateHOCHostEl(instance, vnode.el);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n // only decrease deps count if suspense is not already resolved\r\n if (isInPendingSuspense && --suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n });\r\n },\r\n unmount(parentSuspense, doRemove) {\r\n suspense.isUnmounted = true;\r\n if (suspense.activeBranch) {\r\n unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n if (suspense.pendingBranch) {\r\n unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n }\r\n };\r\n return suspense;\r\n}\r\nfunction hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {\r\n /* eslint-disable no-restricted-globals */\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));\r\n // there are two possible scenarios for server-rendered suspense:\r\n // - success: ssr content should be fully resolved\r\n // - failure: ssr content should be the fallback branch.\r\n // however, on the client we don't really know if it has failed or not\r\n // attempt to hydrate the DOM assuming it has succeeded, but we still\r\n // need to construct a suspense boundary first\r\n const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);\r\n if (suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n return result;\r\n /* eslint-enable no-restricted-globals */\r\n}\r\nfunction normalizeSuspenseChildren(vnode) {\r\n const { shapeFlag, children } = vnode;\r\n const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;\r\n vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);\r\n vnode.ssFallback = isSlotChildren\r\n ? normalizeSuspenseSlot(children.fallback)\r\n : createVNode(Comment);\r\n}\r\nfunction normalizeSuspenseSlot(s) {\r\n let block;\r\n if (isFunction(s)) {\r\n const trackBlock = isBlockTreeEnabled && s._c;\r\n if (trackBlock) {\r\n // disableTracking: false\r\n // allow block tracking for compiled slots\r\n // (see ./componentRenderContext.ts)\r\n s._d = false;\r\n openBlock();\r\n }\r\n s = s();\r\n if (trackBlock) {\r\n s._d = true;\r\n block = currentBlock;\r\n closeBlock();\r\n }\r\n }\r\n if (isArray(s)) {\r\n const singleChild = filterSingleRoot(s);\r\n if ((process.env.NODE_ENV !== 'production') && !singleChild) {\r\n warn(`<Suspense> slots expect a single root node.`);\r\n }\r\n s = singleChild;\r\n }\r\n s = normalizeVNode(s);\r\n if (block && !s.dynamicChildren) {\r\n s.dynamicChildren = block.filter(c => c !== s);\r\n }\r\n return s;\r\n}\r\nfunction queueEffectWithSuspense(fn, suspense) {\r\n if (suspense && suspense.pendingBranch) {\r\n if (isArray(fn)) {\r\n suspense.effects.push(...fn);\r\n }\r\n else {\r\n suspense.effects.push(fn);\r\n }\r\n }\r\n else {\r\n queuePostFlushCb(fn);\r\n }\r\n}\r\nfunction setActiveBranch(suspense, branch) {\r\n suspense.activeBranch = branch;\r\n const { vnode, parentComponent } = suspense;\r\n const el = (vnode.el = branch.el);\r\n // in case suspense is the root node of a component,\r\n // recursively update the HOC el\r\n if (parentComponent && parentComponent.subTree === vnode) {\r\n parentComponent.vnode.el = el;\r\n updateHOCHostEl(parentComponent, el);\r\n }\r\n}\n\nfunction provide(key, value) {\r\n if (!currentInstance) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`provide() can only be used inside setup().`);\r\n }\r\n }\r\n else {\r\n let provides = currentInstance.provides;\r\n // by default an instance inherits its parent's provides object\r\n // but when it needs to provide values of its own, it creates its\r\n // own provides object using parent provides object as prototype.\r\n // this way in `inject` we can simply look up injections from direct\r\n // parent and let the prototype chain do the work.\r\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\r\n if (parentProvides === provides) {\r\n provides = currentInstance.provides = Object.create(parentProvides);\r\n }\r\n // TS doesn't allow symbol as index type\r\n provides[key] = value;\r\n }\r\n}\r\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\r\n // fallback to `currentRenderingInstance` so that this can be called in\r\n // a functional component\r\n const instance = currentInstance || currentRenderingInstance;\r\n if (instance) {\r\n // #2400\r\n // to support `app.use` plugins,\r\n // fallback to appContext's `provides` if the intance is at root\r\n const provides = instance.parent == null\r\n ? instance.vnode.appContext && instance.vnode.appContext.provides\r\n : instance.parent.provides;\r\n if (provides && key in provides) {\r\n // TS doesn't allow symbol as index type\r\n return provides[key];\r\n }\r\n else if (arguments.length > 1) {\r\n return treatDefaultAsFactory && isFunction(defaultValue)\r\n ? defaultValue.call(instance.proxy)\r\n : defaultValue;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injection \"${String(key)}\" not found.`);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`inject() can only be used inside setup() or functional components.`);\r\n }\r\n}\n\nfunction useTransitionState() {\r\n const state = {\r\n isMounted: false,\r\n isLeaving: false,\r\n isUnmounting: false,\r\n leavingVNodes: new Map()\r\n };\r\n onMounted(() => {\r\n state.isMounted = true;\r\n });\r\n onBeforeUnmount(() => {\r\n state.isUnmounting = true;\r\n });\r\n return state;\r\n}\r\nconst TransitionHookValidator = [Function, Array];\r\nconst BaseTransitionImpl = {\r\n name: `BaseTransition`,\r\n props: {\r\n mode: String,\r\n appear: Boolean,\r\n persisted: Boolean,\r\n // enter\r\n onBeforeEnter: TransitionHookValidator,\r\n onEnter: TransitionHookValidator,\r\n onAfterEnter: TransitionHookValidator,\r\n onEnterCancelled: TransitionHookValidator,\r\n // leave\r\n onBeforeLeave: TransitionHookValidator,\r\n onLeave: TransitionHookValidator,\r\n onAfterLeave: TransitionHookValidator,\r\n onLeaveCancelled: TransitionHookValidator,\r\n // appear\r\n onBeforeAppear: TransitionHookValidator,\r\n onAppear: TransitionHookValidator,\r\n onAfterAppear: TransitionHookValidator,\r\n onAppearCancelled: TransitionHookValidator\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevTransitionKey;\r\n return () => {\r\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\r\n if (!children || !children.length) {\r\n return;\r\n }\r\n // warn multiple elements\r\n if ((process.env.NODE_ENV !== 'production') && children.length > 1) {\r\n warn('<transition> can only be used on a single element or component. Use ' +\r\n '<transition-group> for lists.');\r\n }\r\n // there's no need to track reactivity for these props so use the raw\r\n // props for a bit better perf\r\n const rawProps = toRaw(props);\r\n const { mode } = rawProps;\r\n // check mode\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n mode &&\r\n mode !== 'in-out' && mode !== 'out-in' && mode !== 'default') {\r\n warn(`invalid <transition> mode: ${mode}`);\r\n }\r\n // at this point children has a guaranteed length of 1.\r\n const child = children[0];\r\n if (state.isLeaving) {\r\n return emptyPlaceholder(child);\r\n }\r\n // in the case of <transition><keep-alive/></transition>, we need to\r\n // compare the type of the kept-alive children.\r\n const innerChild = getKeepAliveChild(child);\r\n if (!innerChild) {\r\n return emptyPlaceholder(child);\r\n }\r\n const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);\r\n setTransitionHooks(innerChild, enterHooks);\r\n const oldChild = instance.subTree;\r\n const oldInnerChild = oldChild && getKeepAliveChild(oldChild);\r\n let transitionKeyChanged = false;\r\n const { getTransitionKey } = innerChild.type;\r\n if (getTransitionKey) {\r\n const key = getTransitionKey();\r\n if (prevTransitionKey === undefined) {\r\n prevTransitionKey = key;\r\n }\r\n else if (key !== prevTransitionKey) {\r\n prevTransitionKey = key;\r\n transitionKeyChanged = true;\r\n }\r\n }\r\n // handle mode\r\n if (oldInnerChild &&\r\n oldInnerChild.type !== Comment &&\r\n (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {\r\n const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);\r\n // update old tree's hooks in case of dynamic transition\r\n setTransitionHooks(oldInnerChild, leavingHooks);\r\n // switching between different views\r\n if (mode === 'out-in') {\r\n state.isLeaving = true;\r\n // return placeholder node and queue update when leave finishes\r\n leavingHooks.afterLeave = () => {\r\n state.isLeaving = false;\r\n instance.update();\r\n };\r\n return emptyPlaceholder(child);\r\n }\r\n else if (mode === 'in-out' && innerChild.type !== Comment) {\r\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\r\n const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);\r\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\r\n // early removal callback\r\n el._leaveCb = () => {\r\n earlyRemove();\r\n el._leaveCb = undefined;\r\n delete enterHooks.delayedLeave;\r\n };\r\n enterHooks.delayedLeave = delayedLeave;\r\n };\r\n }\r\n }\r\n return child;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst BaseTransition = BaseTransitionImpl;\r\nfunction getLeavingNodesForType(state, vnode) {\r\n const { leavingVNodes } = state;\r\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\r\n if (!leavingVNodesCache) {\r\n leavingVNodesCache = Object.create(null);\r\n leavingVNodes.set(vnode.type, leavingVNodesCache);\r\n }\r\n return leavingVNodesCache;\r\n}\r\n// The transition hooks are attached to the vnode as vnode.transition\r\n// and will be called at appropriate timing in the renderer.\r\nfunction resolveTransitionHooks(vnode, props, state, instance) {\r\n const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;\r\n const key = String(vnode.key);\r\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\r\n const callHook = (hook, args) => {\r\n hook &&\r\n callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);\r\n };\r\n const hooks = {\r\n mode,\r\n persisted,\r\n beforeEnter(el) {\r\n let hook = onBeforeEnter;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onBeforeAppear || onBeforeEnter;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n // for same element (v-show)\r\n if (el._leaveCb) {\r\n el._leaveCb(true /* cancelled */);\r\n }\r\n // for toggled element with same key (v-if)\r\n const leavingVNode = leavingVNodesCache[key];\r\n if (leavingVNode &&\r\n isSameVNodeType(vnode, leavingVNode) &&\r\n leavingVNode.el._leaveCb) {\r\n // force early removal (not cancelled)\r\n leavingVNode.el._leaveCb();\r\n }\r\n callHook(hook, [el]);\r\n },\r\n enter(el) {\r\n let hook = onEnter;\r\n let afterHook = onAfterEnter;\r\n let cancelHook = onEnterCancelled;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onAppear || onEnter;\r\n afterHook = onAfterAppear || onAfterEnter;\r\n cancelHook = onAppearCancelled || onEnterCancelled;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n let called = false;\r\n const done = (el._enterCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n if (cancelled) {\r\n callHook(cancelHook, [el]);\r\n }\r\n else {\r\n callHook(afterHook, [el]);\r\n }\r\n if (hooks.delayedLeave) {\r\n hooks.delayedLeave();\r\n }\r\n el._enterCb = undefined;\r\n });\r\n if (hook) {\r\n hook(el, done);\r\n if (hook.length <= 1) {\r\n done();\r\n }\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n leave(el, remove) {\r\n const key = String(vnode.key);\r\n if (el._enterCb) {\r\n el._enterCb(true /* cancelled */);\r\n }\r\n if (state.isUnmounting) {\r\n return remove();\r\n }\r\n callHook(onBeforeLeave, [el]);\r\n let called = false;\r\n const done = (el._leaveCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n remove();\r\n if (cancelled) {\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n else {\r\n callHook(onAfterLeave, [el]);\r\n }\r\n el._leaveCb = undefined;\r\n if (leavingVNodesCache[key] === vnode) {\r\n delete leavingVNodesCache[key];\r\n }\r\n });\r\n leavingVNodesCache[key] = vnode;\r\n if (onLeave) {\r\n onLeave(el, done);\r\n if (onLeave.length <= 1) {\r\n done();\r\n }\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n clone(vnode) {\r\n return resolveTransitionHooks(vnode, props, state, instance);\r\n }\r\n };\r\n return hooks;\r\n}\r\n// the placeholder really only handles one special case: KeepAlive\r\n// in the case of a KeepAlive in a leave phase we need to return a KeepAlive\r\n// placeholder with empty content to avoid the KeepAlive instance from being\r\n// unmounted.\r\nfunction emptyPlaceholder(vnode) {\r\n if (isKeepAlive(vnode)) {\r\n vnode = cloneVNode(vnode);\r\n vnode.children = null;\r\n return vnode;\r\n }\r\n}\r\nfunction getKeepAliveChild(vnode) {\r\n return isKeepAlive(vnode)\r\n ? vnode.children\r\n ? vnode.children[0]\r\n : undefined\r\n : vnode;\r\n}\r\nfunction setTransitionHooks(vnode, hooks) {\r\n if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {\r\n setTransitionHooks(vnode.component.subTree, hooks);\r\n }\r\n else if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\r\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\r\n }\r\n else {\r\n vnode.transition = hooks;\r\n }\r\n}\r\nfunction getTransitionRawChildren(children, keepComment = false) {\r\n let ret = [];\r\n let keyedFragmentCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n // handle fragment children case, e.g. v-for\r\n if (child.type === Fragment) {\r\n if (child.patchFlag & 128 /* KEYED_FRAGMENT */)\r\n keyedFragmentCount++;\r\n ret = ret.concat(getTransitionRawChildren(child.children, keepComment));\r\n }\r\n // comment placeholders should be skipped, e.g. v-if\r\n else if (keepComment || child.type !== Comment) {\r\n ret.push(child);\r\n }\r\n }\r\n // #1126 if a transition children list contains multiple sub fragments, these\r\n // fragments will be merged into a flat children array. Since each v-for\r\n // fragment may contain different static bindings inside, we need to de-op\r\n // these children to force full diffs to ensure correct behavior.\r\n if (keyedFragmentCount > 1) {\r\n for (let i = 0; i < ret.length; i++) {\r\n ret[i].patchFlag = -2 /* BAIL */;\r\n }\r\n }\r\n return ret;\r\n}\n\n// implementation, close to no-op\r\nfunction defineComponent(options) {\r\n return isFunction(options) ? { setup: options, name: options.name } : options;\r\n}\n\nconst isAsyncWrapper = (i) => !!i.type.__asyncLoader;\r\nfunction defineAsyncComponent(source) {\r\n if (isFunction(source)) {\r\n source = { loader: source };\r\n }\r\n const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out\r\n suspensible = true, onError: userOnError } = source;\r\n let pendingRequest = null;\r\n let resolvedComp;\r\n let retries = 0;\r\n const retry = () => {\r\n retries++;\r\n pendingRequest = null;\r\n return load();\r\n };\r\n const load = () => {\r\n let thisRequest;\r\n return (pendingRequest ||\r\n (thisRequest = pendingRequest =\r\n loader()\r\n .catch(err => {\r\n err = err instanceof Error ? err : new Error(String(err));\r\n if (userOnError) {\r\n return new Promise((resolve, reject) => {\r\n const userRetry = () => resolve(retry());\r\n const userFail = () => reject(err);\r\n userOnError(err, userRetry, userFail, retries + 1);\r\n });\r\n }\r\n else {\r\n throw err;\r\n }\r\n })\r\n .then((comp) => {\r\n if (thisRequest !== pendingRequest && pendingRequest) {\r\n return pendingRequest;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && !comp) {\r\n warn(`Async component loader resolved to undefined. ` +\r\n `If you are using retry(), make sure to return its return value.`);\r\n }\r\n // interop module default\r\n if (comp &&\r\n (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {\r\n comp = comp.default;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && comp && !isObject(comp) && !isFunction(comp)) {\r\n throw new Error(`Invalid async component load result: ${comp}`);\r\n }\r\n resolvedComp = comp;\r\n return comp;\r\n })));\r\n };\r\n return defineComponent({\r\n name: 'AsyncComponentWrapper',\r\n __asyncLoader: load,\r\n get __asyncResolved() {\r\n return resolvedComp;\r\n },\r\n setup() {\r\n const instance = currentInstance;\r\n // already resolved\r\n if (resolvedComp) {\r\n return () => createInnerComp(resolvedComp, instance);\r\n }\r\n const onError = (err) => {\r\n pendingRequest = null;\r\n handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */);\r\n };\r\n // suspense-controlled or SSR.\r\n if ((suspensible && instance.suspense) ||\r\n (isInSSRComponentSetup)) {\r\n return load()\r\n .then(comp => {\r\n return () => createInnerComp(comp, instance);\r\n })\r\n .catch(err => {\r\n onError(err);\r\n return () => errorComponent\r\n ? createVNode(errorComponent, {\r\n error: err\r\n })\r\n : null;\r\n });\r\n }\r\n const loaded = ref(false);\r\n const error = ref();\r\n const delayed = ref(!!delay);\r\n if (delay) {\r\n setTimeout(() => {\r\n delayed.value = false;\r\n }, delay);\r\n }\r\n if (timeout != null) {\r\n setTimeout(() => {\r\n if (!loaded.value && !error.value) {\r\n const err = new Error(`Async component timed out after ${timeout}ms.`);\r\n onError(err);\r\n error.value = err;\r\n }\r\n }, timeout);\r\n }\r\n load()\r\n .then(() => {\r\n loaded.value = true;\r\n if (instance.parent && isKeepAlive(instance.parent.vnode)) {\r\n // parent is keep-alive, force update so the loaded component's\r\n // name is taken into account\r\n queueJob(instance.parent.update);\r\n }\r\n })\r\n .catch(err => {\r\n onError(err);\r\n error.value = err;\r\n });\r\n return () => {\r\n if (loaded.value && resolvedComp) {\r\n return createInnerComp(resolvedComp, instance);\r\n }\r\n else if (error.value && errorComponent) {\r\n return createVNode(errorComponent, {\r\n error: error.value\r\n });\r\n }\r\n else if (loadingComponent && !delayed.value) {\r\n return createVNode(loadingComponent);\r\n }\r\n };\r\n }\r\n });\r\n}\r\nfunction createInnerComp(comp, { vnode: { ref, props, children } }) {\r\n const vnode = createVNode(comp, props, children);\r\n // ensure inner component inherits the async wrapper's ref owner\r\n vnode.ref = ref;\r\n return vnode;\r\n}\n\nconst isKeepAlive = (vnode) => vnode.type.__isKeepAlive;\r\nconst KeepAliveImpl = {\r\n name: `KeepAlive`,\r\n // Marker for special handling inside the renderer. We are not using a ===\r\n // check directly on KeepAlive in the renderer, because importing it directly\r\n // would prevent it from being tree-shaken.\r\n __isKeepAlive: true,\r\n props: {\r\n include: [String, RegExp, Array],\r\n exclude: [String, RegExp, Array],\r\n max: [String, Number]\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n // KeepAlive communicates with the instantiated renderer via the\r\n // ctx where the renderer passes in its internals,\r\n // and the KeepAlive instance exposes activate/deactivate implementations.\r\n // The whole point of this is to avoid importing KeepAlive directly in the\r\n // renderer to facilitate tree-shaking.\r\n const sharedContext = instance.ctx;\r\n // if the internal renderer is not registered, it indicates that this is server-side rendering,\r\n // for KeepAlive, we just need to render its children\r\n if (!sharedContext.renderer) {\r\n return slots.default;\r\n }\r\n const cache = new Map();\r\n const keys = new Set();\r\n let current = null;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n instance.__v_cache = cache;\r\n }\r\n const parentSuspense = instance.suspense;\r\n const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;\r\n const storageContainer = createElement('div');\r\n sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {\r\n const instance = vnode.component;\r\n move(vnode, container, anchor, 0 /* ENTER */, parentSuspense);\r\n // in case props have changed\r\n patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized);\r\n queuePostRenderEffect(() => {\r\n instance.isDeactivated = false;\r\n if (instance.a) {\r\n invokeArrayFns(instance.a);\r\n }\r\n const vnodeHook = vnode.props && vnode.props.onVnodeMounted;\r\n if (vnodeHook) {\r\n invokeVNodeHook(vnodeHook, instance.parent, vnode);\r\n }\r\n }, parentSuspense);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n // Update components tree\r\n devtoolsComponentAdded(instance);\r\n }\r\n };\r\n sharedContext.deactivate = (vnode) => {\r\n const instance = vnode.component;\r\n move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense);\r\n queuePostRenderEffect(() => {\r\n if (instance.da) {\r\n invokeArrayFns(instance.da);\r\n }\r\n const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;\r\n if (vnodeHook) {\r\n invokeVNodeHook(vnodeHook, instance.parent, vnode);\r\n }\r\n instance.isDeactivated = true;\r\n }, parentSuspense);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n // Update components tree\r\n devtoolsComponentAdded(instance);\r\n }\r\n };\r\n function unmount(vnode) {\r\n // reset the shapeFlag so it can be properly unmounted\r\n resetShapeFlag(vnode);\r\n _unmount(vnode, instance, parentSuspense);\r\n }\r\n function pruneCache(filter) {\r\n cache.forEach((vnode, key) => {\r\n const name = getComponentName(vnode.type);\r\n if (name && (!filter || !filter(name))) {\r\n pruneCacheEntry(key);\r\n }\r\n });\r\n }\r\n function pruneCacheEntry(key) {\r\n const cached = cache.get(key);\r\n if (!current || cached.type !== current.type) {\r\n unmount(cached);\r\n }\r\n else if (current) {\r\n // current active instance should no longer be kept-alive.\r\n // we can't unmount it now but it might be later, so reset its flag now.\r\n resetShapeFlag(current);\r\n }\r\n cache.delete(key);\r\n keys.delete(key);\r\n }\r\n // prune cache on include/exclude prop change\r\n watch(() => [props.include, props.exclude], ([include, exclude]) => {\r\n include && pruneCache(name => matches(include, name));\r\n exclude && pruneCache(name => !matches(exclude, name));\r\n }, \r\n // prune post-render after `current` has been updated\r\n { flush: 'post', deep: true });\r\n // cache sub tree after render\r\n let pendingCacheKey = null;\r\n const cacheSubtree = () => {\r\n // fix #1621, the pendingCacheKey could be 0\r\n if (pendingCacheKey != null) {\r\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\r\n }\r\n };\r\n onMounted(cacheSubtree);\r\n onUpdated(cacheSubtree);\r\n onBeforeUnmount(() => {\r\n cache.forEach(cached => {\r\n const { subTree, suspense } = instance;\r\n const vnode = getInnerChild(subTree);\r\n if (cached.type === vnode.type) {\r\n // current instance will be unmounted as part of keep-alive's unmount\r\n resetShapeFlag(vnode);\r\n // but invoke its deactivated hook here\r\n const da = vnode.component.da;\r\n da && queuePostRenderEffect(da, suspense);\r\n return;\r\n }\r\n unmount(cached);\r\n });\r\n });\r\n return () => {\r\n pendingCacheKey = null;\r\n if (!slots.default) {\r\n return null;\r\n }\r\n const children = slots.default();\r\n const rawVNode = children[0];\r\n if (children.length > 1) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`KeepAlive should contain exactly one component child.`);\r\n }\r\n current = null;\r\n return children;\r\n }\r\n else if (!isVNode(rawVNode) ||\r\n (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) &&\r\n !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) {\r\n current = null;\r\n return rawVNode;\r\n }\r\n let vnode = getInnerChild(rawVNode);\r\n const comp = vnode.type;\r\n // for async components, name check should be based in its loaded\r\n // inner component if available\r\n const name = getComponentName(isAsyncWrapper(vnode)\r\n ? vnode.type.__asyncResolved || {}\r\n : comp);\r\n const { include, exclude, max } = props;\r\n if ((include && (!name || !matches(include, name))) ||\r\n (exclude && name && matches(exclude, name))) {\r\n current = vnode;\r\n return rawVNode;\r\n }\r\n const key = vnode.key == null ? comp : vnode.key;\r\n const cachedVNode = cache.get(key);\r\n // clone vnode if it's reused because we are going to mutate it\r\n if (vnode.el) {\r\n vnode = cloneVNode(vnode);\r\n if (rawVNode.shapeFlag & 128 /* SUSPENSE */) {\r\n rawVNode.ssContent = vnode;\r\n }\r\n }\r\n // #1513 it's possible for the returned vnode to be cloned due to attr\r\n // fallthrough or scopeId, so the vnode here may not be the final vnode\r\n // that is mounted. Instead of caching it directly, we store the pending\r\n // key and cache `instance.subTree` (the normalized vnode) in\r\n // beforeMount/beforeUpdate hooks.\r\n pendingCacheKey = key;\r\n if (cachedVNode) {\r\n // copy over mounted state\r\n vnode.el = cachedVNode.el;\r\n vnode.component = cachedVNode.component;\r\n if (vnode.transition) {\r\n // recursively update transition hooks on subTree\r\n setTransitionHooks(vnode, vnode.transition);\r\n }\r\n // avoid vnode being mounted as fresh\r\n vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */;\r\n // make this key the freshest\r\n keys.delete(key);\r\n keys.add(key);\r\n }\r\n else {\r\n keys.add(key);\r\n // prune oldest entry\r\n if (max && keys.size > parseInt(max, 10)) {\r\n pruneCacheEntry(keys.values().next().value);\r\n }\r\n }\r\n // avoid vnode being unmounted\r\n vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;\r\n current = vnode;\r\n return rawVNode;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst KeepAlive = KeepAliveImpl;\r\nfunction matches(pattern, name) {\r\n if (isArray(pattern)) {\r\n return pattern.some((p) => matches(p, name));\r\n }\r\n else if (isString(pattern)) {\r\n return pattern.split(',').indexOf(name) > -1;\r\n }\r\n else if (pattern.test) {\r\n return pattern.test(name);\r\n }\r\n /* istanbul ignore next */\r\n return false;\r\n}\r\nfunction onActivated(hook, target) {\r\n registerKeepAliveHook(hook, \"a\" /* ACTIVATED */, target);\r\n}\r\nfunction onDeactivated(hook, target) {\r\n registerKeepAliveHook(hook, \"da\" /* DEACTIVATED */, target);\r\n}\r\nfunction registerKeepAliveHook(hook, type, target = currentInstance) {\r\n // cache the deactivate branch check wrapper for injected hooks so the same\r\n // hook can be properly deduped by the scheduler. \"__wdc\" stands for \"with\r\n // deactivation check\".\r\n const wrappedHook = hook.__wdc ||\r\n (hook.__wdc = () => {\r\n // only fire the hook if the target instance is NOT in a deactivated branch.\r\n let current = target;\r\n while (current) {\r\n if (current.isDeactivated) {\r\n return;\r\n }\r\n current = current.parent;\r\n }\r\n return hook();\r\n });\r\n injectHook(type, wrappedHook, target);\r\n // In addition to registering it on the target instance, we walk up the parent\r\n // chain and register it on all ancestor instances that are keep-alive roots.\r\n // This avoids the need to walk the entire component tree when invoking these\r\n // hooks, and more importantly, avoids the need to track child components in\r\n // arrays.\r\n if (target) {\r\n let current = target.parent;\r\n while (current && current.parent) {\r\n if (isKeepAlive(current.parent.vnode)) {\r\n injectToKeepAliveRoot(wrappedHook, type, target, current);\r\n }\r\n current = current.parent;\r\n }\r\n }\r\n}\r\nfunction injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {\r\n // injectHook wraps the original for error handling, so make sure to remove\r\n // the wrapped version.\r\n const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */);\r\n onUnmounted(() => {\r\n remove(keepAliveRoot[type], injected);\r\n }, target);\r\n}\r\nfunction resetShapeFlag(vnode) {\r\n let shapeFlag = vnode.shapeFlag;\r\n if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;\r\n }\r\n if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {\r\n shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */;\r\n }\r\n vnode.shapeFlag = shapeFlag;\r\n}\r\nfunction getInnerChild(vnode) {\r\n return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode;\r\n}\n\nfunction injectHook(type, hook, target = currentInstance, prepend = false) {\r\n if (target) {\r\n const hooks = target[type] || (target[type] = []);\r\n // cache the error handling wrapper for injected hooks so the same hook\r\n // can be properly deduped by the scheduler. \"__weh\" stands for \"with error\r\n // handling\".\r\n const wrappedHook = hook.__weh ||\r\n (hook.__weh = (...args) => {\r\n if (target.isUnmounted) {\r\n return;\r\n }\r\n // disable tracking inside all lifecycle hooks\r\n // since they can potentially be called inside effects.\r\n pauseTracking();\r\n // Set currentInstance during hook invocation.\r\n // This assumes the hook does not synchronously trigger other hooks, which\r\n // can only be false when the user does something really funky.\r\n setCurrentInstance(target);\r\n const res = callWithAsyncErrorHandling(hook, target, type, args);\r\n unsetCurrentInstance();\r\n resetTracking();\r\n return res;\r\n });\r\n if (prepend) {\r\n hooks.unshift(wrappedHook);\r\n }\r\n else {\r\n hooks.push(wrappedHook);\r\n }\r\n return wrappedHook;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ''));\r\n warn(`${apiName} is called when there is no active component instance to be ` +\r\n `associated with. ` +\r\n `Lifecycle injection APIs can only be used during execution of setup().` +\r\n (` If you are using async setup(), make sure to register lifecycle ` +\r\n `hooks before the first await statement.`\r\n ));\r\n }\r\n}\r\nconst createHook = (lifecycle) => (hook, target = currentInstance) => \r\n// post-create lifecycle registrations are noops during SSR (except for serverPrefetch)\r\n(!isInSSRComponentSetup || lifecycle === \"sp\" /* SERVER_PREFETCH */) &&\r\n injectHook(lifecycle, hook, target);\r\nconst onBeforeMount = createHook(\"bm\" /* BEFORE_MOUNT */);\r\nconst onMounted = createHook(\"m\" /* MOUNTED */);\r\nconst onBeforeUpdate = createHook(\"bu\" /* BEFORE_UPDATE */);\r\nconst onUpdated = createHook(\"u\" /* UPDATED */);\r\nconst onBeforeUnmount = createHook(\"bum\" /* BEFORE_UNMOUNT */);\r\nconst onUnmounted = createHook(\"um\" /* UNMOUNTED */);\r\nconst onServerPrefetch = createHook(\"sp\" /* SERVER_PREFETCH */);\r\nconst onRenderTriggered = createHook(\"rtg\" /* RENDER_TRIGGERED */);\r\nconst onRenderTracked = createHook(\"rtc\" /* RENDER_TRACKED */);\r\nfunction onErrorCaptured(hook, target = currentInstance) {\r\n injectHook(\"ec\" /* ERROR_CAPTURED */, hook, target);\r\n}\n\nfunction createDuplicateChecker() {\r\n const cache = Object.create(null);\r\n return (type, key) => {\r\n if (cache[key]) {\r\n warn(`${type} property \"${key}\" is already defined in ${cache[key]}.`);\r\n }\r\n else {\r\n cache[key] = type;\r\n }\r\n };\r\n}\r\nlet shouldCacheAccess = true;\r\nfunction applyOptions(instance) {\r\n const options = resolveMergedOptions(instance);\r\n const publicThis = instance.proxy;\r\n const ctx = instance.ctx;\r\n // do not cache property access on public proxy during state initialization\r\n shouldCacheAccess = false;\r\n // call beforeCreate first before accessing other options since\r\n // the hook may mutate resolved options (#2791)\r\n if (options.beforeCreate) {\r\n callHook(options.beforeCreate, instance, \"bc\" /* BEFORE_CREATE */);\r\n }\r\n const { \r\n // state\r\n data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, \r\n // lifecycle\r\n created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, \r\n // public API\r\n expose, inheritAttrs, \r\n // assets\r\n components, directives, filters } = options;\r\n const checkDuplicateProperties = (process.env.NODE_ENV !== 'production') ? createDuplicateChecker() : null;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const [propsOptions] = instance.propsOptions;\r\n if (propsOptions) {\r\n for (const key in propsOptions) {\r\n checkDuplicateProperties(\"Props\" /* PROPS */, key);\r\n }\r\n }\r\n }\r\n // options initialization order (to be consistent with Vue 2):\r\n // - props (already done outside of this function)\r\n // - inject\r\n // - methods\r\n // - data (deferred since it relies on `this` access)\r\n // - computed\r\n // - watch (deferred since it relies on `this` access)\r\n if (injectOptions) {\r\n resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef);\r\n }\r\n if (methods) {\r\n for (const key in methods) {\r\n const methodHandler = methods[key];\r\n if (isFunction(methodHandler)) {\r\n // In dev mode, we use the `createRenderContext` function to define\r\n // methods to the proxy target, and those are read-only but\r\n // reconfigurable, so it needs to be redefined here\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n Object.defineProperty(ctx, key, {\r\n value: methodHandler.bind(publicThis),\r\n configurable: true,\r\n enumerable: true,\r\n writable: true\r\n });\r\n }\r\n else {\r\n ctx[key] = methodHandler.bind(publicThis);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Methods\" /* METHODS */, key);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Method \"${key}\" has type \"${typeof methodHandler}\" in the component definition. ` +\r\n `Did you reference the function correctly?`);\r\n }\r\n }\r\n }\r\n if (dataOptions) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(dataOptions)) {\r\n warn(`The data option must be a function. ` +\r\n `Plain object usage is no longer supported.`);\r\n }\r\n const data = dataOptions.call(publicThis, publicThis);\r\n if ((process.env.NODE_ENV !== 'production') && isPromise(data)) {\r\n warn(`data() returned a Promise - note data() cannot be async; If you ` +\r\n `intend to perform data fetching before component renders, use ` +\r\n `async setup() + <Suspense>.`);\r\n }\r\n if (!isObject(data)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`data() should return an object.`);\r\n }\r\n else {\r\n instance.data = reactive(data);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n for (const key in data) {\r\n checkDuplicateProperties(\"Data\" /* DATA */, key);\r\n // expose data on ctx during dev\r\n if (key[0] !== '$' && key[0] !== '_') {\r\n Object.defineProperty(ctx, key, {\r\n configurable: true,\r\n enumerable: true,\r\n get: () => data[key],\r\n set: NOOP\r\n });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n // state initialization complete at this point - start caching access\r\n shouldCacheAccess = true;\r\n if (computedOptions) {\r\n for (const key in computedOptions) {\r\n const opt = computedOptions[key];\r\n const get = isFunction(opt)\r\n ? opt.bind(publicThis, publicThis)\r\n : isFunction(opt.get)\r\n ? opt.get.bind(publicThis, publicThis)\r\n : NOOP;\r\n if ((process.env.NODE_ENV !== 'production') && get === NOOP) {\r\n warn(`Computed property \"${key}\" has no getter.`);\r\n }\r\n const set = !isFunction(opt) && isFunction(opt.set)\r\n ? opt.set.bind(publicThis)\r\n : (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n warn(`Write operation failed: computed property \"${key}\" is readonly.`);\r\n }\r\n : NOOP;\r\n const c = computed({\r\n get,\r\n set\r\n });\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => c.value,\r\n set: v => (c.value = v)\r\n });\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Computed\" /* COMPUTED */, key);\r\n }\r\n }\r\n }\r\n if (watchOptions) {\r\n for (const key in watchOptions) {\r\n createWatcher(watchOptions[key], ctx, publicThis, key);\r\n }\r\n }\r\n if (provideOptions) {\r\n const provides = isFunction(provideOptions)\r\n ? provideOptions.call(publicThis)\r\n : provideOptions;\r\n Reflect.ownKeys(provides).forEach(key => {\r\n provide(key, provides[key]);\r\n });\r\n }\r\n if (created) {\r\n callHook(created, instance, \"c\" /* CREATED */);\r\n }\r\n function registerLifecycleHook(register, hook) {\r\n if (isArray(hook)) {\r\n hook.forEach(_hook => register(_hook.bind(publicThis)));\r\n }\r\n else if (hook) {\r\n register(hook.bind(publicThis));\r\n }\r\n }\r\n registerLifecycleHook(onBeforeMount, beforeMount);\r\n registerLifecycleHook(onMounted, mounted);\r\n registerLifecycleHook(onBeforeUpdate, beforeUpdate);\r\n registerLifecycleHook(onUpdated, updated);\r\n registerLifecycleHook(onActivated, activated);\r\n registerLifecycleHook(onDeactivated, deactivated);\r\n registerLifecycleHook(onErrorCaptured, errorCaptured);\r\n registerLifecycleHook(onRenderTracked, renderTracked);\r\n registerLifecycleHook(onRenderTriggered, renderTriggered);\r\n registerLifecycleHook(onBeforeUnmount, beforeUnmount);\r\n registerLifecycleHook(onUnmounted, unmounted);\r\n registerLifecycleHook(onServerPrefetch, serverPrefetch);\r\n if (isArray(expose)) {\r\n if (expose.length) {\r\n const exposed = instance.exposed || (instance.exposed = {});\r\n expose.forEach(key => {\r\n Object.defineProperty(exposed, key, {\r\n get: () => publicThis[key],\r\n set: val => (publicThis[key] = val)\r\n });\r\n });\r\n }\r\n else if (!instance.exposed) {\r\n instance.exposed = {};\r\n }\r\n }\r\n // options that are handled when creating the instance but also need to be\r\n // applied from mixins\r\n if (render && instance.render === NOOP) {\r\n instance.render = render;\r\n }\r\n if (inheritAttrs != null) {\r\n instance.inheritAttrs = inheritAttrs;\r\n }\r\n // asset options.\r\n if (components)\r\n instance.components = components;\r\n if (directives)\r\n instance.directives = directives;\r\n}\r\nfunction resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP, unwrapRef = false) {\r\n if (isArray(injectOptions)) {\r\n injectOptions = normalizeInject(injectOptions);\r\n }\r\n for (const key in injectOptions) {\r\n const opt = injectOptions[key];\r\n let injected;\r\n if (isObject(opt)) {\r\n if ('default' in opt) {\r\n injected = inject(opt.from || key, opt.default, true /* treat default function as factory */);\r\n }\r\n else {\r\n injected = inject(opt.from || key);\r\n }\r\n }\r\n else {\r\n injected = inject(opt);\r\n }\r\n if (isRef(injected)) {\r\n // TODO remove the check in 3.3\r\n if (unwrapRef) {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => injected.value,\r\n set: v => (injected.value = v)\r\n });\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injected property \"${key}\" is a ref and will be auto-unwrapped ` +\r\n `and no longer needs \\`.value\\` in the next minor release. ` +\r\n `To opt-in to the new behavior now, ` +\r\n `set \\`app.config.unwrapInjectedRef = true\\` (this config is ` +\r\n `temporary and will not be needed in the future.)`);\r\n }\r\n ctx[key] = injected;\r\n }\r\n }\r\n else {\r\n ctx[key] = injected;\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n checkDuplicateProperties(\"Inject\" /* INJECT */, key);\r\n }\r\n }\r\n}\r\nfunction callHook(hook, instance, type) {\r\n callWithAsyncErrorHandling(isArray(hook)\r\n ? hook.map(h => h.bind(instance.proxy))\r\n : hook.bind(instance.proxy), instance, type);\r\n}\r\nfunction createWatcher(raw, ctx, publicThis, key) {\r\n const getter = key.includes('.')\r\n ? createPathGetter(publicThis, key)\r\n : () => publicThis[key];\r\n if (isString(raw)) {\r\n const handler = ctx[raw];\r\n if (isFunction(handler)) {\r\n watch(getter, handler);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch handler specified by key \"${raw}\"`, handler);\r\n }\r\n }\r\n else if (isFunction(raw)) {\r\n watch(getter, raw.bind(publicThis));\r\n }\r\n else if (isObject(raw)) {\r\n if (isArray(raw)) {\r\n raw.forEach(r => createWatcher(r, ctx, publicThis, key));\r\n }\r\n else {\r\n const handler = isFunction(raw.handler)\r\n ? raw.handler.bind(publicThis)\r\n : ctx[raw.handler];\r\n if (isFunction(handler)) {\r\n watch(getter, handler, raw);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch handler specified by key \"${raw.handler}\"`, handler);\r\n }\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid watch option: \"${key}\"`, raw);\r\n }\r\n}\r\n/**\r\n * Resolve merged options and cache it on the component.\r\n * This is done only once per-component since the merging does not involve\r\n * instances.\r\n */\r\nfunction resolveMergedOptions(instance) {\r\n const base = instance.type;\r\n const { mixins, extends: extendsOptions } = base;\r\n const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;\r\n const cached = cache.get(base);\r\n let resolved;\r\n if (cached) {\r\n resolved = cached;\r\n }\r\n else if (!globalMixins.length && !mixins && !extendsOptions) {\r\n {\r\n resolved = base;\r\n }\r\n }\r\n else {\r\n resolved = {};\r\n if (globalMixins.length) {\r\n globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true));\r\n }\r\n mergeOptions(resolved, base, optionMergeStrategies);\r\n }\r\n cache.set(base, resolved);\r\n return resolved;\r\n}\r\nfunction mergeOptions(to, from, strats, asMixin = false) {\r\n const { mixins, extends: extendsOptions } = from;\r\n if (extendsOptions) {\r\n mergeOptions(to, extendsOptions, strats, true);\r\n }\r\n if (mixins) {\r\n mixins.forEach((m) => mergeOptions(to, m, strats, true));\r\n }\r\n for (const key in from) {\r\n if (asMixin && key === 'expose') {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`\"expose\" option is ignored when declared in mixins or extends. ` +\r\n `It should only be declared in the base component itself.`);\r\n }\r\n else {\r\n const strat = internalOptionMergeStrats[key] || (strats && strats[key]);\r\n to[key] = strat ? strat(to[key], from[key]) : from[key];\r\n }\r\n }\r\n return to;\r\n}\r\nconst internalOptionMergeStrats = {\r\n data: mergeDataFn,\r\n props: mergeObjectOptions,\r\n emits: mergeObjectOptions,\r\n // objects\r\n methods: mergeObjectOptions,\r\n computed: mergeObjectOptions,\r\n // lifecycle\r\n beforeCreate: mergeAsArray,\r\n created: mergeAsArray,\r\n beforeMount: mergeAsArray,\r\n mounted: mergeAsArray,\r\n beforeUpdate: mergeAsArray,\r\n updated: mergeAsArray,\r\n beforeDestroy: mergeAsArray,\r\n beforeUnmount: mergeAsArray,\r\n destroyed: mergeAsArray,\r\n unmounted: mergeAsArray,\r\n activated: mergeAsArray,\r\n deactivated: mergeAsArray,\r\n errorCaptured: mergeAsArray,\r\n serverPrefetch: mergeAsArray,\r\n // assets\r\n components: mergeObjectOptions,\r\n directives: mergeObjectOptions,\r\n // watch\r\n watch: mergeWatchOptions,\r\n // provide / inject\r\n provide: mergeDataFn,\r\n inject: mergeInject\r\n};\r\nfunction mergeDataFn(to, from) {\r\n if (!from) {\r\n return to;\r\n }\r\n if (!to) {\r\n return from;\r\n }\r\n return function mergedDataFn() {\r\n return (extend)(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from);\r\n };\r\n}\r\nfunction mergeInject(to, from) {\r\n return mergeObjectOptions(normalizeInject(to), normalizeInject(from));\r\n}\r\nfunction normalizeInject(raw) {\r\n if (isArray(raw)) {\r\n const res = {};\r\n for (let i = 0; i < raw.length; i++) {\r\n res[raw[i]] = raw[i];\r\n }\r\n return res;\r\n }\r\n return raw;\r\n}\r\nfunction mergeAsArray(to, from) {\r\n return to ? [...new Set([].concat(to, from))] : from;\r\n}\r\nfunction mergeObjectOptions(to, from) {\r\n return to ? extend(extend(Object.create(null), to), from) : from;\r\n}\r\nfunction mergeWatchOptions(to, from) {\r\n if (!to)\r\n return from;\r\n if (!from)\r\n return to;\r\n const merged = extend(Object.create(null), to);\r\n for (const key in from) {\r\n merged[key] = mergeAsArray(to[key], from[key]);\r\n }\r\n return merged;\r\n}\n\nfunction initProps(instance, rawProps, isStateful, // result of bitwise flag comparison\r\nisSSR = false) {\r\n const props = {};\r\n const attrs = {};\r\n def(attrs, InternalObjectKey, 1);\r\n instance.propsDefaults = Object.create(null);\r\n setFullProps(instance, rawProps, props, attrs);\r\n // ensure all declared prop keys are present\r\n for (const key in instance.propsOptions[0]) {\r\n if (!(key in props)) {\r\n props[key] = undefined;\r\n }\r\n }\r\n // validation\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateProps(rawProps || {}, props, instance);\r\n }\r\n if (isStateful) {\r\n // stateful\r\n instance.props = isSSR ? props : shallowReactive(props);\r\n }\r\n else {\r\n if (!instance.type.props) {\r\n // functional w/ optional props, props === attrs\r\n instance.props = attrs;\r\n }\r\n else {\r\n // functional w/ declared props\r\n instance.props = props;\r\n }\r\n }\r\n instance.attrs = attrs;\r\n}\r\nfunction updateProps(instance, rawProps, rawPrevProps, optimized) {\r\n const { props, attrs, vnode: { patchFlag } } = instance;\r\n const rawCurrentProps = toRaw(props);\r\n const [options] = instance.propsOptions;\r\n let hasAttrsChanged = false;\r\n if (\r\n // always force full diff in dev\r\n // - #1942 if hmr is enabled with sfc component\r\n // - vite#872 non-sfc component used by sfc component\r\n !((process.env.NODE_ENV !== 'production') &&\r\n (instance.type.__hmrId ||\r\n (instance.parent && instance.parent.type.__hmrId))) &&\r\n (optimized || patchFlag > 0) &&\r\n !(patchFlag & 16 /* FULL_PROPS */)) {\r\n if (patchFlag & 8 /* PROPS */) {\r\n // Compiler-generated props & no keys change, just set the updated\r\n // the props.\r\n const propsToUpdate = instance.vnode.dynamicProps;\r\n for (let i = 0; i < propsToUpdate.length; i++) {\r\n let key = propsToUpdate[i];\r\n // PROPS flag guarantees rawProps to be non-null\r\n const value = rawProps[key];\r\n if (options) {\r\n // attr / props separation was done on init and will be consistent\r\n // in this code path, so just check if attrs have it.\r\n if (hasOwn(attrs, key)) {\r\n if (value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n else {\r\n const camelizedKey = camelize(key);\r\n props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);\r\n }\r\n }\r\n else {\r\n if (value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // full props update.\r\n if (setFullProps(instance, rawProps, props, attrs)) {\r\n hasAttrsChanged = true;\r\n }\r\n // in case of dynamic props, check if we need to delete keys from\r\n // the props object\r\n let kebabKey;\r\n for (const key in rawCurrentProps) {\r\n if (!rawProps ||\r\n // for camelCase\r\n (!hasOwn(rawProps, key) &&\r\n // it's possible the original props was passed in as kebab-case\r\n // and converted to camelCase (#955)\r\n ((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey)))) {\r\n if (options) {\r\n if (rawPrevProps &&\r\n // for camelCase\r\n (rawPrevProps[key] !== undefined ||\r\n // for kebab-case\r\n rawPrevProps[kebabKey] !== undefined)) {\r\n props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */);\r\n }\r\n }\r\n else {\r\n delete props[key];\r\n }\r\n }\r\n }\r\n // in the case of functional component w/o props declaration, props and\r\n // attrs point to the same object so it should already have been updated.\r\n if (attrs !== rawCurrentProps) {\r\n for (const key in attrs) {\r\n if (!rawProps || !hasOwn(rawProps, key)) {\r\n delete attrs[key];\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n // trigger updates for $attrs in case it's used in component slots\r\n if (hasAttrsChanged) {\r\n trigger(instance, \"set\" /* SET */, '$attrs');\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateProps(rawProps || {}, props, instance);\r\n }\r\n}\r\nfunction setFullProps(instance, rawProps, props, attrs) {\r\n const [options, needCastKeys] = instance.propsOptions;\r\n let hasAttrsChanged = false;\r\n let rawCastValues;\r\n if (rawProps) {\r\n for (let key in rawProps) {\r\n // key, ref are reserved and never passed down\r\n if (isReservedProp(key)) {\r\n continue;\r\n }\r\n const value = rawProps[key];\r\n // prop option names are camelized during normalization, so to support\r\n // kebab -> camel conversion here we need to camelize the key.\r\n let camelKey;\r\n if (options && hasOwn(options, (camelKey = camelize(key)))) {\r\n if (!needCastKeys || !needCastKeys.includes(camelKey)) {\r\n props[camelKey] = value;\r\n }\r\n else {\r\n (rawCastValues || (rawCastValues = {}))[camelKey] = value;\r\n }\r\n }\r\n else if (!isEmitListener(instance.emitsOptions, key)) {\r\n if (!(key in attrs) || value !== attrs[key]) {\r\n attrs[key] = value;\r\n hasAttrsChanged = true;\r\n }\r\n }\r\n }\r\n }\r\n if (needCastKeys) {\r\n const rawCurrentProps = toRaw(props);\r\n const castValues = rawCastValues || EMPTY_OBJ;\r\n for (let i = 0; i < needCastKeys.length; i++) {\r\n const key = needCastKeys[i];\r\n props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !hasOwn(castValues, key));\r\n }\r\n }\r\n return hasAttrsChanged;\r\n}\r\nfunction resolvePropValue(options, props, key, value, instance, isAbsent) {\r\n const opt = options[key];\r\n if (opt != null) {\r\n const hasDefault = hasOwn(opt, 'default');\r\n // default values\r\n if (hasDefault && value === undefined) {\r\n const defaultValue = opt.default;\r\n if (opt.type !== Function && isFunction(defaultValue)) {\r\n const { propsDefaults } = instance;\r\n if (key in propsDefaults) {\r\n value = propsDefaults[key];\r\n }\r\n else {\r\n setCurrentInstance(instance);\r\n value = propsDefaults[key] = defaultValue.call(null, props);\r\n unsetCurrentInstance();\r\n }\r\n }\r\n else {\r\n value = defaultValue;\r\n }\r\n }\r\n // boolean casting\r\n if (opt[0 /* shouldCast */]) {\r\n if (isAbsent && !hasDefault) {\r\n value = false;\r\n }\r\n else if (opt[1 /* shouldCastTrue */] &&\r\n (value === '' || value === hyphenate(key))) {\r\n value = true;\r\n }\r\n }\r\n }\r\n return value;\r\n}\r\nfunction normalizePropsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.propsCache;\r\n const cached = cache.get(comp);\r\n if (cached) {\r\n return cached;\r\n }\r\n const raw = comp.props;\r\n const normalized = {};\r\n const needCastKeys = [];\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendProps = (raw) => {\r\n hasExtends = true;\r\n const [props, keys] = normalizePropsOptions(raw, appContext, true);\r\n extend(normalized, props);\r\n if (keys)\r\n needCastKeys.push(...keys);\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendProps);\r\n }\r\n if (comp.extends) {\r\n extendProps(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendProps);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n cache.set(comp, EMPTY_ARR);\r\n return EMPTY_ARR;\r\n }\r\n if (isArray(raw)) {\r\n for (let i = 0; i < raw.length; i++) {\r\n if ((process.env.NODE_ENV !== 'production') && !isString(raw[i])) {\r\n warn(`props must be strings when using array syntax.`, raw[i]);\r\n }\r\n const normalizedKey = camelize(raw[i]);\r\n if (validatePropName(normalizedKey)) {\r\n normalized[normalizedKey] = EMPTY_OBJ;\r\n }\r\n }\r\n }\r\n else if (raw) {\r\n if ((process.env.NODE_ENV !== 'production') && !isObject(raw)) {\r\n warn(`invalid props options`, raw);\r\n }\r\n for (const key in raw) {\r\n const normalizedKey = camelize(key);\r\n if (validatePropName(normalizedKey)) {\r\n const opt = raw[key];\r\n const prop = (normalized[normalizedKey] =\r\n isArray(opt) || isFunction(opt) ? { type: opt } : opt);\r\n if (prop) {\r\n const booleanIndex = getTypeIndex(Boolean, prop.type);\r\n const stringIndex = getTypeIndex(String, prop.type);\r\n prop[0 /* shouldCast */] = booleanIndex > -1;\r\n prop[1 /* shouldCastTrue */] =\r\n stringIndex < 0 || booleanIndex < stringIndex;\r\n // if the prop needs boolean casting or default value\r\n if (booleanIndex > -1 || hasOwn(prop, 'default')) {\r\n needCastKeys.push(normalizedKey);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n const res = [normalized, needCastKeys];\r\n cache.set(comp, res);\r\n return res;\r\n}\r\nfunction validatePropName(key) {\r\n if (key[0] !== '$') {\r\n return true;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Invalid prop name: \"${key}\" is a reserved property.`);\r\n }\r\n return false;\r\n}\r\n// use function string name to check type constructors\r\n// so that it works across vms / iframes.\r\nfunction getType(ctor) {\r\n const match = ctor && ctor.toString().match(/^\\s*function (\\w+)/);\r\n return match ? match[1] : ctor === null ? 'null' : '';\r\n}\r\nfunction isSameType(a, b) {\r\n return getType(a) === getType(b);\r\n}\r\nfunction getTypeIndex(type, expectedTypes) {\r\n if (isArray(expectedTypes)) {\r\n return expectedTypes.findIndex(t => isSameType(t, type));\r\n }\r\n else if (isFunction(expectedTypes)) {\r\n return isSameType(expectedTypes, type) ? 0 : -1;\r\n }\r\n return -1;\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction validateProps(rawProps, props, instance) {\r\n const resolvedValues = toRaw(props);\r\n const options = instance.propsOptions[0];\r\n for (const key in options) {\r\n let opt = options[key];\r\n if (opt == null)\r\n continue;\r\n validateProp(key, resolvedValues[key], opt, !hasOwn(rawProps, key) && !hasOwn(rawProps, hyphenate(key)));\r\n }\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction validateProp(name, value, prop, isAbsent) {\r\n const { type, required, validator } = prop;\r\n // required!\r\n if (required && isAbsent) {\r\n warn('Missing required prop: \"' + name + '\"');\r\n return;\r\n }\r\n // missing but optional\r\n if (value == null && !prop.required) {\r\n return;\r\n }\r\n // type check\r\n if (type != null && type !== true) {\r\n let isValid = false;\r\n const types = isArray(type) ? type : [type];\r\n const expectedTypes = [];\r\n // value is valid as long as one of the specified types match\r\n for (let i = 0; i < types.length && !isValid; i++) {\r\n const { valid, expectedType } = assertType(value, types[i]);\r\n expectedTypes.push(expectedType || '');\r\n isValid = valid;\r\n }\r\n if (!isValid) {\r\n warn(getInvalidTypeMessage(name, value, expectedTypes));\r\n return;\r\n }\r\n }\r\n // custom validator\r\n if (validator && !validator(value)) {\r\n warn('Invalid prop: custom validator check failed for prop \"' + name + '\".');\r\n }\r\n}\r\nconst isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt');\r\n/**\r\n * dev only\r\n */\r\nfunction assertType(value, type) {\r\n let valid;\r\n const expectedType = getType(type);\r\n if (isSimpleType(expectedType)) {\r\n const t = typeof value;\r\n valid = t === expectedType.toLowerCase();\r\n // for primitive wrapper objects\r\n if (!valid && t === 'object') {\r\n valid = value instanceof type;\r\n }\r\n }\r\n else if (expectedType === 'Object') {\r\n valid = isObject(value);\r\n }\r\n else if (expectedType === 'Array') {\r\n valid = isArray(value);\r\n }\r\n else if (expectedType === 'null') {\r\n valid = value === null;\r\n }\r\n else {\r\n valid = value instanceof type;\r\n }\r\n return {\r\n valid,\r\n expectedType\r\n };\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction getInvalidTypeMessage(name, value, expectedTypes) {\r\n let message = `Invalid prop: type check failed for prop \"${name}\".` +\r\n ` Expected ${expectedTypes.map(capitalize).join(' | ')}`;\r\n const expectedType = expectedTypes[0];\r\n const receivedType = toRawType(value);\r\n const expectedValue = styleValue(value, expectedType);\r\n const receivedValue = styleValue(value, receivedType);\r\n // check if we need to specify expected value\r\n if (expectedTypes.length === 1 &&\r\n isExplicable(expectedType) &&\r\n !isBoolean(expectedType, receivedType)) {\r\n message += ` with value ${expectedValue}`;\r\n }\r\n message += `, got ${receivedType} `;\r\n // check if we need to specify received value\r\n if (isExplicable(receivedType)) {\r\n message += `with value ${receivedValue}.`;\r\n }\r\n return message;\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction styleValue(value, type) {\r\n if (type === 'String') {\r\n return `\"${value}\"`;\r\n }\r\n else if (type === 'Number') {\r\n return `${Number(value)}`;\r\n }\r\n else {\r\n return `${value}`;\r\n }\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction isExplicable(type) {\r\n const explicitTypes = ['string', 'number', 'boolean'];\r\n return explicitTypes.some(elem => type.toLowerCase() === elem);\r\n}\r\n/**\r\n * dev only\r\n */\r\nfunction isBoolean(...args) {\r\n return args.some(elem => elem.toLowerCase() === 'boolean');\r\n}\n\nconst isInternalKey = (key) => key[0] === '_' || key === '$stable';\r\nconst normalizeSlotValue = (value) => isArray(value)\r\n ? value.map(normalizeVNode)\r\n : [normalizeVNode(value)];\r\nconst normalizeSlot = (key, rawSlot, ctx) => {\r\n const normalized = withCtx((...args) => {\r\n if ((process.env.NODE_ENV !== 'production') && currentInstance) {\r\n warn(`Slot \"${key}\" invoked outside of the render function: ` +\r\n `this will not track dependencies used in the slot. ` +\r\n `Invoke the slot function inside the render function instead.`);\r\n }\r\n return normalizeSlotValue(rawSlot(...args));\r\n }, ctx);\r\n normalized._c = false;\r\n return normalized;\r\n};\r\nconst normalizeObjectSlots = (rawSlots, slots, instance) => {\r\n const ctx = rawSlots._ctx;\r\n for (const key in rawSlots) {\r\n if (isInternalKey(key))\r\n continue;\r\n const value = rawSlots[key];\r\n if (isFunction(value)) {\r\n slots[key] = normalizeSlot(key, value, ctx);\r\n }\r\n else if (value != null) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n !(false )) {\r\n warn(`Non-function value encountered for slot \"${key}\". ` +\r\n `Prefer function slots for better performance.`);\r\n }\r\n const normalized = normalizeSlotValue(value);\r\n slots[key] = () => normalized;\r\n }\r\n }\r\n};\r\nconst normalizeVNodeSlots = (instance, children) => {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n !isKeepAlive(instance.vnode) &&\r\n !(false )) {\r\n warn(`Non-function value encountered for default slot. ` +\r\n `Prefer function slots for better performance.`);\r\n }\r\n const normalized = normalizeSlotValue(children);\r\n instance.slots.default = () => normalized;\r\n};\r\nconst initSlots = (instance, children) => {\r\n if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {\r\n const type = children._;\r\n if (type) {\r\n // users can get the shallow readonly version of the slots object through `this.$slots`,\r\n // we should avoid the proxy object polluting the slots of the internal instance\r\n instance.slots = toRaw(children);\r\n // make compiler marker non-enumerable\r\n def(children, '_', type);\r\n }\r\n else {\r\n normalizeObjectSlots(children, (instance.slots = {}));\r\n }\r\n }\r\n else {\r\n instance.slots = {};\r\n if (children) {\r\n normalizeVNodeSlots(instance, children);\r\n }\r\n }\r\n def(instance.slots, InternalObjectKey, 1);\r\n};\r\nconst updateSlots = (instance, children, optimized) => {\r\n const { vnode, slots } = instance;\r\n let needDeletionCheck = true;\r\n let deletionComparisonTarget = EMPTY_OBJ;\r\n if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {\r\n const type = children._;\r\n if (type) {\r\n // compiled slots.\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // Parent was HMR updated so slot content may have changed.\r\n // force update slots and mark instance for hmr as well\r\n extend(slots, children);\r\n }\r\n else if (optimized && type === 1 /* STABLE */) {\r\n // compiled AND stable.\r\n // no need to update, and skip stale slots removal.\r\n needDeletionCheck = false;\r\n }\r\n else {\r\n // compiled but dynamic (v-if/v-for on slots) - update slots, but skip\r\n // normalization.\r\n extend(slots, children);\r\n // #2893\r\n // when rendering the optimized slots by manually written render function,\r\n // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,\r\n // i.e. let the `renderSlot` create the bailed Fragment\r\n if (!optimized && type === 1 /* STABLE */) {\r\n delete slots._;\r\n }\r\n }\r\n }\r\n else {\r\n needDeletionCheck = !children.$stable;\r\n normalizeObjectSlots(children, slots);\r\n }\r\n deletionComparisonTarget = children;\r\n }\r\n else if (children) {\r\n // non slot object children (direct value) passed to a component\r\n normalizeVNodeSlots(instance, children);\r\n deletionComparisonTarget = { default: 1 };\r\n }\r\n // delete stale slots\r\n if (needDeletionCheck) {\r\n for (const key in slots) {\r\n if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {\r\n delete slots[key];\r\n }\r\n }\r\n }\r\n};\n\n/**\r\nRuntime helper for applying directives to a vnode. Example usage:\r\n\nconst comp = resolveComponent('comp')\r\nconst foo = resolveDirective('foo')\r\nconst bar = resolveDirective('bar')\r\n\nreturn withDirectives(h(comp), [\r\n [foo, this.x],\r\n [bar, this.y]\r\n])\r\n*/\r\nconst isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');\r\nfunction validateDirectiveName(name) {\r\n if (isBuiltInDirective(name)) {\r\n warn('Do not use built-in directive ids as custom directive id: ' + name);\r\n }\r\n}\r\n/**\r\n * Adds directives to a VNode.\r\n */\r\nfunction withDirectives(vnode, directives) {\r\n const internalInstance = currentRenderingInstance;\r\n if (internalInstance === null) {\r\n (process.env.NODE_ENV !== 'production') && warn(`withDirectives can only be used inside render functions.`);\r\n return vnode;\r\n }\r\n const instance = internalInstance.proxy;\r\n const bindings = vnode.dirs || (vnode.dirs = []);\r\n for (let i = 0; i < directives.length; i++) {\r\n let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];\r\n if (isFunction(dir)) {\r\n dir = {\r\n mounted: dir,\r\n updated: dir\r\n };\r\n }\r\n if (dir.deep) {\r\n traverse(value);\r\n }\r\n bindings.push({\r\n dir,\r\n instance,\r\n value,\r\n oldValue: void 0,\r\n arg,\r\n modifiers\r\n });\r\n }\r\n return vnode;\r\n}\r\nfunction invokeDirectiveHook(vnode, prevVNode, instance, name) {\r\n const bindings = vnode.dirs;\r\n const oldBindings = prevVNode && prevVNode.dirs;\r\n for (let i = 0; i < bindings.length; i++) {\r\n const binding = bindings[i];\r\n if (oldBindings) {\r\n binding.oldValue = oldBindings[i].value;\r\n }\r\n let hook = binding.dir[name];\r\n if (hook) {\r\n // disable tracking inside all lifecycle hooks\r\n // since they can potentially be called inside effects.\r\n pauseTracking();\r\n callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [\r\n vnode.el,\r\n binding,\r\n vnode,\r\n prevVNode\r\n ]);\r\n resetTracking();\r\n }\r\n }\r\n}\n\nfunction createAppContext() {\r\n return {\r\n app: null,\r\n config: {\r\n isNativeTag: NO,\r\n performance: false,\r\n globalProperties: {},\r\n optionMergeStrategies: {},\r\n errorHandler: undefined,\r\n warnHandler: undefined,\r\n compilerOptions: {}\r\n },\r\n mixins: [],\r\n components: {},\r\n directives: {},\r\n provides: Object.create(null),\r\n optionsCache: new WeakMap(),\r\n propsCache: new WeakMap(),\r\n emitsCache: new WeakMap()\r\n };\r\n}\r\nlet uid = 0;\r\nfunction createAppAPI(render, hydrate) {\r\n return function createApp(rootComponent, rootProps = null) {\r\n if (rootProps != null && !isObject(rootProps)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`root props passed to app.mount() must be an object.`);\r\n rootProps = null;\r\n }\r\n const context = createAppContext();\r\n const installedPlugins = new Set();\r\n let isMounted = false;\r\n const app = (context.app = {\r\n _uid: uid++,\r\n _component: rootComponent,\r\n _props: rootProps,\r\n _container: null,\r\n _context: context,\r\n _instance: null,\r\n version,\r\n get config() {\r\n return context.config;\r\n },\r\n set config(v) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`app.config cannot be replaced. Modify individual options instead.`);\r\n }\r\n },\r\n use(plugin, ...options) {\r\n if (installedPlugins.has(plugin)) {\r\n (process.env.NODE_ENV !== 'production') && warn(`Plugin has already been applied to target app.`);\r\n }\r\n else if (plugin && isFunction(plugin.install)) {\r\n installedPlugins.add(plugin);\r\n plugin.install(app, ...options);\r\n }\r\n else if (isFunction(plugin)) {\r\n installedPlugins.add(plugin);\r\n plugin(app, ...options);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`A plugin must either be a function or an object with an \"install\" ` +\r\n `function.`);\r\n }\r\n return app;\r\n },\r\n mixin(mixin) {\r\n if (__VUE_OPTIONS_API__) {\r\n if (!context.mixins.includes(mixin)) {\r\n context.mixins.push(mixin);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Mixin has already been applied to target app' +\r\n (mixin.name ? `: ${mixin.name}` : ''));\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Mixins are only available in builds supporting Options API');\r\n }\r\n return app;\r\n },\r\n component(name, component) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateComponentName(name, context.config);\r\n }\r\n if (!component) {\r\n return context.components[name];\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && context.components[name]) {\r\n warn(`Component \"${name}\" has already been registered in target app.`);\r\n }\r\n context.components[name] = component;\r\n return app;\r\n },\r\n directive(name, directive) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n validateDirectiveName(name);\r\n }\r\n if (!directive) {\r\n return context.directives[name];\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && context.directives[name]) {\r\n warn(`Directive \"${name}\" has already been registered in target app.`);\r\n }\r\n context.directives[name] = directive;\r\n return app;\r\n },\r\n mount(rootContainer, isHydrate, isSVG) {\r\n if (!isMounted) {\r\n const vnode = createVNode(rootComponent, rootProps);\r\n // store app context on the root VNode.\r\n // this will be set on the root instance on initial mount.\r\n vnode.appContext = context;\r\n // HMR root reload\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n context.reload = () => {\r\n render(cloneVNode(vnode), rootContainer, isSVG);\r\n };\r\n }\r\n if (isHydrate && hydrate) {\r\n hydrate(vnode, rootContainer);\r\n }\r\n else {\r\n render(vnode, rootContainer, isSVG);\r\n }\r\n isMounted = true;\r\n app._container = rootContainer;\r\n rootContainer.__vue_app__ = app;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n app._instance = vnode.component;\r\n devtoolsInitApp(app, version);\r\n }\r\n return getExposeProxy(vnode.component) || vnode.component.proxy;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`App has already been mounted.\\n` +\r\n `If you want to remount the same app, move your app creation logic ` +\r\n `into a factory function and create fresh app instances for each ` +\r\n `mount - e.g. \\`const createMyApp = () => createApp(App)\\``);\r\n }\r\n },\r\n unmount() {\r\n if (isMounted) {\r\n render(null, app._container);\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n app._instance = null;\r\n devtoolsUnmountApp(app);\r\n }\r\n delete app._container.__vue_app__;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Cannot unmount an app that is not mounted.`);\r\n }\r\n },\r\n provide(key, value) {\r\n if ((process.env.NODE_ENV !== 'production') && key in context.provides) {\r\n warn(`App already provides property with key \"${String(key)}\". ` +\r\n `It will be overwritten with the new value.`);\r\n }\r\n // TypeScript doesn't allow symbols as index type\r\n // https://github.com/Microsoft/TypeScript/issues/24587\r\n context.provides[key] = value;\r\n return app;\r\n }\r\n });\r\n return app;\r\n };\r\n}\n\n/**\r\n * Function for handling a template ref\r\n */\r\nfunction setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {\r\n if (isArray(rawRef)) {\r\n rawRef.forEach((r, i) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));\r\n return;\r\n }\r\n if (isAsyncWrapper(vnode) && !isUnmount) {\r\n // when mounting async components, nothing needs to be done,\r\n // because the template ref is forwarded to inner component\r\n return;\r\n }\r\n const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */\r\n ? getExposeProxy(vnode.component) || vnode.component.proxy\r\n : vnode.el;\r\n const value = isUnmount ? null : refValue;\r\n const { i: owner, r: ref } = rawRef;\r\n if ((process.env.NODE_ENV !== 'production') && !owner) {\r\n warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +\r\n `A vnode with ref must be created inside the render function.`);\r\n return;\r\n }\r\n const oldRef = oldRawRef && oldRawRef.r;\r\n const refs = owner.refs === EMPTY_OBJ ? (owner.refs = {}) : owner.refs;\r\n const setupState = owner.setupState;\r\n // dynamic ref changed. unset old ref\r\n if (oldRef != null && oldRef !== ref) {\r\n if (isString(oldRef)) {\r\n refs[oldRef] = null;\r\n if (hasOwn(setupState, oldRef)) {\r\n setupState[oldRef] = null;\r\n }\r\n }\r\n else if (isRef(oldRef)) {\r\n oldRef.value = null;\r\n }\r\n }\r\n if (isFunction(ref)) {\r\n callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]);\r\n }\r\n else {\r\n const _isString = isString(ref);\r\n const _isRef = isRef(ref);\r\n if (_isString || _isRef) {\r\n const doSet = () => {\r\n if (rawRef.f) {\r\n const existing = _isString ? refs[ref] : ref.value;\r\n if (isUnmount) {\r\n isArray(existing) && remove(existing, refValue);\r\n }\r\n else {\r\n if (!isArray(existing)) {\r\n if (_isString) {\r\n refs[ref] = [refValue];\r\n }\r\n else {\r\n ref.value = [refValue];\r\n if (rawRef.k)\r\n refs[rawRef.k] = ref.value;\r\n }\r\n }\r\n else if (!existing.includes(refValue)) {\r\n existing.push(refValue);\r\n }\r\n }\r\n }\r\n else if (_isString) {\r\n refs[ref] = value;\r\n if (hasOwn(setupState, ref)) {\r\n setupState[ref] = value;\r\n }\r\n }\r\n else if (isRef(ref)) {\r\n ref.value = value;\r\n if (rawRef.k)\r\n refs[rawRef.k] = value;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid template ref type:', ref, `(${typeof ref})`);\r\n }\r\n };\r\n if (value) {\r\n doSet.id = -1;\r\n queuePostRenderEffect(doSet, parentSuspense);\r\n }\r\n else {\r\n doSet();\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid template ref type:', ref, `(${typeof ref})`);\r\n }\r\n }\r\n}\n\nlet hasMismatch = false;\r\nconst isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject';\r\nconst isComment = (node) => node.nodeType === 8 /* COMMENT */;\r\n// Note: hydration is DOM-specific\r\n// But we have to place it in core due to tight coupling with core - splitting\r\n// it out creates a ton of unnecessary complexity.\r\n// Hydration also depends on some renderer internal logic which needs to be\r\n// passed in via arguments.\r\nfunction createHydrationFunctions(rendererInternals) {\r\n const { mt: mountComponent, p: patch, o: { patchProp, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;\r\n const hydrate = (vnode, container) => {\r\n if (!container.hasChildNodes()) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to hydrate existing markup but container is empty. ` +\r\n `Performing full mount instead.`);\r\n patch(null, vnode, container);\r\n flushPostFlushCbs();\r\n return;\r\n }\r\n hasMismatch = false;\r\n hydrateNode(container.firstChild, vnode, null, null, null);\r\n flushPostFlushCbs();\r\n if (hasMismatch && !false) {\r\n // this error should show up in production\r\n console.error(`Hydration completed but contains mismatches.`);\r\n }\r\n };\r\n const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {\r\n const isFragmentStart = isComment(node) && node.data === '[';\r\n const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);\r\n const { type, ref, shapeFlag } = vnode;\r\n const domType = node.nodeType;\r\n vnode.el = node;\r\n let nextNode = null;\r\n switch (type) {\r\n case Text:\r\n if (domType !== 3 /* TEXT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n if (node.data !== vnode.children) {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration text mismatch:` +\r\n `\\n- Client: ${JSON.stringify(node.data)}` +\r\n `\\n- Server: ${JSON.stringify(vnode.children)}`);\r\n node.data = vnode.children;\r\n }\r\n nextNode = nextSibling(node);\r\n }\r\n break;\r\n case Comment:\r\n if (domType !== 8 /* COMMENT */ || isFragmentStart) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = nextSibling(node);\r\n }\r\n break;\r\n case Static:\r\n if (domType !== 1 /* ELEMENT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n // determine anchor, adopt content\r\n nextNode = node;\r\n // if the static vnode has its content stripped during build,\r\n // adopt it from the server-rendered HTML.\r\n const needToAdoptContent = !vnode.children.length;\r\n for (let i = 0; i < vnode.staticCount; i++) {\r\n if (needToAdoptContent)\r\n vnode.children += nextNode.outerHTML;\r\n if (i === vnode.staticCount - 1) {\r\n vnode.anchor = nextNode;\r\n }\r\n nextNode = nextSibling(nextNode);\r\n }\r\n return nextNode;\r\n }\r\n break;\r\n case Fragment:\r\n if (!isFragmentStart) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n break;\r\n default:\r\n if (shapeFlag & 1 /* ELEMENT */) {\r\n if (domType !== 1 /* ELEMENT */ ||\r\n vnode.type.toLowerCase() !==\r\n node.tagName.toLowerCase()) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n }\r\n else if (shapeFlag & 6 /* COMPONENT */) {\r\n // when setting up the render effect, if the initial vnode already\r\n // has .el set, the component will perform hydration instead of mount\r\n // on its sub-tree.\r\n vnode.slotScopeIds = slotScopeIds;\r\n const container = parentNode(node);\r\n mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized);\r\n // component may be async, so in the case of fragments we cannot rely\r\n // on component's rendered output to determine the end of the fragment\r\n // instead, we do a lookahead to find the end anchor node.\r\n nextNode = isFragmentStart\r\n ? locateClosingAsyncAnchor(node)\r\n : nextSibling(node);\r\n // #3787\r\n // if component is async, it may get moved / unmounted before its\r\n // inner component is loaded, so we need to give it a placeholder\r\n // vnode that matches its adopted DOM.\r\n if (isAsyncWrapper(vnode)) {\r\n let subTree;\r\n if (isFragmentStart) {\r\n subTree = createVNode(Fragment);\r\n subTree.anchor = nextNode\r\n ? nextNode.previousSibling\r\n : container.lastChild;\r\n }\r\n else {\r\n subTree =\r\n node.nodeType === 3 ? createTextVNode('') : createVNode('div');\r\n }\r\n subTree.el = node;\r\n vnode.component.subTree = subTree;\r\n }\r\n }\r\n else if (shapeFlag & 64 /* TELEPORT */) {\r\n if (domType !== 8 /* COMMENT */) {\r\n nextNode = onMismatch();\r\n }\r\n else {\r\n nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);\r\n }\r\n }\r\n else if (shapeFlag & 128 /* SUSPENSE */) {\r\n nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid HostVNode type:', type, `(${typeof type})`);\r\n }\r\n }\r\n if (ref != null) {\r\n setRef(ref, null, parentSuspense, vnode);\r\n }\r\n return nextNode;\r\n };\r\n const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n optimized = optimized || !!vnode.dynamicChildren;\r\n const { type, props, patchFlag, shapeFlag, dirs } = vnode;\r\n // #4006 for form elements with non-string v-model value bindings\r\n // e.g. <option :value=\"obj\">, <input type=\"checkbox\" :true-value=\"1\">\r\n const forcePatchValue = (type === 'input' && dirs) || type === 'option';\r\n // skip props & children if this is hoisted static nodes\r\n if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'created');\r\n }\r\n // props\r\n if (props) {\r\n if (forcePatchValue ||\r\n !optimized ||\r\n patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) {\r\n for (const key in props) {\r\n if ((forcePatchValue && key.endsWith('value')) ||\r\n (isOn(key) && !isReservedProp(key))) {\r\n patchProp(el, key, null, props[key], false, undefined, parentComponent);\r\n }\r\n }\r\n }\r\n else if (props.onClick) {\r\n // Fast path for click listeners (which is most often) to avoid\r\n // iterating through props.\r\n patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);\r\n }\r\n }\r\n // vnode / directive hooks\r\n let vnodeHooks;\r\n if ((vnodeHooks = props && props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHooks, parentComponent, vnode);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');\r\n }\r\n if ((vnodeHooks = props && props.onVnodeMounted) || dirs) {\r\n queueEffectWithSuspense(() => {\r\n vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);\r\n dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');\r\n }, parentSuspense);\r\n }\r\n // children\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */ &&\r\n // skip if element has innerHTML / textContent\r\n !(props && (props.innerHTML || props.textContent))) {\r\n let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n let hasWarned = false;\r\n while (next) {\r\n hasMismatch = true;\r\n if ((process.env.NODE_ENV !== 'production') && !hasWarned) {\r\n warn(`Hydration children mismatch in <${vnode.type}>: ` +\r\n `server rendered element contains more child nodes than client vdom.`);\r\n hasWarned = true;\r\n }\r\n // The SSRed DOM contains more nodes than it should. Remove them.\r\n const cur = next;\r\n next = next.nextSibling;\r\n remove(cur);\r\n }\r\n }\r\n else if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n if (el.textContent !== vnode.children) {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration text content mismatch in <${vnode.type}>:\\n` +\r\n `- Client: ${el.textContent}\\n` +\r\n `- Server: ${vnode.children}`);\r\n el.textContent = vnode.children;\r\n }\r\n }\r\n }\r\n return el.nextSibling;\r\n };\r\n const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n optimized = optimized || !!parentVNode.dynamicChildren;\r\n const children = parentVNode.children;\r\n const l = children.length;\r\n let hasWarned = false;\r\n for (let i = 0; i < l; i++) {\r\n const vnode = optimized\r\n ? children[i]\r\n : (children[i] = normalizeVNode(children[i]));\r\n if (node) {\r\n node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n else if (vnode.type === Text && !vnode.children) {\r\n continue;\r\n }\r\n else {\r\n hasMismatch = true;\r\n if ((process.env.NODE_ENV !== 'production') && !hasWarned) {\r\n warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +\r\n `server rendered element contains fewer child nodes than client vdom.`);\r\n hasWarned = true;\r\n }\r\n // the SSRed DOM didn't contain enough nodes. Mount the missing ones.\r\n patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);\r\n }\r\n }\r\n return node;\r\n };\r\n const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\r\n const { slotScopeIds: fragmentSlotScopeIds } = vnode;\r\n if (fragmentSlotScopeIds) {\r\n slotScopeIds = slotScopeIds\r\n ? slotScopeIds.concat(fragmentSlotScopeIds)\r\n : fragmentSlotScopeIds;\r\n }\r\n const container = parentNode(node);\r\n const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n if (next && isComment(next) && next.data === ']') {\r\n return nextSibling((vnode.anchor = next));\r\n }\r\n else {\r\n // fragment didn't hydrate successfully, since we didn't get a end anchor\r\n // back. This should have led to node/children mismatch warnings.\r\n hasMismatch = true;\r\n // since the anchor is missing, we need to create one and insert it\r\n insert((vnode.anchor = createComment(`]`)), container, next);\r\n return next;\r\n }\r\n };\r\n const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {\r\n hasMismatch = true;\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Hydration node mismatch:\\n- Client vnode:`, vnode.type, `\\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */\r\n ? `(text)`\r\n : isComment(node) && node.data === '['\r\n ? `(start of fragment)`\r\n : ``);\r\n vnode.el = null;\r\n if (isFragment) {\r\n // remove excessive fragment nodes\r\n const end = locateClosingAsyncAnchor(node);\r\n while (true) {\r\n const next = nextSibling(node);\r\n if (next && next !== end) {\r\n remove(next);\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n const next = nextSibling(node);\r\n const container = parentNode(node);\r\n remove(node);\r\n patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);\r\n return next;\r\n };\r\n const locateClosingAsyncAnchor = (node) => {\r\n let match = 0;\r\n while (node) {\r\n node = nextSibling(node);\r\n if (node && isComment(node)) {\r\n if (node.data === '[')\r\n match++;\r\n if (node.data === ']') {\r\n if (match === 0) {\r\n return nextSibling(node);\r\n }\r\n else {\r\n match--;\r\n }\r\n }\r\n }\r\n }\r\n return node;\r\n };\r\n return [hydrate, hydrateNode];\r\n}\n\nlet supported;\r\nlet perf;\r\nfunction startMeasure(instance, type) {\r\n if (instance.appContext.config.performance && isSupported()) {\r\n perf.mark(`vue-${type}-${instance.uid}`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now());\r\n }\r\n}\r\nfunction endMeasure(instance, type) {\r\n if (instance.appContext.config.performance && isSupported()) {\r\n const startTag = `vue-${type}-${instance.uid}`;\r\n const endTag = startTag + `:end`;\r\n perf.mark(endTag);\r\n perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag);\r\n perf.clearMarks(startTag);\r\n perf.clearMarks(endTag);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now());\r\n }\r\n}\r\nfunction isSupported() {\r\n if (supported !== undefined) {\r\n return supported;\r\n }\r\n /* eslint-disable no-restricted-globals */\r\n if (typeof window !== 'undefined' && window.performance) {\r\n supported = true;\r\n perf = window.performance;\r\n }\r\n else {\r\n supported = false;\r\n }\r\n /* eslint-enable no-restricted-globals */\r\n return supported;\r\n}\n\n/**\r\n * This is only called in esm-bundler builds.\r\n * It is called when a renderer is created, in `baseCreateRenderer` so that\r\n * importing runtime-core is side-effects free.\r\n *\r\n * istanbul-ignore-next\r\n */\r\nfunction initFeatureFlags() {\r\n const needWarn = [];\r\n if (typeof __VUE_OPTIONS_API__ !== 'boolean') {\r\n (process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_OPTIONS_API__`);\r\n getGlobalThis().__VUE_OPTIONS_API__ = true;\r\n }\r\n if (typeof __VUE_PROD_DEVTOOLS__ !== 'boolean') {\r\n (process.env.NODE_ENV !== 'production') && needWarn.push(`__VUE_PROD_DEVTOOLS__`);\r\n getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && needWarn.length) {\r\n const multi = needWarn.length > 1;\r\n console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +\r\n `which expects these compile-time feature flags to be globally injected ` +\r\n `via the bundler config in order to get better tree-shaking in the ` +\r\n `production bundle.\\n\\n` +\r\n `For more details, see https://link.vuejs.org/feature-flags.`);\r\n }\r\n}\n\nconst queuePostRenderEffect = queueEffectWithSuspense\r\n ;\r\n/**\r\n * The createRenderer function accepts two generic arguments:\r\n * HostNode and HostElement, corresponding to Node and Element types in the\r\n * host environment. For example, for runtime-dom, HostNode would be the DOM\r\n * `Node` interface and HostElement would be the DOM `Element` interface.\r\n *\r\n * Custom renderers can pass in the platform specific types like this:\r\n *\r\n * ``` js\r\n * const { render, createApp } = createRenderer<Node, Element>({\r\n * patchProp,\r\n * ...nodeOps\r\n * })\r\n * ```\r\n */\r\nfunction createRenderer(options) {\r\n return baseCreateRenderer(options);\r\n}\r\n// Separate API for creating hydration-enabled renderer.\r\n// Hydration logic is only used when calling this function, making it\r\n// tree-shakable.\r\nfunction createHydrationRenderer(options) {\r\n return baseCreateRenderer(options, createHydrationFunctions);\r\n}\r\n// implementation\r\nfunction baseCreateRenderer(options, createHydrationFns) {\r\n // compile-time feature flags check\r\n {\r\n initFeatureFlags();\r\n }\r\n const target = getGlobalThis();\r\n target.__VUE__ = true;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);\r\n }\r\n const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;\r\n // Note: functions inside this closure should use `const xxx = () => {}`\r\n // style in order to prevent being inlined by minifiers.\r\n const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = (process.env.NODE_ENV !== 'production') && isHmrUpdating ? false : !!n2.dynamicChildren) => {\r\n if (n1 === n2) {\r\n return;\r\n }\r\n // patching & not same type, unmount old tree\r\n if (n1 && !isSameVNodeType(n1, n2)) {\r\n anchor = getNextHostNode(n1);\r\n unmount(n1, parentComponent, parentSuspense, true);\r\n n1 = null;\r\n }\r\n if (n2.patchFlag === -2 /* BAIL */) {\r\n optimized = false;\r\n n2.dynamicChildren = null;\r\n }\r\n const { type, ref, shapeFlag } = n2;\r\n switch (type) {\r\n case Text:\r\n processText(n1, n2, container, anchor);\r\n break;\r\n case Comment:\r\n processCommentNode(n1, n2, container, anchor);\r\n break;\r\n case Static:\r\n if (n1 == null) {\r\n mountStaticNode(n2, container, anchor, isSVG);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n patchStaticNode(n1, n2, container, isSVG);\r\n }\r\n break;\r\n case Fragment:\r\n processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n break;\r\n default:\r\n if (shapeFlag & 1 /* ELEMENT */) {\r\n processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (shapeFlag & 6 /* COMPONENT */) {\r\n processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (shapeFlag & 64 /* TELEPORT */) {\r\n type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);\r\n }\r\n else if (shapeFlag & 128 /* SUSPENSE */) {\r\n type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid VNode type:', type, `(${typeof type})`);\r\n }\r\n }\r\n // set ref\r\n if (ref != null && parentComponent) {\r\n setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);\r\n }\r\n };\r\n const processText = (n1, n2, container, anchor) => {\r\n if (n1 == null) {\r\n hostInsert((n2.el = hostCreateText(n2.children)), container, anchor);\r\n }\r\n else {\r\n const el = (n2.el = n1.el);\r\n if (n2.children !== n1.children) {\r\n hostSetText(el, n2.children);\r\n }\r\n }\r\n };\r\n const processCommentNode = (n1, n2, container, anchor) => {\r\n if (n1 == null) {\r\n hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor);\r\n }\r\n else {\r\n // there's no support for dynamic comments\r\n n2.el = n1.el;\r\n }\r\n };\r\n const mountStaticNode = (n2, container, anchor, isSVG) => {\r\n [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);\r\n };\r\n /**\r\n * Dev / HMR only\r\n */\r\n const patchStaticNode = (n1, n2, container, isSVG) => {\r\n // static nodes are only patched during dev for HMR\r\n if (n2.children !== n1.children) {\r\n const anchor = hostNextSibling(n1.anchor);\r\n // remove existing\r\n removeStaticNode(n1);\r\n [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);\r\n }\r\n else {\r\n n2.el = n1.el;\r\n n2.anchor = n1.anchor;\r\n }\r\n };\r\n const moveStaticNode = ({ el, anchor }, container, nextSibling) => {\r\n let next;\r\n while (el && el !== anchor) {\r\n next = hostNextSibling(el);\r\n hostInsert(el, container, nextSibling);\r\n el = next;\r\n }\r\n hostInsert(anchor, container, nextSibling);\r\n };\r\n const removeStaticNode = ({ el, anchor }) => {\r\n let next;\r\n while (el && el !== anchor) {\r\n next = hostNextSibling(el);\r\n hostRemove(el);\r\n el = next;\r\n }\r\n hostRemove(anchor);\r\n };\r\n const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n isSVG = isSVG || n2.type === 'svg';\r\n if (n1 == null) {\r\n mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n let el;\r\n let vnodeHook;\r\n const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode;\r\n if (!(process.env.NODE_ENV !== 'production') &&\r\n vnode.el &&\r\n hostCloneNode !== undefined &&\r\n patchFlag === -1 /* HOISTED */) {\r\n // If a vnode has non-null el, it means it's being reused.\r\n // Only static vnodes can be reused, so its mounted DOM nodes should be\r\n // exactly the same, and we can simply do a clone here.\r\n // only do this in production since cloned trees cannot be HMR updated.\r\n el = vnode.el = hostCloneNode(vnode.el);\r\n }\r\n else {\r\n el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props);\r\n // mount children first, since some props may rely on child content\r\n // being already rendered, e.g. `<select value>`\r\n if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n hostSetElementText(el, vnode.children);\r\n }\r\n else if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'created');\r\n }\r\n // props\r\n if (props) {\r\n for (const key in props) {\r\n if (key !== 'value' && !isReservedProp(key)) {\r\n hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n /**\r\n * Special case for setting value on DOM elements:\r\n * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)\r\n * - it needs to be forced (#1471)\r\n * #2353 proposes adding another renderer option to configure this, but\r\n * the properties affects are so finite it is worth special casing it\r\n * here to reduce the complexity. (Special casing it also should not\r\n * affect non-DOM renderers)\r\n */\r\n if ('value' in props) {\r\n hostPatchProp(el, 'value', null, props.value);\r\n }\r\n if ((vnodeHook = props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n }\r\n }\r\n // scopeId\r\n setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n Object.defineProperty(el, '__vnode', {\r\n value: vnode,\r\n enumerable: false\r\n });\r\n Object.defineProperty(el, '__vueParentComponent', {\r\n value: parentComponent,\r\n enumerable: false\r\n });\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');\r\n }\r\n // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved\r\n // #1689 For inside suspense + suspense resolved case, just call it\r\n const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&\r\n transition &&\r\n !transition.persisted;\r\n if (needCallTransitionHooks) {\r\n transition.beforeEnter(el);\r\n }\r\n hostInsert(el, container, anchor);\r\n if ((vnodeHook = props && props.onVnodeMounted) ||\r\n needCallTransitionHooks ||\r\n dirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n needCallTransitionHooks && transition.enter(el);\r\n dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');\r\n }, parentSuspense);\r\n }\r\n };\r\n const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {\r\n if (scopeId) {\r\n hostSetScopeId(el, scopeId);\r\n }\r\n if (slotScopeIds) {\r\n for (let i = 0; i < slotScopeIds.length; i++) {\r\n hostSetScopeId(el, slotScopeIds[i]);\r\n }\r\n }\r\n if (parentComponent) {\r\n let subTree = parentComponent.subTree;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n subTree.patchFlag > 0 &&\r\n subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {\r\n subTree =\r\n filterSingleRoot(subTree.children) || subTree;\r\n }\r\n if (vnode === subTree) {\r\n const parentVNode = parentComponent.vnode;\r\n setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);\r\n }\r\n }\r\n };\r\n const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {\r\n for (let i = start; i < children.length; i++) {\r\n const child = (children[i] = optimized\r\n ? cloneIfMounted(children[i])\r\n : normalizeVNode(children[i]));\r\n patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n const el = (n2.el = n1.el);\r\n let { patchFlag, dynamicChildren, dirs } = n2;\r\n // #1426 take the old vnode's patch flag into account since user may clone a\r\n // compiler-generated vnode, which de-opts to FULL_PROPS\r\n patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */;\r\n const oldProps = n1.props || EMPTY_OBJ;\r\n const newProps = n2.props || EMPTY_OBJ;\r\n let vnodeHook;\r\n // disable recurse in beforeUpdate hooks\r\n parentComponent && toggleRecurse(parentComponent, false);\r\n if ((vnodeHook = newProps.onVnodeBeforeUpdate)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, n2, n1);\r\n }\r\n if (dirs) {\r\n invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');\r\n }\r\n parentComponent && toggleRecurse(parentComponent, true);\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // HMR updated, force full diff\r\n patchFlag = 0;\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n const areChildrenSVG = isSVG && n2.type !== 'foreignObject';\r\n if (dynamicChildren) {\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);\r\n if ((process.env.NODE_ENV !== 'production') && parentComponent && parentComponent.type.__hmrId) {\r\n traverseStaticChildren(n1, n2);\r\n }\r\n }\r\n else if (!optimized) {\r\n // full diff\r\n patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false);\r\n }\r\n if (patchFlag > 0) {\r\n // the presence of a patchFlag means this element's render code was\r\n // generated by the compiler and can take the fast path.\r\n // in this path old node and new node are guaranteed to have the same shape\r\n // (i.e. at the exact same position in the source template)\r\n if (patchFlag & 16 /* FULL_PROPS */) {\r\n // element props contain dynamic keys, full diff needed\r\n patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);\r\n }\r\n else {\r\n // class\r\n // this flag is matched when the element has dynamic class bindings.\r\n if (patchFlag & 2 /* CLASS */) {\r\n if (oldProps.class !== newProps.class) {\r\n hostPatchProp(el, 'class', null, newProps.class, isSVG);\r\n }\r\n }\r\n // style\r\n // this flag is matched when the element has dynamic style bindings\r\n if (patchFlag & 4 /* STYLE */) {\r\n hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG);\r\n }\r\n // props\r\n // This flag is matched when the element has dynamic prop/attr bindings\r\n // other than class and style. The keys of dynamic prop/attrs are saved for\r\n // faster iteration.\r\n // Note dynamic keys like :[foo]=\"bar\" will cause this optimization to\r\n // bail out and go through a full diff because we need to unset the old key\r\n if (patchFlag & 8 /* PROPS */) {\r\n // if the flag is present then dynamicProps must be non-null\r\n const propsToUpdate = n2.dynamicProps;\r\n for (let i = 0; i < propsToUpdate.length; i++) {\r\n const key = propsToUpdate[i];\r\n const prev = oldProps[key];\r\n const next = newProps[key];\r\n // #1471 force patch value\r\n if (next !== prev || key === 'value') {\r\n hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n }\r\n }\r\n // text\r\n // This flag is matched when the element has only dynamic text children.\r\n if (patchFlag & 1 /* TEXT */) {\r\n if (n1.children !== n2.children) {\r\n hostSetElementText(el, n2.children);\r\n }\r\n }\r\n }\r\n else if (!optimized && dynamicChildren == null) {\r\n // unoptimized, full diff\r\n patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);\r\n }\r\n if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);\r\n dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated');\r\n }, parentSuspense);\r\n }\r\n };\r\n // The fast path for blocks.\r\n const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {\r\n for (let i = 0; i < newChildren.length; i++) {\r\n const oldVNode = oldChildren[i];\r\n const newVNode = newChildren[i];\r\n // Determine the container (parent element) for the patch.\r\n const container = \r\n // oldVNode may be an errored async setup() component inside Suspense\r\n // which will not have a mounted element\r\n oldVNode.el &&\r\n // - In the case of a Fragment, we need to provide the actual parent\r\n // of the Fragment itself so it can move its children.\r\n (oldVNode.type === Fragment ||\r\n // - In the case of different nodes, there is going to be a replacement\r\n // which also requires the correct parent container\r\n !isSameVNodeType(oldVNode, newVNode) ||\r\n // - In the case of a component, it could contain anything.\r\n oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */))\r\n ? hostParentNode(oldVNode.el)\r\n : // In other cases, the parent container is not actually used so we\r\n // just pass the block element here to avoid a DOM parentNode call.\r\n fallbackContainer;\r\n patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);\r\n }\r\n };\r\n const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => {\r\n if (oldProps !== newProps) {\r\n for (const key in newProps) {\r\n // empty string is not valid prop\r\n if (isReservedProp(key))\r\n continue;\r\n const next = newProps[key];\r\n const prev = oldProps[key];\r\n // defer patching value\r\n if (next !== prev && key !== 'value') {\r\n hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n if (oldProps !== EMPTY_OBJ) {\r\n for (const key in oldProps) {\r\n if (!isReservedProp(key) && !(key in newProps)) {\r\n hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n }\r\n }\r\n if ('value' in newProps) {\r\n hostPatchProp(el, 'value', oldProps.value, newProps.value);\r\n }\r\n }\r\n };\r\n const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));\r\n const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));\r\n let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n // HMR updated, force full diff\r\n patchFlag = 0;\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n // check if this is a slot fragment with :slotted scope ids\r\n if (fragmentSlotScopeIds) {\r\n slotScopeIds = slotScopeIds\r\n ? slotScopeIds.concat(fragmentSlotScopeIds)\r\n : fragmentSlotScopeIds;\r\n }\r\n if (n1 == null) {\r\n hostInsert(fragmentStartAnchor, container, anchor);\r\n hostInsert(fragmentEndAnchor, container, anchor);\r\n // a fragment can only have array children\r\n // since they are either generated by the compiler, or implicitly created\r\n // from arrays.\r\n mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n if (patchFlag > 0 &&\r\n patchFlag & 64 /* STABLE_FRAGMENT */ &&\r\n dynamicChildren &&\r\n // #2715 the previous fragment could've been a BAILed one as a result\r\n // of renderSlot() with no valid children\r\n n1.dynamicChildren) {\r\n // a stable fragment (template root or <template v-for>) doesn't need to\r\n // patch children order, but it may contain dynamicChildren.\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);\r\n if ((process.env.NODE_ENV !== 'production') && parentComponent && parentComponent.type.__hmrId) {\r\n traverseStaticChildren(n1, n2);\r\n }\r\n else if (\r\n // #2080 if the stable fragment has a key, it's a <template v-for> that may\r\n // get moved around. Make sure all root level vnodes inherit el.\r\n // #2134 or if it's a component root, it may also get moved around\r\n // as the component is being moved.\r\n n2.key != null ||\r\n (parentComponent && n2 === parentComponent.subTree)) {\r\n traverseStaticChildren(n1, n2, true /* shallow */);\r\n }\r\n }\r\n else {\r\n // keyed / unkeyed, or manual fragments.\r\n // for keyed & unkeyed, since they are compiler generated from v-for,\r\n // each child is guaranteed to be a block so the fragment will never\r\n // have dynamicChildren.\r\n patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n }\r\n };\r\n const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n n2.slotScopeIds = slotScopeIds;\r\n if (n1 == null) {\r\n if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {\r\n parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized);\r\n }\r\n else {\r\n mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized);\r\n }\r\n }\r\n else {\r\n updateComponent(n1, n2, optimized);\r\n }\r\n };\r\n const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {\r\n const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));\r\n if ((process.env.NODE_ENV !== 'production') && instance.type.__hmrId) {\r\n registerHMR(instance);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(initialVNode);\r\n startMeasure(instance, `mount`);\r\n }\r\n // inject renderer internals for keepAlive\r\n if (isKeepAlive(initialVNode)) {\r\n instance.ctx.renderer = internals;\r\n }\r\n // resolve props and slots for setup context\r\n {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `init`);\r\n }\r\n setupComponent(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `init`);\r\n }\r\n }\r\n // setup() is async. This component relies on async logic to be resolved\r\n // before proceeding\r\n if (instance.asyncDep) {\r\n parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);\r\n // Give it a placeholder if this is not hydration\r\n // TODO handle self-defined fallback\r\n if (!initialVNode.el) {\r\n const placeholder = (instance.subTree = createVNode(Comment));\r\n processCommentNode(null, placeholder, container, anchor);\r\n }\r\n return;\r\n }\r\n setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n endMeasure(instance, `mount`);\r\n }\r\n };\r\n const updateComponent = (n1, n2, optimized) => {\r\n const instance = (n2.component = n1.component);\r\n if (shouldUpdateComponent(n1, n2, optimized)) {\r\n if (instance.asyncDep &&\r\n !instance.asyncResolved) {\r\n // async & still pending - just update props and slots\r\n // since the component's reactive effect for render isn't set-up yet\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(n2);\r\n }\r\n updateComponentPreRender(instance, n2, optimized);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n return;\r\n }\r\n else {\r\n // normal update\r\n instance.next = n2;\r\n // in case the child component is also queued, remove it to avoid\r\n // double updating the same child component in the same flush.\r\n invalidateJob(instance.update);\r\n // instance.update is the reactive effect.\r\n instance.update();\r\n }\r\n }\r\n else {\r\n // no update needed. just copy over properties\r\n n2.component = n1.component;\r\n n2.el = n1.el;\r\n instance.vnode = n2;\r\n }\r\n };\r\n const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {\r\n const componentUpdateFn = () => {\r\n if (!instance.isMounted) {\r\n let vnodeHook;\r\n const { el, props } = initialVNode;\r\n const { bm, m, parent } = instance;\r\n const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);\r\n toggleRecurse(instance, false);\r\n // beforeMount hook\r\n if (bm) {\r\n invokeArrayFns(bm);\r\n }\r\n // onVnodeBeforeMount\r\n if (!isAsyncWrapperVNode &&\r\n (vnodeHook = props && props.onVnodeBeforeMount)) {\r\n invokeVNodeHook(vnodeHook, parent, initialVNode);\r\n }\r\n toggleRecurse(instance, true);\r\n if (el && hydrateNode) {\r\n // vnode has adopted host node - perform hydration instead of mount.\r\n const hydrateSubTree = () => {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n instance.subTree = renderComponentRoot(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `hydrate`);\r\n }\r\n hydrateNode(el, instance.subTree, instance, parentSuspense, null);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `hydrate`);\r\n }\r\n };\r\n if (isAsyncWrapperVNode) {\r\n initialVNode.type.__asyncLoader().then(\r\n // note: we are moving the render call into an async callback,\r\n // which means it won't track dependencies - but it's ok because\r\n // a server-rendered async wrapper is already in resolved state\r\n // and it will never need to change.\r\n () => !instance.isUnmounted && hydrateSubTree());\r\n }\r\n else {\r\n hydrateSubTree();\r\n }\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n const subTree = (instance.subTree = renderComponentRoot(instance));\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `patch`);\r\n }\r\n patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `patch`);\r\n }\r\n initialVNode.el = subTree.el;\r\n }\r\n // mounted hook\r\n if (m) {\r\n queuePostRenderEffect(m, parentSuspense);\r\n }\r\n // onVnodeMounted\r\n if (!isAsyncWrapperVNode &&\r\n (vnodeHook = props && props.onVnodeMounted)) {\r\n const scopedInitialVNode = initialVNode;\r\n queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);\r\n }\r\n // activated hook for keep-alive roots.\r\n // #1742 activated hook must be accessed after first render\r\n // since the hook may be injected by a child keep-alive\r\n if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n instance.a && queuePostRenderEffect(instance.a, parentSuspense);\r\n }\r\n instance.isMounted = true;\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentAdded(instance);\r\n }\r\n // #2458: deference mount-only object parameters to prevent memleaks\r\n initialVNode = container = anchor = null;\r\n }\r\n else {\r\n // updateComponent\r\n // This is triggered by mutation of component's own state (next: null)\r\n // OR parent calling processComponent (next: VNode)\r\n let { next, bu, u, parent, vnode } = instance;\r\n let originNext = next;\r\n let vnodeHook;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(next || instance.vnode);\r\n }\r\n // Disallow component effect recursion during pre-lifecycle hooks.\r\n toggleRecurse(instance, false);\r\n if (next) {\r\n next.el = vnode.el;\r\n updateComponentPreRender(instance, next, optimized);\r\n }\r\n else {\r\n next = vnode;\r\n }\r\n // beforeUpdate hook\r\n if (bu) {\r\n invokeArrayFns(bu);\r\n }\r\n // onVnodeBeforeUpdate\r\n if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {\r\n invokeVNodeHook(vnodeHook, parent, next, vnode);\r\n }\r\n toggleRecurse(instance, true);\r\n // render\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `render`);\r\n }\r\n const nextTree = renderComponentRoot(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `render`);\r\n }\r\n const prevTree = instance.subTree;\r\n instance.subTree = nextTree;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `patch`);\r\n }\r\n patch(prevTree, nextTree, \r\n // parent may have changed if it's in a teleport\r\n hostParentNode(prevTree.el), \r\n // anchor may have changed if it's in a fragment\r\n getNextHostNode(prevTree), instance, parentSuspense, isSVG);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `patch`);\r\n }\r\n next.el = nextTree.el;\r\n if (originNext === null) {\r\n // self-triggered update. In case of HOC, update parent component\r\n // vnode el. HOC is indicated by parent instance's subTree pointing\r\n // to child component's vnode\r\n updateHOCHostEl(instance, nextTree.el);\r\n }\r\n // updated hook\r\n if (u) {\r\n queuePostRenderEffect(u, parentSuspense);\r\n }\r\n // onVnodeUpdated\r\n if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {\r\n queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(instance);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n }\r\n };\r\n // create reactive effect for rendering\r\n const effect = (instance.effect = new ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope // track it in component's effect scope\r\n ));\r\n const update = (instance.update = effect.run.bind(effect));\r\n update.id = instance.uid;\r\n // allowRecurse\r\n // #1801, #2043 component render effects should allow recursive updates\r\n toggleRecurse(instance, true);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = instance.rtc\r\n ? e => invokeArrayFns(instance.rtc, e)\r\n : void 0;\r\n effect.onTrigger = instance.rtg\r\n ? e => invokeArrayFns(instance.rtg, e)\r\n : void 0;\r\n // @ts-ignore (for scheduler)\r\n update.ownerInstance = instance;\r\n }\r\n update();\r\n };\r\n const updateComponentPreRender = (instance, nextVNode, optimized) => {\r\n nextVNode.component = instance;\r\n const prevProps = instance.vnode.props;\r\n instance.vnode = nextVNode;\r\n instance.next = null;\r\n updateProps(instance, nextVNode.props, prevProps, optimized);\r\n updateSlots(instance, nextVNode.children, optimized);\r\n pauseTracking();\r\n // props update may have triggered pre-flush watchers.\r\n // flush them before the render update.\r\n flushPreFlushCbs(undefined, instance.update);\r\n resetTracking();\r\n };\r\n const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {\r\n const c1 = n1 && n1.children;\r\n const prevShapeFlag = n1 ? n1.shapeFlag : 0;\r\n const c2 = n2.children;\r\n const { patchFlag, shapeFlag } = n2;\r\n // fast path\r\n if (patchFlag > 0) {\r\n if (patchFlag & 128 /* KEYED_FRAGMENT */) {\r\n // this could be either fully-keyed or mixed (some keyed some not)\r\n // presence of patchFlag means children are guaranteed to be arrays\r\n patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n return;\r\n }\r\n else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) {\r\n // unkeyed\r\n patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n return;\r\n }\r\n }\r\n // children has 3 possibilities: text, array or no children.\r\n if (shapeFlag & 8 /* TEXT_CHILDREN */) {\r\n // text children fast path\r\n if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n unmountChildren(c1, parentComponent, parentSuspense);\r\n }\r\n if (c2 !== c1) {\r\n hostSetElementText(container, c2);\r\n }\r\n }\r\n else {\r\n if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n // prev children was array\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n // two arrays, cannot assume anything, do full diff\r\n patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n // no new children, just unmount old\r\n unmountChildren(c1, parentComponent, parentSuspense, true);\r\n }\r\n }\r\n else {\r\n // prev children was text OR null\r\n // new children is array OR null\r\n if (prevShapeFlag & 8 /* TEXT_CHILDREN */) {\r\n hostSetElementText(container, '');\r\n }\r\n // mount new if array\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n }\r\n }\r\n };\r\n const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n c1 = c1 || EMPTY_ARR;\r\n c2 = c2 || EMPTY_ARR;\r\n const oldLength = c1.length;\r\n const newLength = c2.length;\r\n const commonLength = Math.min(oldLength, newLength);\r\n let i;\r\n for (i = 0; i < commonLength; i++) {\r\n const nextChild = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n if (oldLength > newLength) {\r\n // remove old\r\n unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);\r\n }\r\n else {\r\n // mount new\r\n mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength);\r\n }\r\n };\r\n // can be all-keyed or mixed\r\n const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {\r\n let i = 0;\r\n const l2 = c2.length;\r\n let e1 = c1.length - 1; // prev ending index\r\n let e2 = l2 - 1; // next ending index\r\n // 1. sync from start\r\n // (a b) c\r\n // (a b) d e\r\n while (i <= e1 && i <= e2) {\r\n const n1 = c1[i];\r\n const n2 = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n if (isSameVNodeType(n1, n2)) {\r\n patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n break;\r\n }\r\n i++;\r\n }\r\n // 2. sync from end\r\n // a (b c)\r\n // d e (b c)\r\n while (i <= e1 && i <= e2) {\r\n const n1 = c1[e1];\r\n const n2 = (c2[e2] = optimized\r\n ? cloneIfMounted(c2[e2])\r\n : normalizeVNode(c2[e2]));\r\n if (isSameVNodeType(n1, n2)) {\r\n patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else {\r\n break;\r\n }\r\n e1--;\r\n e2--;\r\n }\r\n // 3. common sequence + mount\r\n // (a b)\r\n // (a b) c\r\n // i = 2, e1 = 1, e2 = 2\r\n // (a b)\r\n // c (a b)\r\n // i = 0, e1 = -1, e2 = 0\r\n if (i > e1) {\r\n if (i <= e2) {\r\n const nextPos = e2 + 1;\r\n const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;\r\n while (i <= e2) {\r\n patch(null, (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n i++;\r\n }\r\n }\r\n }\r\n // 4. common sequence + unmount\r\n // (a b) c\r\n // (a b)\r\n // i = 2, e1 = 2, e2 = 1\r\n // a (b c)\r\n // (b c)\r\n // i = 0, e1 = 0, e2 = -1\r\n else if (i > e2) {\r\n while (i <= e1) {\r\n unmount(c1[i], parentComponent, parentSuspense, true);\r\n i++;\r\n }\r\n }\r\n // 5. unknown sequence\r\n // [i ... e1 + 1]: a b [c d e] f g\r\n // [i ... e2 + 1]: a b [e d c h] f g\r\n // i = 2, e1 = 4, e2 = 5\r\n else {\r\n const s1 = i; // prev starting index\r\n const s2 = i; // next starting index\r\n // 5.1 build key:index map for newChildren\r\n const keyToNewIndexMap = new Map();\r\n for (i = s2; i <= e2; i++) {\r\n const nextChild = (c2[i] = optimized\r\n ? cloneIfMounted(c2[i])\r\n : normalizeVNode(c2[i]));\r\n if (nextChild.key != null) {\r\n if ((process.env.NODE_ENV !== 'production') && keyToNewIndexMap.has(nextChild.key)) {\r\n warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);\r\n }\r\n keyToNewIndexMap.set(nextChild.key, i);\r\n }\r\n }\r\n // 5.2 loop through old children left to be patched and try to patch\r\n // matching nodes & remove nodes that are no longer present\r\n let j;\r\n let patched = 0;\r\n const toBePatched = e2 - s2 + 1;\r\n let moved = false;\r\n // used to track whether any node has moved\r\n let maxNewIndexSoFar = 0;\r\n // works as Map<newIndex, oldIndex>\r\n // Note that oldIndex is offset by +1\r\n // and oldIndex = 0 is a special value indicating the new node has\r\n // no corresponding old node.\r\n // used for determining longest stable subsequence\r\n const newIndexToOldIndexMap = new Array(toBePatched);\r\n for (i = 0; i < toBePatched; i++)\r\n newIndexToOldIndexMap[i] = 0;\r\n for (i = s1; i <= e1; i++) {\r\n const prevChild = c1[i];\r\n if (patched >= toBePatched) {\r\n // all new children have been patched so this can only be a removal\r\n unmount(prevChild, parentComponent, parentSuspense, true);\r\n continue;\r\n }\r\n let newIndex;\r\n if (prevChild.key != null) {\r\n newIndex = keyToNewIndexMap.get(prevChild.key);\r\n }\r\n else {\r\n // key-less node, try to locate a key-less node of the same type\r\n for (j = s2; j <= e2; j++) {\r\n if (newIndexToOldIndexMap[j - s2] === 0 &&\r\n isSameVNodeType(prevChild, c2[j])) {\r\n newIndex = j;\r\n break;\r\n }\r\n }\r\n }\r\n if (newIndex === undefined) {\r\n unmount(prevChild, parentComponent, parentSuspense, true);\r\n }\r\n else {\r\n newIndexToOldIndexMap[newIndex - s2] = i + 1;\r\n if (newIndex >= maxNewIndexSoFar) {\r\n maxNewIndexSoFar = newIndex;\r\n }\r\n else {\r\n moved = true;\r\n }\r\n patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n patched++;\r\n }\r\n }\r\n // 5.3 move and mount\r\n // generate longest stable subsequence only when nodes have moved\r\n const increasingNewIndexSequence = moved\r\n ? getSequence(newIndexToOldIndexMap)\r\n : EMPTY_ARR;\r\n j = increasingNewIndexSequence.length - 1;\r\n // looping backwards so that we can use last patched node as anchor\r\n for (i = toBePatched - 1; i >= 0; i--) {\r\n const nextIndex = s2 + i;\r\n const nextChild = c2[nextIndex];\r\n const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;\r\n if (newIndexToOldIndexMap[i] === 0) {\r\n // mount new\r\n patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n else if (moved) {\r\n // move if:\r\n // There is no stable subsequence (e.g. a reverse)\r\n // OR current node is not among the stable sequence\r\n if (j < 0 || i !== increasingNewIndexSequence[j]) {\r\n move(nextChild, container, anchor, 2 /* REORDER */);\r\n }\r\n else {\r\n j--;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n const move = (vnode, container, anchor, moveType, parentSuspense = null) => {\r\n const { el, type, transition, children, shapeFlag } = vnode;\r\n if (shapeFlag & 6 /* COMPONENT */) {\r\n move(vnode.component.subTree, container, anchor, moveType);\r\n return;\r\n }\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.suspense.move(container, anchor, moveType);\r\n return;\r\n }\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n type.move(vnode, container, anchor, internals);\r\n return;\r\n }\r\n if (type === Fragment) {\r\n hostInsert(el, container, anchor);\r\n for (let i = 0; i < children.length; i++) {\r\n move(children[i], container, anchor, moveType);\r\n }\r\n hostInsert(vnode.anchor, container, anchor);\r\n return;\r\n }\r\n if (type === Static) {\r\n moveStaticNode(vnode, container, anchor);\r\n return;\r\n }\r\n // single nodes\r\n const needTransition = moveType !== 2 /* REORDER */ &&\r\n shapeFlag & 1 /* ELEMENT */ &&\r\n transition;\r\n if (needTransition) {\r\n if (moveType === 0 /* ENTER */) {\r\n transition.beforeEnter(el);\r\n hostInsert(el, container, anchor);\r\n queuePostRenderEffect(() => transition.enter(el), parentSuspense);\r\n }\r\n else {\r\n const { leave, delayLeave, afterLeave } = transition;\r\n const remove = () => hostInsert(el, container, anchor);\r\n const performLeave = () => {\r\n leave(el, () => {\r\n remove();\r\n afterLeave && afterLeave();\r\n });\r\n };\r\n if (delayLeave) {\r\n delayLeave(el, remove, performLeave);\r\n }\r\n else {\r\n performLeave();\r\n }\r\n }\r\n }\r\n else {\r\n hostInsert(el, container, anchor);\r\n }\r\n };\r\n const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {\r\n const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;\r\n // unset ref\r\n if (ref != null) {\r\n setRef(ref, null, parentSuspense, vnode, true);\r\n }\r\n if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {\r\n parentComponent.ctx.deactivate(vnode);\r\n return;\r\n }\r\n const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs;\r\n const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);\r\n let vnodeHook;\r\n if (shouldInvokeVnodeHook &&\r\n (vnodeHook = props && props.onVnodeBeforeUnmount)) {\r\n invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n }\r\n if (shapeFlag & 6 /* COMPONENT */) {\r\n unmountComponent(vnode.component, parentSuspense, doRemove);\r\n }\r\n else {\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n vnode.suspense.unmount(parentSuspense, doRemove);\r\n return;\r\n }\r\n if (shouldInvokeDirs) {\r\n invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount');\r\n }\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove);\r\n }\r\n else if (dynamicChildren &&\r\n // #1153: fast path should not be taken for non-stable (v-for) fragments\r\n (type !== Fragment ||\r\n (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) {\r\n // fast path for block nodes: only need to unmount dynamic children.\r\n unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);\r\n }\r\n else if ((type === Fragment &&\r\n patchFlag &\r\n (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) ||\r\n (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) {\r\n unmountChildren(children, parentComponent, parentSuspense);\r\n }\r\n if (doRemove) {\r\n remove(vnode);\r\n }\r\n }\r\n if ((shouldInvokeVnodeHook &&\r\n (vnodeHook = props && props.onVnodeUnmounted)) ||\r\n shouldInvokeDirs) {\r\n queuePostRenderEffect(() => {\r\n vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);\r\n shouldInvokeDirs &&\r\n invokeDirectiveHook(vnode, null, parentComponent, 'unmounted');\r\n }, parentSuspense);\r\n }\r\n };\r\n const remove = vnode => {\r\n const { type, el, anchor, transition } = vnode;\r\n if (type === Fragment) {\r\n removeFragment(el, anchor);\r\n return;\r\n }\r\n if (type === Static) {\r\n removeStaticNode(vnode);\r\n return;\r\n }\r\n const performRemove = () => {\r\n hostRemove(el);\r\n if (transition && !transition.persisted && transition.afterLeave) {\r\n transition.afterLeave();\r\n }\r\n };\r\n if (vnode.shapeFlag & 1 /* ELEMENT */ &&\r\n transition &&\r\n !transition.persisted) {\r\n const { leave, delayLeave } = transition;\r\n const performLeave = () => leave(el, performRemove);\r\n if (delayLeave) {\r\n delayLeave(vnode.el, performRemove, performLeave);\r\n }\r\n else {\r\n performLeave();\r\n }\r\n }\r\n else {\r\n performRemove();\r\n }\r\n };\r\n const removeFragment = (cur, end) => {\r\n // For fragments, directly remove all contained DOM nodes.\r\n // (fragment child nodes cannot have transition)\r\n let next;\r\n while (cur !== end) {\r\n next = hostNextSibling(cur);\r\n hostRemove(cur);\r\n cur = next;\r\n }\r\n hostRemove(end);\r\n };\r\n const unmountComponent = (instance, parentSuspense, doRemove) => {\r\n if ((process.env.NODE_ENV !== 'production') && instance.type.__hmrId) {\r\n unregisterHMR(instance);\r\n }\r\n const { bum, scope, update, subTree, um } = instance;\r\n // beforeUnmount hook\r\n if (bum) {\r\n invokeArrayFns(bum);\r\n }\r\n // stop effects in component scope\r\n scope.stop();\r\n // update may be null if a component is unmounted before its async\r\n // setup has resolved.\r\n if (update) {\r\n // so that scheduler will no longer invoke it\r\n update.active = false;\r\n unmount(subTree, instance, parentSuspense, doRemove);\r\n }\r\n // unmounted hook\r\n if (um) {\r\n queuePostRenderEffect(um, parentSuspense);\r\n }\r\n queuePostRenderEffect(() => {\r\n instance.isUnmounted = true;\r\n }, parentSuspense);\r\n // A component with async dep inside a pending suspense is unmounted before\r\n // its async dep resolves. This should remove the dep from the suspense, and\r\n // cause the suspense to resolve immediately if that was the last dep.\r\n if (parentSuspense &&\r\n parentSuspense.pendingBranch &&\r\n !parentSuspense.isUnmounted &&\r\n instance.asyncDep &&\r\n !instance.asyncResolved &&\r\n instance.suspenseId === parentSuspense.pendingId) {\r\n parentSuspense.deps--;\r\n if (parentSuspense.deps === 0) {\r\n parentSuspense.resolve();\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentRemoved(instance);\r\n }\r\n };\r\n const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {\r\n for (let i = start; i < children.length; i++) {\r\n unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);\r\n }\r\n };\r\n const getNextHostNode = vnode => {\r\n if (vnode.shapeFlag & 6 /* COMPONENT */) {\r\n return getNextHostNode(vnode.component.subTree);\r\n }\r\n if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n return vnode.suspense.next();\r\n }\r\n return hostNextSibling((vnode.anchor || vnode.el));\r\n };\r\n const render = (vnode, container, isSVG) => {\r\n if (vnode == null) {\r\n if (container._vnode) {\r\n unmount(container._vnode, null, null, true);\r\n }\r\n }\r\n else {\r\n patch(container._vnode || null, vnode, container, null, null, null, isSVG);\r\n }\r\n flushPostFlushCbs();\r\n container._vnode = vnode;\r\n };\r\n const internals = {\r\n p: patch,\r\n um: unmount,\r\n m: move,\r\n r: remove,\r\n mt: mountComponent,\r\n mc: mountChildren,\r\n pc: patchChildren,\r\n pbc: patchBlockChildren,\r\n n: getNextHostNode,\r\n o: options\r\n };\r\n let hydrate;\r\n let hydrateNode;\r\n if (createHydrationFns) {\r\n [hydrate, hydrateNode] = createHydrationFns(internals);\r\n }\r\n return {\r\n render,\r\n hydrate,\r\n createApp: createAppAPI(render, hydrate)\r\n };\r\n}\r\nfunction toggleRecurse({ effect, update }, allowed) {\r\n effect.allowRecurse = update.allowRecurse = allowed;\r\n}\r\n/**\r\n * #1156\r\n * When a component is HMR-enabled, we need to make sure that all static nodes\r\n * inside a block also inherit the DOM element from the previous tree so that\r\n * HMR updates (which are full updates) can retrieve the element for patching.\r\n *\r\n * #2080\r\n * Inside keyed `template` fragment static children, if a fragment is moved,\r\n * the children will always be moved. Therefore, in order to ensure correct move\r\n * position, el should be inherited from previous nodes.\r\n */\r\nfunction traverseStaticChildren(n1, n2, shallow = false) {\r\n const ch1 = n1.children;\r\n const ch2 = n2.children;\r\n if (isArray(ch1) && isArray(ch2)) {\r\n for (let i = 0; i < ch1.length; i++) {\r\n // this is only called in the optimized path so array children are\r\n // guaranteed to be vnodes\r\n const c1 = ch1[i];\r\n let c2 = ch2[i];\r\n if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) {\r\n if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) {\r\n c2 = ch2[i] = cloneIfMounted(ch2[i]);\r\n c2.el = c1.el;\r\n }\r\n if (!shallow)\r\n traverseStaticChildren(c1, c2);\r\n }\r\n // also inherit for comment nodes, but not placeholders (e.g. v-if which\r\n // would have received .el during block patch)\r\n if ((process.env.NODE_ENV !== 'production') && c2.type === Comment && !c2.el) {\r\n c2.el = c1.el;\r\n }\r\n }\r\n }\r\n}\r\n// https://en.wikipedia.org/wiki/Longest_increasing_subsequence\r\nfunction getSequence(arr) {\r\n const p = arr.slice();\r\n const result = [0];\r\n let i, j, u, v, c;\r\n const len = arr.length;\r\n for (i = 0; i < len; i++) {\r\n const arrI = arr[i];\r\n if (arrI !== 0) {\r\n j = result[result.length - 1];\r\n if (arr[j] < arrI) {\r\n p[i] = j;\r\n result.push(i);\r\n continue;\r\n }\r\n u = 0;\r\n v = result.length - 1;\r\n while (u < v) {\r\n c = (u + v) >> 1;\r\n if (arr[result[c]] < arrI) {\r\n u = c + 1;\r\n }\r\n else {\r\n v = c;\r\n }\r\n }\r\n if (arrI < arr[result[u]]) {\r\n if (u > 0) {\r\n p[i] = result[u - 1];\r\n }\r\n result[u] = i;\r\n }\r\n }\r\n }\r\n u = result.length;\r\n v = result[u - 1];\r\n while (u-- > 0) {\r\n result[u] = v;\r\n v = p[v];\r\n }\r\n return result;\r\n}\n\nconst isTeleport = (type) => type.__isTeleport;\r\nconst isTeleportDisabled = (props) => props && (props.disabled || props.disabled === '');\r\nconst isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement;\r\nconst resolveTarget = (props, select) => {\r\n const targetSelector = props && props.to;\r\n if (isString(targetSelector)) {\r\n if (!select) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Current renderer does not support string target for Teleports. ` +\r\n `(missing querySelector renderer option)`);\r\n return null;\r\n }\r\n else {\r\n const target = select(targetSelector);\r\n if (!target) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Failed to locate Teleport target with selector \"${targetSelector}\". ` +\r\n `Note the target element must exist before the component is mounted - ` +\r\n `i.e. the target cannot be rendered by the component itself, and ` +\r\n `ideally should be outside of the entire Vue component tree.`);\r\n }\r\n return target;\r\n }\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && !targetSelector && !isTeleportDisabled(props)) {\r\n warn(`Invalid Teleport target: ${targetSelector}`);\r\n }\r\n return targetSelector;\r\n }\r\n};\r\nconst TeleportImpl = {\r\n __isTeleport: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {\r\n const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals;\r\n const disabled = isTeleportDisabled(n2.props);\r\n let { shapeFlag, children, dynamicChildren } = n2;\r\n // #3302\r\n // HMR updated, force full diff\r\n if ((process.env.NODE_ENV !== 'production') && isHmrUpdating) {\r\n optimized = false;\r\n dynamicChildren = null;\r\n }\r\n if (n1 == null) {\r\n // insert anchors in the main view\r\n const placeholder = (n2.el = (process.env.NODE_ENV !== 'production')\r\n ? createComment('teleport start')\r\n : createText(''));\r\n const mainAnchor = (n2.anchor = (process.env.NODE_ENV !== 'production')\r\n ? createComment('teleport end')\r\n : createText(''));\r\n insert(placeholder, container, anchor);\r\n insert(mainAnchor, container, anchor);\r\n const target = (n2.target = resolveTarget(n2.props, querySelector));\r\n const targetAnchor = (n2.targetAnchor = createText(''));\r\n if (target) {\r\n insert(targetAnchor, target);\r\n // #2652 we could be teleporting from a non-SVG tree into an SVG tree\r\n isSVG = isSVG || isTargetSVG(target);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !disabled) {\r\n warn('Invalid Teleport target on mount:', target, `(${typeof target})`);\r\n }\r\n const mount = (container, anchor) => {\r\n // Teleport *always* has Array children. This is enforced in both the\r\n // compiler and vnode children normalization.\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);\r\n }\r\n };\r\n if (disabled) {\r\n mount(container, mainAnchor);\r\n }\r\n else if (target) {\r\n mount(target, targetAnchor);\r\n }\r\n }\r\n else {\r\n // update content\r\n n2.el = n1.el;\r\n const mainAnchor = (n2.anchor = n1.anchor);\r\n const target = (n2.target = n1.target);\r\n const targetAnchor = (n2.targetAnchor = n1.targetAnchor);\r\n const wasDisabled = isTeleportDisabled(n1.props);\r\n const currentContainer = wasDisabled ? container : target;\r\n const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;\r\n isSVG = isSVG || isTargetSVG(target);\r\n if (dynamicChildren) {\r\n // fast path when the teleport happens to be a block root\r\n patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds);\r\n // even in block tree mode we need to make sure all root-level nodes\r\n // in the teleport inherit previous DOM references so that they can\r\n // be moved in future patches.\r\n traverseStaticChildren(n1, n2, true);\r\n }\r\n else if (!optimized) {\r\n patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false);\r\n }\r\n if (disabled) {\r\n if (!wasDisabled) {\r\n // enabled -> disabled\r\n // move into main container\r\n moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */);\r\n }\r\n }\r\n else {\r\n // target changed\r\n if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {\r\n const nextTarget = (n2.target = resolveTarget(n2.props, querySelector));\r\n if (nextTarget) {\r\n moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn('Invalid Teleport target on update:', target, `(${typeof target})`);\r\n }\r\n }\r\n else if (wasDisabled) {\r\n // disabled -> enabled\r\n // move into teleport target\r\n moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */);\r\n }\r\n }\r\n }\r\n },\r\n remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {\r\n const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;\r\n if (target) {\r\n hostRemove(targetAnchor);\r\n }\r\n // an unmounted teleport should always remove its children if not disabled\r\n if (doRemove || !isTeleportDisabled(props)) {\r\n hostRemove(anchor);\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren);\r\n }\r\n }\r\n }\r\n },\r\n move: moveTeleport,\r\n hydrate: hydrateTeleport\r\n};\r\nfunction moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) {\r\n // move target anchor if this is a target change.\r\n if (moveType === 0 /* TARGET_CHANGE */) {\r\n insert(vnode.targetAnchor, container, parentAnchor);\r\n }\r\n const { el, anchor, shapeFlag, children, props } = vnode;\r\n const isReorder = moveType === 2 /* REORDER */;\r\n // move main view anchor if this is a re-order.\r\n if (isReorder) {\r\n insert(el, container, parentAnchor);\r\n }\r\n // if this is a re-order and teleport is enabled (content is in target)\r\n // do not move children. So the opposite is: only move children if this\r\n // is not a reorder, or the teleport is disabled\r\n if (!isReorder || isTeleportDisabled(props)) {\r\n // Teleport has either Array children or no children.\r\n if (shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n for (let i = 0; i < children.length; i++) {\r\n move(children[i], container, parentAnchor, 2 /* REORDER */);\r\n }\r\n }\r\n }\r\n // move main view anchor if this is a re-order.\r\n if (isReorder) {\r\n insert(anchor, container, parentAnchor);\r\n }\r\n}\r\nfunction hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) {\r\n const target = (vnode.target = resolveTarget(vnode.props, querySelector));\r\n if (target) {\r\n // if multiple teleports rendered to the same target element, we need to\r\n // pick up from where the last teleport finished instead of the first node\r\n const targetNode = target._lpa || target.firstChild;\r\n if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) {\r\n if (isTeleportDisabled(vnode.props)) {\r\n vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized);\r\n vnode.targetAnchor = targetNode;\r\n }\r\n else {\r\n vnode.anchor = nextSibling(node);\r\n vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);\r\n }\r\n target._lpa =\r\n vnode.targetAnchor && nextSibling(vnode.targetAnchor);\r\n }\r\n }\r\n return vnode.anchor && nextSibling(vnode.anchor);\r\n}\r\n// Force-casted public typing for h and TSX props inference\r\nconst Teleport = TeleportImpl;\n\nconst COMPONENTS = 'components';\r\nconst DIRECTIVES = 'directives';\r\n/**\r\n * @private\r\n */\r\nfunction resolveComponent(name, maybeSelfReference) {\r\n return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;\r\n}\r\nconst NULL_DYNAMIC_COMPONENT = Symbol();\r\n/**\r\n * @private\r\n */\r\nfunction resolveDynamicComponent(component) {\r\n if (isString(component)) {\r\n return resolveAsset(COMPONENTS, component, false) || component;\r\n }\r\n else {\r\n // invalid types will fallthrough to createVNode and raise warning\r\n return (component || NULL_DYNAMIC_COMPONENT);\r\n }\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction resolveDirective(name) {\r\n return resolveAsset(DIRECTIVES, name);\r\n}\r\n// implementation\r\nfunction resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {\r\n const instance = currentRenderingInstance || currentInstance;\r\n if (instance) {\r\n const Component = instance.type;\r\n // explicit self name has highest priority\r\n if (type === COMPONENTS) {\r\n const selfName = getComponentName(Component);\r\n if (selfName &&\r\n (selfName === name ||\r\n selfName === camelize(name) ||\r\n selfName === capitalize(camelize(name)))) {\r\n return Component;\r\n }\r\n }\r\n const res = \r\n // local registration\r\n // check instance[type] first which is resolved for options API\r\n resolve(instance[type] || Component[type], name) ||\r\n // global registration\r\n resolve(instance.appContext[type], name);\r\n if (!res && maybeSelfReference) {\r\n // fallback to implicit self-reference\r\n return Component;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && warnMissing && !res) {\r\n const extra = type === COMPONENTS\r\n ? `\\nIf this is a native custom element, make sure to exclude it from ` +\r\n `component resolution via compilerOptions.isCustomElement.`\r\n : ``;\r\n warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);\r\n }\r\n return res;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`resolve${capitalize(type.slice(0, -1))} ` +\r\n `can only be used in render() or setup().`);\r\n }\r\n}\r\nfunction resolve(registry, name) {\r\n return (registry &&\r\n (registry[name] ||\r\n registry[camelize(name)] ||\r\n registry[capitalize(camelize(name))]));\r\n}\n\nconst Fragment = Symbol((process.env.NODE_ENV !== 'production') ? 'Fragment' : undefined);\r\nconst Text = Symbol((process.env.NODE_ENV !== 'production') ? 'Text' : undefined);\r\nconst Comment = Symbol((process.env.NODE_ENV !== 'production') ? 'Comment' : undefined);\r\nconst Static = Symbol((process.env.NODE_ENV !== 'production') ? 'Static' : undefined);\r\n// Since v-if and v-for are the two possible ways node structure can dynamically\r\n// change, once we consider v-if branches and each v-for fragment a block, we\r\n// can divide a template into nested blocks, and within each block the node\r\n// structure would be stable. This allows us to skip most children diffing\r\n// and only worry about the dynamic nodes (indicated by patch flags).\r\nconst blockStack = [];\r\nlet currentBlock = null;\r\n/**\r\n * Open a block.\r\n * This must be called before `createBlock`. It cannot be part of `createBlock`\r\n * because the children of the block are evaluated before `createBlock` itself\r\n * is called. The generated code typically looks like this:\r\n *\r\n * ```js\r\n * function render() {\r\n * return (openBlock(),createBlock('div', null, [...]))\r\n * }\r\n * ```\r\n * disableTracking is true when creating a v-for fragment block, since a v-for\r\n * fragment always diffs its children.\r\n *\r\n * @private\r\n */\r\nfunction openBlock(disableTracking = false) {\r\n blockStack.push((currentBlock = disableTracking ? null : []));\r\n}\r\nfunction closeBlock() {\r\n blockStack.pop();\r\n currentBlock = blockStack[blockStack.length - 1] || null;\r\n}\r\n// Whether we should be tracking dynamic child nodes inside a block.\r\n// Only tracks when this value is > 0\r\n// We are not using a simple boolean because this value may need to be\r\n// incremented/decremented by nested usage of v-once (see below)\r\nlet isBlockTreeEnabled = 1;\r\n/**\r\n * Block tracking sometimes needs to be disabled, for example during the\r\n * creation of a tree that needs to be cached by v-once. The compiler generates\r\n * code like this:\r\n *\r\n * ``` js\r\n * _cache[1] || (\r\n * setBlockTracking(-1),\r\n * _cache[1] = createVNode(...),\r\n * setBlockTracking(1),\r\n * _cache[1]\r\n * )\r\n * ```\r\n *\r\n * @private\r\n */\r\nfunction setBlockTracking(value) {\r\n isBlockTreeEnabled += value;\r\n}\r\nfunction setupBlock(vnode) {\r\n // save current block children on the block vnode\r\n vnode.dynamicChildren =\r\n isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null;\r\n // close block\r\n closeBlock();\r\n // a block is always going to be patched, so track it as a child of its\r\n // parent block\r\n if (isBlockTreeEnabled > 0 && currentBlock) {\r\n currentBlock.push(vnode);\r\n }\r\n return vnode;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {\r\n return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */));\r\n}\r\n/**\r\n * Create a block root vnode. Takes the same exact arguments as `createVNode`.\r\n * A block root keeps track of dynamic nodes within the block in the\r\n * `dynamicChildren` array.\r\n *\r\n * @private\r\n */\r\nfunction createBlock(type, props, children, patchFlag, dynamicProps) {\r\n return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */));\r\n}\r\nfunction isVNode(value) {\r\n return value ? value.__v_isVNode === true : false;\r\n}\r\nfunction isSameVNodeType(n1, n2) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n n2.shapeFlag & 6 /* COMPONENT */ &&\r\n hmrDirtyComponents.has(n2.type)) {\r\n // HMR only: if the component has been hot-updated, force a reload.\r\n return false;\r\n }\r\n return n1.type === n2.type && n1.key === n2.key;\r\n}\r\nlet vnodeArgsTransformer;\r\n/**\r\n * Internal API for registering an arguments transform for createVNode\r\n * used for creating stubs in the test-utils\r\n * It is *internal* but needs to be exposed for test-utils to pick up proper\r\n * typings\r\n */\r\nfunction transformVNodeArgs(transformer) {\r\n vnodeArgsTransformer = transformer;\r\n}\r\nconst createVNodeWithArgsTransform = (...args) => {\r\n return _createVNode(...(vnodeArgsTransformer\r\n ? vnodeArgsTransformer(args, currentRenderingInstance)\r\n : args));\r\n};\r\nconst InternalObjectKey = `__vInternal`;\r\nconst normalizeKey = ({ key }) => key != null ? key : null;\r\nconst normalizeRef = ({ ref, ref_key, ref_for }) => {\r\n return (ref != null\r\n ? isString(ref) || isRef(ref) || isFunction(ref)\r\n ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for }\r\n : ref\r\n : null);\r\n};\r\nfunction createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) {\r\n const vnode = {\r\n __v_isVNode: true,\r\n __v_skip: true,\r\n type,\r\n props,\r\n key: props && normalizeKey(props),\r\n ref: props && normalizeRef(props),\r\n scopeId: currentScopeId,\r\n slotScopeIds: null,\r\n children,\r\n component: null,\r\n suspense: null,\r\n ssContent: null,\r\n ssFallback: null,\r\n dirs: null,\r\n transition: null,\r\n el: null,\r\n anchor: null,\r\n target: null,\r\n targetAnchor: null,\r\n staticCount: 0,\r\n shapeFlag,\r\n patchFlag,\r\n dynamicProps,\r\n dynamicChildren: null,\r\n appContext: null\r\n };\r\n if (needFullChildrenNormalization) {\r\n normalizeChildren(vnode, children);\r\n // normalize suspense children\r\n if (shapeFlag & 128 /* SUSPENSE */) {\r\n type.normalize(vnode);\r\n }\r\n }\r\n else if (children) {\r\n // compiled element vnode - if children is passed, only possible types are\r\n // string or Array.\r\n vnode.shapeFlag |= isString(children)\r\n ? 8 /* TEXT_CHILDREN */\r\n : 16 /* ARRAY_CHILDREN */;\r\n }\r\n // validate key\r\n if ((process.env.NODE_ENV !== 'production') && vnode.key !== vnode.key) {\r\n warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);\r\n }\r\n // track vnode for block tree\r\n if (isBlockTreeEnabled > 0 &&\r\n // avoid a block node from tracking itself\r\n !isBlockNode &&\r\n // has current parent block\r\n currentBlock &&\r\n // presence of a patch flag indicates this node needs patching on updates.\r\n // component nodes also should always be patched, because even if the\r\n // component doesn't need to update, it needs to persist the instance on to\r\n // the next vnode so that it can be properly unmounted later.\r\n (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) &&\r\n // the EVENTS flag is only for hydration and if it is the only flag, the\r\n // vnode should not be considered dynamic due to handler caching.\r\n vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) {\r\n currentBlock.push(vnode);\r\n }\r\n return vnode;\r\n}\r\nconst createVNode = ((process.env.NODE_ENV !== 'production') ? createVNodeWithArgsTransform : _createVNode);\r\nfunction _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {\r\n if (!type || type === NULL_DYNAMIC_COMPONENT) {\r\n if ((process.env.NODE_ENV !== 'production') && !type) {\r\n warn(`Invalid vnode type when creating vnode: ${type}.`);\r\n }\r\n type = Comment;\r\n }\r\n if (isVNode(type)) {\r\n // createVNode receiving an existing vnode. This happens in cases like\r\n // <component :is=\"vnode\"/>\r\n // #2078 make sure to merge refs during the clone instead of overwriting it\r\n const cloned = cloneVNode(type, props, true /* mergeRef: true */);\r\n if (children) {\r\n normalizeChildren(cloned, children);\r\n }\r\n return cloned;\r\n }\r\n // class component normalization.\r\n if (isClassComponent(type)) {\r\n type = type.__vccOpts;\r\n }\r\n // class & style normalization.\r\n if (props) {\r\n // for reactive or proxy objects, we need to clone it to enable mutation.\r\n props = guardReactiveProps(props);\r\n let { class: klass, style } = props;\r\n if (klass && !isString(klass)) {\r\n props.class = normalizeClass(klass);\r\n }\r\n if (isObject(style)) {\r\n // reactive state objects need to be cloned since they are likely to be\r\n // mutated\r\n if (isProxy(style) && !isArray(style)) {\r\n style = extend({}, style);\r\n }\r\n props.style = normalizeStyle(style);\r\n }\r\n }\r\n // encode the vnode type information into a bitmap\r\n const shapeFlag = isString(type)\r\n ? 1 /* ELEMENT */\r\n : isSuspense(type)\r\n ? 128 /* SUSPENSE */\r\n : isTeleport(type)\r\n ? 64 /* TELEPORT */\r\n : isObject(type)\r\n ? 4 /* STATEFUL_COMPONENT */\r\n : isFunction(type)\r\n ? 2 /* FUNCTIONAL_COMPONENT */\r\n : 0;\r\n if ((process.env.NODE_ENV !== 'production') && shapeFlag & 4 /* STATEFUL_COMPONENT */ && isProxy(type)) {\r\n type = toRaw(type);\r\n warn(`Vue received a Component which was made a reactive object. This can ` +\r\n `lead to unnecessary performance overhead, and should be avoided by ` +\r\n `marking the component with \\`markRaw\\` or using \\`shallowRef\\` ` +\r\n `instead of \\`ref\\`.`, `\\nComponent that was made reactive: `, type);\r\n }\r\n return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);\r\n}\r\nfunction guardReactiveProps(props) {\r\n if (!props)\r\n return null;\r\n return isProxy(props) || InternalObjectKey in props\r\n ? extend({}, props)\r\n : props;\r\n}\r\nfunction cloneVNode(vnode, extraProps, mergeRef = false) {\r\n // This is intentionally NOT using spread or extend to avoid the runtime\r\n // key enumeration cost.\r\n const { props, ref, patchFlag, children } = vnode;\r\n const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;\r\n const cloned = {\r\n __v_isVNode: true,\r\n __v_skip: true,\r\n type: vnode.type,\r\n props: mergedProps,\r\n key: mergedProps && normalizeKey(mergedProps),\r\n ref: extraProps && extraProps.ref\r\n ? // #2078 in the case of <component :is=\"vnode\" ref=\"extra\"/>\r\n // if the vnode itself already has a ref, cloneVNode will need to merge\r\n // the refs so the single vnode can be set on multiple refs\r\n mergeRef && ref\r\n ? isArray(ref)\r\n ? ref.concat(normalizeRef(extraProps))\r\n : [ref, normalizeRef(extraProps)]\r\n : normalizeRef(extraProps)\r\n : ref,\r\n scopeId: vnode.scopeId,\r\n slotScopeIds: vnode.slotScopeIds,\r\n children: (process.env.NODE_ENV !== 'production') && patchFlag === -1 /* HOISTED */ && isArray(children)\r\n ? children.map(deepCloneVNode)\r\n : children,\r\n target: vnode.target,\r\n targetAnchor: vnode.targetAnchor,\r\n staticCount: vnode.staticCount,\r\n shapeFlag: vnode.shapeFlag,\r\n // if the vnode is cloned with extra props, we can no longer assume its\r\n // existing patch flag to be reliable and need to add the FULL_PROPS flag.\r\n // note: perserve flag for fragments since they use the flag for children\r\n // fast paths only.\r\n patchFlag: extraProps && vnode.type !== Fragment\r\n ? patchFlag === -1 // hoisted node\r\n ? 16 /* FULL_PROPS */\r\n : patchFlag | 16 /* FULL_PROPS */\r\n : patchFlag,\r\n dynamicProps: vnode.dynamicProps,\r\n dynamicChildren: vnode.dynamicChildren,\r\n appContext: vnode.appContext,\r\n dirs: vnode.dirs,\r\n transition: vnode.transition,\r\n // These should technically only be non-null on mounted VNodes. However,\r\n // they *should* be copied for kept-alive vnodes. So we just always copy\r\n // them since them being non-null during a mount doesn't affect the logic as\r\n // they will simply be overwritten.\r\n component: vnode.component,\r\n suspense: vnode.suspense,\r\n ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),\r\n ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),\r\n el: vnode.el,\r\n anchor: vnode.anchor\r\n };\r\n return cloned;\r\n}\r\n/**\r\n * Dev only, for HMR of hoisted vnodes reused in v-for\r\n * https://github.com/vitejs/vite/issues/2022\r\n */\r\nfunction deepCloneVNode(vnode) {\r\n const cloned = cloneVNode(vnode);\r\n if (isArray(vnode.children)) {\r\n cloned.children = vnode.children.map(deepCloneVNode);\r\n }\r\n return cloned;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createTextVNode(text = ' ', flag = 0) {\r\n return createVNode(Text, null, text, flag);\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createStaticVNode(content, numberOfNodes) {\r\n // A static vnode can contain multiple stringified elements, and the number\r\n // of elements is necessary for hydration.\r\n const vnode = createVNode(Static, null, content);\r\n vnode.staticCount = numberOfNodes;\r\n return vnode;\r\n}\r\n/**\r\n * @private\r\n */\r\nfunction createCommentVNode(text = '', \r\n// when used as the v-else branch, the comment node must be created as a\r\n// block to ensure correct updates.\r\nasBlock = false) {\r\n return asBlock\r\n ? (openBlock(), createBlock(Comment, null, text))\r\n : createVNode(Comment, null, text);\r\n}\r\nfunction normalizeVNode(child) {\r\n if (child == null || typeof child === 'boolean') {\r\n // empty placeholder\r\n return createVNode(Comment);\r\n }\r\n else if (isArray(child)) {\r\n // fragment\r\n return createVNode(Fragment, null, \r\n // #3666, avoid reference pollution when reusing vnode\r\n child.slice());\r\n }\r\n else if (typeof child === 'object') {\r\n // already vnode, this should be the most common since compiled templates\r\n // always produce all-vnode children arrays\r\n return cloneIfMounted(child);\r\n }\r\n else {\r\n // strings and numbers\r\n return createVNode(Text, null, String(child));\r\n }\r\n}\r\n// optimized normalization for template-compiled render fns\r\nfunction cloneIfMounted(child) {\r\n return child.el === null || child.memo ? child : cloneVNode(child);\r\n}\r\nfunction normalizeChildren(vnode, children) {\r\n let type = 0;\r\n const { shapeFlag } = vnode;\r\n if (children == null) {\r\n children = null;\r\n }\r\n else if (isArray(children)) {\r\n type = 16 /* ARRAY_CHILDREN */;\r\n }\r\n else if (typeof children === 'object') {\r\n if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) {\r\n // Normalize slot to plain children for plain element and Teleport\r\n const slot = children.default;\r\n if (slot) {\r\n // _c marker is added by withCtx() indicating this is a compiled slot\r\n slot._c && (slot._d = false);\r\n normalizeChildren(vnode, slot());\r\n slot._c && (slot._d = true);\r\n }\r\n return;\r\n }\r\n else {\r\n type = 32 /* SLOTS_CHILDREN */;\r\n const slotFlag = children._;\r\n if (!slotFlag && !(InternalObjectKey in children)) {\r\n children._ctx = currentRenderingInstance;\r\n }\r\n else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) {\r\n // a child component receives forwarded slots from the parent.\r\n // its slot type is determined by its parent's slot type.\r\n if (currentRenderingInstance.slots._ === 1 /* STABLE */) {\r\n children._ = 1 /* STABLE */;\r\n }\r\n else {\r\n children._ = 2 /* DYNAMIC */;\r\n vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n }\r\n }\r\n }\r\n }\r\n else if (isFunction(children)) {\r\n children = { default: children, _ctx: currentRenderingInstance };\r\n type = 32 /* SLOTS_CHILDREN */;\r\n }\r\n else {\r\n children = String(children);\r\n // force teleport children to array so it can be moved around\r\n if (shapeFlag & 64 /* TELEPORT */) {\r\n type = 16 /* ARRAY_CHILDREN */;\r\n children = [createTextVNode(children)];\r\n }\r\n else {\r\n type = 8 /* TEXT_CHILDREN */;\r\n }\r\n }\r\n vnode.children = children;\r\n vnode.shapeFlag |= type;\r\n}\r\nfunction mergeProps(...args) {\r\n const ret = {};\r\n for (let i = 0; i < args.length; i++) {\r\n const toMerge = args[i];\r\n for (const key in toMerge) {\r\n if (key === 'class') {\r\n if (ret.class !== toMerge.class) {\r\n ret.class = normalizeClass([ret.class, toMerge.class]);\r\n }\r\n }\r\n else if (key === 'style') {\r\n ret.style = normalizeStyle([ret.style, toMerge.style]);\r\n }\r\n else if (isOn(key)) {\r\n const existing = ret[key];\r\n const incoming = toMerge[key];\r\n if (existing !== incoming &&\r\n !(isArray(existing) && existing.includes(incoming))) {\r\n ret[key] = existing\r\n ? [].concat(existing, incoming)\r\n : incoming;\r\n }\r\n }\r\n else if (key !== '') {\r\n ret[key] = toMerge[key];\r\n }\r\n }\r\n }\r\n return ret;\r\n}\r\nfunction invokeVNodeHook(hook, instance, vnode, prevVNode = null) {\r\n callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [\r\n vnode,\r\n prevVNode\r\n ]);\r\n}\n\n/**\r\n * Actual implementation\r\n */\r\nfunction renderList(source, renderItem, cache, index) {\r\n let ret;\r\n const cached = (cache && cache[index]);\r\n if (isArray(source) || isString(source)) {\r\n ret = new Array(source.length);\r\n for (let i = 0, l = source.length; i < l; i++) {\r\n ret[i] = renderItem(source[i], i, undefined, cached && cached[i]);\r\n }\r\n }\r\n else if (typeof source === 'number') {\r\n if ((process.env.NODE_ENV !== 'production') && !Number.isInteger(source)) {\r\n warn(`The v-for range expect an integer value but got ${source}.`);\r\n return [];\r\n }\r\n ret = new Array(source);\r\n for (let i = 0; i < source; i++) {\r\n ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]);\r\n }\r\n }\r\n else if (isObject(source)) {\r\n if (source[Symbol.iterator]) {\r\n ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i]));\r\n }\r\n else {\r\n const keys = Object.keys(source);\r\n ret = new Array(keys.length);\r\n for (let i = 0, l = keys.length; i < l; i++) {\r\n const key = keys[i];\r\n ret[i] = renderItem(source[key], key, i, cached && cached[i]);\r\n }\r\n }\r\n }\r\n else {\r\n ret = [];\r\n }\r\n if (cache) {\r\n cache[index] = ret;\r\n }\r\n return ret;\r\n}\n\n/**\r\n * Compiler runtime helper for creating dynamic slots object\r\n * @private\r\n */\r\nfunction createSlots(slots, dynamicSlots) {\r\n for (let i = 0; i < dynamicSlots.length; i++) {\r\n const slot = dynamicSlots[i];\r\n // array of dynamic slot generated by <template v-for=\"...\" #[...]>\r\n if (isArray(slot)) {\r\n for (let j = 0; j < slot.length; j++) {\r\n slots[slot[j].name] = slot[j].fn;\r\n }\r\n }\r\n else if (slot) {\r\n // conditional single slot generated by <template v-if=\"...\" #foo>\r\n slots[slot.name] = slot.fn;\r\n }\r\n }\r\n return slots;\r\n}\n\n/**\r\n * Compiler runtime helper for rendering `<slot/>`\r\n * @private\r\n */\r\nfunction renderSlot(slots, name, props = {}, \r\n// this is not a user-facing function, so the fallback is always generated by\r\n// the compiler and guaranteed to be a function returning an array\r\nfallback, noSlotted) {\r\n if (currentRenderingInstance.isCE) {\r\n return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback());\r\n }\r\n let slot = slots[name];\r\n if ((process.env.NODE_ENV !== 'production') && slot && slot.length > 1) {\r\n warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +\r\n `function. You need to mark this component with $dynamic-slots in the ` +\r\n `parent template.`);\r\n slot = () => [];\r\n }\r\n // a compiled slot disables block tracking by default to avoid manual\r\n // invocation interfering with template-based block tracking, but in\r\n // `renderSlot` we can be sure that it's template-based so we can force\r\n // enable it.\r\n if (slot && slot._c) {\r\n slot._d = false;\r\n }\r\n openBlock();\r\n const validSlotContent = slot && ensureValidVNode(slot(props));\r\n const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */\r\n ? 64 /* STABLE_FRAGMENT */\r\n : -2 /* BAIL */);\r\n if (!noSlotted && rendered.scopeId) {\r\n rendered.slotScopeIds = [rendered.scopeId + '-s'];\r\n }\r\n if (slot && slot._c) {\r\n slot._d = true;\r\n }\r\n return rendered;\r\n}\r\nfunction ensureValidVNode(vnodes) {\r\n return vnodes.some(child => {\r\n if (!isVNode(child))\r\n return true;\r\n if (child.type === Comment)\r\n return false;\r\n if (child.type === Fragment &&\r\n !ensureValidVNode(child.children))\r\n return false;\r\n return true;\r\n })\r\n ? vnodes\r\n : null;\r\n}\n\n/**\r\n * For prefixing keys in v-on=\"obj\" with \"on\"\r\n * @private\r\n */\r\nfunction toHandlers(obj) {\r\n const ret = {};\r\n if ((process.env.NODE_ENV !== 'production') && !isObject(obj)) {\r\n warn(`v-on with no argument expects an object value.`);\r\n return ret;\r\n }\r\n for (const key in obj) {\r\n ret[toHandlerKey(key)] = obj[key];\r\n }\r\n return ret;\r\n}\n\n/**\r\n * #2437 In Vue 3, functional components do not have a public instance proxy but\r\n * they exist in the internal parent chain. For code that relies on traversing\r\n * public $parent chains, skip functional ones and go to the parent instead.\r\n */\r\nconst getPublicInstance = (i) => {\r\n if (!i)\r\n return null;\r\n if (isStatefulComponent(i))\r\n return getExposeProxy(i) || i.proxy;\r\n return getPublicInstance(i.parent);\r\n};\r\nconst publicPropertiesMap = extend(Object.create(null), {\r\n $: i => i,\r\n $el: i => i.vnode.el,\r\n $data: i => i.data,\r\n $props: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.props) : i.props),\r\n $attrs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.attrs) : i.attrs),\r\n $slots: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.slots) : i.slots),\r\n $refs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.refs) : i.refs),\r\n $parent: i => getPublicInstance(i.parent),\r\n $root: i => getPublicInstance(i.root),\r\n $emit: i => i.emit,\r\n $options: i => (__VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type),\r\n $forceUpdate: i => () => queueJob(i.update),\r\n $nextTick: i => nextTick.bind(i.proxy),\r\n $watch: i => (__VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP)\r\n});\r\nconst PublicInstanceProxyHandlers = {\r\n get({ _: instance }, key) {\r\n const { ctx, setupState, data, props, accessCache, type, appContext } = instance;\r\n // for internal formatters to know that this is a Vue instance\r\n if ((process.env.NODE_ENV !== 'production') && key === '__isVue') {\r\n return true;\r\n }\r\n // prioritize <script setup> bindings during dev.\r\n // this allows even properties that start with _ or $ to be used - so that\r\n // it aligns with the production behavior where the render fn is inlined and\r\n // indeed has access to all declared variables.\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n setupState !== EMPTY_OBJ &&\r\n setupState.__isScriptSetup &&\r\n hasOwn(setupState, key)) {\r\n return setupState[key];\r\n }\r\n // data / props / ctx\r\n // This getter gets called for every property access on the render context\r\n // during render and is a major hotspot. The most expensive part of this\r\n // is the multiple hasOwn() calls. It's much faster to do a simple property\r\n // access on a plain object, so we use an accessCache object (with null\r\n // prototype) to memoize what access type a key corresponds to.\r\n let normalizedProps;\r\n if (key[0] !== '$') {\r\n const n = accessCache[key];\r\n if (n !== undefined) {\r\n switch (n) {\r\n case 1 /* SETUP */:\r\n return setupState[key];\r\n case 2 /* DATA */:\r\n return data[key];\r\n case 4 /* CONTEXT */:\r\n return ctx[key];\r\n case 3 /* PROPS */:\r\n return props[key];\r\n // default: just fallthrough\r\n }\r\n }\r\n else if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {\r\n accessCache[key] = 1 /* SETUP */;\r\n return setupState[key];\r\n }\r\n else if (data !== EMPTY_OBJ && hasOwn(data, key)) {\r\n accessCache[key] = 2 /* DATA */;\r\n return data[key];\r\n }\r\n else if (\r\n // only cache other properties when instance has declared (thus stable)\r\n // props\r\n (normalizedProps = instance.propsOptions[0]) &&\r\n hasOwn(normalizedProps, key)) {\r\n accessCache[key] = 3 /* PROPS */;\r\n return props[key];\r\n }\r\n else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\r\n accessCache[key] = 4 /* CONTEXT */;\r\n return ctx[key];\r\n }\r\n else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {\r\n accessCache[key] = 0 /* OTHER */;\r\n }\r\n }\r\n const publicGetter = publicPropertiesMap[key];\r\n let cssModule, globalProperties;\r\n // public $xxx properties\r\n if (publicGetter) {\r\n if (key === '$attrs') {\r\n track(instance, \"get\" /* GET */, key);\r\n (process.env.NODE_ENV !== 'production') && markAttrsAccessed();\r\n }\r\n return publicGetter(instance);\r\n }\r\n else if (\r\n // css module (injected by vue-loader)\r\n (cssModule = type.__cssModules) &&\r\n (cssModule = cssModule[key])) {\r\n return cssModule;\r\n }\r\n else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\r\n // user may set custom properties to `this` that start with `$`\r\n accessCache[key] = 4 /* CONTEXT */;\r\n return ctx[key];\r\n }\r\n else if (\r\n // global properties\r\n ((globalProperties = appContext.config.globalProperties),\r\n hasOwn(globalProperties, key))) {\r\n {\r\n return globalProperties[key];\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') &&\r\n currentRenderingInstance &&\r\n (!isString(key) ||\r\n // #1091 avoid internal isRef/isVNode checks on component instance leading\r\n // to infinite warning loop\r\n key.indexOf('__v') !== 0)) {\r\n if (data !== EMPTY_OBJ &&\r\n (key[0] === '$' || key[0] === '_') &&\r\n hasOwn(data, key)) {\r\n warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +\r\n `character (\"$\" or \"_\") and is not proxied on the render context.`);\r\n }\r\n else if (instance === currentRenderingInstance) {\r\n warn(`Property ${JSON.stringify(key)} was accessed during render ` +\r\n `but is not defined on instance.`);\r\n }\r\n }\r\n },\r\n set({ _: instance }, key, value) {\r\n const { data, setupState, ctx } = instance;\r\n if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {\r\n setupState[key] = value;\r\n }\r\n else if (data !== EMPTY_OBJ && hasOwn(data, key)) {\r\n data[key] = value;\r\n }\r\n else if (hasOwn(instance.props, key)) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to mutate prop \"${key}\". Props are readonly.`, instance);\r\n return false;\r\n }\r\n if (key[0] === '$' && key.slice(1) in instance) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Attempting to mutate public property \"${key}\". ` +\r\n `Properties starting with $ are reserved and readonly.`, instance);\r\n return false;\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && key in instance.appContext.config.globalProperties) {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n value\r\n });\r\n }\r\n else {\r\n ctx[key] = value;\r\n }\r\n }\r\n return true;\r\n },\r\n has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {\r\n let normalizedProps;\r\n return (!!accessCache[key] ||\r\n (data !== EMPTY_OBJ && hasOwn(data, key)) ||\r\n (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) ||\r\n ((normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key)) ||\r\n hasOwn(ctx, key) ||\r\n hasOwn(publicPropertiesMap, key) ||\r\n hasOwn(appContext.config.globalProperties, key));\r\n }\r\n};\r\nif ((process.env.NODE_ENV !== 'production') && !false) {\r\n PublicInstanceProxyHandlers.ownKeys = (target) => {\r\n warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +\r\n `The keys will be empty in production mode to avoid performance overhead.`);\r\n return Reflect.ownKeys(target);\r\n };\r\n}\r\nconst RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend({}, PublicInstanceProxyHandlers, {\r\n get(target, key) {\r\n // fast path for unscopables when using `with` block\r\n if (key === Symbol.unscopables) {\r\n return;\r\n }\r\n return PublicInstanceProxyHandlers.get(target, key, target);\r\n },\r\n has(_, key) {\r\n const has = key[0] !== '_' && !isGloballyWhitelisted(key);\r\n if ((process.env.NODE_ENV !== 'production') && !has && PublicInstanceProxyHandlers.has(_, key)) {\r\n warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);\r\n }\r\n return has;\r\n }\r\n});\r\n// dev only\r\n// In dev mode, the proxy target exposes the same properties as seen on `this`\r\n// for easier console inspection. In prod mode it will be an empty object so\r\n// these properties definitions can be skipped.\r\nfunction createDevRenderContext(instance) {\r\n const target = {};\r\n // expose internal instance for proxy handlers\r\n Object.defineProperty(target, `_`, {\r\n configurable: true,\r\n enumerable: false,\r\n get: () => instance\r\n });\r\n // expose public properties\r\n Object.keys(publicPropertiesMap).forEach(key => {\r\n Object.defineProperty(target, key, {\r\n configurable: true,\r\n enumerable: false,\r\n get: () => publicPropertiesMap[key](instance),\r\n // intercepted by the proxy so no need for implementation,\r\n // but needed to prevent set errors\r\n set: NOOP\r\n });\r\n });\r\n return target;\r\n}\r\n// dev only\r\nfunction exposePropsOnRenderContext(instance) {\r\n const { ctx, propsOptions: [propsOptions] } = instance;\r\n if (propsOptions) {\r\n Object.keys(propsOptions).forEach(key => {\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => instance.props[key],\r\n set: NOOP\r\n });\r\n });\r\n }\r\n}\r\n// dev only\r\nfunction exposeSetupStateOnRenderContext(instance) {\r\n const { ctx, setupState } = instance;\r\n Object.keys(toRaw(setupState)).forEach(key => {\r\n if (!setupState.__isScriptSetup) {\r\n if (key[0] === '$' || key[0] === '_') {\r\n warn(`setup() return property ${JSON.stringify(key)} should not start with \"$\" or \"_\" ` +\r\n `which are reserved prefixes for Vue internals.`);\r\n return;\r\n }\r\n Object.defineProperty(ctx, key, {\r\n enumerable: true,\r\n configurable: true,\r\n get: () => setupState[key],\r\n set: NOOP\r\n });\r\n }\r\n });\r\n}\n\nconst emptyAppContext = createAppContext();\r\nlet uid$1 = 0;\r\nfunction createComponentInstance(vnode, parent, suspense) {\r\n const type = vnode.type;\r\n // inherit parent app context - or - if root, adopt from root vnode\r\n const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;\r\n const instance = {\r\n uid: uid$1++,\r\n vnode,\r\n type,\r\n parent,\r\n appContext,\r\n root: null,\r\n next: null,\r\n subTree: null,\r\n effect: null,\r\n update: null,\r\n scope: new EffectScope(true /* detached */),\r\n render: null,\r\n proxy: null,\r\n exposed: null,\r\n exposeProxy: null,\r\n withProxy: null,\r\n provides: parent ? parent.provides : Object.create(appContext.provides),\r\n accessCache: null,\r\n renderCache: [],\r\n // local resovled assets\r\n components: null,\r\n directives: null,\r\n // resolved props and emits options\r\n propsOptions: normalizePropsOptions(type, appContext),\r\n emitsOptions: normalizeEmitsOptions(type, appContext),\r\n // emit\r\n emit: null,\r\n emitted: null,\r\n // props default value\r\n propsDefaults: EMPTY_OBJ,\r\n // inheritAttrs\r\n inheritAttrs: type.inheritAttrs,\r\n // state\r\n ctx: EMPTY_OBJ,\r\n data: EMPTY_OBJ,\r\n props: EMPTY_OBJ,\r\n attrs: EMPTY_OBJ,\r\n slots: EMPTY_OBJ,\r\n refs: EMPTY_OBJ,\r\n setupState: EMPTY_OBJ,\r\n setupContext: null,\r\n // suspense related\r\n suspense,\r\n suspenseId: suspense ? suspense.pendingId : 0,\r\n asyncDep: null,\r\n asyncResolved: false,\r\n // lifecycle hooks\r\n // not using enums here because it results in computed properties\r\n isMounted: false,\r\n isUnmounted: false,\r\n isDeactivated: false,\r\n bc: null,\r\n c: null,\r\n bm: null,\r\n m: null,\r\n bu: null,\r\n u: null,\r\n um: null,\r\n bum: null,\r\n da: null,\r\n a: null,\r\n rtg: null,\r\n rtc: null,\r\n ec: null,\r\n sp: null\r\n };\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n instance.ctx = createDevRenderContext(instance);\r\n }\r\n else {\r\n instance.ctx = { _: instance };\r\n }\r\n instance.root = parent ? parent.root : instance;\r\n instance.emit = emit$1.bind(null, instance);\r\n // apply custom element special handling\r\n if (vnode.ce) {\r\n vnode.ce(instance);\r\n }\r\n return instance;\r\n}\r\nlet currentInstance = null;\r\nconst getCurrentInstance = () => currentInstance || currentRenderingInstance;\r\nconst setCurrentInstance = (instance) => {\r\n currentInstance = instance;\r\n instance.scope.on();\r\n};\r\nconst unsetCurrentInstance = () => {\r\n currentInstance && currentInstance.scope.off();\r\n currentInstance = null;\r\n};\r\nconst isBuiltInTag = /*#__PURE__*/ makeMap('slot,component');\r\nfunction validateComponentName(name, config) {\r\n const appIsNativeTag = config.isNativeTag || NO;\r\n if (isBuiltInTag(name) || appIsNativeTag(name)) {\r\n warn('Do not use built-in or reserved HTML elements as component id: ' + name);\r\n }\r\n}\r\nfunction isStatefulComponent(instance) {\r\n return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */;\r\n}\r\nlet isInSSRComponentSetup = false;\r\nfunction setupComponent(instance, isSSR = false) {\r\n isInSSRComponentSetup = isSSR;\r\n const { props, children } = instance.vnode;\r\n const isStateful = isStatefulComponent(instance);\r\n initProps(instance, props, isStateful, isSSR);\r\n initSlots(instance, children);\r\n const setupResult = isStateful\r\n ? setupStatefulComponent(instance, isSSR)\r\n : undefined;\r\n isInSSRComponentSetup = false;\r\n return setupResult;\r\n}\r\nfunction setupStatefulComponent(instance, isSSR) {\r\n const Component = instance.type;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (Component.name) {\r\n validateComponentName(Component.name, instance.appContext.config);\r\n }\r\n if (Component.components) {\r\n const names = Object.keys(Component.components);\r\n for (let i = 0; i < names.length; i++) {\r\n validateComponentName(names[i], instance.appContext.config);\r\n }\r\n }\r\n if (Component.directives) {\r\n const names = Object.keys(Component.directives);\r\n for (let i = 0; i < names.length; i++) {\r\n validateDirectiveName(names[i]);\r\n }\r\n }\r\n if (Component.compilerOptions && isRuntimeOnly()) {\r\n warn(`\"compilerOptions\" is only supported when using a build of Vue that ` +\r\n `includes the runtime compiler. Since you are using a runtime-only ` +\r\n `build, the options should be passed via your build tool config instead.`);\r\n }\r\n }\r\n // 0. create render proxy property access cache\r\n instance.accessCache = Object.create(null);\r\n // 1. create public instance / render proxy\r\n // also mark it raw so it's never observed\r\n instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n exposePropsOnRenderContext(instance);\r\n }\r\n // 2. call setup()\r\n const { setup } = Component;\r\n if (setup) {\r\n const setupContext = (instance.setupContext =\r\n setup.length > 1 ? createSetupContext(instance) : null);\r\n setCurrentInstance(instance);\r\n pauseTracking();\r\n const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [(process.env.NODE_ENV !== 'production') ? shallowReadonly(instance.props) : instance.props, setupContext]);\r\n resetTracking();\r\n unsetCurrentInstance();\r\n if (isPromise(setupResult)) {\r\n setupResult.then(unsetCurrentInstance, unsetCurrentInstance);\r\n if (isSSR) {\r\n // return the promise so server-renderer can wait on it\r\n return setupResult\r\n .then((resolvedResult) => {\r\n handleSetupResult(instance, resolvedResult, isSSR);\r\n })\r\n .catch(e => {\r\n handleError(e, instance, 0 /* SETUP_FUNCTION */);\r\n });\r\n }\r\n else {\r\n // async setup returned Promise.\r\n // bail here and wait for re-entry.\r\n instance.asyncDep = setupResult;\r\n }\r\n }\r\n else {\r\n handleSetupResult(instance, setupResult, isSSR);\r\n }\r\n }\r\n else {\r\n finishComponentSetup(instance, isSSR);\r\n }\r\n}\r\nfunction handleSetupResult(instance, setupResult, isSSR) {\r\n if (isFunction(setupResult)) {\r\n // setup returned an inline render function\r\n if (instance.type.__ssrInlineRender) {\r\n // when the function's name is `ssrRender` (compiled by SFC inline mode),\r\n // set it as ssrRender instead.\r\n instance.ssrRender = setupResult;\r\n }\r\n else {\r\n instance.render = setupResult;\r\n }\r\n }\r\n else if (isObject(setupResult)) {\r\n if ((process.env.NODE_ENV !== 'production') && isVNode(setupResult)) {\r\n warn(`setup() should not return VNodes directly - ` +\r\n `return a render function instead.`);\r\n }\r\n // setup returned bindings.\r\n // assuming a render function compiled from template is present.\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n instance.devtoolsRawSetupState = setupResult;\r\n }\r\n instance.setupState = proxyRefs(setupResult);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n exposeSetupStateOnRenderContext(instance);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && setupResult !== undefined) {\r\n warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);\r\n }\r\n finishComponentSetup(instance, isSSR);\r\n}\r\nlet compile;\r\nlet installWithProxy;\r\n/**\r\n * For runtime-dom to register the compiler.\r\n * Note the exported method uses any to avoid d.ts relying on the compiler types.\r\n */\r\nfunction registerRuntimeCompiler(_compile) {\r\n compile = _compile;\r\n installWithProxy = i => {\r\n if (i.render._rc) {\r\n i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);\r\n }\r\n };\r\n}\r\n// dev only\r\nconst isRuntimeOnly = () => !compile;\r\nfunction finishComponentSetup(instance, isSSR, skipOptions) {\r\n const Component = instance.type;\r\n // template / render function normalization\r\n // could be already set when returned from setup()\r\n if (!instance.render) {\r\n // only do on-the-fly compile if not in SSR - SSR on-the-fly compliation\r\n // is done by server-renderer\r\n if (!isSSR && compile && !Component.render) {\r\n const template = Component.template;\r\n if (template) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n startMeasure(instance, `compile`);\r\n }\r\n const { isCustomElement, compilerOptions } = instance.appContext.config;\r\n const { delimiters, compilerOptions: componentCompilerOptions } = Component;\r\n const finalCompilerOptions = extend(extend({\r\n isCustomElement,\r\n delimiters\r\n }, compilerOptions), componentCompilerOptions);\r\n Component.render = compile(template, finalCompilerOptions);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n endMeasure(instance, `compile`);\r\n }\r\n }\r\n }\r\n instance.render = (Component.render || NOOP);\r\n // for runtime-compiled render functions using `with` blocks, the render\r\n // proxy used needs a different `has` handler which is more performant and\r\n // also only allows a whitelist of globals to fallthrough.\r\n if (installWithProxy) {\r\n installWithProxy(instance);\r\n }\r\n }\r\n // support for 2.x options\r\n if (__VUE_OPTIONS_API__ && !(false )) {\r\n setCurrentInstance(instance);\r\n pauseTracking();\r\n applyOptions(instance);\r\n resetTracking();\r\n unsetCurrentInstance();\r\n }\r\n // warn missing template/render\r\n // the runtime compilation of template in SSR is done by server-render\r\n if ((process.env.NODE_ENV !== 'production') && !Component.render && instance.render === NOOP && !isSSR) {\r\n /* istanbul ignore if */\r\n if (!compile && Component.template) {\r\n warn(`Component provided template option but ` +\r\n `runtime compilation is not supported in this build of Vue.` +\r\n (` Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".`\r\n ) /* should not happen */);\r\n }\r\n else {\r\n warn(`Component is missing template or render function.`);\r\n }\r\n }\r\n}\r\nfunction createAttrsProxy(instance) {\r\n return new Proxy(instance.attrs, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get(target, key) {\r\n markAttrsAccessed();\r\n track(instance, \"get\" /* GET */, '$attrs');\r\n return target[key];\r\n },\r\n set() {\r\n warn(`setupContext.attrs is readonly.`);\r\n return false;\r\n },\r\n deleteProperty() {\r\n warn(`setupContext.attrs is readonly.`);\r\n return false;\r\n }\r\n }\r\n : {\r\n get(target, key) {\r\n track(instance, \"get\" /* GET */, '$attrs');\r\n return target[key];\r\n }\r\n });\r\n}\r\nfunction createSetupContext(instance) {\r\n const expose = exposed => {\r\n if ((process.env.NODE_ENV !== 'production') && instance.exposed) {\r\n warn(`expose() should be called only once per setup().`);\r\n }\r\n instance.exposed = exposed || {};\r\n };\r\n let attrs;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n // We use getters in dev in case libs like test-utils overwrite instance\r\n // properties (overwrites should not be done in prod)\r\n return Object.freeze({\r\n get attrs() {\r\n return attrs || (attrs = createAttrsProxy(instance));\r\n },\r\n get slots() {\r\n return shallowReadonly(instance.slots);\r\n },\r\n get emit() {\r\n return (event, ...args) => instance.emit(event, ...args);\r\n },\r\n expose\r\n });\r\n }\r\n else {\r\n return {\r\n get attrs() {\r\n return attrs || (attrs = createAttrsProxy(instance));\r\n },\r\n slots: instance.slots,\r\n emit: instance.emit,\r\n expose\r\n };\r\n }\r\n}\r\nfunction getExposeProxy(instance) {\r\n if (instance.exposed) {\r\n return (instance.exposeProxy ||\r\n (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {\r\n get(target, key) {\r\n if (key in target) {\r\n return target[key];\r\n }\r\n else if (key in publicPropertiesMap) {\r\n return publicPropertiesMap[key](instance);\r\n }\r\n }\r\n })));\r\n }\r\n}\r\nconst classifyRE = /(?:^|[-_])(\\w)/g;\r\nconst classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');\r\nfunction getComponentName(Component) {\r\n return isFunction(Component)\r\n ? Component.displayName || Component.name\r\n : Component.name;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatComponentName(instance, Component, isRoot = false) {\r\n let name = getComponentName(Component);\r\n if (!name && Component.__file) {\r\n const match = Component.__file.match(/([^/\\\\]+)\\.\\w+$/);\r\n if (match) {\r\n name = match[1];\r\n }\r\n }\r\n if (!name && instance && instance.parent) {\r\n // try to infer the name based on reverse resolution\r\n const inferFromRegistry = (registry) => {\r\n for (const key in registry) {\r\n if (registry[key] === Component) {\r\n return key;\r\n }\r\n }\r\n };\r\n name =\r\n inferFromRegistry(instance.components ||\r\n instance.parent.type.components) || inferFromRegistry(instance.appContext.components);\r\n }\r\n return name ? classify(name) : isRoot ? `App` : `Anonymous`;\r\n}\r\nfunction isClassComponent(value) {\r\n return isFunction(value) && '__vccOpts' in value;\r\n}\n\nconst stack = [];\r\nfunction pushWarningContext(vnode) {\r\n stack.push(vnode);\r\n}\r\nfunction popWarningContext() {\r\n stack.pop();\r\n}\r\nfunction warn(msg, ...args) {\r\n // avoid props formatting or warn handler tracking deps that might be mutated\r\n // during patch, leading to infinite recursion.\r\n pauseTracking();\r\n const instance = stack.length ? stack[stack.length - 1].component : null;\r\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\r\n const trace = getComponentTrace();\r\n if (appWarnHandler) {\r\n callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [\r\n msg + args.join(''),\r\n instance && instance.proxy,\r\n trace\r\n .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)\r\n .join('\\n'),\r\n trace\r\n ]);\r\n }\r\n else {\r\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\r\n /* istanbul ignore if */\r\n if (trace.length &&\r\n // avoid spamming console during tests\r\n !false) {\r\n warnArgs.push(`\\n`, ...formatTrace(trace));\r\n }\r\n console.warn(...warnArgs);\r\n }\r\n resetTracking();\r\n}\r\nfunction getComponentTrace() {\r\n let currentVNode = stack[stack.length - 1];\r\n if (!currentVNode) {\r\n return [];\r\n }\r\n // we can't just use the stack because it will be incomplete during updates\r\n // that did not start from the root. Re-construct the parent chain using\r\n // instance parent pointers.\r\n const normalizedStack = [];\r\n while (currentVNode) {\r\n const last = normalizedStack[0];\r\n if (last && last.vnode === currentVNode) {\r\n last.recurseCount++;\r\n }\r\n else {\r\n normalizedStack.push({\r\n vnode: currentVNode,\r\n recurseCount: 0\r\n });\r\n }\r\n const parentInstance = currentVNode.component && currentVNode.component.parent;\r\n currentVNode = parentInstance && parentInstance.vnode;\r\n }\r\n return normalizedStack;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatTrace(trace) {\r\n const logs = [];\r\n trace.forEach((entry, i) => {\r\n logs.push(...(i === 0 ? [] : [`\\n`]), ...formatTraceEntry(entry));\r\n });\r\n return logs;\r\n}\r\nfunction formatTraceEntry({ vnode, recurseCount }) {\r\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\r\n const isRoot = vnode.component ? vnode.component.parent == null : false;\r\n const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;\r\n const close = `>` + postfix;\r\n return vnode.props\r\n ? [open, ...formatProps(vnode.props), close]\r\n : [open + close];\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProps(props) {\r\n const res = [];\r\n const keys = Object.keys(props);\r\n keys.slice(0, 3).forEach(key => {\r\n res.push(...formatProp(key, props[key]));\r\n });\r\n if (keys.length > 3) {\r\n res.push(` ...`);\r\n }\r\n return res;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProp(key, value, raw) {\r\n if (isString(value)) {\r\n value = JSON.stringify(value);\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (typeof value === 'number' ||\r\n typeof value === 'boolean' ||\r\n value == null) {\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (isRef(value)) {\r\n value = formatProp(key, toRaw(value.value), true);\r\n return raw ? value : [`${key}=Ref<`, value, `>`];\r\n }\r\n else if (isFunction(value)) {\r\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\r\n }\r\n else {\r\n value = toRaw(value);\r\n return raw ? value : [`${key}=`, value];\r\n }\r\n}\n\nconst ErrorTypeStrings = {\r\n [\"sp\" /* SERVER_PREFETCH */]: 'serverPrefetch hook',\r\n [\"bc\" /* BEFORE_CREATE */]: 'beforeCreate hook',\r\n [\"c\" /* CREATED */]: 'created hook',\r\n [\"bm\" /* BEFORE_MOUNT */]: 'beforeMount hook',\r\n [\"m\" /* MOUNTED */]: 'mounted hook',\r\n [\"bu\" /* BEFORE_UPDATE */]: 'beforeUpdate hook',\r\n [\"u\" /* UPDATED */]: 'updated',\r\n [\"bum\" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',\r\n [\"um\" /* UNMOUNTED */]: 'unmounted hook',\r\n [\"a\" /* ACTIVATED */]: 'activated hook',\r\n [\"da\" /* DEACTIVATED */]: 'deactivated hook',\r\n [\"ec\" /* ERROR_CAPTURED */]: 'errorCaptured hook',\r\n [\"rtc\" /* RENDER_TRACKED */]: 'renderTracked hook',\r\n [\"rtg\" /* RENDER_TRIGGERED */]: 'renderTriggered hook',\r\n [0 /* SETUP_FUNCTION */]: 'setup function',\r\n [1 /* RENDER_FUNCTION */]: 'render function',\r\n [2 /* WATCH_GETTER */]: 'watcher getter',\r\n [3 /* WATCH_CALLBACK */]: 'watcher callback',\r\n [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',\r\n [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',\r\n [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',\r\n [7 /* VNODE_HOOK */]: 'vnode hook',\r\n [8 /* DIRECTIVE_HOOK */]: 'directive hook',\r\n [9 /* TRANSITION_HOOK */]: 'transition hook',\r\n [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',\r\n [11 /* APP_WARN_HANDLER */]: 'app warnHandler',\r\n [12 /* FUNCTION_REF */]: 'ref function',\r\n [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',\r\n [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +\r\n 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next'\r\n};\r\nfunction callWithErrorHandling(fn, instance, type, args) {\r\n let res;\r\n try {\r\n res = args ? fn(...args) : fn();\r\n }\r\n catch (err) {\r\n handleError(err, instance, type);\r\n }\r\n return res;\r\n}\r\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\r\n if (isFunction(fn)) {\r\n const res = callWithErrorHandling(fn, instance, type, args);\r\n if (res && isPromise(res)) {\r\n res.catch(err => {\r\n handleError(err, instance, type);\r\n });\r\n }\r\n return res;\r\n }\r\n const values = [];\r\n for (let i = 0; i < fn.length; i++) {\r\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\r\n }\r\n return values;\r\n}\r\nfunction handleError(err, instance, type, throwInDev = true) {\r\n const contextVNode = instance ? instance.vnode : null;\r\n if (instance) {\r\n let cur = instance.parent;\r\n // the exposed instance is the render proxy to keep it consistent with 2.x\r\n const exposedInstance = instance.proxy;\r\n // in production the hook receives only the error code\r\n const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] : type;\r\n while (cur) {\r\n const errorCapturedHooks = cur.ec;\r\n if (errorCapturedHooks) {\r\n for (let i = 0; i < errorCapturedHooks.length; i++) {\r\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\r\n return;\r\n }\r\n }\r\n }\r\n cur = cur.parent;\r\n }\r\n // app-level handling\r\n const appErrorHandler = instance.appContext.config.errorHandler;\r\n if (appErrorHandler) {\r\n callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);\r\n return;\r\n }\r\n }\r\n logError(err, type, contextVNode, throwInDev);\r\n}\r\nfunction logError(err, type, contextVNode, throwInDev = true) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const info = ErrorTypeStrings[type];\r\n if (contextVNode) {\r\n pushWarningContext(contextVNode);\r\n }\r\n warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\r\n if (contextVNode) {\r\n popWarningContext();\r\n }\r\n // crash in dev by default so it's more noticeable\r\n if (throwInDev) {\r\n throw err;\r\n }\r\n else {\r\n console.error(err);\r\n }\r\n }\r\n else {\r\n // recover in prod to reduce the impact on end-user\r\n console.error(err);\r\n }\r\n}\n\nlet isFlushing = false;\r\nlet isFlushPending = false;\r\nconst queue = [];\r\nlet flushIndex = 0;\r\nconst pendingPreFlushCbs = [];\r\nlet activePreFlushCbs = null;\r\nlet preFlushIndex = 0;\r\nconst pendingPostFlushCbs = [];\r\nlet activePostFlushCbs = null;\r\nlet postFlushIndex = 0;\r\nconst resolvedPromise = Promise.resolve();\r\nlet currentFlushPromise = null;\r\nlet currentPreFlushParentJob = null;\r\nconst RECURSION_LIMIT = 100;\r\nfunction nextTick(fn) {\r\n const p = currentFlushPromise || resolvedPromise;\r\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\r\n}\r\n// #2768\r\n// Use binary-search to find a suitable position in the queue,\r\n// so that the queue maintains the increasing order of job's id,\r\n// which can prevent the job from being skipped and also can avoid repeated patching.\r\nfunction findInsertionIndex(id) {\r\n // the start index should be `flushIndex + 1`\r\n let start = flushIndex + 1;\r\n let end = queue.length;\r\n while (start < end) {\r\n const middle = (start + end) >>> 1;\r\n const middleJobId = getId(queue[middle]);\r\n middleJobId < id ? (start = middle + 1) : (end = middle);\r\n }\r\n return start;\r\n}\r\nfunction queueJob(job) {\r\n // the dedupe search uses the startIndex argument of Array.includes()\r\n // by default the search index includes the current job that is being run\r\n // so it cannot recursively trigger itself again.\r\n // if the job is a watch() callback, the search will start with a +1 index to\r\n // allow it recursively trigger itself - it is the user's responsibility to\r\n // ensure it doesn't end up in an infinite loop.\r\n if ((!queue.length ||\r\n !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&\r\n job !== currentPreFlushParentJob) {\r\n if (job.id == null) {\r\n queue.push(job);\r\n }\r\n else {\r\n queue.splice(findInsertionIndex(job.id), 0, job);\r\n }\r\n queueFlush();\r\n }\r\n}\r\nfunction queueFlush() {\r\n if (!isFlushing && !isFlushPending) {\r\n isFlushPending = true;\r\n currentFlushPromise = resolvedPromise.then(flushJobs);\r\n }\r\n}\r\nfunction invalidateJob(job) {\r\n const i = queue.indexOf(job);\r\n if (i > flushIndex) {\r\n queue.splice(i, 1);\r\n }\r\n}\r\nfunction queueCb(cb, activeQueue, pendingQueue, index) {\r\n if (!isArray(cb)) {\r\n if (!activeQueue ||\r\n !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {\r\n pendingQueue.push(cb);\r\n }\r\n }\r\n else {\r\n // if cb is an array, it is a component lifecycle hook which can only be\r\n // triggered by a job, which is already deduped in the main queue, so\r\n // we can skip duplicate check here to improve perf\r\n pendingQueue.push(...cb);\r\n }\r\n queueFlush();\r\n}\r\nfunction queuePreFlushCb(cb) {\r\n queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);\r\n}\r\nfunction queuePostFlushCb(cb) {\r\n queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);\r\n}\r\nfunction flushPreFlushCbs(seen, parentJob = null) {\r\n if (pendingPreFlushCbs.length) {\r\n currentPreFlushParentJob = parentJob;\r\n activePreFlushCbs = [...new Set(pendingPreFlushCbs)];\r\n pendingPreFlushCbs.length = 0;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {\r\n continue;\r\n }\r\n activePreFlushCbs[preFlushIndex]();\r\n }\r\n activePreFlushCbs = null;\r\n preFlushIndex = 0;\r\n currentPreFlushParentJob = null;\r\n // recursively flush until it drains\r\n flushPreFlushCbs(seen, parentJob);\r\n }\r\n}\r\nfunction flushPostFlushCbs(seen) {\r\n if (pendingPostFlushCbs.length) {\r\n const deduped = [...new Set(pendingPostFlushCbs)];\r\n pendingPostFlushCbs.length = 0;\r\n // #1947 already has active queue, nested flushPostFlushCbs call\r\n if (activePostFlushCbs) {\r\n activePostFlushCbs.push(...deduped);\r\n return;\r\n }\r\n activePostFlushCbs = deduped;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n activePostFlushCbs.sort((a, b) => getId(a) - getId(b));\r\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {\r\n continue;\r\n }\r\n activePostFlushCbs[postFlushIndex]();\r\n }\r\n activePostFlushCbs = null;\r\n postFlushIndex = 0;\r\n }\r\n}\r\nconst getId = (job) => job.id == null ? Infinity : job.id;\r\nfunction flushJobs(seen) {\r\n isFlushPending = false;\r\n isFlushing = true;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n flushPreFlushCbs(seen);\r\n // Sort queue before flush.\r\n // This ensures that:\r\n // 1. Components are updated from parent to child. (because parent is always\r\n // created before the child so its render effect will have smaller\r\n // priority number)\r\n // 2. If a component is unmounted during a parent component's update,\r\n // its update can be skipped.\r\n queue.sort((a, b) => getId(a) - getId(b));\r\n // conditional usage of checkRecursiveUpdate must be determined out of\r\n // try ... catch block since Rollup by default de-optimizes treeshaking\r\n // inside try-catch. This can leave all warning code unshaked. Although\r\n // they would get eventually shaken by a minifier like terser, some minifiers\r\n // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)\r\n const check = (process.env.NODE_ENV !== 'production')\r\n ? (job) => checkRecursiveUpdates(seen, job)\r\n : NOOP;\r\n try {\r\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\r\n const job = queue[flushIndex];\r\n if (job && job.active !== false) {\r\n if ((process.env.NODE_ENV !== 'production') && check(job)) {\r\n continue;\r\n }\r\n // console.log(`running:`, job.id)\r\n callWithErrorHandling(job, null, 14 /* SCHEDULER */);\r\n }\r\n }\r\n }\r\n finally {\r\n flushIndex = 0;\r\n queue.length = 0;\r\n flushPostFlushCbs(seen);\r\n isFlushing = false;\r\n currentFlushPromise = null;\r\n // some postFlushCb queued jobs!\r\n // keep flushing until it drains.\r\n if (queue.length ||\r\n pendingPreFlushCbs.length ||\r\n pendingPostFlushCbs.length) {\r\n flushJobs(seen);\r\n }\r\n }\r\n}\r\nfunction checkRecursiveUpdates(seen, fn) {\r\n if (!seen.has(fn)) {\r\n seen.set(fn, 1);\r\n }\r\n else {\r\n const count = seen.get(fn);\r\n if (count > RECURSION_LIMIT) {\r\n const instance = fn.ownerInstance;\r\n const componentName = instance && getComponentName(instance.type);\r\n warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +\r\n `This means you have a reactive effect that is mutating its own ` +\r\n `dependencies and thus recursively triggering itself. Possible sources ` +\r\n `include component template, render function, updated hook or ` +\r\n `watcher source function.`);\r\n return true;\r\n }\r\n else {\r\n seen.set(fn, count + 1);\r\n }\r\n }\r\n}\n\n// Simple effect.\r\nfunction watchEffect(effect, options) {\r\n return doWatch(effect, null, options);\r\n}\r\nfunction watchPostEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(options || {}, { flush: 'post' })\r\n : { flush: 'post' }));\r\n}\r\nfunction watchSyncEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(options || {}, { flush: 'sync' })\r\n : { flush: 'sync' }));\r\n}\r\n// initial value for watchers to trigger on undefined initial values\r\nconst INITIAL_WATCHER_VALUE = {};\r\n// implementation\r\nfunction watch(source, cb, options) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) {\r\n warn(`\\`watch(fn, options?)\\` signature has been moved to a separate API. ` +\r\n `Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only ` +\r\n `supports \\`watch(source, cb, options?) signature.`);\r\n }\r\n return doWatch(source, cb, options);\r\n}\r\nfunction doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {\r\n if ((process.env.NODE_ENV !== 'production') && !cb) {\r\n if (immediate !== undefined) {\r\n warn(`watch() \"immediate\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n if (deep !== undefined) {\r\n warn(`watch() \"deep\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n }\r\n const warnInvalidSource = (s) => {\r\n warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +\r\n `a reactive object, or an array of these types.`);\r\n };\r\n const instance = currentInstance;\r\n let getter;\r\n let forceTrigger = false;\r\n let isMultiSource = false;\r\n if (isRef(source)) {\r\n getter = () => source.value;\r\n forceTrigger = !!source._shallow;\r\n }\r\n else if (isReactive(source)) {\r\n getter = () => source;\r\n deep = true;\r\n }\r\n else if (isArray(source)) {\r\n isMultiSource = true;\r\n forceTrigger = source.some(isReactive);\r\n getter = () => source.map(s => {\r\n if (isRef(s)) {\r\n return s.value;\r\n }\r\n else if (isReactive(s)) {\r\n return traverse(s);\r\n }\r\n else if (isFunction(s)) {\r\n return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(s);\r\n }\r\n });\r\n }\r\n else if (isFunction(source)) {\r\n if (cb) {\r\n // getter with cb\r\n getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);\r\n }\r\n else {\r\n // no cb -> simple effect\r\n getter = () => {\r\n if (instance && instance.isUnmounted) {\r\n return;\r\n }\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onInvalidate]);\r\n };\r\n }\r\n }\r\n else {\r\n getter = NOOP;\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(source);\r\n }\r\n if (cb && deep) {\r\n const baseGetter = getter;\r\n getter = () => traverse(baseGetter());\r\n }\r\n let cleanup;\r\n let onInvalidate = (fn) => {\r\n cleanup = effect.onStop = () => {\r\n callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);\r\n };\r\n };\r\n // in SSR there is no need to setup an actual effect, and it should be noop\r\n // unless it's eager\r\n if (isInSSRComponentSetup) {\r\n // we will also not call the invalidate callback (+ runner is not set up)\r\n onInvalidate = NOOP;\r\n if (!cb) {\r\n getter();\r\n }\r\n else if (immediate) {\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n getter(),\r\n isMultiSource ? [] : undefined,\r\n onInvalidate\r\n ]);\r\n }\r\n return NOOP;\r\n }\r\n let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\r\n const job = () => {\r\n if (!effect.active) {\r\n return;\r\n }\r\n if (cb) {\r\n // watch(source, cb)\r\n const newValue = effect.run();\r\n if (deep ||\r\n forceTrigger ||\r\n (isMultiSource\r\n ? newValue.some((v, i) => hasChanged(v, oldValue[i]))\r\n : hasChanged(newValue, oldValue)) ||\r\n (false )) {\r\n // cleanup before running cb again\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [\r\n newValue,\r\n // pass undefined as the old value when it's changed for the first time\r\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\r\n onInvalidate\r\n ]);\r\n oldValue = newValue;\r\n }\r\n }\r\n else {\r\n // watchEffect\r\n effect.run();\r\n }\r\n };\r\n // important: mark the job as a watcher callback so that scheduler knows\r\n // it is allowed to self-trigger (#1727)\r\n job.allowRecurse = !!cb;\r\n let scheduler;\r\n if (flush === 'sync') {\r\n scheduler = job; // the scheduler function gets called directly\r\n }\r\n else if (flush === 'post') {\r\n scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);\r\n }\r\n else {\r\n // default: 'pre'\r\n scheduler = () => {\r\n if (!instance || instance.isMounted) {\r\n queuePreFlushCb(job);\r\n }\r\n else {\r\n // with 'pre' option, the first call must happen before\r\n // the component is mounted so it is called synchronously.\r\n job();\r\n }\r\n };\r\n }\r\n const effect = new ReactiveEffect(getter, scheduler);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = onTrack;\r\n effect.onTrigger = onTrigger;\r\n }\r\n // initial run\r\n if (cb) {\r\n if (immediate) {\r\n job();\r\n }\r\n else {\r\n oldValue = effect.run();\r\n }\r\n }\r\n else if (flush === 'post') {\r\n queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);\r\n }\r\n else {\r\n effect.run();\r\n }\r\n return () => {\r\n effect.stop();\r\n if (instance && instance.scope) {\r\n remove(instance.scope.effects, effect);\r\n }\r\n };\r\n}\r\n// this.$watch\r\nfunction instanceWatch(source, value, options) {\r\n const publicThis = this.proxy;\r\n const getter = isString(source)\r\n ? source.includes('.')\r\n ? createPathGetter(publicThis, source)\r\n : () => publicThis[source]\r\n : source.bind(publicThis, publicThis);\r\n let cb;\r\n if (isFunction(value)) {\r\n cb = value;\r\n }\r\n else {\r\n cb = value.handler;\r\n options = value;\r\n }\r\n const cur = currentInstance;\r\n setCurrentInstance(this);\r\n const res = doWatch(getter, cb.bind(publicThis), options);\r\n if (cur) {\r\n setCurrentInstance(cur);\r\n }\r\n else {\r\n unsetCurrentInstance();\r\n }\r\n return res;\r\n}\r\nfunction createPathGetter(ctx, path) {\r\n const segments = path.split('.');\r\n return () => {\r\n let cur = ctx;\r\n for (let i = 0; i < segments.length && cur; i++) {\r\n cur = cur[segments[i]];\r\n }\r\n return cur;\r\n };\r\n}\r\nfunction traverse(value, seen) {\r\n if (!isObject(value) || value[\"__v_skip\" /* SKIP */]) {\r\n return value;\r\n }\r\n seen = seen || new Set();\r\n if (seen.has(value)) {\r\n return value;\r\n }\r\n seen.add(value);\r\n if (isRef(value)) {\r\n traverse(value.value, seen);\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n traverse(value[i], seen);\r\n }\r\n }\r\n else if (isSet(value) || isMap(value)) {\r\n value.forEach((v) => {\r\n traverse(v, seen);\r\n });\r\n }\r\n else if (isPlainObject(value)) {\r\n for (const key in value) {\r\n traverse(value[key], seen);\r\n }\r\n }\r\n return value;\r\n}\n\n// dev only\r\nconst warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +\r\n `<script setup> of a single file component. Its arguments should be ` +\r\n `compiled away and passing it at runtime has no effect.`);\r\n// implementation\r\nfunction defineProps() {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineProps`);\r\n }\r\n return null;\r\n}\r\n// implementation\r\nfunction defineEmits() {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineEmits`);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Vue `<script setup>` compiler macro for declaring a component's exposed\r\n * instance properties when it is accessed by a parent component via template\r\n * refs.\r\n *\r\n * `<script setup>` components are closed by default - i.e. varaibles inside\r\n * the `<script setup>` scope is not exposed to parent unless explicitly exposed\r\n * via `defineExpose`.\r\n *\r\n * This is only usable inside `<script setup>`, is compiled away in the\r\n * output and should **not** be actually called at runtime.\r\n */\r\nfunction defineExpose(exposed) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`defineExpose`);\r\n }\r\n}\r\n/**\r\n * Vue `<script setup>` compiler macro for providing props default values when\r\n * using type-based `defineProps` declaration.\r\n *\r\n * Example usage:\r\n * ```ts\r\n * withDefaults(defineProps<{\r\n * size?: number\r\n * labels?: string[]\r\n * }>(), {\r\n * size: 3,\r\n * labels: () => ['default label']\r\n * })\r\n * ```\r\n *\r\n * This is only usable inside `<script setup>`, is compiled away in the output\r\n * and should **not** be actually called at runtime.\r\n */\r\nfunction withDefaults(props, defaults) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warnRuntimeUsage(`withDefaults`);\r\n }\r\n return null;\r\n}\r\nfunction useSlots() {\r\n return getContext().slots;\r\n}\r\nfunction useAttrs() {\r\n return getContext().attrs;\r\n}\r\nfunction getContext() {\r\n const i = getCurrentInstance();\r\n if ((process.env.NODE_ENV !== 'production') && !i) {\r\n warn(`useContext() called without active instance.`);\r\n }\r\n return i.setupContext || (i.setupContext = createSetupContext(i));\r\n}\r\n/**\r\n * Runtime helper for merging default declarations. Imported by compiled code\r\n * only.\r\n * @internal\r\n */\r\nfunction mergeDefaults(raw, defaults) {\r\n const props = isArray(raw)\r\n ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {})\r\n : raw;\r\n for (const key in defaults) {\r\n const opt = props[key];\r\n if (opt) {\r\n if (isArray(opt) || isFunction(opt)) {\r\n props[key] = { type: opt, default: defaults[key] };\r\n }\r\n else {\r\n opt.default = defaults[key];\r\n }\r\n }\r\n else if (opt === null) {\r\n props[key] = { default: defaults[key] };\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`props default key \"${key}\" has no corresponding declaration.`);\r\n }\r\n }\r\n return props;\r\n}\r\n/**\r\n * Used to create a proxy for the rest element when destructuring props with\r\n * defineProps().\r\n * @internal\r\n */\r\nfunction createPropsRestProxy(props, excludedKeys) {\r\n const ret = {};\r\n for (const key in props) {\r\n if (!excludedKeys.includes(key)) {\r\n Object.defineProperty(ret, key, {\r\n enumerable: true,\r\n get: () => props[key]\r\n });\r\n }\r\n }\r\n return ret;\r\n}\r\n/**\r\n * `<script setup>` helper for persisting the current instance context over\r\n * async/await flows.\r\n *\r\n * `@vue/compiler-sfc` converts the following:\r\n *\r\n * ```ts\r\n * const x = await foo()\r\n * ```\r\n *\r\n * into:\r\n *\r\n * ```ts\r\n * let __temp, __restore\r\n * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp)\r\n * ```\r\n * @internal\r\n */\r\nfunction withAsyncContext(getAwaitable) {\r\n const ctx = getCurrentInstance();\r\n if ((process.env.NODE_ENV !== 'production') && !ctx) {\r\n warn(`withAsyncContext called without active current instance. ` +\r\n `This is likely a bug.`);\r\n }\r\n let awaitable = getAwaitable();\r\n unsetCurrentInstance();\r\n if (isPromise(awaitable)) {\r\n awaitable = awaitable.catch(e => {\r\n setCurrentInstance(ctx);\r\n throw e;\r\n });\r\n }\r\n return [awaitable, () => setCurrentInstance(ctx)];\r\n}\n\n// Actual implementation\r\nfunction h(type, propsOrChildren, children) {\r\n const l = arguments.length;\r\n if (l === 2) {\r\n if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {\r\n // single vnode without props\r\n if (isVNode(propsOrChildren)) {\r\n return createVNode(type, null, [propsOrChildren]);\r\n }\r\n // props without children\r\n return createVNode(type, propsOrChildren);\r\n }\r\n else {\r\n // omit props\r\n return createVNode(type, null, propsOrChildren);\r\n }\r\n }\r\n else {\r\n if (l > 3) {\r\n children = Array.prototype.slice.call(arguments, 2);\r\n }\r\n else if (l === 3 && isVNode(children)) {\r\n children = [children];\r\n }\r\n return createVNode(type, propsOrChildren, children);\r\n }\r\n}\n\nconst ssrContextKey = Symbol((process.env.NODE_ENV !== 'production') ? `ssrContext` : ``);\r\nconst useSSRContext = () => {\r\n {\r\n const ctx = inject(ssrContextKey);\r\n if (!ctx) {\r\n warn(`Server rendering context not provided. Make sure to only call ` +\r\n `useSSRContext() conditionally in the server build.`);\r\n }\r\n return ctx;\r\n }\r\n};\n\nfunction initCustomFormatter() {\r\n /* eslint-disable no-restricted-globals */\r\n if (!(process.env.NODE_ENV !== 'production') || typeof window === 'undefined') {\r\n return;\r\n }\r\n const vueStyle = { style: 'color:#3ba776' };\r\n const numberStyle = { style: 'color:#0b1bc9' };\r\n const stringStyle = { style: 'color:#b62e24' };\r\n const keywordStyle = { style: 'color:#9d288c' };\r\n // custom formatter for Chrome\r\n // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html\r\n const formatter = {\r\n header(obj) {\r\n // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup\r\n if (!isObject(obj)) {\r\n return null;\r\n }\r\n if (obj.__isVue) {\r\n return ['div', vueStyle, `VueInstance`];\r\n }\r\n else if (isRef(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, genRefFlag(obj)],\r\n '<',\r\n formatValue(obj.value),\r\n `>`\r\n ];\r\n }\r\n else if (isReactive(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, 'Reactive'],\r\n '<',\r\n formatValue(obj),\r\n `>${isReadonly(obj) ? ` (readonly)` : ``}`\r\n ];\r\n }\r\n else if (isReadonly(obj)) {\r\n return [\r\n 'div',\r\n {},\r\n ['span', vueStyle, 'Readonly'],\r\n '<',\r\n formatValue(obj),\r\n '>'\r\n ];\r\n }\r\n return null;\r\n },\r\n hasBody(obj) {\r\n return obj && obj.__isVue;\r\n },\r\n body(obj) {\r\n if (obj && obj.__isVue) {\r\n return [\r\n 'div',\r\n {},\r\n ...formatInstance(obj.$)\r\n ];\r\n }\r\n }\r\n };\r\n function formatInstance(instance) {\r\n const blocks = [];\r\n if (instance.type.props && instance.props) {\r\n blocks.push(createInstanceBlock('props', toRaw(instance.props)));\r\n }\r\n if (instance.setupState !== EMPTY_OBJ) {\r\n blocks.push(createInstanceBlock('setup', instance.setupState));\r\n }\r\n if (instance.data !== EMPTY_OBJ) {\r\n blocks.push(createInstanceBlock('data', toRaw(instance.data)));\r\n }\r\n const computed = extractKeys(instance, 'computed');\r\n if (computed) {\r\n blocks.push(createInstanceBlock('computed', computed));\r\n }\r\n const injected = extractKeys(instance, 'inject');\r\n if (injected) {\r\n blocks.push(createInstanceBlock('injected', injected));\r\n }\r\n blocks.push([\r\n 'div',\r\n {},\r\n [\r\n 'span',\r\n {\r\n style: keywordStyle.style + ';opacity:0.66'\r\n },\r\n '$ (internal): '\r\n ],\r\n ['object', { object: instance }]\r\n ]);\r\n return blocks;\r\n }\r\n function createInstanceBlock(type, target) {\r\n target = extend({}, target);\r\n if (!Object.keys(target).length) {\r\n return ['span', {}];\r\n }\r\n return [\r\n 'div',\r\n { style: 'line-height:1.25em;margin-bottom:0.6em' },\r\n [\r\n 'div',\r\n {\r\n style: 'color:#476582'\r\n },\r\n type\r\n ],\r\n [\r\n 'div',\r\n {\r\n style: 'padding-left:1.25em'\r\n },\r\n ...Object.keys(target).map(key => {\r\n return [\r\n 'div',\r\n {},\r\n ['span', keywordStyle, key + ': '],\r\n formatValue(target[key], false)\r\n ];\r\n })\r\n ]\r\n ];\r\n }\r\n function formatValue(v, asRaw = true) {\r\n if (typeof v === 'number') {\r\n return ['span', numberStyle, v];\r\n }\r\n else if (typeof v === 'string') {\r\n return ['span', stringStyle, JSON.stringify(v)];\r\n }\r\n else if (typeof v === 'boolean') {\r\n return ['span', keywordStyle, v];\r\n }\r\n else if (isObject(v)) {\r\n return ['object', { object: asRaw ? toRaw(v) : v }];\r\n }\r\n else {\r\n return ['span', stringStyle, String(v)];\r\n }\r\n }\r\n function extractKeys(instance, type) {\r\n const Comp = instance.type;\r\n if (isFunction(Comp)) {\r\n return;\r\n }\r\n const extracted = {};\r\n for (const key in instance.ctx) {\r\n if (isKeyOfType(Comp, key, type)) {\r\n extracted[key] = instance.ctx[key];\r\n }\r\n }\r\n return extracted;\r\n }\r\n function isKeyOfType(Comp, key, type) {\r\n const opts = Comp[type];\r\n if ((isArray(opts) && opts.includes(key)) ||\r\n (isObject(opts) && key in opts)) {\r\n return true;\r\n }\r\n if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {\r\n return true;\r\n }\r\n if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) {\r\n return true;\r\n }\r\n }\r\n function genRefFlag(v) {\r\n if (v._shallow) {\r\n return `ShallowRef`;\r\n }\r\n if (v.effect) {\r\n return `ComputedRef`;\r\n }\r\n return `Ref`;\r\n }\r\n if (window.devtoolsFormatters) {\r\n window.devtoolsFormatters.push(formatter);\r\n }\r\n else {\r\n window.devtoolsFormatters = [formatter];\r\n }\r\n}\n\nfunction withMemo(memo, render, cache, index) {\r\n const cached = cache[index];\r\n if (cached && isMemoSame(cached, memo)) {\r\n return cached;\r\n }\r\n const ret = render();\r\n // shallow clone\r\n ret.memo = memo.slice();\r\n return (cache[index] = ret);\r\n}\r\nfunction isMemoSame(cached, memo) {\r\n const prev = cached.memo;\r\n if (prev.length != memo.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < prev.length; i++) {\r\n if (prev[i] !== memo[i]) {\r\n return false;\r\n }\r\n }\r\n // make sure to let parent block track it when returning cached\r\n if (isBlockTreeEnabled > 0 && currentBlock) {\r\n currentBlock.push(cached);\r\n }\r\n return true;\r\n}\n\n// Core API ------------------------------------------------------------------\r\nconst version = \"3.2.26\";\r\nconst _ssrUtils = {\r\n createComponentInstance,\r\n setupComponent,\r\n renderComponentRoot,\r\n setCurrentRenderingInstance,\r\n isVNode,\r\n normalizeVNode\r\n};\r\n/**\r\n * SSR utils for \\@vue/server-renderer. Only exposed in cjs builds.\r\n * @internal\r\n */\r\nconst ssrUtils = (_ssrUtils );\r\n/**\r\n * @internal only exposed in compat builds\r\n */\r\nconst resolveFilter = null;\r\n/**\r\n * @internal only exposed in compat builds.\r\n */\r\nconst compatUtils = (null);\n\nexport { BaseTransition, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, callWithAsyncErrorHandling, callWithErrorHandling, cloneVNode, compatUtils, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineProps, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, queuePostFlushCb, registerRuntimeCompiler, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, ssrContextKey, ssrUtils, toHandlers, transformVNodeArgs, useAttrs, useSSRContext, useSlots, useTransitionState, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };\n","import { camelize, warn, callWithAsyncErrorHandling, defineComponent, nextTick, createVNode, getCurrentInstance, watchPostEffect, onMounted, onUnmounted, Fragment, Static, h, BaseTransition, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, createRenderer, isRuntimeOnly, createHydrationRenderer } from '@vue/runtime-core';\nexport * from '@vue/runtime-core';\nimport { isString, isArray, hyphenate, capitalize, isSpecialBooleanAttr, includeBooleanAttr, isOn, isModelListener, isFunction, toNumber, camelize as camelize$1, extend, EMPTY_OBJ, isObject, invokeArrayFns, looseIndexOf, isSet, looseEqual, isHTMLTag, isSVGTag } from '@vue/shared';\n\nconst svgNS = 'http://www.w3.org/2000/svg';\r\nconst doc = (typeof document !== 'undefined' ? document : null);\r\nconst staticTemplateCache = new Map();\r\nconst nodeOps = {\r\n insert: (child, parent, anchor) => {\r\n parent.insertBefore(child, anchor || null);\r\n },\r\n remove: child => {\r\n const parent = child.parentNode;\r\n if (parent) {\r\n parent.removeChild(child);\r\n }\r\n },\r\n createElement: (tag, isSVG, is, props) => {\r\n const el = isSVG\r\n ? doc.createElementNS(svgNS, tag)\r\n : doc.createElement(tag, is ? { is } : undefined);\r\n if (tag === 'select' && props && props.multiple != null) {\r\n el.setAttribute('multiple', props.multiple);\r\n }\r\n return el;\r\n },\r\n createText: text => doc.createTextNode(text),\r\n createComment: text => doc.createComment(text),\r\n setText: (node, text) => {\r\n node.nodeValue = text;\r\n },\r\n setElementText: (el, text) => {\r\n el.textContent = text;\r\n },\r\n parentNode: node => node.parentNode,\r\n nextSibling: node => node.nextSibling,\r\n querySelector: selector => doc.querySelector(selector),\r\n setScopeId(el, id) {\r\n el.setAttribute(id, '');\r\n },\r\n cloneNode(el) {\r\n const cloned = el.cloneNode(true);\r\n // #3072\r\n // - in `patchDOMProp`, we store the actual value in the `el._value` property.\r\n // - normally, elements using `:value` bindings will not be hoisted, but if\r\n // the bound value is a constant, e.g. `:value=\"true\"` - they do get\r\n // hoisted.\r\n // - in production, hoisted nodes are cloned when subsequent inserts, but\r\n // cloneNode() does not copy the custom property we attached.\r\n // - This may need to account for other custom DOM properties we attach to\r\n // elements in addition to `_value` in the future.\r\n if (`_value` in el) {\r\n cloned._value = el._value;\r\n }\r\n return cloned;\r\n },\r\n // __UNSAFE__\r\n // Reason: innerHTML.\r\n // Static content here can only come from compiled templates.\r\n // As long as the user only uses trusted templates, this is safe.\r\n insertStaticContent(content, parent, anchor, isSVG) {\r\n // <parent> before | first ... last | anchor </parent>\r\n const before = anchor ? anchor.previousSibling : parent.lastChild;\r\n let template = staticTemplateCache.get(content);\r\n if (!template) {\r\n const t = doc.createElement('template');\r\n t.innerHTML = isSVG ? `<svg>${content}</svg>` : content;\r\n template = t.content;\r\n if (isSVG) {\r\n // remove outer svg wrapper\r\n const wrapper = template.firstChild;\r\n while (wrapper.firstChild) {\r\n template.appendChild(wrapper.firstChild);\r\n }\r\n template.removeChild(wrapper);\r\n }\r\n staticTemplateCache.set(content, template);\r\n }\r\n parent.insertBefore(template.cloneNode(true), anchor);\r\n return [\r\n // first\r\n before ? before.nextSibling : parent.firstChild,\r\n // last\r\n anchor ? anchor.previousSibling : parent.lastChild\r\n ];\r\n }\r\n};\n\n// compiler should normalize class + :class bindings on the same element\r\n// into a single binding ['staticClass', dynamic]\r\nfunction patchClass(el, value, isSVG) {\r\n // directly setting className should be faster than setAttribute in theory\r\n // if this is an element during a transition, take the temporary transition\r\n // classes into account.\r\n const transitionClasses = el._vtc;\r\n if (transitionClasses) {\r\n value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' ');\r\n }\r\n if (value == null) {\r\n el.removeAttribute('class');\r\n }\r\n else if (isSVG) {\r\n el.setAttribute('class', value);\r\n }\r\n else {\r\n el.className = value;\r\n }\r\n}\n\nfunction patchStyle(el, prev, next) {\r\n const style = el.style;\r\n const isCssString = isString(next);\r\n if (next && !isCssString) {\r\n for (const key in next) {\r\n setStyle(style, key, next[key]);\r\n }\r\n if (prev && !isString(prev)) {\r\n for (const key in prev) {\r\n if (next[key] == null) {\r\n setStyle(style, key, '');\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n const currentDisplay = style.display;\r\n if (isCssString) {\r\n if (prev !== next) {\r\n style.cssText = next;\r\n }\r\n }\r\n else if (prev) {\r\n el.removeAttribute('style');\r\n }\r\n // indicates that the `display` of the element is controlled by `v-show`,\r\n // so we always keep the current `display` value regardless of the `style`\r\n // value, thus handing over control to `v-show`.\r\n if ('_vod' in el) {\r\n style.display = currentDisplay;\r\n }\r\n }\r\n}\r\nconst importantRE = /\\s*!important$/;\r\nfunction setStyle(style, name, val) {\r\n if (isArray(val)) {\r\n val.forEach(v => setStyle(style, name, v));\r\n }\r\n else {\r\n if (name.startsWith('--')) {\r\n // custom property definition\r\n style.setProperty(name, val);\r\n }\r\n else {\r\n const prefixed = autoPrefix(style, name);\r\n if (importantRE.test(val)) {\r\n // !important\r\n style.setProperty(hyphenate(prefixed), val.replace(importantRE, ''), 'important');\r\n }\r\n else {\r\n style[prefixed] = val;\r\n }\r\n }\r\n }\r\n}\r\nconst prefixes = ['Webkit', 'Moz', 'ms'];\r\nconst prefixCache = {};\r\nfunction autoPrefix(style, rawName) {\r\n const cached = prefixCache[rawName];\r\n if (cached) {\r\n return cached;\r\n }\r\n let name = camelize(rawName);\r\n if (name !== 'filter' && name in style) {\r\n return (prefixCache[rawName] = name);\r\n }\r\n name = capitalize(name);\r\n for (let i = 0; i < prefixes.length; i++) {\r\n const prefixed = prefixes[i] + name;\r\n if (prefixed in style) {\r\n return (prefixCache[rawName] = prefixed);\r\n }\r\n }\r\n return rawName;\r\n}\n\nconst xlinkNS = 'http://www.w3.org/1999/xlink';\r\nfunction patchAttr(el, key, value, isSVG, instance) {\r\n if (isSVG && key.startsWith('xlink:')) {\r\n if (value == null) {\r\n el.removeAttributeNS(xlinkNS, key.slice(6, key.length));\r\n }\r\n else {\r\n el.setAttributeNS(xlinkNS, key, value);\r\n }\r\n }\r\n else {\r\n // note we are only checking boolean attributes that don't have a\r\n // corresponding dom prop of the same name here.\r\n const isBoolean = isSpecialBooleanAttr(key);\r\n if (value == null || (isBoolean && !includeBooleanAttr(value))) {\r\n el.removeAttribute(key);\r\n }\r\n else {\r\n el.setAttribute(key, isBoolean ? '' : value);\r\n }\r\n }\r\n}\n\n// __UNSAFE__\r\n// functions. The user is responsible for using them with only trusted content.\r\nfunction patchDOMProp(el, key, value, \r\n// the following args are passed only due to potential innerHTML/textContent\r\n// overriding existing VNodes, in which case the old tree must be properly\r\n// unmounted.\r\nprevChildren, parentComponent, parentSuspense, unmountChildren) {\r\n if (key === 'innerHTML' || key === 'textContent') {\r\n if (prevChildren) {\r\n unmountChildren(prevChildren, parentComponent, parentSuspense);\r\n }\r\n el[key] = value == null ? '' : value;\r\n return;\r\n }\r\n if (key === 'value' &&\r\n el.tagName !== 'PROGRESS' &&\r\n // custom elements may use _value internally\r\n !el.tagName.includes('-')) {\r\n // store value as _value as well since\r\n // non-string values will be stringified.\r\n el._value = value;\r\n const newValue = value == null ? '' : value;\r\n if (el.value !== newValue ||\r\n // #4956: always set for OPTION elements because its value falls back to\r\n // textContent if no value attribute is present. And setting .value for\r\n // OPTION has no side effect\r\n el.tagName === 'OPTION') {\r\n el.value = newValue;\r\n }\r\n if (value == null) {\r\n el.removeAttribute(key);\r\n }\r\n return;\r\n }\r\n if (value === '' || value == null) {\r\n const type = typeof el[key];\r\n if (type === 'boolean') {\r\n // e.g. <select multiple> compiles to { multiple: '' }\r\n el[key] = includeBooleanAttr(value);\r\n return;\r\n }\r\n else if (value == null && type === 'string') {\r\n // e.g. <div :id=\"null\">\r\n el[key] = '';\r\n el.removeAttribute(key);\r\n return;\r\n }\r\n else if (type === 'number') {\r\n // e.g. <img :width=\"null\">\r\n // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error\r\n try {\r\n el[key] = 0;\r\n }\r\n catch (_a) { }\r\n el.removeAttribute(key);\r\n return;\r\n }\r\n }\r\n // some properties perform value validation and throw\r\n try {\r\n el[key] = value;\r\n }\r\n catch (e) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Failed setting prop \"${key}\" on <${el.tagName.toLowerCase()}>: ` +\r\n `value ${value} is invalid.`, e);\r\n }\r\n }\r\n}\n\n// Async edge case fix requires storing an event listener's attach timestamp.\r\nlet _getNow = Date.now;\r\nlet skipTimestampCheck = false;\r\nif (typeof window !== 'undefined') {\r\n // Determine what event timestamp the browser is using. Annoyingly, the\r\n // timestamp can either be hi-res (relative to page load) or low-res\r\n // (relative to UNIX epoch), so in order to compare time we have to use the\r\n // same timestamp type when saving the flush timestamp.\r\n if (_getNow() > document.createEvent('Event').timeStamp) {\r\n // if the low-res timestamp which is bigger than the event timestamp\r\n // (which is evaluated AFTER) it means the event is using a hi-res timestamp,\r\n // and we need to use the hi-res version for event listeners as well.\r\n _getNow = () => performance.now();\r\n }\r\n // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation\r\n // and does not fire microtasks in between event propagation, so safe to exclude.\r\n const ffMatch = navigator.userAgent.match(/firefox\\/(\\d+)/i);\r\n skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53);\r\n}\r\n// To avoid the overhead of repeatedly calling performance.now(), we cache\r\n// and use the same timestamp for all event listeners attached in the same tick.\r\nlet cachedNow = 0;\r\nconst p = Promise.resolve();\r\nconst reset = () => {\r\n cachedNow = 0;\r\n};\r\nconst getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow()));\r\nfunction addEventListener(el, event, handler, options) {\r\n el.addEventListener(event, handler, options);\r\n}\r\nfunction removeEventListener(el, event, handler, options) {\r\n el.removeEventListener(event, handler, options);\r\n}\r\nfunction patchEvent(el, rawName, prevValue, nextValue, instance = null) {\r\n // vei = vue event invokers\r\n const invokers = el._vei || (el._vei = {});\r\n const existingInvoker = invokers[rawName];\r\n if (nextValue && existingInvoker) {\r\n // patch\r\n existingInvoker.value = nextValue;\r\n }\r\n else {\r\n const [name, options] = parseName(rawName);\r\n if (nextValue) {\r\n // add\r\n const invoker = (invokers[rawName] = createInvoker(nextValue, instance));\r\n addEventListener(el, name, invoker, options);\r\n }\r\n else if (existingInvoker) {\r\n // remove\r\n removeEventListener(el, name, existingInvoker, options);\r\n invokers[rawName] = undefined;\r\n }\r\n }\r\n}\r\nconst optionsModifierRE = /(?:Once|Passive|Capture)$/;\r\nfunction parseName(name) {\r\n let options;\r\n if (optionsModifierRE.test(name)) {\r\n options = {};\r\n let m;\r\n while ((m = name.match(optionsModifierRE))) {\r\n name = name.slice(0, name.length - m[0].length);\r\n options[m[0].toLowerCase()] = true;\r\n }\r\n }\r\n return [hyphenate(name.slice(2)), options];\r\n}\r\nfunction createInvoker(initialValue, instance) {\r\n const invoker = (e) => {\r\n // async edge case #6566: inner click event triggers patch, event handler\r\n // attached to outer element during patch, and triggered again. This\r\n // happens because browsers fire microtask ticks between event propagation.\r\n // the solution is simple: we save the timestamp when a handler is attached,\r\n // and the handler would only fire if the event passed to it was fired\r\n // AFTER it was attached.\r\n const timeStamp = e.timeStamp || _getNow();\r\n if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {\r\n callWithAsyncErrorHandling(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);\r\n }\r\n };\r\n invoker.value = initialValue;\r\n invoker.attached = getNow();\r\n return invoker;\r\n}\r\nfunction patchStopImmediatePropagation(e, value) {\r\n if (isArray(value)) {\r\n const originalStop = e.stopImmediatePropagation;\r\n e.stopImmediatePropagation = () => {\r\n originalStop.call(e);\r\n e._stopped = true;\r\n };\r\n return value.map(fn => (e) => !e._stopped && fn(e));\r\n }\r\n else {\r\n return value;\r\n }\r\n}\n\nconst nativeOnRE = /^on[a-z]/;\r\nconst patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {\r\n if (key === 'class') {\r\n patchClass(el, nextValue, isSVG);\r\n }\r\n else if (key === 'style') {\r\n patchStyle(el, prevValue, nextValue);\r\n }\r\n else if (isOn(key)) {\r\n // ignore v-model listeners\r\n if (!isModelListener(key)) {\r\n patchEvent(el, key, prevValue, nextValue, parentComponent);\r\n }\r\n }\r\n else if (key[0] === '.'\r\n ? ((key = key.slice(1)), true)\r\n : key[0] === '^'\r\n ? ((key = key.slice(1)), false)\r\n : shouldSetAsProp(el, key, nextValue, isSVG)) {\r\n patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren);\r\n }\r\n else {\r\n // special case for <input v-model type=\"checkbox\"> with\r\n // :true-value & :false-value\r\n // store value as dom properties since non-string values will be\r\n // stringified.\r\n if (key === 'true-value') {\r\n el._trueValue = nextValue;\r\n }\r\n else if (key === 'false-value') {\r\n el._falseValue = nextValue;\r\n }\r\n patchAttr(el, key, nextValue, isSVG);\r\n }\r\n};\r\nfunction shouldSetAsProp(el, key, value, isSVG) {\r\n if (isSVG) {\r\n // most keys must be set as attribute on svg elements to work\r\n // ...except innerHTML & textContent\r\n if (key === 'innerHTML' || key === 'textContent') {\r\n return true;\r\n }\r\n // or native onclick with function values\r\n if (key in el && nativeOnRE.test(key) && isFunction(value)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n // spellcheck and draggable are numerated attrs, however their\r\n // corresponding DOM properties are actually booleans - this leads to\r\n // setting it with a string \"false\" value leading it to be coerced to\r\n // `true`, so we need to always treat them as attributes.\r\n // Note that `contentEditable` doesn't have this problem: its DOM\r\n // property is also enumerated string values.\r\n if (key === 'spellcheck' || key === 'draggable') {\r\n return false;\r\n }\r\n // #1787, #2840 form property on form elements is readonly and must be set as\r\n // attribute.\r\n if (key === 'form') {\r\n return false;\r\n }\r\n // #1526 <input list> must be set as attribute\r\n if (key === 'list' && el.tagName === 'INPUT') {\r\n return false;\r\n }\r\n // #2766 <textarea type> must be set as attribute\r\n if (key === 'type' && el.tagName === 'TEXTAREA') {\r\n return false;\r\n }\r\n // native onclick with string value, must be set as attribute\r\n if (nativeOnRE.test(key) && isString(value)) {\r\n return false;\r\n }\r\n return key in el;\r\n}\n\nfunction defineCustomElement(options, hydate) {\r\n const Comp = defineComponent(options);\r\n class VueCustomElement extends VueElement {\r\n constructor(initialProps) {\r\n super(Comp, initialProps, hydate);\r\n }\r\n }\r\n VueCustomElement.def = Comp;\r\n return VueCustomElement;\r\n}\r\nconst defineSSRCustomElement = ((options) => {\r\n // @ts-ignore\r\n return defineCustomElement(options, hydrate);\r\n});\r\nconst BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class {\r\n});\r\nclass VueElement extends BaseClass {\r\n constructor(_def, _props = {}, hydrate) {\r\n super();\r\n this._def = _def;\r\n this._props = _props;\r\n /**\r\n * @internal\r\n */\r\n this._instance = null;\r\n this._connected = false;\r\n this._resolved = false;\r\n this._numberProps = null;\r\n if (this.shadowRoot && hydrate) {\r\n hydrate(this._createVNode(), this.shadowRoot);\r\n }\r\n else {\r\n if ((process.env.NODE_ENV !== 'production') && this.shadowRoot) {\r\n warn(`Custom element has pre-rendered declarative shadow root but is not ` +\r\n `defined as hydratable. Use \\`defineSSRCustomElement\\`.`);\r\n }\r\n this.attachShadow({ mode: 'open' });\r\n }\r\n }\r\n connectedCallback() {\r\n this._connected = true;\r\n if (!this._instance) {\r\n this._resolveDef();\r\n }\r\n }\r\n disconnectedCallback() {\r\n this._connected = false;\r\n nextTick(() => {\r\n if (!this._connected) {\r\n render(null, this.shadowRoot);\r\n this._instance = null;\r\n }\r\n });\r\n }\r\n /**\r\n * resolve inner component definition (handle possible async component)\r\n */\r\n _resolveDef() {\r\n if (this._resolved) {\r\n return;\r\n }\r\n this._resolved = true;\r\n // set initial attrs\r\n for (let i = 0; i < this.attributes.length; i++) {\r\n this._setAttr(this.attributes[i].name);\r\n }\r\n // watch future attr changes\r\n new MutationObserver(mutations => {\r\n for (const m of mutations) {\r\n this._setAttr(m.attributeName);\r\n }\r\n }).observe(this, { attributes: true });\r\n const resolve = (def) => {\r\n const { props, styles } = def;\r\n const hasOptions = !isArray(props);\r\n const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [];\r\n // cast Number-type props set before resolve\r\n let numberProps;\r\n if (hasOptions) {\r\n for (const key in this._props) {\r\n const opt = props[key];\r\n if (opt === Number || (opt && opt.type === Number)) {\r\n this._props[key] = toNumber(this._props[key]);\r\n (numberProps || (numberProps = Object.create(null)))[key] = true;\r\n }\r\n }\r\n }\r\n this._numberProps = numberProps;\r\n // check if there are props set pre-upgrade or connect\r\n for (const key of Object.keys(this)) {\r\n if (key[0] !== '_') {\r\n this._setProp(key, this[key], true, false);\r\n }\r\n }\r\n // defining getter/setters on prototype\r\n for (const key of rawKeys.map(camelize$1)) {\r\n Object.defineProperty(this, key, {\r\n get() {\r\n return this._getProp(key);\r\n },\r\n set(val) {\r\n this._setProp(key, val);\r\n }\r\n });\r\n }\r\n // apply CSS\r\n this._applyStyles(styles);\r\n // initial render\r\n this._update();\r\n };\r\n const asyncDef = this._def.__asyncLoader;\r\n if (asyncDef) {\r\n asyncDef().then(resolve);\r\n }\r\n else {\r\n resolve(this._def);\r\n }\r\n }\r\n _setAttr(key) {\r\n let value = this.getAttribute(key);\r\n if (this._numberProps && this._numberProps[key]) {\r\n value = toNumber(value);\r\n }\r\n this._setProp(camelize$1(key), value, false);\r\n }\r\n /**\r\n * @internal\r\n */\r\n _getProp(key) {\r\n return this._props[key];\r\n }\r\n /**\r\n * @internal\r\n */\r\n _setProp(key, val, shouldReflect = true, shouldUpdate = true) {\r\n if (val !== this._props[key]) {\r\n this._props[key] = val;\r\n if (shouldUpdate && this._instance) {\r\n this._update();\r\n }\r\n // reflect\r\n if (shouldReflect) {\r\n if (val === true) {\r\n this.setAttribute(hyphenate(key), '');\r\n }\r\n else if (typeof val === 'string' || typeof val === 'number') {\r\n this.setAttribute(hyphenate(key), val + '');\r\n }\r\n else if (!val) {\r\n this.removeAttribute(hyphenate(key));\r\n }\r\n }\r\n }\r\n }\r\n _update() {\r\n render(this._createVNode(), this.shadowRoot);\r\n }\r\n _createVNode() {\r\n const vnode = createVNode(this._def, extend({}, this._props));\r\n if (!this._instance) {\r\n vnode.ce = instance => {\r\n this._instance = instance;\r\n instance.isCE = true;\r\n // HMR\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n instance.ceReload = newStyles => {\r\n // always reset styles\r\n if (this._styles) {\r\n this._styles.forEach(s => this.shadowRoot.removeChild(s));\r\n this._styles.length = 0;\r\n }\r\n this._applyStyles(newStyles);\r\n // if this is an async component, ceReload is called from the inner\r\n // component so no need to reload the async wrapper\r\n if (!this._def.__asyncLoader) {\r\n // reload\r\n this._instance = null;\r\n this._update();\r\n }\r\n };\r\n }\r\n // intercept emit\r\n instance.emit = (event, ...args) => {\r\n this.dispatchEvent(new CustomEvent(event, {\r\n detail: args\r\n }));\r\n };\r\n // locate nearest Vue custom element parent for provide/inject\r\n let parent = this;\r\n while ((parent =\r\n parent && (parent.parentNode || parent.host))) {\r\n if (parent instanceof VueElement) {\r\n instance.parent = parent._instance;\r\n break;\r\n }\r\n }\r\n };\r\n }\r\n return vnode;\r\n }\r\n _applyStyles(styles) {\r\n if (styles) {\r\n styles.forEach(css => {\r\n const s = document.createElement('style');\r\n s.textContent = css;\r\n this.shadowRoot.appendChild(s);\r\n // record for HMR\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n (this._styles || (this._styles = [])).push(s);\r\n }\r\n });\r\n }\r\n }\r\n}\n\nfunction useCssModule(name = '$style') {\r\n /* istanbul ignore else */\r\n {\r\n const instance = getCurrentInstance();\r\n if (!instance) {\r\n (process.env.NODE_ENV !== 'production') && warn(`useCssModule must be called inside setup()`);\r\n return EMPTY_OBJ;\r\n }\r\n const modules = instance.type.__cssModules;\r\n if (!modules) {\r\n (process.env.NODE_ENV !== 'production') && warn(`Current instance does not have CSS modules injected.`);\r\n return EMPTY_OBJ;\r\n }\r\n const mod = modules[name];\r\n if (!mod) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`Current instance does not have CSS module named \"${name}\".`);\r\n return EMPTY_OBJ;\r\n }\r\n return mod;\r\n }\r\n}\n\n/**\r\n * Runtime helper for SFC's CSS variable injection feature.\r\n * @private\r\n */\r\nfunction useCssVars(getter) {\r\n const instance = getCurrentInstance();\r\n /* istanbul ignore next */\r\n if (!instance) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`useCssVars is called without current active component instance.`);\r\n return;\r\n }\r\n const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy));\r\n watchPostEffect(setVars);\r\n onMounted(() => {\r\n const ob = new MutationObserver(setVars);\r\n ob.observe(instance.subTree.el.parentNode, { childList: true });\r\n onUnmounted(() => ob.disconnect());\r\n });\r\n}\r\nfunction setVarsOnVNode(vnode, vars) {\r\n if (vnode.shapeFlag & 128 /* SUSPENSE */) {\r\n const suspense = vnode.suspense;\r\n vnode = suspense.activeBranch;\r\n if (suspense.pendingBranch && !suspense.isHydrating) {\r\n suspense.effects.push(() => {\r\n setVarsOnVNode(suspense.activeBranch, vars);\r\n });\r\n }\r\n }\r\n // drill down HOCs until it's a non-component vnode\r\n while (vnode.component) {\r\n vnode = vnode.component.subTree;\r\n }\r\n if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) {\r\n setVarsOnNode(vnode.el, vars);\r\n }\r\n else if (vnode.type === Fragment) {\r\n vnode.children.forEach(c => setVarsOnVNode(c, vars));\r\n }\r\n else if (vnode.type === Static) {\r\n let { el, anchor } = vnode;\r\n while (el) {\r\n setVarsOnNode(el, vars);\r\n if (el === anchor)\r\n break;\r\n el = el.nextSibling;\r\n }\r\n }\r\n}\r\nfunction setVarsOnNode(el, vars) {\r\n if (el.nodeType === 1) {\r\n const style = el.style;\r\n for (const key in vars) {\r\n style.setProperty(`--${key}`, vars[key]);\r\n }\r\n }\r\n}\n\nconst TRANSITION = 'transition';\r\nconst ANIMATION = 'animation';\r\n// DOM Transition is a higher-order-component based on the platform-agnostic\r\n// base Transition component, with DOM-specific logic.\r\nconst Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);\r\nTransition.displayName = 'Transition';\r\nconst DOMTransitionPropsValidators = {\r\n name: String,\r\n type: String,\r\n css: {\r\n type: Boolean,\r\n default: true\r\n },\r\n duration: [String, Number, Object],\r\n enterFromClass: String,\r\n enterActiveClass: String,\r\n enterToClass: String,\r\n appearFromClass: String,\r\n appearActiveClass: String,\r\n appearToClass: String,\r\n leaveFromClass: String,\r\n leaveActiveClass: String,\r\n leaveToClass: String\r\n};\r\nconst TransitionPropsValidators = (Transition.props =\r\n /*#__PURE__*/ extend({}, BaseTransition.props, DOMTransitionPropsValidators));\r\n/**\r\n * #3227 Incoming hooks may be merged into arrays when wrapping Transition\r\n * with custom HOCs.\r\n */\r\nconst callHook = (hook, args = []) => {\r\n if (isArray(hook)) {\r\n hook.forEach(h => h(...args));\r\n }\r\n else if (hook) {\r\n hook(...args);\r\n }\r\n};\r\n/**\r\n * Check if a hook expects a callback (2nd arg), which means the user\r\n * intends to explicitly control the end of the transition.\r\n */\r\nconst hasExplicitCallback = (hook) => {\r\n return hook\r\n ? isArray(hook)\r\n ? hook.some(h => h.length > 1)\r\n : hook.length > 1\r\n : false;\r\n};\r\nfunction resolveTransitionProps(rawProps) {\r\n const baseProps = {};\r\n for (const key in rawProps) {\r\n if (!(key in DOMTransitionPropsValidators)) {\r\n baseProps[key] = rawProps[key];\r\n }\r\n }\r\n if (rawProps.css === false) {\r\n return baseProps;\r\n }\r\n const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;\r\n const durations = normalizeDuration(duration);\r\n const enterDuration = durations && durations[0];\r\n const leaveDuration = durations && durations[1];\r\n const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;\r\n const finishEnter = (el, isAppear, done) => {\r\n removeTransitionClass(el, isAppear ? appearToClass : enterToClass);\r\n removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);\r\n done && done();\r\n };\r\n const finishLeave = (el, done) => {\r\n removeTransitionClass(el, leaveToClass);\r\n removeTransitionClass(el, leaveActiveClass);\r\n done && done();\r\n };\r\n const makeEnterHook = (isAppear) => {\r\n return (el, done) => {\r\n const hook = isAppear ? onAppear : onEnter;\r\n const resolve = () => finishEnter(el, isAppear, done);\r\n callHook(hook, [el, resolve]);\r\n nextFrame(() => {\r\n removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);\r\n addTransitionClass(el, isAppear ? appearToClass : enterToClass);\r\n if (!hasExplicitCallback(hook)) {\r\n whenTransitionEnds(el, type, enterDuration, resolve);\r\n }\r\n });\r\n };\r\n };\r\n return extend(baseProps, {\r\n onBeforeEnter(el) {\r\n callHook(onBeforeEnter, [el]);\r\n addTransitionClass(el, enterFromClass);\r\n addTransitionClass(el, enterActiveClass);\r\n },\r\n onBeforeAppear(el) {\r\n callHook(onBeforeAppear, [el]);\r\n addTransitionClass(el, appearFromClass);\r\n addTransitionClass(el, appearActiveClass);\r\n },\r\n onEnter: makeEnterHook(false),\r\n onAppear: makeEnterHook(true),\r\n onLeave(el, done) {\r\n const resolve = () => finishLeave(el, done);\r\n addTransitionClass(el, leaveFromClass);\r\n // force reflow so *-leave-from classes immediately take effect (#2593)\r\n forceReflow();\r\n addTransitionClass(el, leaveActiveClass);\r\n nextFrame(() => {\r\n removeTransitionClass(el, leaveFromClass);\r\n addTransitionClass(el, leaveToClass);\r\n if (!hasExplicitCallback(onLeave)) {\r\n whenTransitionEnds(el, type, leaveDuration, resolve);\r\n }\r\n });\r\n callHook(onLeave, [el, resolve]);\r\n },\r\n onEnterCancelled(el) {\r\n finishEnter(el, false);\r\n callHook(onEnterCancelled, [el]);\r\n },\r\n onAppearCancelled(el) {\r\n finishEnter(el, true);\r\n callHook(onAppearCancelled, [el]);\r\n },\r\n onLeaveCancelled(el) {\r\n finishLeave(el);\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n });\r\n}\r\nfunction normalizeDuration(duration) {\r\n if (duration == null) {\r\n return null;\r\n }\r\n else if (isObject(duration)) {\r\n return [NumberOf(duration.enter), NumberOf(duration.leave)];\r\n }\r\n else {\r\n const n = NumberOf(duration);\r\n return [n, n];\r\n }\r\n}\r\nfunction NumberOf(val) {\r\n const res = toNumber(val);\r\n if ((process.env.NODE_ENV !== 'production'))\r\n validateDuration(res);\r\n return res;\r\n}\r\nfunction validateDuration(val) {\r\n if (typeof val !== 'number') {\r\n warn(`<transition> explicit duration is not a valid number - ` +\r\n `got ${JSON.stringify(val)}.`);\r\n }\r\n else if (isNaN(val)) {\r\n warn(`<transition> explicit duration is NaN - ` +\r\n 'the duration expression might be incorrect.');\r\n }\r\n}\r\nfunction addTransitionClass(el, cls) {\r\n cls.split(/\\s+/).forEach(c => c && el.classList.add(c));\r\n (el._vtc ||\r\n (el._vtc = new Set())).add(cls);\r\n}\r\nfunction removeTransitionClass(el, cls) {\r\n cls.split(/\\s+/).forEach(c => c && el.classList.remove(c));\r\n const { _vtc } = el;\r\n if (_vtc) {\r\n _vtc.delete(cls);\r\n if (!_vtc.size) {\r\n el._vtc = undefined;\r\n }\r\n }\r\n}\r\nfunction nextFrame(cb) {\r\n requestAnimationFrame(() => {\r\n requestAnimationFrame(cb);\r\n });\r\n}\r\nlet endId = 0;\r\nfunction whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {\r\n const id = (el._endId = ++endId);\r\n const resolveIfNotStale = () => {\r\n if (id === el._endId) {\r\n resolve();\r\n }\r\n };\r\n if (explicitTimeout) {\r\n return setTimeout(resolveIfNotStale, explicitTimeout);\r\n }\r\n const { type, timeout, propCount } = getTransitionInfo(el, expectedType);\r\n if (!type) {\r\n return resolve();\r\n }\r\n const endEvent = type + 'end';\r\n let ended = 0;\r\n const end = () => {\r\n el.removeEventListener(endEvent, onEnd);\r\n resolveIfNotStale();\r\n };\r\n const onEnd = (e) => {\r\n if (e.target === el && ++ended >= propCount) {\r\n end();\r\n }\r\n };\r\n setTimeout(() => {\r\n if (ended < propCount) {\r\n end();\r\n }\r\n }, timeout + 1);\r\n el.addEventListener(endEvent, onEnd);\r\n}\r\nfunction getTransitionInfo(el, expectedType) {\r\n const styles = window.getComputedStyle(el);\r\n // JSDOM may return undefined for transition properties\r\n const getStyleProperties = (key) => (styles[key] || '').split(', ');\r\n const transitionDelays = getStyleProperties(TRANSITION + 'Delay');\r\n const transitionDurations = getStyleProperties(TRANSITION + 'Duration');\r\n const transitionTimeout = getTimeout(transitionDelays, transitionDurations);\r\n const animationDelays = getStyleProperties(ANIMATION + 'Delay');\r\n const animationDurations = getStyleProperties(ANIMATION + 'Duration');\r\n const animationTimeout = getTimeout(animationDelays, animationDurations);\r\n let type = null;\r\n let timeout = 0;\r\n let propCount = 0;\r\n /* istanbul ignore if */\r\n if (expectedType === TRANSITION) {\r\n if (transitionTimeout > 0) {\r\n type = TRANSITION;\r\n timeout = transitionTimeout;\r\n propCount = transitionDurations.length;\r\n }\r\n }\r\n else if (expectedType === ANIMATION) {\r\n if (animationTimeout > 0) {\r\n type = ANIMATION;\r\n timeout = animationTimeout;\r\n propCount = animationDurations.length;\r\n }\r\n }\r\n else {\r\n timeout = Math.max(transitionTimeout, animationTimeout);\r\n type =\r\n timeout > 0\r\n ? transitionTimeout > animationTimeout\r\n ? TRANSITION\r\n : ANIMATION\r\n : null;\r\n propCount = type\r\n ? type === TRANSITION\r\n ? transitionDurations.length\r\n : animationDurations.length\r\n : 0;\r\n }\r\n const hasTransform = type === TRANSITION &&\r\n /\\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']);\r\n return {\r\n type,\r\n timeout,\r\n propCount,\r\n hasTransform\r\n };\r\n}\r\nfunction getTimeout(delays, durations) {\r\n while (delays.length < durations.length) {\r\n delays = delays.concat(delays);\r\n }\r\n return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));\r\n}\r\n// Old versions of Chromium (below 61.0.3163.100) formats floating pointer\r\n// numbers in a locale-dependent way, using a comma instead of a dot.\r\n// If comma is not replaced with a dot, the input will be rounded down\r\n// (i.e. acting as a floor function) causing unexpected behaviors\r\nfunction toMs(s) {\r\n return Number(s.slice(0, -1).replace(',', '.')) * 1000;\r\n}\r\n// synchronously force layout to put elements into a certain state\r\nfunction forceReflow() {\r\n return document.body.offsetHeight;\r\n}\n\nconst positionMap = new WeakMap();\r\nconst newPositionMap = new WeakMap();\r\nconst TransitionGroupImpl = {\r\n name: 'TransitionGroup',\r\n props: /*#__PURE__*/ extend({}, TransitionPropsValidators, {\r\n tag: String,\r\n moveClass: String\r\n }),\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevChildren;\r\n let children;\r\n onUpdated(() => {\r\n // children is guaranteed to exist after initial render\r\n if (!prevChildren.length) {\r\n return;\r\n }\r\n const moveClass = props.moveClass || `${props.name || 'v'}-move`;\r\n if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {\r\n return;\r\n }\r\n // we divide the work into three loops to avoid mixing DOM reads and writes\r\n // in each iteration - which helps prevent layout thrashing.\r\n prevChildren.forEach(callPendingCbs);\r\n prevChildren.forEach(recordPosition);\r\n const movedChildren = prevChildren.filter(applyTranslation);\r\n // force reflow to put everything in position\r\n forceReflow();\r\n movedChildren.forEach(c => {\r\n const el = c.el;\r\n const style = el.style;\r\n addTransitionClass(el, moveClass);\r\n style.transform = style.webkitTransform = style.transitionDuration = '';\r\n const cb = (el._moveCb = (e) => {\r\n if (e && e.target !== el) {\r\n return;\r\n }\r\n if (!e || /transform$/.test(e.propertyName)) {\r\n el.removeEventListener('transitionend', cb);\r\n el._moveCb = null;\r\n removeTransitionClass(el, moveClass);\r\n }\r\n });\r\n el.addEventListener('transitionend', cb);\r\n });\r\n });\r\n return () => {\r\n const rawProps = toRaw(props);\r\n const cssTransitionProps = resolveTransitionProps(rawProps);\r\n let tag = rawProps.tag || Fragment;\r\n prevChildren = children;\r\n children = slots.default ? getTransitionRawChildren(slots.default()) : [];\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (child.key != null) {\r\n setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`<TransitionGroup> children must be keyed.`);\r\n }\r\n }\r\n if (prevChildren) {\r\n for (let i = 0; i < prevChildren.length; i++) {\r\n const child = prevChildren[i];\r\n setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));\r\n positionMap.set(child, child.el.getBoundingClientRect());\r\n }\r\n }\r\n return createVNode(tag, null, children);\r\n };\r\n }\r\n};\r\nconst TransitionGroup = TransitionGroupImpl;\r\nfunction callPendingCbs(c) {\r\n const el = c.el;\r\n if (el._moveCb) {\r\n el._moveCb();\r\n }\r\n if (el._enterCb) {\r\n el._enterCb();\r\n }\r\n}\r\nfunction recordPosition(c) {\r\n newPositionMap.set(c, c.el.getBoundingClientRect());\r\n}\r\nfunction applyTranslation(c) {\r\n const oldPos = positionMap.get(c);\r\n const newPos = newPositionMap.get(c);\r\n const dx = oldPos.left - newPos.left;\r\n const dy = oldPos.top - newPos.top;\r\n if (dx || dy) {\r\n const s = c.el.style;\r\n s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;\r\n s.transitionDuration = '0s';\r\n return c;\r\n }\r\n}\r\nfunction hasCSSTransform(el, root, moveClass) {\r\n // Detect whether an element with the move class applied has\r\n // CSS transitions. Since the element may be inside an entering\r\n // transition at this very moment, we make a clone of it and remove\r\n // all other transition classes applied to ensure only the move class\r\n // is applied.\r\n const clone = el.cloneNode();\r\n if (el._vtc) {\r\n el._vtc.forEach(cls => {\r\n cls.split(/\\s+/).forEach(c => c && clone.classList.remove(c));\r\n });\r\n }\r\n moveClass.split(/\\s+/).forEach(c => c && clone.classList.add(c));\r\n clone.style.display = 'none';\r\n const container = (root.nodeType === 1 ? root : root.parentNode);\r\n container.appendChild(clone);\r\n const { hasTransform } = getTransitionInfo(clone);\r\n container.removeChild(clone);\r\n return hasTransform;\r\n}\n\nconst getModelAssigner = (vnode) => {\r\n const fn = vnode.props['onUpdate:modelValue'];\r\n return isArray(fn) ? value => invokeArrayFns(fn, value) : fn;\r\n};\r\nfunction onCompositionStart(e) {\r\n e.target.composing = true;\r\n}\r\nfunction onCompositionEnd(e) {\r\n const target = e.target;\r\n if (target.composing) {\r\n target.composing = false;\r\n trigger(target, 'input');\r\n }\r\n}\r\nfunction trigger(el, type) {\r\n const e = document.createEvent('HTMLEvents');\r\n e.initEvent(type, true, true);\r\n el.dispatchEvent(e);\r\n}\r\n// We are exporting the v-model runtime directly as vnode hooks so that it can\r\n// be tree-shaken in case v-model is never used.\r\nconst vModelText = {\r\n created(el, { modifiers: { lazy, trim, number } }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n const castToNumber = number || (vnode.props && vnode.props.type === 'number');\r\n addEventListener(el, lazy ? 'change' : 'input', e => {\r\n if (e.target.composing)\r\n return;\r\n let domValue = el.value;\r\n if (trim) {\r\n domValue = domValue.trim();\r\n }\r\n else if (castToNumber) {\r\n domValue = toNumber(domValue);\r\n }\r\n el._assign(domValue);\r\n });\r\n if (trim) {\r\n addEventListener(el, 'change', () => {\r\n el.value = el.value.trim();\r\n });\r\n }\r\n if (!lazy) {\r\n addEventListener(el, 'compositionstart', onCompositionStart);\r\n addEventListener(el, 'compositionend', onCompositionEnd);\r\n // Safari < 10.2 & UIWebView doesn't fire compositionend when\r\n // switching focus before confirming composition choice\r\n // this also fixes the issue where some browsers e.g. iOS Chrome\r\n // fires \"change\" instead of \"input\" on autocomplete.\r\n addEventListener(el, 'change', onCompositionEnd);\r\n }\r\n },\r\n // set value on mounted so it's after min/max for type=\"range\"\r\n mounted(el, { value }) {\r\n el.value = value == null ? '' : value;\r\n },\r\n beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n // avoid clearing unresolved text. #2302\r\n if (el.composing)\r\n return;\r\n if (document.activeElement === el) {\r\n if (lazy) {\r\n return;\r\n }\r\n if (trim && el.value.trim() === value) {\r\n return;\r\n }\r\n if ((number || el.type === 'number') && toNumber(el.value) === value) {\r\n return;\r\n }\r\n }\r\n const newValue = value == null ? '' : value;\r\n if (el.value !== newValue) {\r\n el.value = newValue;\r\n }\r\n }\r\n};\r\nconst vModelCheckbox = {\r\n // #4096 array checkboxes need to be deep traversed\r\n deep: true,\r\n created(el, _, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n addEventListener(el, 'change', () => {\r\n const modelValue = el._modelValue;\r\n const elementValue = getValue(el);\r\n const checked = el.checked;\r\n const assign = el._assign;\r\n if (isArray(modelValue)) {\r\n const index = looseIndexOf(modelValue, elementValue);\r\n const found = index !== -1;\r\n if (checked && !found) {\r\n assign(modelValue.concat(elementValue));\r\n }\r\n else if (!checked && found) {\r\n const filtered = [...modelValue];\r\n filtered.splice(index, 1);\r\n assign(filtered);\r\n }\r\n }\r\n else if (isSet(modelValue)) {\r\n const cloned = new Set(modelValue);\r\n if (checked) {\r\n cloned.add(elementValue);\r\n }\r\n else {\r\n cloned.delete(elementValue);\r\n }\r\n assign(cloned);\r\n }\r\n else {\r\n assign(getCheckboxValue(el, checked));\r\n }\r\n });\r\n },\r\n // set initial checked on mount to wait for true-value/false-value\r\n mounted: setChecked,\r\n beforeUpdate(el, binding, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n setChecked(el, binding, vnode);\r\n }\r\n};\r\nfunction setChecked(el, { value, oldValue }, vnode) {\r\n el._modelValue = value;\r\n if (isArray(value)) {\r\n el.checked = looseIndexOf(value, vnode.props.value) > -1;\r\n }\r\n else if (isSet(value)) {\r\n el.checked = value.has(vnode.props.value);\r\n }\r\n else if (value !== oldValue) {\r\n el.checked = looseEqual(value, getCheckboxValue(el, true));\r\n }\r\n}\r\nconst vModelRadio = {\r\n created(el, { value }, vnode) {\r\n el.checked = looseEqual(value, vnode.props.value);\r\n el._assign = getModelAssigner(vnode);\r\n addEventListener(el, 'change', () => {\r\n el._assign(getValue(el));\r\n });\r\n },\r\n beforeUpdate(el, { value, oldValue }, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n if (value !== oldValue) {\r\n el.checked = looseEqual(value, vnode.props.value);\r\n }\r\n }\r\n};\r\nconst vModelSelect = {\r\n // <select multiple> value need to be deep traversed\r\n deep: true,\r\n created(el, { value, modifiers: { number } }, vnode) {\r\n const isSetModel = isSet(value);\r\n addEventListener(el, 'change', () => {\r\n const selectedVal = Array.prototype.filter\r\n .call(el.options, (o) => o.selected)\r\n .map((o) => number ? toNumber(getValue(o)) : getValue(o));\r\n el._assign(el.multiple\r\n ? isSetModel\r\n ? new Set(selectedVal)\r\n : selectedVal\r\n : selectedVal[0]);\r\n });\r\n el._assign = getModelAssigner(vnode);\r\n },\r\n // set value in mounted & updated because <select> relies on its children\r\n // <option>s.\r\n mounted(el, { value }) {\r\n setSelected(el, value);\r\n },\r\n beforeUpdate(el, _binding, vnode) {\r\n el._assign = getModelAssigner(vnode);\r\n },\r\n updated(el, { value }) {\r\n setSelected(el, value);\r\n }\r\n};\r\nfunction setSelected(el, value) {\r\n const isMultiple = el.multiple;\r\n if (isMultiple && !isArray(value) && !isSet(value)) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warn(`<select multiple v-model> expects an Array or Set value for its binding, ` +\r\n `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);\r\n return;\r\n }\r\n for (let i = 0, l = el.options.length; i < l; i++) {\r\n const option = el.options[i];\r\n const optionValue = getValue(option);\r\n if (isMultiple) {\r\n if (isArray(value)) {\r\n option.selected = looseIndexOf(value, optionValue) > -1;\r\n }\r\n else {\r\n option.selected = value.has(optionValue);\r\n }\r\n }\r\n else {\r\n if (looseEqual(getValue(option), value)) {\r\n if (el.selectedIndex !== i)\r\n el.selectedIndex = i;\r\n return;\r\n }\r\n }\r\n }\r\n if (!isMultiple && el.selectedIndex !== -1) {\r\n el.selectedIndex = -1;\r\n }\r\n}\r\n// retrieve raw value set via :value bindings\r\nfunction getValue(el) {\r\n return '_value' in el ? el._value : el.value;\r\n}\r\n// retrieve raw value for true-value and false-value set via :true-value or :false-value bindings\r\nfunction getCheckboxValue(el, checked) {\r\n const key = checked ? '_trueValue' : '_falseValue';\r\n return key in el ? el[key] : checked;\r\n}\r\nconst vModelDynamic = {\r\n created(el, binding, vnode) {\r\n callModelHook(el, binding, vnode, null, 'created');\r\n },\r\n mounted(el, binding, vnode) {\r\n callModelHook(el, binding, vnode, null, 'mounted');\r\n },\r\n beforeUpdate(el, binding, vnode, prevVNode) {\r\n callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate');\r\n },\r\n updated(el, binding, vnode, prevVNode) {\r\n callModelHook(el, binding, vnode, prevVNode, 'updated');\r\n }\r\n};\r\nfunction callModelHook(el, binding, vnode, prevVNode, hook) {\r\n let modelToUse;\r\n switch (el.tagName) {\r\n case 'SELECT':\r\n modelToUse = vModelSelect;\r\n break;\r\n case 'TEXTAREA':\r\n modelToUse = vModelText;\r\n break;\r\n default:\r\n switch (vnode.props && vnode.props.type) {\r\n case 'checkbox':\r\n modelToUse = vModelCheckbox;\r\n break;\r\n case 'radio':\r\n modelToUse = vModelRadio;\r\n break;\r\n default:\r\n modelToUse = vModelText;\r\n }\r\n }\r\n const fn = modelToUse[hook];\r\n fn && fn(el, binding, vnode, prevVNode);\r\n}\r\n// SSR vnode transforms, only used when user includes client-oriented render\r\n// function in SSR\r\nfunction initVModelForSSR() {\r\n vModelText.getSSRProps = ({ value }) => ({ value });\r\n vModelRadio.getSSRProps = ({ value }, vnode) => {\r\n if (vnode.props && looseEqual(vnode.props.value, value)) {\r\n return { checked: true };\r\n }\r\n };\r\n vModelCheckbox.getSSRProps = ({ value }, vnode) => {\r\n if (isArray(value)) {\r\n if (vnode.props && looseIndexOf(value, vnode.props.value) > -1) {\r\n return { checked: true };\r\n }\r\n }\r\n else if (isSet(value)) {\r\n if (vnode.props && value.has(vnode.props.value)) {\r\n return { checked: true };\r\n }\r\n }\r\n else if (value) {\r\n return { checked: true };\r\n }\r\n };\r\n}\n\nconst systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];\r\nconst modifierGuards = {\r\n stop: e => e.stopPropagation(),\r\n prevent: e => e.preventDefault(),\r\n self: e => e.target !== e.currentTarget,\r\n ctrl: e => !e.ctrlKey,\r\n shift: e => !e.shiftKey,\r\n alt: e => !e.altKey,\r\n meta: e => !e.metaKey,\r\n left: e => 'button' in e && e.button !== 0,\r\n middle: e => 'button' in e && e.button !== 1,\r\n right: e => 'button' in e && e.button !== 2,\r\n exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m))\r\n};\r\n/**\r\n * @private\r\n */\r\nconst withModifiers = (fn, modifiers) => {\r\n return (event, ...args) => {\r\n for (let i = 0; i < modifiers.length; i++) {\r\n const guard = modifierGuards[modifiers[i]];\r\n if (guard && guard(event, modifiers))\r\n return;\r\n }\r\n return fn(event, ...args);\r\n };\r\n};\r\n// Kept for 2.x compat.\r\n// Note: IE11 compat for `spacebar` and `del` is removed for now.\r\nconst keyNames = {\r\n esc: 'escape',\r\n space: ' ',\r\n up: 'arrow-up',\r\n left: 'arrow-left',\r\n right: 'arrow-right',\r\n down: 'arrow-down',\r\n delete: 'backspace'\r\n};\r\n/**\r\n * @private\r\n */\r\nconst withKeys = (fn, modifiers) => {\r\n return (event) => {\r\n if (!('key' in event)) {\r\n return;\r\n }\r\n const eventKey = hyphenate(event.key);\r\n if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) {\r\n return fn(event);\r\n }\r\n };\r\n};\n\nconst vShow = {\r\n beforeMount(el, { value }, { transition }) {\r\n el._vod = el.style.display === 'none' ? '' : el.style.display;\r\n if (transition && value) {\r\n transition.beforeEnter(el);\r\n }\r\n else {\r\n setDisplay(el, value);\r\n }\r\n },\r\n mounted(el, { value }, { transition }) {\r\n if (transition && value) {\r\n transition.enter(el);\r\n }\r\n },\r\n updated(el, { value, oldValue }, { transition }) {\r\n if (!value === !oldValue)\r\n return;\r\n if (transition) {\r\n if (value) {\r\n transition.beforeEnter(el);\r\n setDisplay(el, true);\r\n transition.enter(el);\r\n }\r\n else {\r\n transition.leave(el, () => {\r\n setDisplay(el, false);\r\n });\r\n }\r\n }\r\n else {\r\n setDisplay(el, value);\r\n }\r\n },\r\n beforeUnmount(el, { value }) {\r\n setDisplay(el, value);\r\n }\r\n};\r\nfunction setDisplay(el, value) {\r\n el.style.display = value ? el._vod : 'none';\r\n}\r\n// SSR vnode transforms, only used when user includes client-oriented render\r\n// function in SSR\r\nfunction initVShowForSSR() {\r\n vShow.getSSRProps = ({ value }) => {\r\n if (!value) {\r\n return { style: { display: 'none' } };\r\n }\r\n };\r\n}\n\nconst rendererOptions = extend({ patchProp }, nodeOps);\r\n// lazy create the renderer - this makes core renderer logic tree-shakable\r\n// in case the user only imports reactivity utilities from Vue.\r\nlet renderer;\r\nlet enabledHydration = false;\r\nfunction ensureRenderer() {\r\n return (renderer ||\r\n (renderer = createRenderer(rendererOptions)));\r\n}\r\nfunction ensureHydrationRenderer() {\r\n renderer = enabledHydration\r\n ? renderer\r\n : createHydrationRenderer(rendererOptions);\r\n enabledHydration = true;\r\n return renderer;\r\n}\r\n// use explicit type casts here to avoid import() calls in rolled-up d.ts\r\nconst render = ((...args) => {\r\n ensureRenderer().render(...args);\r\n});\r\nconst hydrate = ((...args) => {\r\n ensureHydrationRenderer().hydrate(...args);\r\n});\r\nconst createApp = ((...args) => {\r\n const app = ensureRenderer().createApp(...args);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n injectNativeTagCheck(app);\r\n injectCompilerOptionsCheck(app);\r\n }\r\n const { mount } = app;\r\n app.mount = (containerOrSelector) => {\r\n const container = normalizeContainer(containerOrSelector);\r\n if (!container)\r\n return;\r\n const component = app._component;\r\n if (!isFunction(component) && !component.render && !component.template) {\r\n // __UNSAFE__\r\n // Reason: potential execution of JS expressions in in-DOM template.\r\n // The user must make sure the in-DOM template is trusted. If it's\r\n // rendered by the server, the template should not contain any user data.\r\n component.template = container.innerHTML;\r\n }\r\n // clear content before mounting\r\n container.innerHTML = '';\r\n const proxy = mount(container, false, container instanceof SVGElement);\r\n if (container instanceof Element) {\r\n container.removeAttribute('v-cloak');\r\n container.setAttribute('data-v-app', '');\r\n }\r\n return proxy;\r\n };\r\n return app;\r\n});\r\nconst createSSRApp = ((...args) => {\r\n const app = ensureHydrationRenderer().createApp(...args);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n injectNativeTagCheck(app);\r\n injectCompilerOptionsCheck(app);\r\n }\r\n const { mount } = app;\r\n app.mount = (containerOrSelector) => {\r\n const container = normalizeContainer(containerOrSelector);\r\n if (container) {\r\n return mount(container, true, container instanceof SVGElement);\r\n }\r\n };\r\n return app;\r\n});\r\nfunction injectNativeTagCheck(app) {\r\n // Inject `isNativeTag`\r\n // this is used for component name validation (dev only)\r\n Object.defineProperty(app.config, 'isNativeTag', {\r\n value: (tag) => isHTMLTag(tag) || isSVGTag(tag),\r\n writable: false\r\n });\r\n}\r\n// dev only\r\nfunction injectCompilerOptionsCheck(app) {\r\n if (isRuntimeOnly()) {\r\n const isCustomElement = app.config.isCustomElement;\r\n Object.defineProperty(app.config, 'isCustomElement', {\r\n get() {\r\n return isCustomElement;\r\n },\r\n set() {\r\n warn(`The \\`isCustomElement\\` config option is deprecated. Use ` +\r\n `\\`compilerOptions.isCustomElement\\` instead.`);\r\n }\r\n });\r\n const compilerOptions = app.config.compilerOptions;\r\n const msg = `The \\`compilerOptions\\` config option is only respected when using ` +\r\n `a build of Vue.js that includes the runtime compiler (aka \"full build\"). ` +\r\n `Since you are using the runtime-only build, \\`compilerOptions\\` ` +\r\n `must be passed to \\`@vue/compiler-dom\\` in the build setup instead.\\n` +\r\n `- For vue-loader: pass it via vue-loader's \\`compilerOptions\\` loader option.\\n` +\r\n `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\\n` +\r\n `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;\r\n Object.defineProperty(app.config, 'compilerOptions', {\r\n get() {\r\n warn(msg);\r\n return compilerOptions;\r\n },\r\n set() {\r\n warn(msg);\r\n }\r\n });\r\n }\r\n}\r\nfunction normalizeContainer(container) {\r\n if (isString(container)) {\r\n const res = document.querySelector(container);\r\n if ((process.env.NODE_ENV !== 'production') && !res) {\r\n warn(`Failed to mount app: mount target selector \"${container}\" returned null.`);\r\n }\r\n return res;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n window.ShadowRoot &&\r\n container instanceof window.ShadowRoot &&\r\n container.mode === 'closed') {\r\n warn(`mounting on a ShadowRoot with \\`{mode: \"closed\"}\\` may lead to unpredictable bugs`);\r\n }\r\n return container;\r\n}\r\nlet ssrDirectiveInitialized = false;\r\n/**\r\n * @internal\r\n */\r\nconst initDirectivesForSSR = () => {\r\n if (!ssrDirectiveInitialized) {\r\n ssrDirectiveInitialized = true;\r\n initVModelForSSR();\r\n initVShowForSSR();\r\n }\r\n }\r\n ;\n\nexport { Transition, TransitionGroup, VueElement, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, hydrate, initDirectivesForSSR, render, useCssModule, useCssVars, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, withKeys, withModifiers };\n","import { isString, hyphenate, NOOP, extend, isObject, NO, isArray, makeMap, isSymbol, EMPTY_OBJ, capitalize, camelize as camelize$1, PatchFlagNames, slotFlagsText, isOn, isReservedProp, toHandlerKey } from '@vue/shared';\nexport { generateCodeFrame } from '@vue/shared';\n\nfunction defaultOnError(error) {\r\n throw error;\r\n}\r\nfunction defaultOnWarn(msg) {\r\n (process.env.NODE_ENV !== 'production') && console.warn(`[Vue warn] ${msg.message}`);\r\n}\r\nfunction createCompilerError(code, loc, messages, additionalMessage) {\r\n const msg = (process.env.NODE_ENV !== 'production') || !true\r\n ? (messages || errorMessages)[code] + (additionalMessage || ``)\r\n : code;\r\n const error = new SyntaxError(String(msg));\r\n error.code = code;\r\n error.loc = loc;\r\n return error;\r\n}\r\nconst errorMessages = {\r\n // parse errors\r\n [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',\r\n [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',\r\n [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',\r\n [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',\r\n [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: \"Illegal '/' in tags.\",\r\n [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',\r\n [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',\r\n [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',\r\n [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',\r\n [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.',\r\n [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',\r\n [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',\r\n [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: \"Illegal tag name. Use '<' to print '<'.\",\r\n [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',\r\n [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.',\r\n [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',\r\n [16 /* NESTED_COMMENT */]: \"Unexpected '<!--' in comment.\",\r\n [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 (\"), U+0027 (\\'), and U+003C (<).',\r\n [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 (\"), U+0027 (\\'), U+003C (<), U+003D (=), and U+0060 (`).',\r\n [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: \"Attribute name cannot start with '='.\",\r\n [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: \"'<?' is allowed only in XML context.\",\r\n [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`,\r\n [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: \"Illegal '/' in tags.\",\r\n // Vue-specific parse errors\r\n [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',\r\n [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',\r\n [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',\r\n [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +\r\n 'Note that dynamic directive argument cannot contain spaces.',\r\n [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',\r\n // transform errors\r\n [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,\r\n [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,\r\n [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,\r\n [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,\r\n [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,\r\n [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,\r\n [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,\r\n [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,\r\n [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,\r\n [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +\r\n `When there are multiple named slots, all slots should use <template> ` +\r\n `syntax to avoid scope ambiguity.`,\r\n [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,\r\n [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +\r\n `default slot. These children will be ignored.`,\r\n [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,\r\n [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,\r\n [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,\r\n [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,\r\n [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,\r\n [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,\r\n // generic errors\r\n [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `\"prefixIdentifiers\" option is not supported in this build of compiler.`,\r\n [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,\r\n [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `\"cacheHandlers\" option is only supported when the \"prefixIdentifiers\" option is enabled.`,\r\n [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `\"scopeId\" option is only supported in module mode.`,\r\n // just to fulfill types\r\n [50 /* __EXTEND_POINT__ */]: ``\r\n};\n\nconst FRAGMENT = Symbol((process.env.NODE_ENV !== 'production') ? `Fragment` : ``);\r\nconst TELEPORT = Symbol((process.env.NODE_ENV !== 'production') ? `Teleport` : ``);\r\nconst SUSPENSE = Symbol((process.env.NODE_ENV !== 'production') ? `Suspense` : ``);\r\nconst KEEP_ALIVE = Symbol((process.env.NODE_ENV !== 'production') ? `KeepAlive` : ``);\r\nconst BASE_TRANSITION = Symbol((process.env.NODE_ENV !== 'production') ? `BaseTransition` : ``);\r\nconst OPEN_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `openBlock` : ``);\r\nconst CREATE_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `createBlock` : ``);\r\nconst CREATE_ELEMENT_BLOCK = Symbol((process.env.NODE_ENV !== 'production') ? `createElementBlock` : ``);\r\nconst CREATE_VNODE = Symbol((process.env.NODE_ENV !== 'production') ? `createVNode` : ``);\r\nconst CREATE_ELEMENT_VNODE = Symbol((process.env.NODE_ENV !== 'production') ? `createElementVNode` : ``);\r\nconst CREATE_COMMENT = Symbol((process.env.NODE_ENV !== 'production') ? `createCommentVNode` : ``);\r\nconst CREATE_TEXT = Symbol((process.env.NODE_ENV !== 'production') ? `createTextVNode` : ``);\r\nconst CREATE_STATIC = Symbol((process.env.NODE_ENV !== 'production') ? `createStaticVNode` : ``);\r\nconst RESOLVE_COMPONENT = Symbol((process.env.NODE_ENV !== 'production') ? `resolveComponent` : ``);\r\nconst RESOLVE_DYNAMIC_COMPONENT = Symbol((process.env.NODE_ENV !== 'production') ? `resolveDynamicComponent` : ``);\r\nconst RESOLVE_DIRECTIVE = Symbol((process.env.NODE_ENV !== 'production') ? `resolveDirective` : ``);\r\nconst RESOLVE_FILTER = Symbol((process.env.NODE_ENV !== 'production') ? `resolveFilter` : ``);\r\nconst WITH_DIRECTIVES = Symbol((process.env.NODE_ENV !== 'production') ? `withDirectives` : ``);\r\nconst RENDER_LIST = Symbol((process.env.NODE_ENV !== 'production') ? `renderList` : ``);\r\nconst RENDER_SLOT = Symbol((process.env.NODE_ENV !== 'production') ? `renderSlot` : ``);\r\nconst CREATE_SLOTS = Symbol((process.env.NODE_ENV !== 'production') ? `createSlots` : ``);\r\nconst TO_DISPLAY_STRING = Symbol((process.env.NODE_ENV !== 'production') ? `toDisplayString` : ``);\r\nconst MERGE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `mergeProps` : ``);\r\nconst NORMALIZE_CLASS = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeClass` : ``);\r\nconst NORMALIZE_STYLE = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeStyle` : ``);\r\nconst NORMALIZE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `normalizeProps` : ``);\r\nconst GUARD_REACTIVE_PROPS = Symbol((process.env.NODE_ENV !== 'production') ? `guardReactiveProps` : ``);\r\nconst TO_HANDLERS = Symbol((process.env.NODE_ENV !== 'production') ? `toHandlers` : ``);\r\nconst CAMELIZE = Symbol((process.env.NODE_ENV !== 'production') ? `camelize` : ``);\r\nconst CAPITALIZE = Symbol((process.env.NODE_ENV !== 'production') ? `capitalize` : ``);\r\nconst TO_HANDLER_KEY = Symbol((process.env.NODE_ENV !== 'production') ? `toHandlerKey` : ``);\r\nconst SET_BLOCK_TRACKING = Symbol((process.env.NODE_ENV !== 'production') ? `setBlockTracking` : ``);\r\nconst PUSH_SCOPE_ID = Symbol((process.env.NODE_ENV !== 'production') ? `pushScopeId` : ``);\r\nconst POP_SCOPE_ID = Symbol((process.env.NODE_ENV !== 'production') ? `popScopeId` : ``);\r\nconst WITH_CTX = Symbol((process.env.NODE_ENV !== 'production') ? `withCtx` : ``);\r\nconst UNREF = Symbol((process.env.NODE_ENV !== 'production') ? `unref` : ``);\r\nconst IS_REF = Symbol((process.env.NODE_ENV !== 'production') ? `isRef` : ``);\r\nconst WITH_MEMO = Symbol((process.env.NODE_ENV !== 'production') ? `withMemo` : ``);\r\nconst IS_MEMO_SAME = Symbol((process.env.NODE_ENV !== 'production') ? `isMemoSame` : ``);\r\n// Name mapping for runtime helpers that need to be imported from 'vue' in\r\n// generated code. Make sure these are correctly exported in the runtime!\r\n// Using `any` here because TS doesn't allow symbols as index type.\r\nconst helperNameMap = {\r\n [FRAGMENT]: `Fragment`,\r\n [TELEPORT]: `Teleport`,\r\n [SUSPENSE]: `Suspense`,\r\n [KEEP_ALIVE]: `KeepAlive`,\r\n [BASE_TRANSITION]: `BaseTransition`,\r\n [OPEN_BLOCK]: `openBlock`,\r\n [CREATE_BLOCK]: `createBlock`,\r\n [CREATE_ELEMENT_BLOCK]: `createElementBlock`,\r\n [CREATE_VNODE]: `createVNode`,\r\n [CREATE_ELEMENT_VNODE]: `createElementVNode`,\r\n [CREATE_COMMENT]: `createCommentVNode`,\r\n [CREATE_TEXT]: `createTextVNode`,\r\n [CREATE_STATIC]: `createStaticVNode`,\r\n [RESOLVE_COMPONENT]: `resolveComponent`,\r\n [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,\r\n [RESOLVE_DIRECTIVE]: `resolveDirective`,\r\n [RESOLVE_FILTER]: `resolveFilter`,\r\n [WITH_DIRECTIVES]: `withDirectives`,\r\n [RENDER_LIST]: `renderList`,\r\n [RENDER_SLOT]: `renderSlot`,\r\n [CREATE_SLOTS]: `createSlots`,\r\n [TO_DISPLAY_STRING]: `toDisplayString`,\r\n [MERGE_PROPS]: `mergeProps`,\r\n [NORMALIZE_CLASS]: `normalizeClass`,\r\n [NORMALIZE_STYLE]: `normalizeStyle`,\r\n [NORMALIZE_PROPS]: `normalizeProps`,\r\n [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,\r\n [TO_HANDLERS]: `toHandlers`,\r\n [CAMELIZE]: `camelize`,\r\n [CAPITALIZE]: `capitalize`,\r\n [TO_HANDLER_KEY]: `toHandlerKey`,\r\n [SET_BLOCK_TRACKING]: `setBlockTracking`,\r\n [PUSH_SCOPE_ID]: `pushScopeId`,\r\n [POP_SCOPE_ID]: `popScopeId`,\r\n [WITH_CTX]: `withCtx`,\r\n [UNREF]: `unref`,\r\n [IS_REF]: `isRef`,\r\n [WITH_MEMO]: `withMemo`,\r\n [IS_MEMO_SAME]: `isMemoSame`\r\n};\r\nfunction registerRuntimeHelpers(helpers) {\r\n Object.getOwnPropertySymbols(helpers).forEach(s => {\r\n helperNameMap[s] = helpers[s];\r\n });\r\n}\n\n// AST Utilities ---------------------------------------------------------------\r\n// Some expressions, e.g. sequence and conditional expressions, are never\r\n// associated with template nodes, so their source locations are just a stub.\r\n// Container types like CompoundExpression also don't need a real location.\r\nconst locStub = {\r\n source: '',\r\n start: { line: 1, column: 1, offset: 0 },\r\n end: { line: 1, column: 1, offset: 0 }\r\n};\r\nfunction createRoot(children, loc = locStub) {\r\n return {\r\n type: 0 /* ROOT */,\r\n children,\r\n helpers: [],\r\n components: [],\r\n directives: [],\r\n hoists: [],\r\n imports: [],\r\n cached: 0,\r\n temps: 0,\r\n codegenNode: undefined,\r\n loc\r\n };\r\n}\r\nfunction createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) {\r\n if (context) {\r\n if (isBlock) {\r\n context.helper(OPEN_BLOCK);\r\n context.helper(getVNodeBlockHelper(context.inSSR, isComponent));\r\n }\r\n else {\r\n context.helper(getVNodeHelper(context.inSSR, isComponent));\r\n }\r\n if (directives) {\r\n context.helper(WITH_DIRECTIVES);\r\n }\r\n }\r\n return {\r\n type: 13 /* VNODE_CALL */,\r\n tag,\r\n props,\r\n children,\r\n patchFlag,\r\n dynamicProps,\r\n directives,\r\n isBlock,\r\n disableTracking,\r\n isComponent,\r\n loc\r\n };\r\n}\r\nfunction createArrayExpression(elements, loc = locStub) {\r\n return {\r\n type: 17 /* JS_ARRAY_EXPRESSION */,\r\n loc,\r\n elements\r\n };\r\n}\r\nfunction createObjectExpression(properties, loc = locStub) {\r\n return {\r\n type: 15 /* JS_OBJECT_EXPRESSION */,\r\n loc,\r\n properties\r\n };\r\n}\r\nfunction createObjectProperty(key, value) {\r\n return {\r\n type: 16 /* JS_PROPERTY */,\r\n loc: locStub,\r\n key: isString(key) ? createSimpleExpression(key, true) : key,\r\n value\r\n };\r\n}\r\nfunction createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) {\r\n return {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n loc,\r\n content,\r\n isStatic,\r\n constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType\r\n };\r\n}\r\nfunction createInterpolation(content, loc) {\r\n return {\r\n type: 5 /* INTERPOLATION */,\r\n loc,\r\n content: isString(content)\r\n ? createSimpleExpression(content, false, loc)\r\n : content\r\n };\r\n}\r\nfunction createCompoundExpression(children, loc = locStub) {\r\n return {\r\n type: 8 /* COMPOUND_EXPRESSION */,\r\n loc,\r\n children\r\n };\r\n}\r\nfunction createCallExpression(callee, args = [], loc = locStub) {\r\n return {\r\n type: 14 /* JS_CALL_EXPRESSION */,\r\n loc,\r\n callee,\r\n arguments: args\r\n };\r\n}\r\nfunction createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) {\r\n return {\r\n type: 18 /* JS_FUNCTION_EXPRESSION */,\r\n params,\r\n returns,\r\n newline,\r\n isSlot,\r\n loc\r\n };\r\n}\r\nfunction createConditionalExpression(test, consequent, alternate, newline = true) {\r\n return {\r\n type: 19 /* JS_CONDITIONAL_EXPRESSION */,\r\n test,\r\n consequent,\r\n alternate,\r\n newline,\r\n loc: locStub\r\n };\r\n}\r\nfunction createCacheExpression(index, value, isVNode = false) {\r\n return {\r\n type: 20 /* JS_CACHE_EXPRESSION */,\r\n index,\r\n value,\r\n isVNode,\r\n loc: locStub\r\n };\r\n}\r\nfunction createBlockStatement(body) {\r\n return {\r\n type: 21 /* JS_BLOCK_STATEMENT */,\r\n body,\r\n loc: locStub\r\n };\r\n}\r\nfunction createTemplateLiteral(elements) {\r\n return {\r\n type: 22 /* JS_TEMPLATE_LITERAL */,\r\n elements,\r\n loc: locStub\r\n };\r\n}\r\nfunction createIfStatement(test, consequent, alternate) {\r\n return {\r\n type: 23 /* JS_IF_STATEMENT */,\r\n test,\r\n consequent,\r\n alternate,\r\n loc: locStub\r\n };\r\n}\r\nfunction createAssignmentExpression(left, right) {\r\n return {\r\n type: 24 /* JS_ASSIGNMENT_EXPRESSION */,\r\n left,\r\n right,\r\n loc: locStub\r\n };\r\n}\r\nfunction createSequenceExpression(expressions) {\r\n return {\r\n type: 25 /* JS_SEQUENCE_EXPRESSION */,\r\n expressions,\r\n loc: locStub\r\n };\r\n}\r\nfunction createReturnStatement(returns) {\r\n return {\r\n type: 26 /* JS_RETURN_STATEMENT */,\r\n returns,\r\n loc: locStub\r\n };\r\n}\n\nconst isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic;\r\nconst isBuiltInType = (tag, expected) => tag === expected || tag === hyphenate(expected);\r\nfunction isCoreComponent(tag) {\r\n if (isBuiltInType(tag, 'Teleport')) {\r\n return TELEPORT;\r\n }\r\n else if (isBuiltInType(tag, 'Suspense')) {\r\n return SUSPENSE;\r\n }\r\n else if (isBuiltInType(tag, 'KeepAlive')) {\r\n return KEEP_ALIVE;\r\n }\r\n else if (isBuiltInType(tag, 'BaseTransition')) {\r\n return BASE_TRANSITION;\r\n }\r\n}\r\nconst nonIdentifierRE = /^\\d|[^\\$\\w]/;\r\nconst isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);\r\nconst validFirstIdentCharRE = /[A-Za-z_$\\xA0-\\uFFFF]/;\r\nconst validIdentCharRE = /[\\.\\?\\w$\\xA0-\\uFFFF]/;\r\nconst whitespaceRE = /\\s+[.[]\\s*|\\s*[.[]\\s+/g;\r\n/**\r\n * Simple lexer to check if an expression is a member expression. This is\r\n * lax and only checks validity at the root level (i.e. does not validate exps\r\n * inside square brackets), but it's ok since these are only used on template\r\n * expressions and false positives are invalid expressions in the first place.\r\n */\r\nconst isMemberExpressionBrowser = (path) => {\r\n // remove whitespaces around . or [ first\r\n path = path.trim().replace(whitespaceRE, s => s.trim());\r\n let state = 0 /* inMemberExp */;\r\n let stateStack = [];\r\n let currentOpenBracketCount = 0;\r\n let currentOpenParensCount = 0;\r\n let currentStringType = null;\r\n for (let i = 0; i < path.length; i++) {\r\n const char = path.charAt(i);\r\n switch (state) {\r\n case 0 /* inMemberExp */:\r\n if (char === '[') {\r\n stateStack.push(state);\r\n state = 1 /* inBrackets */;\r\n currentOpenBracketCount++;\r\n }\r\n else if (char === '(') {\r\n stateStack.push(state);\r\n state = 2 /* inParens */;\r\n currentOpenParensCount++;\r\n }\r\n else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) {\r\n return false;\r\n }\r\n break;\r\n case 1 /* inBrackets */:\r\n if (char === `'` || char === `\"` || char === '`') {\r\n stateStack.push(state);\r\n state = 3 /* inString */;\r\n currentStringType = char;\r\n }\r\n else if (char === `[`) {\r\n currentOpenBracketCount++;\r\n }\r\n else if (char === `]`) {\r\n if (!--currentOpenBracketCount) {\r\n state = stateStack.pop();\r\n }\r\n }\r\n break;\r\n case 2 /* inParens */:\r\n if (char === `'` || char === `\"` || char === '`') {\r\n stateStack.push(state);\r\n state = 3 /* inString */;\r\n currentStringType = char;\r\n }\r\n else if (char === `(`) {\r\n currentOpenParensCount++;\r\n }\r\n else if (char === `)`) {\r\n // if the exp ends as a call then it should not be considered valid\r\n if (i === path.length - 1) {\r\n return false;\r\n }\r\n if (!--currentOpenParensCount) {\r\n state = stateStack.pop();\r\n }\r\n }\r\n break;\r\n case 3 /* inString */:\r\n if (char === currentStringType) {\r\n state = stateStack.pop();\r\n currentStringType = null;\r\n }\r\n break;\r\n }\r\n }\r\n return !currentOpenBracketCount && !currentOpenParensCount;\r\n};\r\nconst isMemberExpressionNode = NOOP\r\n ;\r\nconst isMemberExpression = isMemberExpressionBrowser\r\n ;\r\nfunction getInnerRange(loc, offset, length) {\r\n const source = loc.source.slice(offset, offset + length);\r\n const newLoc = {\r\n source,\r\n start: advancePositionWithClone(loc.start, loc.source, offset),\r\n end: loc.end\r\n };\r\n if (length != null) {\r\n newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length);\r\n }\r\n return newLoc;\r\n}\r\nfunction advancePositionWithClone(pos, source, numberOfCharacters = source.length) {\r\n return advancePositionWithMutation(extend({}, pos), source, numberOfCharacters);\r\n}\r\n// advance by mutation without cloning (for performance reasons), since this\r\n// gets called a lot in the parser\r\nfunction advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {\r\n let linesCount = 0;\r\n let lastNewLinePos = -1;\r\n for (let i = 0; i < numberOfCharacters; i++) {\r\n if (source.charCodeAt(i) === 10 /* newline char code */) {\r\n linesCount++;\r\n lastNewLinePos = i;\r\n }\r\n }\r\n pos.offset += numberOfCharacters;\r\n pos.line += linesCount;\r\n pos.column =\r\n lastNewLinePos === -1\r\n ? pos.column + numberOfCharacters\r\n : numberOfCharacters - lastNewLinePos;\r\n return pos;\r\n}\r\nfunction assert(condition, msg) {\r\n /* istanbul ignore if */\r\n if (!condition) {\r\n throw new Error(msg || `unexpected compiler condition`);\r\n }\r\n}\r\nfunction findDir(node, name, allowEmpty = false) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ &&\r\n (allowEmpty || p.exp) &&\r\n (isString(name) ? p.name === name : name.test(p.name))) {\r\n return p;\r\n }\r\n }\r\n}\r\nfunction findProp(node, name, dynamicOnly = false, allowEmpty = false) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (dynamicOnly)\r\n continue;\r\n if (p.name === name && (p.value || allowEmpty)) {\r\n return p;\r\n }\r\n }\r\n else if (p.name === 'bind' &&\r\n (p.exp || allowEmpty) &&\r\n isStaticArgOf(p.arg, name)) {\r\n return p;\r\n }\r\n }\r\n}\r\nfunction isStaticArgOf(arg, name) {\r\n return !!(arg && isStaticExp(arg) && arg.content === name);\r\n}\r\nfunction hasDynamicKeyVBind(node) {\r\n return node.props.some(p => p.type === 7 /* DIRECTIVE */ &&\r\n p.name === 'bind' &&\r\n (!p.arg || // v-bind=\"obj\"\r\n p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo]\r\n !p.arg.isStatic) // v-bind:[foo]\r\n );\r\n}\r\nfunction isText(node) {\r\n return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */;\r\n}\r\nfunction isVSlot(p) {\r\n return p.type === 7 /* DIRECTIVE */ && p.name === 'slot';\r\n}\r\nfunction isTemplateNode(node) {\r\n return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */);\r\n}\r\nfunction isSlotOutlet(node) {\r\n return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */;\r\n}\r\nfunction getVNodeHelper(ssr, isComponent) {\r\n return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;\r\n}\r\nfunction getVNodeBlockHelper(ssr, isComponent) {\r\n return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;\r\n}\r\nconst propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);\r\nfunction getUnnormalizedProps(props, callPath = []) {\r\n if (props &&\r\n !isString(props) &&\r\n props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n const callee = props.callee;\r\n if (!isString(callee) && propsHelperSet.has(callee)) {\r\n return getUnnormalizedProps(props.arguments[0], callPath.concat(props));\r\n }\r\n }\r\n return [props, callPath];\r\n}\r\nfunction injectProp(node, prop, context) {\r\n let propsWithInjection;\r\n /**\r\n * 1. mergeProps(...)\r\n * 2. toHandlers(...)\r\n * 3. normalizeProps(...)\r\n * 4. normalizeProps(guardReactiveProps(...))\r\n *\r\n * we need to get the real props before normalization\r\n */\r\n let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];\r\n let callPath = [];\r\n let parentCall;\r\n if (props &&\r\n !isString(props) &&\r\n props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n const ret = getUnnormalizedProps(props);\r\n props = ret[0];\r\n callPath = ret[1];\r\n parentCall = callPath[callPath.length - 1];\r\n }\r\n if (props == null || isString(props)) {\r\n propsWithInjection = createObjectExpression([prop]);\r\n }\r\n else if (props.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // merged props... add ours\r\n // only inject key to object literal if it's the first argument so that\r\n // if doesn't override user provided keys\r\n const first = props.arguments[0];\r\n if (!isString(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n first.properties.unshift(prop);\r\n }\r\n else {\r\n if (props.callee === TO_HANDLERS) {\r\n // #2366\r\n propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [\r\n createObjectExpression([prop]),\r\n props\r\n ]);\r\n }\r\n else {\r\n props.arguments.unshift(createObjectExpression([prop]));\r\n }\r\n }\r\n !propsWithInjection && (propsWithInjection = props);\r\n }\r\n else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n let alreadyExists = false;\r\n // check existing key to avoid overriding user provided keys\r\n if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) {\r\n const propKeyName = prop.key.content;\r\n alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n p.key.content === propKeyName);\r\n }\r\n if (!alreadyExists) {\r\n props.properties.unshift(prop);\r\n }\r\n propsWithInjection = props;\r\n }\r\n else {\r\n // single v-bind with expression, return a merged replacement\r\n propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [\r\n createObjectExpression([prop]),\r\n props\r\n ]);\r\n // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`,\r\n // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`,\r\n // the `guardReactiveProps` will no longer be needed\r\n if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) {\r\n parentCall = callPath[callPath.length - 2];\r\n }\r\n }\r\n if (node.type === 13 /* VNODE_CALL */) {\r\n if (parentCall) {\r\n parentCall.arguments[0] = propsWithInjection;\r\n }\r\n else {\r\n node.props = propsWithInjection;\r\n }\r\n }\r\n else {\r\n if (parentCall) {\r\n parentCall.arguments[0] = propsWithInjection;\r\n }\r\n else {\r\n node.arguments[2] = propsWithInjection;\r\n }\r\n }\r\n}\r\nfunction toValidAssetId(name, type) {\r\n // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character\r\n return `_${type}_${name.replace(/[^\\w]/g, (searchValue, replaceValue) => {\r\n return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString();\r\n })}`;\r\n}\r\n// Check if a node contains expressions that reference current context scope ids\r\nfunction hasScopeRef(node, ids) {\r\n if (!node || Object.keys(ids).length === 0) {\r\n return false;\r\n }\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ &&\r\n (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) {\r\n return true;\r\n }\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 11 /* FOR */:\r\n if (hasScopeRef(node.source, ids)) {\r\n return true;\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 9 /* IF */:\r\n return node.branches.some(b => hasScopeRef(b, ids));\r\n case 10 /* IF_BRANCH */:\r\n if (hasScopeRef(node.condition, ids)) {\r\n return true;\r\n }\r\n return node.children.some(c => hasScopeRef(c, ids));\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n return (!node.isStatic &&\r\n isSimpleIdentifier(node.content) &&\r\n !!ids[node.content]);\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n return node.children.some(c => isObject(c) && hasScopeRef(c, ids));\r\n case 5 /* INTERPOLATION */:\r\n case 12 /* TEXT_CALL */:\r\n return hasScopeRef(node.content, ids);\r\n case 2 /* TEXT */:\r\n case 3 /* COMMENT */:\r\n return false;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) ;\r\n return false;\r\n }\r\n}\r\nfunction getMemoedVNodeCall(node) {\r\n if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) {\r\n return node.arguments[1].returns;\r\n }\r\n else {\r\n return node;\r\n }\r\n}\r\nfunction makeBlock(node, { helper, removeHelper, inSSR }) {\r\n if (!node.isBlock) {\r\n node.isBlock = true;\r\n removeHelper(getVNodeHelper(inSSR, node.isComponent));\r\n helper(OPEN_BLOCK);\r\n helper(getVNodeBlockHelper(inSSR, node.isComponent));\r\n }\r\n}\n\nconst deprecationData = {\r\n [\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */]: {\r\n message: `Platform-native elements with \"is\" prop will no longer be ` +\r\n `treated as components in Vue 3 unless the \"is\" value is explicitly ` +\r\n `prefixed with \"vue:\".`,\r\n link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`\r\n },\r\n [\"COMPILER_V_BIND_SYNC\" /* COMPILER_V_BIND_SYNC */]: {\r\n message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +\r\n `argument instead. \\`v-bind:${key}.sync\\` should be changed to ` +\r\n `\\`v-model:${key}\\`.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-model.html`\r\n },\r\n [\"COMPILER_V_BIND_PROP\" /* COMPILER_V_BIND_PROP */]: {\r\n message: `.prop modifier for v-bind has been removed and no longer necessary. ` +\r\n `Vue 3 will automatically set a binding as DOM property when appropriate.`\r\n },\r\n [\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */]: {\r\n message: `v-bind=\"obj\" usage is now order sensitive and behaves like JavaScript ` +\r\n `object spread: it will now overwrite an existing non-mergeable attribute ` +\r\n `that appears before v-bind in the case of conflict. ` +\r\n `To retain 2.x behavior, move v-bind to make it the first attribute. ` +\r\n `You can also suppress this warning if the usage is intended.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-bind.html`\r\n },\r\n [\"COMPILER_V_ON_NATIVE\" /* COMPILER_V_ON_NATIVE */]: {\r\n message: `.native modifier for v-on has been removed as is no longer necessary.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`\r\n },\r\n [\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {\r\n message: `v-if / v-for precedence when used on the same element has changed ` +\r\n `in Vue 3: v-if now takes higher precedence and will no longer have ` +\r\n `access to v-for scope variables. It is best to avoid the ambiguity ` +\r\n `with <template> tags or use a computed property that filters v-for ` +\r\n `data source.`,\r\n link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`\r\n },\r\n [\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */]: {\r\n message: `<template> with no special directives will render as a native template ` +\r\n `element instead of its inner content in Vue 3.`\r\n },\r\n [\"COMPILER_INLINE_TEMPLATE\" /* COMPILER_INLINE_TEMPLATE */]: {\r\n message: `\"inline-template\" has been removed in Vue 3.`,\r\n link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`\r\n },\r\n [\"COMPILER_FILTER\" /* COMPILER_FILTERS */]: {\r\n message: `filters have been removed in Vue 3. ` +\r\n `The \"|\" symbol will be treated as native JavaScript bitwise OR operator. ` +\r\n `Use method calls or computed properties instead.`,\r\n link: `https://v3.vuejs.org/guide/migration/filters.html`\r\n }\r\n};\r\nfunction getCompatValue(key, context) {\r\n const config = context.options\r\n ? context.options.compatConfig\r\n : context.compatConfig;\r\n const value = config && config[key];\r\n if (key === 'MODE') {\r\n return value || 3; // compiler defaults to v3 behavior\r\n }\r\n else {\r\n return value;\r\n }\r\n}\r\nfunction isCompatEnabled(key, context) {\r\n const mode = getCompatValue('MODE', context);\r\n const value = getCompatValue(key, context);\r\n // in v3 mode, only enable if explicitly set to true\r\n // otherwise enable for any non-false value\r\n return mode === 3 ? value === true : value !== false;\r\n}\r\nfunction checkCompatEnabled(key, context, loc, ...args) {\r\n const enabled = isCompatEnabled(key, context);\r\n if ((process.env.NODE_ENV !== 'production') && enabled) {\r\n warnDeprecation(key, context, loc, ...args);\r\n }\r\n return enabled;\r\n}\r\nfunction warnDeprecation(key, context, loc, ...args) {\r\n const val = getCompatValue(key, context);\r\n if (val === 'suppress-warning') {\r\n return;\r\n }\r\n const { message, link } = deprecationData[key];\r\n const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\\n Details: ${link}` : ``}`;\r\n const err = new SyntaxError(msg);\r\n err.code = key;\r\n if (loc)\r\n err.loc = loc;\r\n context.onWarn(err);\r\n}\n\n// The default decoder only provides escapes for characters reserved as part of\r\n// the template syntax, and is only used if the custom renderer did not provide\r\n// a platform-specific decoder.\r\nconst decodeRE = /&(gt|lt|amp|apos|quot);/g;\r\nconst decodeMap = {\r\n gt: '>',\r\n lt: '<',\r\n amp: '&',\r\n apos: \"'\",\r\n quot: '\"'\r\n};\r\nconst defaultParserOptions = {\r\n delimiters: [`{{`, `}}`],\r\n getNamespace: () => 0 /* HTML */,\r\n getTextMode: () => 0 /* DATA */,\r\n isVoidTag: NO,\r\n isPreTag: NO,\r\n isCustomElement: NO,\r\n decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),\r\n onError: defaultOnError,\r\n onWarn: defaultOnWarn,\r\n comments: (process.env.NODE_ENV !== 'production')\r\n};\r\nfunction baseParse(content, options = {}) {\r\n const context = createParserContext(content, options);\r\n const start = getCursor(context);\r\n return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start));\r\n}\r\nfunction createParserContext(content, rawOptions) {\r\n const options = extend({}, defaultParserOptions);\r\n let key;\r\n for (key in rawOptions) {\r\n // @ts-ignore\r\n options[key] =\r\n rawOptions[key] === undefined\r\n ? defaultParserOptions[key]\r\n : rawOptions[key];\r\n }\r\n return {\r\n options,\r\n column: 1,\r\n line: 1,\r\n offset: 0,\r\n originalSource: content,\r\n source: content,\r\n inPre: false,\r\n inVPre: false,\r\n onWarn: options.onWarn\r\n };\r\n}\r\nfunction parseChildren(context, mode, ancestors) {\r\n const parent = last(ancestors);\r\n const ns = parent ? parent.ns : 0 /* HTML */;\r\n const nodes = [];\r\n while (!isEnd(context, mode, ancestors)) {\r\n const s = context.source;\r\n let node = undefined;\r\n if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) {\r\n if (!context.inVPre && startsWith(s, context.options.delimiters[0])) {\r\n // '{{'\r\n node = parseInterpolation(context, mode);\r\n }\r\n else if (mode === 0 /* DATA */ && s[0] === '<') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state\r\n if (s.length === 1) {\r\n emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1);\r\n }\r\n else if (s[1] === '!') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state\r\n if (startsWith(s, '<!--')) {\r\n node = parseComment(context);\r\n }\r\n else if (startsWith(s, '<!DOCTYPE')) {\r\n // Ignore DOCTYPE by a limitation.\r\n node = parseBogusComment(context);\r\n }\r\n else if (startsWith(s, '<![CDATA[')) {\r\n if (ns !== 0 /* HTML */) {\r\n node = parseCDATA(context, ancestors);\r\n }\r\n else {\r\n emitError(context, 1 /* CDATA_IN_HTML_CONTENT */);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else {\r\n emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else if (s[1] === '/') {\r\n // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state\r\n if (s.length === 2) {\r\n emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2);\r\n }\r\n else if (s[2] === '>') {\r\n emitError(context, 14 /* MISSING_END_TAG_NAME */, 2);\r\n advanceBy(context, 3);\r\n continue;\r\n }\r\n else if (/[a-z]/i.test(s[2])) {\r\n emitError(context, 23 /* X_INVALID_END_TAG */);\r\n parseTag(context, 1 /* End */, parent);\r\n continue;\r\n }\r\n else {\r\n emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2);\r\n node = parseBogusComment(context);\r\n }\r\n }\r\n else if (/[a-z]/i.test(s[1])) {\r\n node = parseElement(context, ancestors);\r\n // 2.x <template> with no directive compat\r\n if (isCompatEnabled(\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */, context) &&\r\n node &&\r\n node.tag === 'template' &&\r\n !node.props.some(p => p.type === 7 /* DIRECTIVE */ &&\r\n isSpecialTemplateDirective(p.name))) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warnDeprecation(\"COMPILER_NATIVE_TEMPLATE\" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc);\r\n node = node.children;\r\n }\r\n }\r\n else if (s[1] === '?') {\r\n emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1);\r\n node = parseBogusComment(context);\r\n }\r\n else {\r\n emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1);\r\n }\r\n }\r\n }\r\n if (!node) {\r\n node = parseText(context, mode);\r\n }\r\n if (isArray(node)) {\r\n for (let i = 0; i < node.length; i++) {\r\n pushNode(nodes, node[i]);\r\n }\r\n }\r\n else {\r\n pushNode(nodes, node);\r\n }\r\n }\r\n // Whitespace handling strategy like v2\r\n let removedWhitespace = false;\r\n if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {\r\n const shouldCondense = context.options.whitespace !== 'preserve';\r\n for (let i = 0; i < nodes.length; i++) {\r\n const node = nodes[i];\r\n if (!context.inPre && node.type === 2 /* TEXT */) {\r\n if (!/[^\\t\\r\\n\\f ]/.test(node.content)) {\r\n const prev = nodes[i - 1];\r\n const next = nodes[i + 1];\r\n // Remove if:\r\n // - the whitespace is the first or last node, or:\r\n // - (condense mode) the whitespace is adjacent to a comment, or:\r\n // - (condense mode) the whitespace is between two elements AND contains newline\r\n if (!prev ||\r\n !next ||\r\n (shouldCondense &&\r\n (prev.type === 3 /* COMMENT */ ||\r\n next.type === 3 /* COMMENT */ ||\r\n (prev.type === 1 /* ELEMENT */ &&\r\n next.type === 1 /* ELEMENT */ &&\r\n /[\\r\\n]/.test(node.content))))) {\r\n removedWhitespace = true;\r\n nodes[i] = null;\r\n }\r\n else {\r\n // Otherwise, the whitespace is condensed into a single space\r\n node.content = ' ';\r\n }\r\n }\r\n else if (shouldCondense) {\r\n // in condense mode, consecutive whitespaces in text are condensed\r\n // down to a single space.\r\n node.content = node.content.replace(/[\\t\\r\\n\\f ]+/g, ' ');\r\n }\r\n }\r\n // Remove comment nodes if desired by configuration.\r\n else if (node.type === 3 /* COMMENT */ && !context.options.comments) {\r\n removedWhitespace = true;\r\n nodes[i] = null;\r\n }\r\n }\r\n if (context.inPre && parent && context.options.isPreTag(parent.tag)) {\r\n // remove leading newline per html spec\r\n // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element\r\n const first = nodes[0];\r\n if (first && first.type === 2 /* TEXT */) {\r\n first.content = first.content.replace(/^\\r?\\n/, '');\r\n }\r\n }\r\n }\r\n return removedWhitespace ? nodes.filter(Boolean) : nodes;\r\n}\r\nfunction pushNode(nodes, node) {\r\n if (node.type === 2 /* TEXT */) {\r\n const prev = last(nodes);\r\n // Merge if both this and the previous node are text and those are\r\n // consecutive. This happens for cases like \"a < b\".\r\n if (prev &&\r\n prev.type === 2 /* TEXT */ &&\r\n prev.loc.end.offset === node.loc.start.offset) {\r\n prev.content += node.content;\r\n prev.loc.end = node.loc.end;\r\n prev.loc.source += node.loc.source;\r\n return;\r\n }\r\n }\r\n nodes.push(node);\r\n}\r\nfunction parseCDATA(context, ancestors) {\r\n advanceBy(context, 9);\r\n const nodes = parseChildren(context, 3 /* CDATA */, ancestors);\r\n if (context.source.length === 0) {\r\n emitError(context, 6 /* EOF_IN_CDATA */);\r\n }\r\n else {\r\n advanceBy(context, 3);\r\n }\r\n return nodes;\r\n}\r\nfunction parseComment(context) {\r\n const start = getCursor(context);\r\n let content;\r\n // Regular comment.\r\n const match = /--(\\!)?>/.exec(context.source);\r\n if (!match) {\r\n content = context.source.slice(4);\r\n advanceBy(context, context.source.length);\r\n emitError(context, 7 /* EOF_IN_COMMENT */);\r\n }\r\n else {\r\n if (match.index <= 3) {\r\n emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */);\r\n }\r\n if (match[1]) {\r\n emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */);\r\n }\r\n content = context.source.slice(4, match.index);\r\n // Advancing with reporting nested comments.\r\n const s = context.source.slice(0, match.index);\r\n let prevIndex = 1, nestedIndex = 0;\r\n while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) {\r\n advanceBy(context, nestedIndex - prevIndex + 1);\r\n if (nestedIndex + 4 < s.length) {\r\n emitError(context, 16 /* NESTED_COMMENT */);\r\n }\r\n prevIndex = nestedIndex + 1;\r\n }\r\n advanceBy(context, match.index + match[0].length - prevIndex + 1);\r\n }\r\n return {\r\n type: 3 /* COMMENT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseBogusComment(context) {\r\n const start = getCursor(context);\r\n const contentStart = context.source[1] === '?' ? 1 : 2;\r\n let content;\r\n const closeIndex = context.source.indexOf('>');\r\n if (closeIndex === -1) {\r\n content = context.source.slice(contentStart);\r\n advanceBy(context, context.source.length);\r\n }\r\n else {\r\n content = context.source.slice(contentStart, closeIndex);\r\n advanceBy(context, closeIndex + 1);\r\n }\r\n return {\r\n type: 3 /* COMMENT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseElement(context, ancestors) {\r\n // Start tag.\r\n const wasInPre = context.inPre;\r\n const wasInVPre = context.inVPre;\r\n const parent = last(ancestors);\r\n const element = parseTag(context, 0 /* Start */, parent);\r\n const isPreBoundary = context.inPre && !wasInPre;\r\n const isVPreBoundary = context.inVPre && !wasInVPre;\r\n if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {\r\n // #4030 self-closing <pre> tag\r\n if (isPreBoundary) {\r\n context.inPre = false;\r\n }\r\n if (isVPreBoundary) {\r\n context.inVPre = false;\r\n }\r\n return element;\r\n }\r\n // Children.\r\n ancestors.push(element);\r\n const mode = context.options.getTextMode(element, parent);\r\n const children = parseChildren(context, mode, ancestors);\r\n ancestors.pop();\r\n // 2.x inline-template compat\r\n {\r\n const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template');\r\n if (inlineTemplateProp &&\r\n checkCompatEnabled(\"COMPILER_INLINE_TEMPLATE\" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {\r\n const loc = getSelection(context, element.loc.end);\r\n inlineTemplateProp.value = {\r\n type: 2 /* TEXT */,\r\n content: loc.source,\r\n loc\r\n };\r\n }\r\n }\r\n element.children = children;\r\n // End tag.\r\n if (startsWithEndTagOpen(context.source, element.tag)) {\r\n parseTag(context, 1 /* End */, parent);\r\n }\r\n else {\r\n emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start);\r\n if (context.source.length === 0 && element.tag.toLowerCase() === 'script') {\r\n const first = children[0];\r\n if (first && startsWith(first.loc.source, '<!--')) {\r\n emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */);\r\n }\r\n }\r\n }\r\n element.loc = getSelection(context, element.loc.start);\r\n if (isPreBoundary) {\r\n context.inPre = false;\r\n }\r\n if (isVPreBoundary) {\r\n context.inVPre = false;\r\n }\r\n return element;\r\n}\r\nconst isSpecialTemplateDirective = /*#__PURE__*/ makeMap(`if,else,else-if,for,slot`);\r\nfunction parseTag(context, type, parent) {\r\n // Tag open.\r\n const start = getCursor(context);\r\n const match = /^<\\/?([a-z][^\\t\\r\\n\\f />]*)/i.exec(context.source);\r\n const tag = match[1];\r\n const ns = context.options.getNamespace(tag, parent);\r\n advanceBy(context, match[0].length);\r\n advanceSpaces(context);\r\n // save current state in case we need to re-parse attributes with v-pre\r\n const cursor = getCursor(context);\r\n const currentSource = context.source;\r\n // check <pre> tag\r\n if (context.options.isPreTag(tag)) {\r\n context.inPre = true;\r\n }\r\n // Attributes.\r\n let props = parseAttributes(context, type);\r\n // check v-pre\r\n if (type === 0 /* Start */ &&\r\n !context.inVPre &&\r\n props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) {\r\n context.inVPre = true;\r\n // reset context\r\n extend(context, cursor);\r\n context.source = currentSource;\r\n // re-parse attrs and filter out v-pre itself\r\n props = parseAttributes(context, type).filter(p => p.name !== 'v-pre');\r\n }\r\n // Tag close.\r\n let isSelfClosing = false;\r\n if (context.source.length === 0) {\r\n emitError(context, 9 /* EOF_IN_TAG */);\r\n }\r\n else {\r\n isSelfClosing = startsWith(context.source, '/>');\r\n if (type === 1 /* End */ && isSelfClosing) {\r\n emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */);\r\n }\r\n advanceBy(context, isSelfClosing ? 2 : 1);\r\n }\r\n if (type === 1 /* End */) {\r\n return;\r\n }\r\n // 2.x deprecation checks\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n isCompatEnabled(\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {\r\n let hasIf = false;\r\n let hasFor = false;\r\n for (let i = 0; i < props.length; i++) {\r\n const p = props[i];\r\n if (p.type === 7 /* DIRECTIVE */) {\r\n if (p.name === 'if') {\r\n hasIf = true;\r\n }\r\n else if (p.name === 'for') {\r\n hasFor = true;\r\n }\r\n }\r\n if (hasIf && hasFor) {\r\n warnDeprecation(\"COMPILER_V_IF_V_FOR_PRECEDENCE\" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));\r\n break;\r\n }\r\n }\r\n }\r\n let tagType = 0 /* ELEMENT */;\r\n if (!context.inVPre) {\r\n if (tag === 'slot') {\r\n tagType = 2 /* SLOT */;\r\n }\r\n else if (tag === 'template') {\r\n if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) {\r\n tagType = 3 /* TEMPLATE */;\r\n }\r\n }\r\n else if (isComponent(tag, props, context)) {\r\n tagType = 1 /* COMPONENT */;\r\n }\r\n }\r\n return {\r\n type: 1 /* ELEMENT */,\r\n ns,\r\n tag,\r\n tagType,\r\n props,\r\n isSelfClosing,\r\n children: [],\r\n loc: getSelection(context, start),\r\n codegenNode: undefined // to be created during transform phase\r\n };\r\n}\r\nfunction isComponent(tag, props, context) {\r\n const options = context.options;\r\n if (options.isCustomElement(tag)) {\r\n return false;\r\n }\r\n if (tag === 'component' ||\r\n /^[A-Z]/.test(tag) ||\r\n isCoreComponent(tag) ||\r\n (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||\r\n (options.isNativeTag && !options.isNativeTag(tag))) {\r\n return true;\r\n }\r\n // at this point the tag should be a native tag, but check for potential \"is\"\r\n // casting\r\n for (let i = 0; i < props.length; i++) {\r\n const p = props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (p.name === 'is' && p.value) {\r\n if (p.value.content.startsWith('vue:')) {\r\n return true;\r\n }\r\n else if (checkCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {\r\n return true;\r\n }\r\n }\r\n }\r\n else {\r\n // directive\r\n // v-is (TODO Deprecate)\r\n if (p.name === 'is') {\r\n return true;\r\n }\r\n else if (\r\n // :is on plain element - only treat as component in compat mode\r\n p.name === 'bind' &&\r\n isStaticArgOf(p.arg, 'is') &&\r\n true &&\r\n checkCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {\r\n return true;\r\n }\r\n }\r\n }\r\n}\r\nfunction parseAttributes(context, type) {\r\n const props = [];\r\n const attributeNames = new Set();\r\n while (context.source.length > 0 &&\r\n !startsWith(context.source, '>') &&\r\n !startsWith(context.source, '/>')) {\r\n if (startsWith(context.source, '/')) {\r\n emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */);\r\n advanceBy(context, 1);\r\n advanceSpaces(context);\r\n continue;\r\n }\r\n if (type === 1 /* End */) {\r\n emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);\r\n }\r\n const attr = parseAttribute(context, attributeNames);\r\n // Trim whitespace between class\r\n // https://github.com/vuejs/vue-next/issues/4251\r\n if (attr.type === 6 /* ATTRIBUTE */ &&\r\n attr.value &&\r\n attr.name === 'class') {\r\n attr.value.content = attr.value.content.replace(/\\s+/g, ' ').trim();\r\n }\r\n if (type === 0 /* Start */) {\r\n props.push(attr);\r\n }\r\n if (/^[^\\t\\r\\n\\f />]/.test(context.source)) {\r\n emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */);\r\n }\r\n advanceSpaces(context);\r\n }\r\n return props;\r\n}\r\nfunction parseAttribute(context, nameSet) {\r\n // Name.\r\n const start = getCursor(context);\r\n const match = /^[^\\t\\r\\n\\f />][^\\t\\r\\n\\f />=]*/.exec(context.source);\r\n const name = match[0];\r\n if (nameSet.has(name)) {\r\n emitError(context, 2 /* DUPLICATE_ATTRIBUTE */);\r\n }\r\n nameSet.add(name);\r\n if (name[0] === '=') {\r\n emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */);\r\n }\r\n {\r\n const pattern = /[\"'<]/g;\r\n let m;\r\n while ((m = pattern.exec(name))) {\r\n emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index);\r\n }\r\n }\r\n advanceBy(context, name.length);\r\n // Value\r\n let value = undefined;\r\n if (/^[\\t\\r\\n\\f ]*=/.test(context.source)) {\r\n advanceSpaces(context);\r\n advanceBy(context, 1);\r\n advanceSpaces(context);\r\n value = parseAttributeValue(context);\r\n if (!value) {\r\n emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */);\r\n }\r\n }\r\n const loc = getSelection(context, start);\r\n if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\\.|@|#)/.test(name)) {\r\n const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\\.|^@|^#)(\\[[^\\]]+\\]|[^\\.]+))?(.+)?$/i.exec(name);\r\n let isPropShorthand = startsWith(name, '.');\r\n let dirName = match[1] ||\r\n (isPropShorthand || startsWith(name, ':')\r\n ? 'bind'\r\n : startsWith(name, '@')\r\n ? 'on'\r\n : 'slot');\r\n let arg;\r\n if (match[2]) {\r\n const isSlot = dirName === 'slot';\r\n const startOffset = name.lastIndexOf(match[2]);\r\n const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));\r\n let content = match[2];\r\n let isStatic = true;\r\n if (content.startsWith('[')) {\r\n isStatic = false;\r\n if (!content.endsWith(']')) {\r\n emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);\r\n content = content.slice(1);\r\n }\r\n else {\r\n content = content.slice(1, content.length - 1);\r\n }\r\n }\r\n else if (isSlot) {\r\n // #1241 special case for v-slot: vuetify relies extensively on slot\r\n // names containing dots. v-slot doesn't have any modifiers and Vue 2.x\r\n // supports such usage so we are keeping it consistent with 2.x.\r\n content += match[3] || '';\r\n }\r\n arg = {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n content,\r\n isStatic,\r\n constType: isStatic\r\n ? 3 /* CAN_STRINGIFY */\r\n : 0 /* NOT_CONSTANT */,\r\n loc\r\n };\r\n }\r\n if (value && value.isQuoted) {\r\n const valueLoc = value.loc;\r\n valueLoc.start.offset++;\r\n valueLoc.start.column++;\r\n valueLoc.end = advancePositionWithClone(valueLoc.start, value.content);\r\n valueLoc.source = valueLoc.source.slice(1, -1);\r\n }\r\n const modifiers = match[3] ? match[3].slice(1).split('.') : [];\r\n if (isPropShorthand)\r\n modifiers.push('prop');\r\n // 2.x compat v-bind:foo.sync -> v-model:foo\r\n if (dirName === 'bind' && arg) {\r\n if (modifiers.includes('sync') &&\r\n checkCompatEnabled(\"COMPILER_V_BIND_SYNC\" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {\r\n dirName = 'model';\r\n modifiers.splice(modifiers.indexOf('sync'), 1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && modifiers.includes('prop')) {\r\n checkCompatEnabled(\"COMPILER_V_BIND_PROP\" /* COMPILER_V_BIND_PROP */, context, loc);\r\n }\r\n }\r\n return {\r\n type: 7 /* DIRECTIVE */,\r\n name: dirName,\r\n exp: value && {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n content: value.content,\r\n isStatic: false,\r\n // Treat as non-constant by default. This can be potentially set to\r\n // other values by `transformExpression` to make it eligible for hoisting.\r\n constType: 0 /* NOT_CONSTANT */,\r\n loc: value.loc\r\n },\r\n arg,\r\n modifiers,\r\n loc\r\n };\r\n }\r\n // missing directive name or illegal directive name\r\n if (!context.inVPre && startsWith(name, 'v-')) {\r\n emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);\r\n }\r\n return {\r\n type: 6 /* ATTRIBUTE */,\r\n name,\r\n value: value && {\r\n type: 2 /* TEXT */,\r\n content: value.content,\r\n loc: value.loc\r\n },\r\n loc\r\n };\r\n}\r\nfunction parseAttributeValue(context) {\r\n const start = getCursor(context);\r\n let content;\r\n const quote = context.source[0];\r\n const isQuoted = quote === `\"` || quote === `'`;\r\n if (isQuoted) {\r\n // Quoted value.\r\n advanceBy(context, 1);\r\n const endIndex = context.source.indexOf(quote);\r\n if (endIndex === -1) {\r\n content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n else {\r\n content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */);\r\n advanceBy(context, 1);\r\n }\r\n }\r\n else {\r\n // Unquoted\r\n const match = /^[^\\t\\r\\n\\f >]+/.exec(context.source);\r\n if (!match) {\r\n return undefined;\r\n }\r\n const unexpectedChars = /[\"'<=`]/g;\r\n let m;\r\n while ((m = unexpectedChars.exec(match[0]))) {\r\n emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index);\r\n }\r\n content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n return { content, isQuoted, loc: getSelection(context, start) };\r\n}\r\nfunction parseInterpolation(context, mode) {\r\n const [open, close] = context.options.delimiters;\r\n const closeIndex = context.source.indexOf(close, open.length);\r\n if (closeIndex === -1) {\r\n emitError(context, 25 /* X_MISSING_INTERPOLATION_END */);\r\n return undefined;\r\n }\r\n const start = getCursor(context);\r\n advanceBy(context, open.length);\r\n const innerStart = getCursor(context);\r\n const innerEnd = getCursor(context);\r\n const rawContentLength = closeIndex - open.length;\r\n const rawContent = context.source.slice(0, rawContentLength);\r\n const preTrimContent = parseTextData(context, rawContentLength, mode);\r\n const content = preTrimContent.trim();\r\n const startOffset = preTrimContent.indexOf(content);\r\n if (startOffset > 0) {\r\n advancePositionWithMutation(innerStart, rawContent, startOffset);\r\n }\r\n const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset);\r\n advancePositionWithMutation(innerEnd, rawContent, endOffset);\r\n advanceBy(context, close.length);\r\n return {\r\n type: 5 /* INTERPOLATION */,\r\n content: {\r\n type: 4 /* SIMPLE_EXPRESSION */,\r\n isStatic: false,\r\n // Set `isConstant` to false by default and will decide in transformExpression\r\n constType: 0 /* NOT_CONSTANT */,\r\n content,\r\n loc: getSelection(context, innerStart, innerEnd)\r\n },\r\n loc: getSelection(context, start)\r\n };\r\n}\r\nfunction parseText(context, mode) {\r\n const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]];\r\n let endIndex = context.source.length;\r\n for (let i = 0; i < endTokens.length; i++) {\r\n const index = context.source.indexOf(endTokens[i], 1);\r\n if (index !== -1 && endIndex > index) {\r\n endIndex = index;\r\n }\r\n }\r\n const start = getCursor(context);\r\n const content = parseTextData(context, endIndex, mode);\r\n return {\r\n type: 2 /* TEXT */,\r\n content,\r\n loc: getSelection(context, start)\r\n };\r\n}\r\n/**\r\n * Get text data with a given length from the current location.\r\n * This translates HTML entities in the text data.\r\n */\r\nfunction parseTextData(context, length, mode) {\r\n const rawText = context.source.slice(0, length);\r\n advanceBy(context, length);\r\n if (mode === 2 /* RAWTEXT */ ||\r\n mode === 3 /* CDATA */ ||\r\n rawText.indexOf('&') === -1) {\r\n return rawText;\r\n }\r\n else {\r\n // DATA or RCDATA containing \"&\"\". Entity decoding required.\r\n return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */);\r\n }\r\n}\r\nfunction getCursor(context) {\r\n const { column, line, offset } = context;\r\n return { column, line, offset };\r\n}\r\nfunction getSelection(context, start, end) {\r\n end = end || getCursor(context);\r\n return {\r\n start,\r\n end,\r\n source: context.originalSource.slice(start.offset, end.offset)\r\n };\r\n}\r\nfunction last(xs) {\r\n return xs[xs.length - 1];\r\n}\r\nfunction startsWith(source, searchString) {\r\n return source.startsWith(searchString);\r\n}\r\nfunction advanceBy(context, numberOfCharacters) {\r\n const { source } = context;\r\n advancePositionWithMutation(context, source, numberOfCharacters);\r\n context.source = source.slice(numberOfCharacters);\r\n}\r\nfunction advanceSpaces(context) {\r\n const match = /^[\\t\\r\\n\\f ]+/.exec(context.source);\r\n if (match) {\r\n advanceBy(context, match[0].length);\r\n }\r\n}\r\nfunction getNewPosition(context, start, numberOfCharacters) {\r\n return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters);\r\n}\r\nfunction emitError(context, code, offset, loc = getCursor(context)) {\r\n if (offset) {\r\n loc.offset += offset;\r\n loc.column += offset;\r\n }\r\n context.options.onError(createCompilerError(code, {\r\n start: loc,\r\n end: loc,\r\n source: ''\r\n }));\r\n}\r\nfunction isEnd(context, mode, ancestors) {\r\n const s = context.source;\r\n switch (mode) {\r\n case 0 /* DATA */:\r\n if (startsWith(s, '</')) {\r\n // TODO: probably bad performance\r\n for (let i = ancestors.length - 1; i >= 0; --i) {\r\n if (startsWithEndTagOpen(s, ancestors[i].tag)) {\r\n return true;\r\n }\r\n }\r\n }\r\n break;\r\n case 1 /* RCDATA */:\r\n case 2 /* RAWTEXT */: {\r\n const parent = last(ancestors);\r\n if (parent && startsWithEndTagOpen(s, parent.tag)) {\r\n return true;\r\n }\r\n break;\r\n }\r\n case 3 /* CDATA */:\r\n if (startsWith(s, ']]>')) {\r\n return true;\r\n }\r\n break;\r\n }\r\n return !s;\r\n}\r\nfunction startsWithEndTagOpen(source, tag) {\r\n return (startsWith(source, '</') &&\r\n source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() &&\r\n /[\\t\\r\\n\\f />]/.test(source[2 + tag.length] || '>'));\r\n}\n\nfunction hoistStatic(root, context) {\r\n walk(root, context, \r\n // Root node is unfortunately non-hoistable due to potential parent\r\n // fallthrough attributes.\r\n isSingleElementRoot(root, root.children[0]));\r\n}\r\nfunction isSingleElementRoot(root, child) {\r\n const { children } = root;\r\n return (children.length === 1 &&\r\n child.type === 1 /* ELEMENT */ &&\r\n !isSlotOutlet(child));\r\n}\r\nfunction walk(node, context, doNotHoistNode = false) {\r\n const { children } = node;\r\n const originalCount = children.length;\r\n let hoistedCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n // only plain elements & text calls are eligible for hoisting.\r\n if (child.type === 1 /* ELEMENT */ &&\r\n child.tagType === 0 /* ELEMENT */) {\r\n const constantType = doNotHoistNode\r\n ? 0 /* NOT_CONSTANT */\r\n : getConstantType(child, context);\r\n if (constantType > 0 /* NOT_CONSTANT */) {\r\n if (constantType >= 2 /* CAN_HOIST */) {\r\n child.codegenNode.patchFlag =\r\n -1 /* HOISTED */ + ((process.env.NODE_ENV !== 'production') ? ` /* HOISTED */` : ``);\r\n child.codegenNode = context.hoist(child.codegenNode);\r\n hoistedCount++;\r\n continue;\r\n }\r\n }\r\n else {\r\n // node may contain dynamic children, but its props may be eligible for\r\n // hoisting.\r\n const codegenNode = child.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n const flag = getPatchFlag(codegenNode);\r\n if ((!flag ||\r\n flag === 512 /* NEED_PATCH */ ||\r\n flag === 1 /* TEXT */) &&\r\n getGeneratedPropsConstantType(child, context) >=\r\n 2 /* CAN_HOIST */) {\r\n const props = getNodeProps(child);\r\n if (props) {\r\n codegenNode.props = context.hoist(props);\r\n }\r\n }\r\n if (codegenNode.dynamicProps) {\r\n codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);\r\n }\r\n }\r\n }\r\n }\r\n else if (child.type === 12 /* TEXT_CALL */ &&\r\n getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {\r\n child.codegenNode = context.hoist(child.codegenNode);\r\n hoistedCount++;\r\n }\r\n // walk further\r\n if (child.type === 1 /* ELEMENT */) {\r\n const isComponent = child.tagType === 1 /* COMPONENT */;\r\n if (isComponent) {\r\n context.scopes.vSlot++;\r\n }\r\n walk(child, context);\r\n if (isComponent) {\r\n context.scopes.vSlot--;\r\n }\r\n }\r\n else if (child.type === 11 /* FOR */) {\r\n // Do not hoist v-for single child because it has to be a block\r\n walk(child, context, child.children.length === 1);\r\n }\r\n else if (child.type === 9 /* IF */) {\r\n for (let i = 0; i < child.branches.length; i++) {\r\n // Do not hoist v-if single child because it has to be a block\r\n walk(child.branches[i], context, child.branches[i].children.length === 1);\r\n }\r\n }\r\n }\r\n if (hoistedCount && context.transformHoist) {\r\n context.transformHoist(children, context, node);\r\n }\r\n // all children were hoisted - the entire children array is hoistable.\r\n if (hoistedCount &&\r\n hoistedCount === originalCount &&\r\n node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n node.codegenNode &&\r\n node.codegenNode.type === 13 /* VNODE_CALL */ &&\r\n isArray(node.codegenNode.children)) {\r\n node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children));\r\n }\r\n}\r\nfunction getConstantType(node, context) {\r\n const { constantCache } = context;\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n if (node.tagType !== 0 /* ELEMENT */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n const cached = constantCache.get(node);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const codegenNode = node.codegenNode;\r\n if (codegenNode.type !== 13 /* VNODE_CALL */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (codegenNode.isBlock &&\r\n node.tag !== 'svg' &&\r\n node.tag !== 'foreignObject') {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n const flag = getPatchFlag(codegenNode);\r\n if (!flag) {\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n // Element itself has no patch flag. However we still need to check:\r\n // 1. Even for a node with no patch flag, it is possible for it to contain\r\n // non-hoistable expressions that refers to scope variables, e.g. compiler\r\n // injected keys or cached event handlers. Therefore we need to always\r\n // check the codegenNode's props to be sure.\r\n const generatedPropsType = getGeneratedPropsConstantType(node, context);\r\n if (generatedPropsType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (generatedPropsType < returnType) {\r\n returnType = generatedPropsType;\r\n }\r\n // 2. its children.\r\n for (let i = 0; i < node.children.length; i++) {\r\n const childType = getConstantType(node.children[i], context);\r\n if (childType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (childType < returnType) {\r\n returnType = childType;\r\n }\r\n }\r\n // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0\r\n // type, check if any of the props can cause the type to be lowered\r\n // we can skip can_patch because it's guaranteed by the absence of a\r\n // patchFlag.\r\n if (returnType > 1 /* CAN_SKIP_PATCH */) {\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) {\r\n const expType = getConstantType(p.exp, context);\r\n if (expType === 0 /* NOT_CONSTANT */) {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n if (expType < returnType) {\r\n returnType = expType;\r\n }\r\n }\r\n }\r\n }\r\n // only svg/foreignObject could be block here, however if they are\r\n // static then they don't need to be blocks since there will be no\r\n // nested updates.\r\n if (codegenNode.isBlock) {\r\n context.removeHelper(OPEN_BLOCK);\r\n context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));\r\n codegenNode.isBlock = false;\r\n context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));\r\n }\r\n constantCache.set(node, returnType);\r\n return returnType;\r\n }\r\n else {\r\n constantCache.set(node, 0 /* NOT_CONSTANT */);\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n case 2 /* TEXT */:\r\n case 3 /* COMMENT */:\r\n return 3 /* CAN_STRINGIFY */;\r\n case 9 /* IF */:\r\n case 11 /* FOR */:\r\n case 10 /* IF_BRANCH */:\r\n return 0 /* NOT_CONSTANT */;\r\n case 5 /* INTERPOLATION */:\r\n case 12 /* TEXT_CALL */:\r\n return getConstantType(node.content, context);\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n return node.constType;\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (isString(child) || isSymbol(child)) {\r\n continue;\r\n }\r\n const childType = getConstantType(child, context);\r\n if (childType === 0 /* NOT_CONSTANT */) {\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n else if (childType < returnType) {\r\n returnType = childType;\r\n }\r\n }\r\n return returnType;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) ;\r\n return 0 /* NOT_CONSTANT */;\r\n }\r\n}\r\nconst allowHoistedHelperSet = new Set([\r\n NORMALIZE_CLASS,\r\n NORMALIZE_STYLE,\r\n NORMALIZE_PROPS,\r\n GUARD_REACTIVE_PROPS\r\n]);\r\nfunction getConstantTypeOfHelperCall(value, context) {\r\n if (value.type === 14 /* JS_CALL_EXPRESSION */ &&\r\n !isString(value.callee) &&\r\n allowHoistedHelperSet.has(value.callee)) {\r\n const arg = value.arguments[0];\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n return getConstantType(arg, context);\r\n }\r\n else if (arg.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))`\r\n return getConstantTypeOfHelperCall(arg, context);\r\n }\r\n }\r\n return 0 /* NOT_CONSTANT */;\r\n}\r\nfunction getGeneratedPropsConstantType(node, context) {\r\n let returnType = 3 /* CAN_STRINGIFY */;\r\n const props = getNodeProps(node);\r\n if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n const { properties } = props;\r\n for (let i = 0; i < properties.length; i++) {\r\n const { key, value } = properties[i];\r\n const keyType = getConstantType(key, context);\r\n if (keyType === 0 /* NOT_CONSTANT */) {\r\n return keyType;\r\n }\r\n if (keyType < returnType) {\r\n returnType = keyType;\r\n }\r\n let valueType;\r\n if (value.type === 4 /* SIMPLE_EXPRESSION */) {\r\n valueType = getConstantType(value, context);\r\n }\r\n else if (value.type === 14 /* JS_CALL_EXPRESSION */) {\r\n // some helper calls can be hoisted,\r\n // such as the `normalizeProps` generated by the compiler for pre-normalize class,\r\n // in this case we need to respect the ConstantType of the helper's arguments\r\n valueType = getConstantTypeOfHelperCall(value, context);\r\n }\r\n else {\r\n valueType = 0 /* NOT_CONSTANT */;\r\n }\r\n if (valueType === 0 /* NOT_CONSTANT */) {\r\n return valueType;\r\n }\r\n if (valueType < returnType) {\r\n returnType = valueType;\r\n }\r\n }\r\n }\r\n return returnType;\r\n}\r\nfunction getNodeProps(node) {\r\n const codegenNode = node.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n return codegenNode.props;\r\n }\r\n}\r\nfunction getPatchFlag(node) {\r\n const flag = node.patchFlag;\r\n return flag ? parseInt(flag, 10) : undefined;\r\n}\n\nfunction createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {\r\n const nameMatch = filename.replace(/\\?.*$/, '').match(/([^/\\\\]+)\\.\\w+$/);\r\n const context = {\r\n // options\r\n selfName: nameMatch && capitalize(camelize$1(nameMatch[1])),\r\n prefixIdentifiers,\r\n hoistStatic,\r\n cacheHandlers,\r\n nodeTransforms,\r\n directiveTransforms,\r\n transformHoist,\r\n isBuiltInComponent,\r\n isCustomElement,\r\n expressionPlugins,\r\n scopeId,\r\n slotted,\r\n ssr,\r\n inSSR,\r\n ssrCssVars,\r\n bindingMetadata,\r\n inline,\r\n isTS,\r\n onError,\r\n onWarn,\r\n compatConfig,\r\n // state\r\n root,\r\n helpers: new Map(),\r\n components: new Set(),\r\n directives: new Set(),\r\n hoists: [],\r\n imports: [],\r\n constantCache: new Map(),\r\n temps: 0,\r\n cached: 0,\r\n identifiers: Object.create(null),\r\n scopes: {\r\n vFor: 0,\r\n vSlot: 0,\r\n vPre: 0,\r\n vOnce: 0\r\n },\r\n parent: null,\r\n currentNode: root,\r\n childIndex: 0,\r\n inVOnce: false,\r\n // methods\r\n helper(name) {\r\n const count = context.helpers.get(name) || 0;\r\n context.helpers.set(name, count + 1);\r\n return name;\r\n },\r\n removeHelper(name) {\r\n const count = context.helpers.get(name);\r\n if (count) {\r\n const currentCount = count - 1;\r\n if (!currentCount) {\r\n context.helpers.delete(name);\r\n }\r\n else {\r\n context.helpers.set(name, currentCount);\r\n }\r\n }\r\n },\r\n helperString(name) {\r\n return `_${helperNameMap[context.helper(name)]}`;\r\n },\r\n replaceNode(node) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!context.currentNode) {\r\n throw new Error(`Node being replaced is already removed.`);\r\n }\r\n if (!context.parent) {\r\n throw new Error(`Cannot replace root node.`);\r\n }\r\n }\r\n context.parent.children[context.childIndex] = context.currentNode = node;\r\n },\r\n removeNode(node) {\r\n if ((process.env.NODE_ENV !== 'production') && !context.parent) {\r\n throw new Error(`Cannot remove root node.`);\r\n }\r\n const list = context.parent.children;\r\n const removalIndex = node\r\n ? list.indexOf(node)\r\n : context.currentNode\r\n ? context.childIndex\r\n : -1;\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && removalIndex < 0) {\r\n throw new Error(`node being removed is not a child of current parent`);\r\n }\r\n if (!node || node === context.currentNode) {\r\n // current node removed\r\n context.currentNode = null;\r\n context.onNodeRemoved();\r\n }\r\n else {\r\n // sibling node removed\r\n if (context.childIndex > removalIndex) {\r\n context.childIndex--;\r\n context.onNodeRemoved();\r\n }\r\n }\r\n context.parent.children.splice(removalIndex, 1);\r\n },\r\n onNodeRemoved: () => { },\r\n addIdentifiers(exp) {\r\n },\r\n removeIdentifiers(exp) {\r\n },\r\n hoist(exp) {\r\n if (isString(exp))\r\n exp = createSimpleExpression(exp);\r\n context.hoists.push(exp);\r\n const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */);\r\n identifier.hoisted = exp;\r\n return identifier;\r\n },\r\n cache(exp, isVNode = false) {\r\n return createCacheExpression(context.cached++, exp, isVNode);\r\n }\r\n };\r\n {\r\n context.filters = new Set();\r\n }\r\n return context;\r\n}\r\nfunction transform(root, options) {\r\n const context = createTransformContext(root, options);\r\n traverseNode(root, context);\r\n if (options.hoistStatic) {\r\n hoistStatic(root, context);\r\n }\r\n if (!options.ssr) {\r\n createRootCodegen(root, context);\r\n }\r\n // finalize meta information\r\n root.helpers = [...context.helpers.keys()];\r\n root.components = [...context.components];\r\n root.directives = [...context.directives];\r\n root.imports = context.imports;\r\n root.hoists = context.hoists;\r\n root.temps = context.temps;\r\n root.cached = context.cached;\r\n {\r\n root.filters = [...context.filters];\r\n }\r\n}\r\nfunction createRootCodegen(root, context) {\r\n const { helper } = context;\r\n const { children } = root;\r\n if (children.length === 1) {\r\n const child = children[0];\r\n // if the single child is an element, turn it into a block.\r\n if (isSingleElementRoot(root, child) && child.codegenNode) {\r\n // single element root is never hoisted so codegenNode will never be\r\n // SimpleExpressionNode\r\n const codegenNode = child.codegenNode;\r\n if (codegenNode.type === 13 /* VNODE_CALL */) {\r\n makeBlock(codegenNode, context);\r\n }\r\n root.codegenNode = codegenNode;\r\n }\r\n else {\r\n // - single <slot/>, IfNode, ForNode: already blocks.\r\n // - single text node: always patched.\r\n // root codegen falls through via genNode()\r\n root.codegenNode = child;\r\n }\r\n }\r\n else if (children.length > 1) {\r\n // root has multiple nodes - return a fragment block.\r\n let patchFlag = 64 /* STABLE_FRAGMENT */;\r\n let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];\r\n // check if the fragment actually contains a single valid child with\r\n // the rest being comments\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {\r\n patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;\r\n patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;\r\n }\r\n root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${patchFlagText} */` : ``), undefined, undefined, true, undefined, false /* isComponent */);\r\n }\r\n else ;\r\n}\r\nfunction traverseChildren(parent, context) {\r\n let i = 0;\r\n const nodeRemoved = () => {\r\n i--;\r\n };\r\n for (; i < parent.children.length; i++) {\r\n const child = parent.children[i];\r\n if (isString(child))\r\n continue;\r\n context.parent = parent;\r\n context.childIndex = i;\r\n context.onNodeRemoved = nodeRemoved;\r\n traverseNode(child, context);\r\n }\r\n}\r\nfunction traverseNode(node, context) {\r\n context.currentNode = node;\r\n // apply transform plugins\r\n const { nodeTransforms } = context;\r\n const exitFns = [];\r\n for (let i = 0; i < nodeTransforms.length; i++) {\r\n const onExit = nodeTransforms[i](node, context);\r\n if (onExit) {\r\n if (isArray(onExit)) {\r\n exitFns.push(...onExit);\r\n }\r\n else {\r\n exitFns.push(onExit);\r\n }\r\n }\r\n if (!context.currentNode) {\r\n // node was removed\r\n return;\r\n }\r\n else {\r\n // node may have been replaced\r\n node = context.currentNode;\r\n }\r\n }\r\n switch (node.type) {\r\n case 3 /* COMMENT */:\r\n if (!context.ssr) {\r\n // inject import for the Comment symbol, which is needed for creating\r\n // comment nodes with `createVNode`\r\n context.helper(CREATE_COMMENT);\r\n }\r\n break;\r\n case 5 /* INTERPOLATION */:\r\n // no need to traverse, but we need to inject toString helper\r\n if (!context.ssr) {\r\n context.helper(TO_DISPLAY_STRING);\r\n }\r\n break;\r\n // for container types, further traverse downwards\r\n case 9 /* IF */:\r\n for (let i = 0; i < node.branches.length; i++) {\r\n traverseNode(node.branches[i], context);\r\n }\r\n break;\r\n case 10 /* IF_BRANCH */:\r\n case 11 /* FOR */:\r\n case 1 /* ELEMENT */:\r\n case 0 /* ROOT */:\r\n traverseChildren(node, context);\r\n break;\r\n }\r\n // exit transforms\r\n context.currentNode = node;\r\n let i = exitFns.length;\r\n while (i--) {\r\n exitFns[i]();\r\n }\r\n}\r\nfunction createStructuralDirectiveTransform(name, fn) {\r\n const matches = isString(name)\r\n ? (n) => n === name\r\n : (n) => name.test(n);\r\n return (node, context) => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n const { props } = node;\r\n // structural directive transforms are not concerned with slots\r\n // as they are handled separately in vSlot.ts\r\n if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) {\r\n return;\r\n }\r\n const exitFns = [];\r\n for (let i = 0; i < props.length; i++) {\r\n const prop = props[i];\r\n if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) {\r\n // structural directives are removed to avoid infinite recursion\r\n // also we remove them *before* applying so that it can further\r\n // traverse itself in case it moves the node around\r\n props.splice(i, 1);\r\n i--;\r\n const onExit = fn(node, prop, context);\r\n if (onExit)\r\n exitFns.push(onExit);\r\n }\r\n }\r\n return exitFns;\r\n }\r\n };\r\n}\n\nconst PURE_ANNOTATION = `/*#__PURE__*/`;\r\nfunction createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {\r\n const context = {\r\n mode,\r\n prefixIdentifiers,\r\n sourceMap,\r\n filename,\r\n scopeId,\r\n optimizeImports,\r\n runtimeGlobalName,\r\n runtimeModuleName,\r\n ssrRuntimeModuleName,\r\n ssr,\r\n isTS,\r\n inSSR,\r\n source: ast.loc.source,\r\n code: ``,\r\n column: 1,\r\n line: 1,\r\n offset: 0,\r\n indentLevel: 0,\r\n pure: false,\r\n map: undefined,\r\n helper(key) {\r\n return `_${helperNameMap[key]}`;\r\n },\r\n push(code, node) {\r\n context.code += code;\r\n },\r\n indent() {\r\n newline(++context.indentLevel);\r\n },\r\n deindent(withoutNewLine = false) {\r\n if (withoutNewLine) {\r\n --context.indentLevel;\r\n }\r\n else {\r\n newline(--context.indentLevel);\r\n }\r\n },\r\n newline() {\r\n newline(context.indentLevel);\r\n }\r\n };\r\n function newline(n) {\r\n context.push('\\n' + ` `.repeat(n));\r\n }\r\n return context;\r\n}\r\nfunction generate(ast, options = {}) {\r\n const context = createCodegenContext(ast, options);\r\n if (options.onContextCreated)\r\n options.onContextCreated(context);\r\n const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;\r\n const hasHelpers = ast.helpers.length > 0;\r\n const useWithBlock = !prefixIdentifiers && mode !== 'module';\r\n // preambles\r\n // in setup() inline mode, the preamble is generated in a sub context\r\n // and returned separately.\r\n const preambleContext = context;\r\n {\r\n genFunctionPreamble(ast, preambleContext);\r\n }\r\n // enter render function\r\n const functionName = ssr ? `ssrRender` : `render`;\r\n const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache'];\r\n const signature = args.join(', ');\r\n {\r\n push(`function ${functionName}(${signature}) {`);\r\n }\r\n indent();\r\n if (useWithBlock) {\r\n push(`with (_ctx) {`);\r\n indent();\r\n // function mode const declarations should be inside with block\r\n // also they should be renamed to avoid collision with user properties\r\n if (hasHelpers) {\r\n push(`const { ${ast.helpers\r\n .map(s => `${helperNameMap[s]}: _${helperNameMap[s]}`)\r\n .join(', ')} } = _Vue`);\r\n push(`\\n`);\r\n newline();\r\n }\r\n }\r\n // generate asset resolution statements\r\n if (ast.components.length) {\r\n genAssets(ast.components, 'component', context);\r\n if (ast.directives.length || ast.temps > 0) {\r\n newline();\r\n }\r\n }\r\n if (ast.directives.length) {\r\n genAssets(ast.directives, 'directive', context);\r\n if (ast.temps > 0) {\r\n newline();\r\n }\r\n }\r\n if (ast.filters && ast.filters.length) {\r\n newline();\r\n genAssets(ast.filters, 'filter', context);\r\n newline();\r\n }\r\n if (ast.temps > 0) {\r\n push(`let `);\r\n for (let i = 0; i < ast.temps; i++) {\r\n push(`${i > 0 ? `, ` : ``}_temp${i}`);\r\n }\r\n }\r\n if (ast.components.length || ast.directives.length || ast.temps) {\r\n push(`\\n`);\r\n newline();\r\n }\r\n // generate the VNode tree expression\r\n if (!ssr) {\r\n push(`return `);\r\n }\r\n if (ast.codegenNode) {\r\n genNode(ast.codegenNode, context);\r\n }\r\n else {\r\n push(`null`);\r\n }\r\n if (useWithBlock) {\r\n deindent();\r\n push(`}`);\r\n }\r\n deindent();\r\n push(`}`);\r\n return {\r\n ast,\r\n code: context.code,\r\n preamble: ``,\r\n // SourceMapGenerator does have toJSON() method but it's not in the types\r\n map: context.map ? context.map.toJSON() : undefined\r\n };\r\n}\r\nfunction genFunctionPreamble(ast, context) {\r\n const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;\r\n const VueBinding = runtimeGlobalName;\r\n const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;\r\n // Generate const declaration for helpers\r\n // In prefix mode, we place the const declaration at top so it's done\r\n // only once; But if we not prefixing, we place the declaration inside the\r\n // with block so it doesn't incur the `in` check cost for every helper access.\r\n if (ast.helpers.length > 0) {\r\n {\r\n // \"with\" mode.\r\n // save Vue in a separate variable to avoid collision\r\n push(`const _Vue = ${VueBinding}\\n`);\r\n // in \"with\" mode, helpers are declared inside the with block to avoid\r\n // has check cost, but hoists are lifted out of the function - we need\r\n // to provide the helper here.\r\n if (ast.hoists.length) {\r\n const staticHelpers = [\r\n CREATE_VNODE,\r\n CREATE_ELEMENT_VNODE,\r\n CREATE_COMMENT,\r\n CREATE_TEXT,\r\n CREATE_STATIC\r\n ]\r\n .filter(helper => ast.helpers.includes(helper))\r\n .map(aliasHelper)\r\n .join(', ');\r\n push(`const { ${staticHelpers} } = _Vue\\n`);\r\n }\r\n }\r\n }\r\n genHoists(ast.hoists, context);\r\n newline();\r\n push(`return `);\r\n}\r\nfunction genAssets(assets, type, { helper, push, newline, isTS }) {\r\n const resolver = helper(type === 'filter'\r\n ? RESOLVE_FILTER\r\n : type === 'component'\r\n ? RESOLVE_COMPONENT\r\n : RESOLVE_DIRECTIVE);\r\n for (let i = 0; i < assets.length; i++) {\r\n let id = assets[i];\r\n // potential component implicit self-reference inferred from SFC filename\r\n const maybeSelfReference = id.endsWith('__self');\r\n if (maybeSelfReference) {\r\n id = id.slice(0, -6);\r\n }\r\n push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);\r\n if (i < assets.length - 1) {\r\n newline();\r\n }\r\n }\r\n}\r\nfunction genHoists(hoists, context) {\r\n if (!hoists.length) {\r\n return;\r\n }\r\n context.pure = true;\r\n const { push, newline, helper, scopeId, mode } = context;\r\n newline();\r\n for (let i = 0; i < hoists.length; i++) {\r\n const exp = hoists[i];\r\n if (exp) {\r\n push(`const _hoisted_${i + 1} = ${``}`);\r\n genNode(exp, context);\r\n newline();\r\n }\r\n }\r\n context.pure = false;\r\n}\r\nfunction isText$1(n) {\r\n return (isString(n) ||\r\n n.type === 4 /* SIMPLE_EXPRESSION */ ||\r\n n.type === 2 /* TEXT */ ||\r\n n.type === 5 /* INTERPOLATION */ ||\r\n n.type === 8 /* COMPOUND_EXPRESSION */);\r\n}\r\nfunction genNodeListAsArray(nodes, context) {\r\n const multilines = nodes.length > 3 ||\r\n (((process.env.NODE_ENV !== 'production')) && nodes.some(n => isArray(n) || !isText$1(n)));\r\n context.push(`[`);\r\n multilines && context.indent();\r\n genNodeList(nodes, context, multilines);\r\n multilines && context.deindent();\r\n context.push(`]`);\r\n}\r\nfunction genNodeList(nodes, context, multilines = false, comma = true) {\r\n const { push, newline } = context;\r\n for (let i = 0; i < nodes.length; i++) {\r\n const node = nodes[i];\r\n if (isString(node)) {\r\n push(node);\r\n }\r\n else if (isArray(node)) {\r\n genNodeListAsArray(node, context);\r\n }\r\n else {\r\n genNode(node, context);\r\n }\r\n if (i < nodes.length - 1) {\r\n if (multilines) {\r\n comma && push(',');\r\n newline();\r\n }\r\n else {\r\n comma && push(', ');\r\n }\r\n }\r\n }\r\n}\r\nfunction genNode(node, context) {\r\n if (isString(node)) {\r\n context.push(node);\r\n return;\r\n }\r\n if (isSymbol(node)) {\r\n context.push(context.helper(node));\r\n return;\r\n }\r\n switch (node.type) {\r\n case 1 /* ELEMENT */:\r\n case 9 /* IF */:\r\n case 11 /* FOR */:\r\n (process.env.NODE_ENV !== 'production') &&\r\n assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` +\r\n `Apply appropriate transforms first.`);\r\n genNode(node.codegenNode, context);\r\n break;\r\n case 2 /* TEXT */:\r\n genText(node, context);\r\n break;\r\n case 4 /* SIMPLE_EXPRESSION */:\r\n genExpression(node, context);\r\n break;\r\n case 5 /* INTERPOLATION */:\r\n genInterpolation(node, context);\r\n break;\r\n case 12 /* TEXT_CALL */:\r\n genNode(node.codegenNode, context);\r\n break;\r\n case 8 /* COMPOUND_EXPRESSION */:\r\n genCompoundExpression(node, context);\r\n break;\r\n case 3 /* COMMENT */:\r\n genComment(node, context);\r\n break;\r\n case 13 /* VNODE_CALL */:\r\n genVNodeCall(node, context);\r\n break;\r\n case 14 /* JS_CALL_EXPRESSION */:\r\n genCallExpression(node, context);\r\n break;\r\n case 15 /* JS_OBJECT_EXPRESSION */:\r\n genObjectExpression(node, context);\r\n break;\r\n case 17 /* JS_ARRAY_EXPRESSION */:\r\n genArrayExpression(node, context);\r\n break;\r\n case 18 /* JS_FUNCTION_EXPRESSION */:\r\n genFunctionExpression(node, context);\r\n break;\r\n case 19 /* JS_CONDITIONAL_EXPRESSION */:\r\n genConditionalExpression(node, context);\r\n break;\r\n case 20 /* JS_CACHE_EXPRESSION */:\r\n genCacheExpression(node, context);\r\n break;\r\n case 21 /* JS_BLOCK_STATEMENT */:\r\n genNodeList(node.body, context, true, false);\r\n break;\r\n // SSR only types\r\n case 22 /* JS_TEMPLATE_LITERAL */:\r\n break;\r\n case 23 /* JS_IF_STATEMENT */:\r\n break;\r\n case 24 /* JS_ASSIGNMENT_EXPRESSION */:\r\n break;\r\n case 25 /* JS_SEQUENCE_EXPRESSION */:\r\n break;\r\n case 26 /* JS_RETURN_STATEMENT */:\r\n break;\r\n /* istanbul ignore next */\r\n case 10 /* IF_BRANCH */:\r\n // noop\r\n break;\r\n default:\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n assert(false, `unhandled codegen node type: ${node.type}`);\r\n // make sure we exhaust all possible types\r\n const exhaustiveCheck = node;\r\n return exhaustiveCheck;\r\n }\r\n }\r\n}\r\nfunction genText(node, context) {\r\n context.push(JSON.stringify(node.content), node);\r\n}\r\nfunction genExpression(node, context) {\r\n const { content, isStatic } = node;\r\n context.push(isStatic ? JSON.stringify(content) : content, node);\r\n}\r\nfunction genInterpolation(node, context) {\r\n const { push, helper, pure } = context;\r\n if (pure)\r\n push(PURE_ANNOTATION);\r\n push(`${helper(TO_DISPLAY_STRING)}(`);\r\n genNode(node.content, context);\r\n push(`)`);\r\n}\r\nfunction genCompoundExpression(node, context) {\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (isString(child)) {\r\n context.push(child);\r\n }\r\n else {\r\n genNode(child, context);\r\n }\r\n }\r\n}\r\nfunction genExpressionAsPropertyKey(node, context) {\r\n const { push } = context;\r\n if (node.type === 8 /* COMPOUND_EXPRESSION */) {\r\n push(`[`);\r\n genCompoundExpression(node, context);\r\n push(`]`);\r\n }\r\n else if (node.isStatic) {\r\n // only quote keys if necessary\r\n const text = isSimpleIdentifier(node.content)\r\n ? node.content\r\n : JSON.stringify(node.content);\r\n push(text, node);\r\n }\r\n else {\r\n push(`[${node.content}]`, node);\r\n }\r\n}\r\nfunction genComment(node, context) {\r\n const { push, helper, pure } = context;\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node);\r\n}\r\nfunction genVNodeCall(node, context) {\r\n const { push, helper, pure } = context;\r\n const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;\r\n if (directives) {\r\n push(helper(WITH_DIRECTIVES) + `(`);\r\n }\r\n if (isBlock) {\r\n push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);\r\n }\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n const callHelper = isBlock\r\n ? getVNodeBlockHelper(context.inSSR, isComponent)\r\n : getVNodeHelper(context.inSSR, isComponent);\r\n push(helper(callHelper) + `(`, node);\r\n genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context);\r\n push(`)`);\r\n if (isBlock) {\r\n push(`)`);\r\n }\r\n if (directives) {\r\n push(`, `);\r\n genNode(directives, context);\r\n push(`)`);\r\n }\r\n}\r\nfunction genNullableArgs(args) {\r\n let i = args.length;\r\n while (i--) {\r\n if (args[i] != null)\r\n break;\r\n }\r\n return args.slice(0, i + 1).map(arg => arg || `null`);\r\n}\r\n// JavaScript\r\nfunction genCallExpression(node, context) {\r\n const { push, helper, pure } = context;\r\n const callee = isString(node.callee) ? node.callee : helper(node.callee);\r\n if (pure) {\r\n push(PURE_ANNOTATION);\r\n }\r\n push(callee + `(`, node);\r\n genNodeList(node.arguments, context);\r\n push(`)`);\r\n}\r\nfunction genObjectExpression(node, context) {\r\n const { push, indent, deindent, newline } = context;\r\n const { properties } = node;\r\n if (!properties.length) {\r\n push(`{}`, node);\r\n return;\r\n }\r\n const multilines = properties.length > 1 ||\r\n (((process.env.NODE_ENV !== 'production')) &&\r\n properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */));\r\n push(multilines ? `{` : `{ `);\r\n multilines && indent();\r\n for (let i = 0; i < properties.length; i++) {\r\n const { key, value } = properties[i];\r\n // key\r\n genExpressionAsPropertyKey(key, context);\r\n push(`: `);\r\n // value\r\n genNode(value, context);\r\n if (i < properties.length - 1) {\r\n // will only reach this if it's multilines\r\n push(`,`);\r\n newline();\r\n }\r\n }\r\n multilines && deindent();\r\n push(multilines ? `}` : ` }`);\r\n}\r\nfunction genArrayExpression(node, context) {\r\n genNodeListAsArray(node.elements, context);\r\n}\r\nfunction genFunctionExpression(node, context) {\r\n const { push, indent, deindent } = context;\r\n const { params, returns, body, newline, isSlot } = node;\r\n if (isSlot) {\r\n // wrap slot functions with owner context\r\n push(`_${helperNameMap[WITH_CTX]}(`);\r\n }\r\n push(`(`, node);\r\n if (isArray(params)) {\r\n genNodeList(params, context);\r\n }\r\n else if (params) {\r\n genNode(params, context);\r\n }\r\n push(`) => `);\r\n if (newline || body) {\r\n push(`{`);\r\n indent();\r\n }\r\n if (returns) {\r\n if (newline) {\r\n push(`return `);\r\n }\r\n if (isArray(returns)) {\r\n genNodeListAsArray(returns, context);\r\n }\r\n else {\r\n genNode(returns, context);\r\n }\r\n }\r\n else if (body) {\r\n genNode(body, context);\r\n }\r\n if (newline || body) {\r\n deindent();\r\n push(`}`);\r\n }\r\n if (isSlot) {\r\n if (node.isNonScopedSlot) {\r\n push(`, undefined, true`);\r\n }\r\n push(`)`);\r\n }\r\n}\r\nfunction genConditionalExpression(node, context) {\r\n const { test, consequent, alternate, newline: needNewline } = node;\r\n const { push, indent, deindent, newline } = context;\r\n if (test.type === 4 /* SIMPLE_EXPRESSION */) {\r\n const needsParens = !isSimpleIdentifier(test.content);\r\n needsParens && push(`(`);\r\n genExpression(test, context);\r\n needsParens && push(`)`);\r\n }\r\n else {\r\n push(`(`);\r\n genNode(test, context);\r\n push(`)`);\r\n }\r\n needNewline && indent();\r\n context.indentLevel++;\r\n needNewline || push(` `);\r\n push(`? `);\r\n genNode(consequent, context);\r\n context.indentLevel--;\r\n needNewline && newline();\r\n needNewline || push(` `);\r\n push(`: `);\r\n const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */;\r\n if (!isNested) {\r\n context.indentLevel++;\r\n }\r\n genNode(alternate, context);\r\n if (!isNested) {\r\n context.indentLevel--;\r\n }\r\n needNewline && deindent(true /* without newline */);\r\n}\r\nfunction genCacheExpression(node, context) {\r\n const { push, helper, indent, deindent, newline } = context;\r\n push(`_cache[${node.index}] || (`);\r\n if (node.isVNode) {\r\n indent();\r\n push(`${helper(SET_BLOCK_TRACKING)}(-1),`);\r\n newline();\r\n }\r\n push(`_cache[${node.index}] = `);\r\n genNode(node.value, context);\r\n if (node.isVNode) {\r\n push(`,`);\r\n newline();\r\n push(`${helper(SET_BLOCK_TRACKING)}(1),`);\r\n newline();\r\n push(`_cache[${node.index}]`);\r\n deindent();\r\n }\r\n push(`)`);\r\n}\n\nfunction walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {\r\n {\r\n return;\r\n }\r\n}\r\nfunction isReferencedIdentifier(id, parent, parentStack) {\r\n {\r\n return false;\r\n }\r\n}\r\nfunction isInDestructureAssignment(parent, parentStack) {\r\n if (parent &&\r\n (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) {\r\n let i = parentStack.length;\r\n while (i--) {\r\n const p = parentStack[i];\r\n if (p.type === 'AssignmentExpression') {\r\n return true;\r\n }\r\n else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {\r\n break;\r\n }\r\n }\r\n }\r\n return false;\r\n}\r\nfunction walkFunctionParams(node, onIdent) {\r\n for (const p of node.params) {\r\n for (const id of extractIdentifiers(p)) {\r\n onIdent(id);\r\n }\r\n }\r\n}\r\nfunction walkBlockDeclarations(block, onIdent) {\r\n for (const stmt of block.body) {\r\n if (stmt.type === 'VariableDeclaration') {\r\n if (stmt.declare)\r\n continue;\r\n for (const decl of stmt.declarations) {\r\n for (const id of extractIdentifiers(decl.id)) {\r\n onIdent(id);\r\n }\r\n }\r\n }\r\n else if (stmt.type === 'FunctionDeclaration' ||\r\n stmt.type === 'ClassDeclaration') {\r\n if (stmt.declare || !stmt.id)\r\n continue;\r\n onIdent(stmt.id);\r\n }\r\n }\r\n}\r\nfunction extractIdentifiers(param, nodes = []) {\r\n switch (param.type) {\r\n case 'Identifier':\r\n nodes.push(param);\r\n break;\r\n case 'MemberExpression':\r\n let object = param;\r\n while (object.type === 'MemberExpression') {\r\n object = object.object;\r\n }\r\n nodes.push(object);\r\n break;\r\n case 'ObjectPattern':\r\n for (const prop of param.properties) {\r\n if (prop.type === 'RestElement') {\r\n extractIdentifiers(prop.argument, nodes);\r\n }\r\n else {\r\n extractIdentifiers(prop.value, nodes);\r\n }\r\n }\r\n break;\r\n case 'ArrayPattern':\r\n param.elements.forEach(element => {\r\n if (element)\r\n extractIdentifiers(element, nodes);\r\n });\r\n break;\r\n case 'RestElement':\r\n extractIdentifiers(param.argument, nodes);\r\n break;\r\n case 'AssignmentPattern':\r\n extractIdentifiers(param.left, nodes);\r\n break;\r\n }\r\n return nodes;\r\n}\r\nconst isFunctionType = (node) => {\r\n return /Function(?:Expression|Declaration)$|Method$/.test(node.type);\r\n};\r\nconst isStaticProperty = (node) => node &&\r\n (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&\r\n !node.computed;\r\nconst isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;\n\n// these keywords should not appear inside expressions, but operators like\r\n// typeof, instanceof and in are allowed\r\nconst prohibitedKeywordRE = new RegExp('\\\\b' +\r\n ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +\r\n 'super,throw,while,yield,delete,export,import,return,switch,default,' +\r\n 'extends,finally,continue,debugger,function,arguments,typeof,void')\r\n .split(',')\r\n .join('\\\\b|\\\\b') +\r\n '\\\\b');\r\n// strip strings in expressions\r\nconst stripStringRE = /'(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|`(?:[^`\\\\]|\\\\.)*\\$\\{|\\}(?:[^`\\\\]|\\\\.)*`|`(?:[^`\\\\]|\\\\.)*`/g;\r\n/**\r\n * Validate a non-prefixed expression.\r\n * This is only called when using the in-browser runtime compiler since it\r\n * doesn't prefix expressions.\r\n */\r\nfunction validateBrowserExpression(node, context, asParams = false, asRawStatements = false) {\r\n const exp = node.content;\r\n // empty expressions are validated per-directive since some directives\r\n // do allow empty expressions.\r\n if (!exp.trim()) {\r\n return;\r\n }\r\n try {\r\n new Function(asRawStatements\r\n ? ` ${exp} `\r\n : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`);\r\n }\r\n catch (e) {\r\n let message = e.message;\r\n const keywordMatch = exp\r\n .replace(stripStringRE, '')\r\n .match(prohibitedKeywordRE);\r\n if (keywordMatch) {\r\n message = `avoid using JavaScript keyword as property name: \"${keywordMatch[0]}\"`;\r\n }\r\n context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));\r\n }\r\n}\n\nconst transformExpression = (node, context) => {\r\n if (node.type === 5 /* INTERPOLATION */) {\r\n node.content = processExpression(node.content, context);\r\n }\r\n else if (node.type === 1 /* ELEMENT */) {\r\n // handle directives on element\r\n for (let i = 0; i < node.props.length; i++) {\r\n const dir = node.props[i];\r\n // do not process for v-on & v-for since they are special handled\r\n if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') {\r\n const exp = dir.exp;\r\n const arg = dir.arg;\r\n // do not process exp if this is v-on:arg - we need special handling\r\n // for wrapping inline statements.\r\n if (exp &&\r\n exp.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n !(dir.name === 'on' && arg)) {\r\n dir.exp = processExpression(exp, context, \r\n // slot args must be processed as function params\r\n dir.name === 'slot');\r\n }\r\n if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) {\r\n dir.arg = processExpression(arg, context);\r\n }\r\n }\r\n }\r\n }\r\n};\r\n// Important: since this function uses Node.js only dependencies, it should\r\n// always be used with a leading !true check so that it can be\r\n// tree-shaken from the browser build.\r\nfunction processExpression(node, context, \r\n// some expressions like v-slot props & v-for aliases should be parsed as\r\n// function params\r\nasParams = false, \r\n// v-on handler values may contain multiple statements\r\nasRawStatements = false, localVars = Object.create(context.identifiers)) {\r\n {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n // simple in-browser validation (same logic in 2.x)\r\n validateBrowserExpression(node, context, asParams, asRawStatements);\r\n }\r\n return node;\r\n }\r\n}\n\nconst transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {\r\n return processIf(node, dir, context, (ifNode, branch, isRoot) => {\r\n // #1587: We need to dynamically increment the key based on the current\r\n // node's sibling nodes, since chained v-if/else branches are\r\n // rendered at the same depth\r\n const siblings = context.parent.children;\r\n let i = siblings.indexOf(ifNode);\r\n let key = 0;\r\n while (i-- >= 0) {\r\n const sibling = siblings[i];\r\n if (sibling && sibling.type === 9 /* IF */) {\r\n key += sibling.branches.length;\r\n }\r\n }\r\n // Exit callback. Complete the codegenNode when all children have been\r\n // transformed.\r\n return () => {\r\n if (isRoot) {\r\n ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);\r\n }\r\n else {\r\n // attach this branch's codegen node to the v-if root.\r\n const parentCondition = getParentCondition(ifNode.codegenNode);\r\n parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);\r\n }\r\n };\r\n });\r\n});\r\n// target-agnostic transform used for both Client and SSR\r\nfunction processIf(node, dir, context, processCodegen) {\r\n if (dir.name !== 'else' &&\r\n (!dir.exp || !dir.exp.content.trim())) {\r\n const loc = dir.exp ? dir.exp.loc : node.loc;\r\n context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));\r\n dir.exp = createSimpleExpression(`true`, false, loc);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && true && dir.exp) {\r\n validateBrowserExpression(dir.exp, context);\r\n }\r\n if (dir.name === 'if') {\r\n const branch = createIfBranch(node, dir);\r\n const ifNode = {\r\n type: 9 /* IF */,\r\n loc: node.loc,\r\n branches: [branch]\r\n };\r\n context.replaceNode(ifNode);\r\n if (processCodegen) {\r\n return processCodegen(ifNode, branch, true);\r\n }\r\n }\r\n else {\r\n // locate the adjacent v-if\r\n const siblings = context.parent.children;\r\n const comments = [];\r\n let i = siblings.indexOf(node);\r\n while (i-- >= -1) {\r\n const sibling = siblings[i];\r\n if ((process.env.NODE_ENV !== 'production') && sibling && sibling.type === 3 /* COMMENT */) {\r\n context.removeNode(sibling);\r\n comments.unshift(sibling);\r\n continue;\r\n }\r\n if (sibling &&\r\n sibling.type === 2 /* TEXT */ &&\r\n !sibling.content.trim().length) {\r\n context.removeNode(sibling);\r\n continue;\r\n }\r\n if (sibling && sibling.type === 9 /* IF */) {\r\n // Check if v-else was followed by v-else-if\r\n if (dir.name === 'else-if' &&\r\n sibling.branches[sibling.branches.length - 1].condition === undefined) {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));\r\n }\r\n // move the node to the if node's branches\r\n context.removeNode();\r\n const branch = createIfBranch(node, dir);\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n comments.length &&\r\n // #3619 ignore comments if the v-if is direct child of <transition>\r\n !(context.parent &&\r\n context.parent.type === 1 /* ELEMENT */ &&\r\n isBuiltInType(context.parent.tag, 'transition'))) {\r\n branch.children = [...comments, ...branch.children];\r\n }\r\n // check if user is forcing same key on different branches\r\n if ((process.env.NODE_ENV !== 'production') || !true) {\r\n const key = branch.userKey;\r\n if (key) {\r\n sibling.branches.forEach(({ userKey }) => {\r\n if (isSameKey(userKey, key)) {\r\n context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));\r\n }\r\n });\r\n }\r\n }\r\n sibling.branches.push(branch);\r\n const onExit = processCodegen && processCodegen(sibling, branch, false);\r\n // since the branch was removed, it will not be traversed.\r\n // make sure to traverse here.\r\n traverseNode(branch, context);\r\n // call on exit\r\n if (onExit)\r\n onExit();\r\n // make sure to reset currentNode after traversal to indicate this\r\n // node has been removed.\r\n context.currentNode = null;\r\n }\r\n else {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));\r\n }\r\n break;\r\n }\r\n }\r\n}\r\nfunction createIfBranch(node, dir) {\r\n return {\r\n type: 10 /* IF_BRANCH */,\r\n loc: node.loc,\r\n condition: dir.name === 'else' ? undefined : dir.exp,\r\n children: node.tagType === 3 /* TEMPLATE */ && !findDir(node, 'for')\r\n ? node.children\r\n : [node],\r\n userKey: findProp(node, `key`)\r\n };\r\n}\r\nfunction createCodegenNodeForBranch(branch, keyIndex, context) {\r\n if (branch.condition) {\r\n return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context), \r\n // make sure to pass in asBlock: true so that the comment node call\r\n // closes the current block.\r\n createCallExpression(context.helper(CREATE_COMMENT), [\r\n (process.env.NODE_ENV !== 'production') ? '\"v-if\"' : '\"\"',\r\n 'true'\r\n ]));\r\n }\r\n else {\r\n return createChildrenCodegenNode(branch, keyIndex, context);\r\n }\r\n}\r\nfunction createChildrenCodegenNode(branch, keyIndex, context) {\r\n const { helper } = context;\r\n const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));\r\n const { children } = branch;\r\n const firstChild = children[0];\r\n const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */;\r\n if (needFragmentWrapper) {\r\n if (children.length === 1 && firstChild.type === 11 /* FOR */) {\r\n // optimize away nested fragments when child is a ForNode\r\n const vnodeCall = firstChild.codegenNode;\r\n injectProp(vnodeCall, keyProperty, context);\r\n return vnodeCall;\r\n }\r\n else {\r\n let patchFlag = 64 /* STABLE_FRAGMENT */;\r\n let patchFlagText = PatchFlagNames[64 /* STABLE_FRAGMENT */];\r\n // check if the fragment actually contains a single valid child with\r\n // the rest being comments\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {\r\n patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;\r\n patchFlagText += `, ${PatchFlagNames[2048 /* DEV_ROOT_FRAGMENT */]}`;\r\n }\r\n return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${patchFlagText} */` : ``), undefined, undefined, true, false, false /* isComponent */, branch.loc);\r\n }\r\n }\r\n else {\r\n const ret = firstChild.codegenNode;\r\n const vnodeCall = getMemoedVNodeCall(ret);\r\n // Change createVNode to createBlock.\r\n if (vnodeCall.type === 13 /* VNODE_CALL */) {\r\n makeBlock(vnodeCall, context);\r\n }\r\n // inject branch key\r\n injectProp(vnodeCall, keyProperty, context);\r\n return ret;\r\n }\r\n}\r\nfunction isSameKey(a, b) {\r\n if (!a || a.type !== b.type) {\r\n return false;\r\n }\r\n if (a.type === 6 /* ATTRIBUTE */) {\r\n if (a.value.content !== b.value.content) {\r\n return false;\r\n }\r\n }\r\n else {\r\n // directive\r\n const exp = a.exp;\r\n const branchExp = b.exp;\r\n if (exp.type !== branchExp.type) {\r\n return false;\r\n }\r\n if (exp.type !== 4 /* SIMPLE_EXPRESSION */ ||\r\n exp.isStatic !== branchExp.isStatic ||\r\n exp.content !== branchExp.content) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction getParentCondition(node) {\r\n while (true) {\r\n if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n node = node.alternate;\r\n }\r\n else {\r\n return node;\r\n }\r\n }\r\n else if (node.type === 20 /* JS_CACHE_EXPRESSION */) {\r\n node = node.value;\r\n }\r\n }\r\n}\n\nconst transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {\r\n const { helper, removeHelper } = context;\r\n return processFor(node, dir, context, forNode => {\r\n // create the loop render function expression now, and add the\r\n // iterator on exit after all children have been traversed\r\n const renderExp = createCallExpression(helper(RENDER_LIST), [\r\n forNode.source\r\n ]);\r\n const memo = findDir(node, 'memo');\r\n const keyProp = findProp(node, `key`);\r\n const keyExp = keyProp &&\r\n (keyProp.type === 6 /* ATTRIBUTE */\r\n ? createSimpleExpression(keyProp.value.content, true)\r\n : keyProp.exp);\r\n const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;\r\n const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n forNode.source.constType > 0 /* NOT_CONSTANT */;\r\n const fragmentFlag = isStableFragment\r\n ? 64 /* STABLE_FRAGMENT */\r\n : keyProp\r\n ? 128 /* KEYED_FRAGMENT */\r\n : 256 /* UNKEYED_FRAGMENT */;\r\n forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag +\r\n ((process.env.NODE_ENV !== 'production') ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc);\r\n return () => {\r\n // finish the codegen now that all children have been traversed\r\n let childBlock;\r\n const isTemplate = isTemplateNode(node);\r\n const { children } = forNode;\r\n // check <template v-for> key placement\r\n if (((process.env.NODE_ENV !== 'production') || !true) && isTemplate) {\r\n node.children.some(c => {\r\n if (c.type === 1 /* ELEMENT */) {\r\n const key = findProp(c, 'key');\r\n if (key) {\r\n context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));\r\n return true;\r\n }\r\n }\r\n });\r\n }\r\n const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */;\r\n const slotOutlet = isSlotOutlet(node)\r\n ? node\r\n : isTemplate &&\r\n node.children.length === 1 &&\r\n isSlotOutlet(node.children[0])\r\n ? node.children[0] // api-extractor somehow fails to infer this\r\n : null;\r\n if (slotOutlet) {\r\n // <slot v-for=\"...\"> or <template v-for=\"...\"><slot/></template>\r\n childBlock = slotOutlet.codegenNode;\r\n if (isTemplate && keyProperty) {\r\n // <template v-for=\"...\" :key=\"...\"><slot/></template>\r\n // we need to inject the key to the renderSlot() call.\r\n // the props for renderSlot is passed as the 3rd argument.\r\n injectProp(childBlock, keyProperty, context);\r\n }\r\n }\r\n else if (needFragmentWrapper) {\r\n // <template v-for=\"...\"> with text or multi-elements\r\n // should generate a fragment block for each loop\r\n childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ +\r\n ((process.env.NODE_ENV !== 'production')\r\n ? ` /* ${PatchFlagNames[64 /* STABLE_FRAGMENT */]} */`\r\n : ``), undefined, undefined, true, undefined, false /* isComponent */);\r\n }\r\n else {\r\n // Normal element v-for. Directly use the child's codegenNode\r\n // but mark it as a block.\r\n childBlock = children[0]\r\n .codegenNode;\r\n if (isTemplate && keyProperty) {\r\n injectProp(childBlock, keyProperty, context);\r\n }\r\n if (childBlock.isBlock !== !isStableFragment) {\r\n if (childBlock.isBlock) {\r\n // switch from block to vnode\r\n removeHelper(OPEN_BLOCK);\r\n removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n else {\r\n // switch from vnode to block\r\n removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n }\r\n childBlock.isBlock = !isStableFragment;\r\n if (childBlock.isBlock) {\r\n helper(OPEN_BLOCK);\r\n helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n else {\r\n helper(getVNodeHelper(context.inSSR, childBlock.isComponent));\r\n }\r\n }\r\n if (memo) {\r\n const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [\r\n createSimpleExpression(`_cached`)\r\n ]));\r\n loop.body = createBlockStatement([\r\n createCompoundExpression([`const _memo = (`, memo.exp, `)`]),\r\n createCompoundExpression([\r\n `if (_cached`,\r\n ...(keyExp ? [` && _cached.key === `, keyExp] : []),\r\n ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`\r\n ]),\r\n createCompoundExpression([`const _item = `, childBlock]),\r\n createSimpleExpression(`_item.memo = _memo`),\r\n createSimpleExpression(`return _item`)\r\n ]);\r\n renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++)));\r\n }\r\n else {\r\n renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */));\r\n }\r\n };\r\n });\r\n});\r\n// target-agnostic transform used for both Client and SSR\r\nfunction processFor(node, dir, context, processCodegen) {\r\n if (!dir.exp) {\r\n context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));\r\n return;\r\n }\r\n const parseResult = parseForExpression(\r\n // can only be simple expression because vFor transform is applied\r\n // before expression transform.\r\n dir.exp, context);\r\n if (!parseResult) {\r\n context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));\r\n return;\r\n }\r\n const { addIdentifiers, removeIdentifiers, scopes } = context;\r\n const { source, value, key, index } = parseResult;\r\n const forNode = {\r\n type: 11 /* FOR */,\r\n loc: dir.loc,\r\n source,\r\n valueAlias: value,\r\n keyAlias: key,\r\n objectIndexAlias: index,\r\n parseResult,\r\n children: isTemplateNode(node) ? node.children : [node]\r\n };\r\n context.replaceNode(forNode);\r\n // bookkeeping\r\n scopes.vFor++;\r\n const onExit = processCodegen && processCodegen(forNode);\r\n return () => {\r\n scopes.vFor--;\r\n if (onExit)\r\n onExit();\r\n };\r\n}\r\nconst forAliasRE = /([\\s\\S]*?)\\s+(?:in|of)\\s+([\\s\\S]*)/;\r\n// This regex doesn't cover the case if key or index aliases have destructuring,\r\n// but those do not make sense in the first place, so this works in practice.\r\nconst forIteratorRE = /,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/;\r\nconst stripParensRE = /^\\(|\\)$/g;\r\nfunction parseForExpression(input, context) {\r\n const loc = input.loc;\r\n const exp = input.content;\r\n const inMatch = exp.match(forAliasRE);\r\n if (!inMatch)\r\n return;\r\n const [, LHS, RHS] = inMatch;\r\n const result = {\r\n source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)),\r\n value: undefined,\r\n key: undefined,\r\n index: undefined\r\n };\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.source, context);\r\n }\r\n let valueContent = LHS.trim().replace(stripParensRE, '').trim();\r\n const trimmedOffset = LHS.indexOf(valueContent);\r\n const iteratorMatch = valueContent.match(forIteratorRE);\r\n if (iteratorMatch) {\r\n valueContent = valueContent.replace(forIteratorRE, '').trim();\r\n const keyContent = iteratorMatch[1].trim();\r\n let keyOffset;\r\n if (keyContent) {\r\n keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);\r\n result.key = createAliasExpression(loc, keyContent, keyOffset);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.key, context, true);\r\n }\r\n }\r\n if (iteratorMatch[2]) {\r\n const indexContent = iteratorMatch[2].trim();\r\n if (indexContent) {\r\n result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key\r\n ? keyOffset + keyContent.length\r\n : trimmedOffset + valueContent.length));\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.index, context, true);\r\n }\r\n }\r\n }\r\n }\r\n if (valueContent) {\r\n result.value = createAliasExpression(loc, valueContent, trimmedOffset);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(result.value, context, true);\r\n }\r\n }\r\n return result;\r\n}\r\nfunction createAliasExpression(range, content, offset) {\r\n return createSimpleExpression(content, false, getInnerRange(range, offset, content.length));\r\n}\r\nfunction createForLoopParams({ value, key, index }, memoArgs = []) {\r\n return createParamsList([value, key, index, ...memoArgs]);\r\n}\r\nfunction createParamsList(args) {\r\n let i = args.length;\r\n while (i--) {\r\n if (args[i])\r\n break;\r\n }\r\n return args\r\n .slice(0, i + 1)\r\n .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));\r\n}\n\nconst defaultFallback = createSimpleExpression(`undefined`, false);\r\n// A NodeTransform that:\r\n// 1. Tracks scope identifiers for scoped slots so that they don't get prefixed\r\n// by transformExpression. This is only applied in non-browser builds with\r\n// { prefixIdentifiers: true }.\r\n// 2. Track v-slot depths so that we know a slot is inside another slot.\r\n// Note the exit callback is executed before buildSlots() on the same node,\r\n// so only nested slots see positive numbers.\r\nconst trackSlotScopes = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n (node.tagType === 1 /* COMPONENT */ ||\r\n node.tagType === 3 /* TEMPLATE */)) {\r\n // We are only checking non-empty v-slot here\r\n // since we only care about slots that introduce scope variables.\r\n const vSlot = findDir(node, 'slot');\r\n if (vSlot) {\r\n vSlot.exp;\r\n context.scopes.vSlot++;\r\n return () => {\r\n context.scopes.vSlot--;\r\n };\r\n }\r\n }\r\n};\r\n// A NodeTransform that tracks scope identifiers for scoped slots with v-for.\r\n// This transform is only applied in non-browser builds with { prefixIdentifiers: true }\r\nconst trackVForSlotScopes = (node, context) => {\r\n let vFor;\r\n if (isTemplateNode(node) &&\r\n node.props.some(isVSlot) &&\r\n (vFor = findDir(node, 'for'))) {\r\n const result = (vFor.parseResult = parseForExpression(vFor.exp, context));\r\n if (result) {\r\n const { value, key, index } = result;\r\n const { addIdentifiers, removeIdentifiers } = context;\r\n value && addIdentifiers(value);\r\n key && addIdentifiers(key);\r\n index && addIdentifiers(index);\r\n return () => {\r\n value && removeIdentifiers(value);\r\n key && removeIdentifiers(key);\r\n index && removeIdentifiers(index);\r\n };\r\n }\r\n }\r\n};\r\nconst buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc);\r\n// Instead of being a DirectiveTransform, v-slot processing is called during\r\n// transformElement to build the slots object for a component.\r\nfunction buildSlots(node, context, buildSlotFn = buildClientSlotFn) {\r\n context.helper(WITH_CTX);\r\n const { children, loc } = node;\r\n const slotsProperties = [];\r\n const dynamicSlots = [];\r\n // If the slot is inside a v-for or another v-slot, force it to be dynamic\r\n // since it likely uses a scope variable.\r\n let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;\r\n // 1. Check for slot with slotProps on component itself.\r\n // <Comp v-slot=\"{ prop }\"/>\r\n const onComponentSlot = findDir(node, 'slot', true);\r\n if (onComponentSlot) {\r\n const { arg, exp } = onComponentSlot;\r\n if (arg && !isStaticExp(arg)) {\r\n hasDynamicSlots = true;\r\n }\r\n slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc)));\r\n }\r\n // 2. Iterate through children and check for template slots\r\n // <template v-slot:foo=\"{ prop }\">\r\n let hasTemplateSlots = false;\r\n let hasNamedDefaultSlot = false;\r\n const implicitDefaultChildren = [];\r\n const seenSlotNames = new Set();\r\n for (let i = 0; i < children.length; i++) {\r\n const slotElement = children[i];\r\n let slotDir;\r\n if (!isTemplateNode(slotElement) ||\r\n !(slotDir = findDir(slotElement, 'slot', true))) {\r\n // not a <template v-slot>, skip.\r\n if (slotElement.type !== 3 /* COMMENT */) {\r\n implicitDefaultChildren.push(slotElement);\r\n }\r\n continue;\r\n }\r\n if (onComponentSlot) {\r\n // already has on-component slot - this is incorrect usage.\r\n context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));\r\n break;\r\n }\r\n hasTemplateSlots = true;\r\n const { children: slotChildren, loc: slotLoc } = slotElement;\r\n const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir;\r\n // check if name is dynamic.\r\n let staticSlotName;\r\n if (isStaticExp(slotName)) {\r\n staticSlotName = slotName ? slotName.content : `default`;\r\n }\r\n else {\r\n hasDynamicSlots = true;\r\n }\r\n const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc);\r\n // check if this slot is conditional (v-if/v-for)\r\n let vIf;\r\n let vElse;\r\n let vFor;\r\n if ((vIf = findDir(slotElement, 'if'))) {\r\n hasDynamicSlots = true;\r\n dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback));\r\n }\r\n else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) {\r\n // find adjacent v-if\r\n let j = i;\r\n let prev;\r\n while (j--) {\r\n prev = children[j];\r\n if (prev.type !== 3 /* COMMENT */) {\r\n break;\r\n }\r\n }\r\n if (prev && isTemplateNode(prev) && findDir(prev, 'if')) {\r\n // remove node\r\n children.splice(i, 1);\r\n i--;\r\n // attach this slot to previous conditional\r\n let conditional = dynamicSlots[dynamicSlots.length - 1];\r\n while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {\r\n conditional = conditional.alternate;\r\n }\r\n conditional.alternate = vElse.exp\r\n ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)\r\n : buildDynamicSlot(slotName, slotFunction);\r\n }\r\n else {\r\n context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));\r\n }\r\n }\r\n else if ((vFor = findDir(slotElement, 'for'))) {\r\n hasDynamicSlots = true;\r\n const parseResult = vFor.parseResult ||\r\n parseForExpression(vFor.exp, context);\r\n if (parseResult) {\r\n // Render the dynamic slots as an array and add it to the createSlot()\r\n // args. The runtime knows how to handle it appropriately.\r\n dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [\r\n parseResult.source,\r\n createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */)\r\n ]));\r\n }\r\n else {\r\n context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));\r\n }\r\n }\r\n else {\r\n // check duplicate static names\r\n if (staticSlotName) {\r\n if (seenSlotNames.has(staticSlotName)) {\r\n context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));\r\n continue;\r\n }\r\n seenSlotNames.add(staticSlotName);\r\n if (staticSlotName === 'default') {\r\n hasNamedDefaultSlot = true;\r\n }\r\n }\r\n slotsProperties.push(createObjectProperty(slotName, slotFunction));\r\n }\r\n }\r\n if (!onComponentSlot) {\r\n const buildDefaultSlotProperty = (props, children) => {\r\n const fn = buildSlotFn(props, children, loc);\r\n if (context.compatConfig) {\r\n fn.isNonScopedSlot = true;\r\n }\r\n return createObjectProperty(`default`, fn);\r\n };\r\n if (!hasTemplateSlots) {\r\n // implicit default slot (on component)\r\n slotsProperties.push(buildDefaultSlotProperty(undefined, children));\r\n }\r\n else if (implicitDefaultChildren.length &&\r\n // #3766\r\n // with whitespace: 'preserve', whitespaces between slots will end up in\r\n // implicitDefaultChildren. Ignore if all implicit children are whitespaces.\r\n implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {\r\n // implicit default slot (mixed with named slots)\r\n if (hasNamedDefaultSlot) {\r\n context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));\r\n }\r\n else {\r\n slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));\r\n }\r\n }\r\n }\r\n const slotFlag = hasDynamicSlots\r\n ? 2 /* DYNAMIC */\r\n : hasForwardedSlots(node.children)\r\n ? 3 /* FORWARDED */\r\n : 1 /* STABLE */;\r\n let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`, \r\n // 2 = compiled but dynamic = can skip normalization, but must run diff\r\n // 1 = compiled and static = can skip normalization AND diff as optimized\r\n createSimpleExpression(slotFlag + ((process.env.NODE_ENV !== 'production') ? ` /* ${slotFlagsText[slotFlag]} */` : ``), false))), loc);\r\n if (dynamicSlots.length) {\r\n slots = createCallExpression(context.helper(CREATE_SLOTS), [\r\n slots,\r\n createArrayExpression(dynamicSlots)\r\n ]);\r\n }\r\n return {\r\n slots,\r\n hasDynamicSlots\r\n };\r\n}\r\nfunction buildDynamicSlot(name, fn) {\r\n return createObjectExpression([\r\n createObjectProperty(`name`, name),\r\n createObjectProperty(`fn`, fn)\r\n ]);\r\n}\r\nfunction hasForwardedSlots(children) {\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n switch (child.type) {\r\n case 1 /* ELEMENT */:\r\n if (child.tagType === 2 /* SLOT */ ||\r\n hasForwardedSlots(child.children)) {\r\n return true;\r\n }\r\n break;\r\n case 9 /* IF */:\r\n if (hasForwardedSlots(child.branches))\r\n return true;\r\n break;\r\n case 10 /* IF_BRANCH */:\r\n case 11 /* FOR */:\r\n if (hasForwardedSlots(child.children))\r\n return true;\r\n break;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction isNonWhitespaceContent(node) {\r\n if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */)\r\n return true;\r\n return node.type === 2 /* TEXT */\r\n ? !!node.content.trim()\r\n : isNonWhitespaceContent(node.content);\r\n}\n\n// some directive transforms (e.g. v-model) may return a symbol for runtime\r\n// import, which should be used instead of a resolveDirective call.\r\nconst directiveImportMap = new WeakMap();\r\n// generate a JavaScript AST for this element's codegen\r\nconst transformElement = (node, context) => {\r\n // perform the work on exit, after all child expressions have been\r\n // processed and merged.\r\n return function postTransformElement() {\r\n node = context.currentNode;\r\n if (!(node.type === 1 /* ELEMENT */ &&\r\n (node.tagType === 0 /* ELEMENT */ ||\r\n node.tagType === 1 /* COMPONENT */))) {\r\n return;\r\n }\r\n const { tag, props } = node;\r\n const isComponent = node.tagType === 1 /* COMPONENT */;\r\n // The goal of the transform is to create a codegenNode implementing the\r\n // VNodeCall interface.\r\n let vnodeTag = isComponent\r\n ? resolveComponentType(node, context)\r\n : `\"${tag}\"`;\r\n const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;\r\n let vnodeProps;\r\n let vnodeChildren;\r\n let vnodePatchFlag;\r\n let patchFlag = 0;\r\n let vnodeDynamicProps;\r\n let dynamicPropNames;\r\n let vnodeDirectives;\r\n let shouldUseBlock = \r\n // dynamic component may resolve to plain elements\r\n isDynamicComponent ||\r\n vnodeTag === TELEPORT ||\r\n vnodeTag === SUSPENSE ||\r\n (!isComponent &&\r\n // <svg> and <foreignObject> must be forced into blocks so that block\r\n // updates inside get proper isSVG flag at runtime. (#639, #643)\r\n // This is technically web-specific, but splitting the logic out of core\r\n // leads to too much unnecessary complexity.\r\n (tag === 'svg' || tag === 'foreignObject'));\r\n // props\r\n if (props.length > 0) {\r\n const propsBuildResult = buildProps(node, context);\r\n vnodeProps = propsBuildResult.props;\r\n patchFlag = propsBuildResult.patchFlag;\r\n dynamicPropNames = propsBuildResult.dynamicPropNames;\r\n const directives = propsBuildResult.directives;\r\n vnodeDirectives =\r\n directives && directives.length\r\n ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context)))\r\n : undefined;\r\n if (propsBuildResult.shouldUseBlock) {\r\n shouldUseBlock = true;\r\n }\r\n }\r\n // children\r\n if (node.children.length > 0) {\r\n if (vnodeTag === KEEP_ALIVE) {\r\n // Although a built-in component, we compile KeepAlive with raw children\r\n // instead of slot functions so that it can be used inside Transition\r\n // or other Transition-wrapping HOCs.\r\n // To ensure correct updates with block optimizations, we need to:\r\n // 1. Force keep-alive into a block. This avoids its children being\r\n // collected by a parent block.\r\n shouldUseBlock = true;\r\n // 2. Force keep-alive to always be updated, since it uses raw children.\r\n patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n if ((process.env.NODE_ENV !== 'production') && node.children.length > 1) {\r\n context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {\r\n start: node.children[0].loc.start,\r\n end: node.children[node.children.length - 1].loc.end,\r\n source: ''\r\n }));\r\n }\r\n }\r\n const shouldBuildAsSlots = isComponent &&\r\n // Teleport is not a real component and has dedicated runtime handling\r\n vnodeTag !== TELEPORT &&\r\n // explained above.\r\n vnodeTag !== KEEP_ALIVE;\r\n if (shouldBuildAsSlots) {\r\n const { slots, hasDynamicSlots } = buildSlots(node, context);\r\n vnodeChildren = slots;\r\n if (hasDynamicSlots) {\r\n patchFlag |= 1024 /* DYNAMIC_SLOTS */;\r\n }\r\n }\r\n else if (node.children.length === 1 && vnodeTag !== TELEPORT) {\r\n const child = node.children[0];\r\n const type = child.type;\r\n // check for dynamic text children\r\n const hasDynamicTextChild = type === 5 /* INTERPOLATION */ ||\r\n type === 8 /* COMPOUND_EXPRESSION */;\r\n if (hasDynamicTextChild &&\r\n getConstantType(child, context) === 0 /* NOT_CONSTANT */) {\r\n patchFlag |= 1 /* TEXT */;\r\n }\r\n // pass directly if the only child is a text node\r\n // (plain / interpolation / expression)\r\n if (hasDynamicTextChild || type === 2 /* TEXT */) {\r\n vnodeChildren = child;\r\n }\r\n else {\r\n vnodeChildren = node.children;\r\n }\r\n }\r\n else {\r\n vnodeChildren = node.children;\r\n }\r\n }\r\n // patchFlag & dynamicPropNames\r\n if (patchFlag !== 0) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (patchFlag < 0) {\r\n // special flags (negative and mutually exclusive)\r\n vnodePatchFlag = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`;\r\n }\r\n else {\r\n // bitwise flags\r\n const flagNames = Object.keys(PatchFlagNames)\r\n .map(Number)\r\n .filter(n => n > 0 && patchFlag & n)\r\n .map(n => PatchFlagNames[n])\r\n .join(`, `);\r\n vnodePatchFlag = patchFlag + ` /* ${flagNames} */`;\r\n }\r\n }\r\n else {\r\n vnodePatchFlag = String(patchFlag);\r\n }\r\n if (dynamicPropNames && dynamicPropNames.length) {\r\n vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);\r\n }\r\n }\r\n node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc);\r\n };\r\n};\r\nfunction resolveComponentType(node, context, ssr = false) {\r\n let { tag } = node;\r\n // 1. dynamic component\r\n const isExplicitDynamic = isComponentTag(tag);\r\n const isProp = findProp(node, 'is');\r\n if (isProp) {\r\n if (isExplicitDynamic ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context))) {\r\n const exp = isProp.type === 6 /* ATTRIBUTE */\r\n ? isProp.value && createSimpleExpression(isProp.value.content, true)\r\n : isProp.exp;\r\n if (exp) {\r\n return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [\r\n exp\r\n ]);\r\n }\r\n }\r\n else if (isProp.type === 6 /* ATTRIBUTE */ &&\r\n isProp.value.content.startsWith('vue:')) {\r\n // <button is=\"vue:xxx\">\r\n // if not <component>, only is value that starts with \"vue:\" will be\r\n // treated as component by the parse phase and reach here, unless it's\r\n // compat mode where all is values are considered components\r\n tag = isProp.value.content.slice(4);\r\n }\r\n }\r\n // 1.5 v-is (TODO: Deprecate)\r\n const isDir = !isExplicitDynamic && findDir(node, 'is');\r\n if (isDir && isDir.exp) {\r\n return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [\r\n isDir.exp\r\n ]);\r\n }\r\n // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...)\r\n const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);\r\n if (builtIn) {\r\n // built-ins are simply fallthroughs / have special handling during ssr\r\n // so we don't need to import their runtime equivalents\r\n if (!ssr)\r\n context.helper(builtIn);\r\n return builtIn;\r\n }\r\n // 5. user component (resolve)\r\n context.helper(RESOLVE_COMPONENT);\r\n context.components.add(tag);\r\n return toValidAssetId(tag, `component`);\r\n}\r\nfunction buildProps(node, context, props = node.props, ssr = false) {\r\n const { tag, loc: elementLoc, children } = node;\r\n const isComponent = node.tagType === 1 /* COMPONENT */;\r\n let properties = [];\r\n const mergeArgs = [];\r\n const runtimeDirectives = [];\r\n const hasChildren = children.length > 0;\r\n let shouldUseBlock = false;\r\n // patchFlag analysis\r\n let patchFlag = 0;\r\n let hasRef = false;\r\n let hasClassBinding = false;\r\n let hasStyleBinding = false;\r\n let hasHydrationEventBinding = false;\r\n let hasDynamicKeys = false;\r\n let hasVnodeHook = false;\r\n const dynamicPropNames = [];\r\n const analyzePatchFlag = ({ key, value }) => {\r\n if (isStaticExp(key)) {\r\n const name = key.content;\r\n const isEventHandler = isOn(name);\r\n if (!isComponent &&\r\n isEventHandler &&\r\n // omit the flag for click handlers because hydration gives click\r\n // dedicated fast path.\r\n name.toLowerCase() !== 'onclick' &&\r\n // omit v-model handlers\r\n name !== 'onUpdate:modelValue' &&\r\n // omit onVnodeXXX hooks\r\n !isReservedProp(name)) {\r\n hasHydrationEventBinding = true;\r\n }\r\n if (isEventHandler && isReservedProp(name)) {\r\n hasVnodeHook = true;\r\n }\r\n if (value.type === 20 /* JS_CACHE_EXPRESSION */ ||\r\n ((value.type === 4 /* SIMPLE_EXPRESSION */ ||\r\n value.type === 8 /* COMPOUND_EXPRESSION */) &&\r\n getConstantType(value, context) > 0)) {\r\n // skip if the prop is a cached handler or has constant value\r\n return;\r\n }\r\n if (name === 'ref') {\r\n hasRef = true;\r\n }\r\n else if (name === 'class') {\r\n hasClassBinding = true;\r\n }\r\n else if (name === 'style') {\r\n hasStyleBinding = true;\r\n }\r\n else if (name !== 'key' && !dynamicPropNames.includes(name)) {\r\n dynamicPropNames.push(name);\r\n }\r\n // treat the dynamic class and style binding of the component as dynamic props\r\n if (isComponent &&\r\n (name === 'class' || name === 'style') &&\r\n !dynamicPropNames.includes(name)) {\r\n dynamicPropNames.push(name);\r\n }\r\n }\r\n else {\r\n hasDynamicKeys = true;\r\n }\r\n };\r\n for (let i = 0; i < props.length; i++) {\r\n // static attribute\r\n const prop = props[i];\r\n if (prop.type === 6 /* ATTRIBUTE */) {\r\n const { loc, name, value } = prop;\r\n let isStatic = true;\r\n if (name === 'ref') {\r\n hasRef = true;\r\n if (context.scopes.vFor > 0) {\r\n properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));\r\n }\r\n }\r\n // skip is on <component>, or is=\"vue:xxx\"\r\n if (name === 'is' &&\r\n (isComponentTag(tag) ||\r\n (value && value.content.startsWith('vue:')) ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context)))) {\r\n continue;\r\n }\r\n properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));\r\n }\r\n else {\r\n // directives\r\n const { name, arg, exp, loc } = prop;\r\n const isVBind = name === 'bind';\r\n const isVOn = name === 'on';\r\n // skip v-slot - it is handled by its dedicated transform.\r\n if (name === 'slot') {\r\n if (!isComponent) {\r\n context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));\r\n }\r\n continue;\r\n }\r\n // skip v-once/v-memo - they are handled by dedicated transforms.\r\n if (name === 'once' || name === 'memo') {\r\n continue;\r\n }\r\n // skip v-is and :is on <component>\r\n if (name === 'is' ||\r\n (isVBind &&\r\n isStaticArgOf(arg, 'is') &&\r\n (isComponentTag(tag) ||\r\n (isCompatEnabled(\"COMPILER_IS_ON_ELEMENT\" /* COMPILER_IS_ON_ELEMENT */, context))))) {\r\n continue;\r\n }\r\n // skip v-on in SSR compilation\r\n if (isVOn && ssr) {\r\n continue;\r\n }\r\n if (\r\n // #938: elements with dynamic keys should be forced into blocks\r\n (isVBind && isStaticArgOf(arg, 'key')) ||\r\n // inline before-update hooks need to force block so that it is invoked\r\n // before children\r\n (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) {\r\n shouldUseBlock = true;\r\n }\r\n if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) {\r\n properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));\r\n }\r\n // special case for v-bind and v-on with no argument\r\n if (!arg && (isVBind || isVOn)) {\r\n hasDynamicKeys = true;\r\n if (exp) {\r\n if (properties.length) {\r\n mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));\r\n properties = [];\r\n }\r\n if (isVBind) {\r\n {\r\n // 2.x v-bind object order compat\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const hasOverridableKeys = mergeArgs.some(arg => {\r\n if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) {\r\n return arg.properties.some(({ key }) => {\r\n if (key.type !== 4 /* SIMPLE_EXPRESSION */ ||\r\n !key.isStatic) {\r\n return true;\r\n }\r\n return (key.content !== 'class' &&\r\n key.content !== 'style' &&\r\n !isOn(key.content));\r\n });\r\n }\r\n else {\r\n // dynamic expression\r\n return true;\r\n }\r\n });\r\n if (hasOverridableKeys) {\r\n checkCompatEnabled(\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc);\r\n }\r\n }\r\n if (isCompatEnabled(\"COMPILER_V_BIND_OBJECT_ORDER\" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) {\r\n mergeArgs.unshift(exp);\r\n continue;\r\n }\r\n }\r\n mergeArgs.push(exp);\r\n }\r\n else {\r\n // v-on=\"obj\" -> toHandlers(obj)\r\n mergeArgs.push({\r\n type: 14 /* JS_CALL_EXPRESSION */,\r\n loc,\r\n callee: context.helper(TO_HANDLERS),\r\n arguments: [exp]\r\n });\r\n }\r\n }\r\n else {\r\n context.onError(createCompilerError(isVBind\r\n ? 34 /* X_V_BIND_NO_EXPRESSION */\r\n : 35 /* X_V_ON_NO_EXPRESSION */, loc));\r\n }\r\n continue;\r\n }\r\n const directiveTransform = context.directiveTransforms[name];\r\n if (directiveTransform) {\r\n // has built-in directive transform.\r\n const { props, needRuntime } = directiveTransform(prop, node, context);\r\n !ssr && props.forEach(analyzePatchFlag);\r\n properties.push(...props);\r\n if (needRuntime) {\r\n runtimeDirectives.push(prop);\r\n if (isSymbol(needRuntime)) {\r\n directiveImportMap.set(prop, needRuntime);\r\n }\r\n }\r\n }\r\n else {\r\n // no built-in transform, this is a user custom directive.\r\n runtimeDirectives.push(prop);\r\n // custom dirs may use beforeUpdate so they need to force blocks\r\n // to ensure before-update gets called before children update\r\n if (hasChildren) {\r\n shouldUseBlock = true;\r\n }\r\n }\r\n }\r\n }\r\n let propsExpression = undefined;\r\n // has v-bind=\"object\" or v-on=\"object\", wrap with mergeProps\r\n if (mergeArgs.length) {\r\n if (properties.length) {\r\n mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));\r\n }\r\n if (mergeArgs.length > 1) {\r\n propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);\r\n }\r\n else {\r\n // single v-bind with nothing else - no need for a mergeProps call\r\n propsExpression = mergeArgs[0];\r\n }\r\n }\r\n else if (properties.length) {\r\n propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);\r\n }\r\n // patchFlag analysis\r\n if (hasDynamicKeys) {\r\n patchFlag |= 16 /* FULL_PROPS */;\r\n }\r\n else {\r\n if (hasClassBinding && !isComponent) {\r\n patchFlag |= 2 /* CLASS */;\r\n }\r\n if (hasStyleBinding && !isComponent) {\r\n patchFlag |= 4 /* STYLE */;\r\n }\r\n if (dynamicPropNames.length) {\r\n patchFlag |= 8 /* PROPS */;\r\n }\r\n if (hasHydrationEventBinding) {\r\n patchFlag |= 32 /* HYDRATE_EVENTS */;\r\n }\r\n }\r\n if (!shouldUseBlock &&\r\n (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) &&\r\n (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) {\r\n patchFlag |= 512 /* NEED_PATCH */;\r\n }\r\n // pre-normalize props, SSR is skipped for now\r\n if (!context.inSSR && propsExpression) {\r\n switch (propsExpression.type) {\r\n case 15 /* JS_OBJECT_EXPRESSION */:\r\n // means that there is no v-bind,\r\n // but still need to deal with dynamic key binding\r\n let classKeyIndex = -1;\r\n let styleKeyIndex = -1;\r\n let hasDynamicKey = false;\r\n for (let i = 0; i < propsExpression.properties.length; i++) {\r\n const key = propsExpression.properties[i].key;\r\n if (isStaticExp(key)) {\r\n if (key.content === 'class') {\r\n classKeyIndex = i;\r\n }\r\n else if (key.content === 'style') {\r\n styleKeyIndex = i;\r\n }\r\n }\r\n else if (!key.isHandlerKey) {\r\n hasDynamicKey = true;\r\n }\r\n }\r\n const classProp = propsExpression.properties[classKeyIndex];\r\n const styleProp = propsExpression.properties[styleKeyIndex];\r\n // no dynamic key\r\n if (!hasDynamicKey) {\r\n if (classProp && !isStaticExp(classProp.value)) {\r\n classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);\r\n }\r\n if (styleProp &&\r\n !isStaticExp(styleProp.value) &&\r\n // the static style is compiled into an object,\r\n // so use `hasStyleBinding` to ensure that it is a dynamic style binding\r\n (hasStyleBinding ||\r\n // v-bind:style and style both exist,\r\n // v-bind:style with static literal object\r\n styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) {\r\n styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);\r\n }\r\n }\r\n else {\r\n // dynamic key binding, wrap with `normalizeProps`\r\n propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);\r\n }\r\n break;\r\n case 14 /* JS_CALL_EXPRESSION */:\r\n // mergeProps call, do nothing\r\n break;\r\n default:\r\n // single v-bind\r\n propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [\r\n createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [\r\n propsExpression\r\n ])\r\n ]);\r\n break;\r\n }\r\n }\r\n return {\r\n props: propsExpression,\r\n directives: runtimeDirectives,\r\n patchFlag,\r\n dynamicPropNames,\r\n shouldUseBlock\r\n };\r\n}\r\n// Dedupe props in an object literal.\r\n// Literal duplicated attributes would have been warned during the parse phase,\r\n// however, it's possible to encounter duplicated `onXXX` handlers with different\r\n// modifiers. We also need to merge static and dynamic class / style attributes.\r\n// - onXXX handlers / style: merge into array\r\n// - class: merge into single expression with concatenation\r\nfunction dedupeProperties(properties) {\r\n const knownProps = new Map();\r\n const deduped = [];\r\n for (let i = 0; i < properties.length; i++) {\r\n const prop = properties[i];\r\n // dynamic keys are always allowed\r\n if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) {\r\n deduped.push(prop);\r\n continue;\r\n }\r\n const name = prop.key.content;\r\n const existing = knownProps.get(name);\r\n if (existing) {\r\n if (name === 'style' || name === 'class' || isOn(name)) {\r\n mergeAsArray(existing, prop);\r\n }\r\n // unexpected duplicate, should have emitted error during parse\r\n }\r\n else {\r\n knownProps.set(name, prop);\r\n deduped.push(prop);\r\n }\r\n }\r\n return deduped;\r\n}\r\nfunction mergeAsArray(existing, incoming) {\r\n if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) {\r\n existing.value.elements.push(incoming.value);\r\n }\r\n else {\r\n existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);\r\n }\r\n}\r\nfunction buildDirectiveArgs(dir, context) {\r\n const dirArgs = [];\r\n const runtime = directiveImportMap.get(dir);\r\n if (runtime) {\r\n // built-in directive with runtime\r\n dirArgs.push(context.helperString(runtime));\r\n }\r\n else {\r\n {\r\n // inject statement for resolving directive\r\n context.helper(RESOLVE_DIRECTIVE);\r\n context.directives.add(dir.name);\r\n dirArgs.push(toValidAssetId(dir.name, `directive`));\r\n }\r\n }\r\n const { loc } = dir;\r\n if (dir.exp)\r\n dirArgs.push(dir.exp);\r\n if (dir.arg) {\r\n if (!dir.exp) {\r\n dirArgs.push(`void 0`);\r\n }\r\n dirArgs.push(dir.arg);\r\n }\r\n if (Object.keys(dir.modifiers).length) {\r\n if (!dir.arg) {\r\n if (!dir.exp) {\r\n dirArgs.push(`void 0`);\r\n }\r\n dirArgs.push(`void 0`);\r\n }\r\n const trueExpression = createSimpleExpression(`true`, false, loc);\r\n dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));\r\n }\r\n return createArrayExpression(dirArgs, dir.loc);\r\n}\r\nfunction stringifyDynamicPropNames(props) {\r\n let propsNamesString = `[`;\r\n for (let i = 0, l = props.length; i < l; i++) {\r\n propsNamesString += JSON.stringify(props[i]);\r\n if (i < l - 1)\r\n propsNamesString += ', ';\r\n }\r\n return propsNamesString + `]`;\r\n}\r\nfunction isComponentTag(tag) {\r\n return tag === 'component' || tag === 'Component';\r\n}\n\n(process.env.NODE_ENV !== 'production')\r\n ? Object.freeze({})\r\n : {};\r\n(process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null);\r\n return ((str) => {\r\n const hit = cache[str];\r\n return hit || (cache[str] = fn(str));\r\n });\r\n};\r\nconst camelizeRE = /-(\\w)/g;\r\n/**\r\n * @private\r\n */\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\r\n});\n\nconst transformSlotOutlet = (node, context) => {\r\n if (isSlotOutlet(node)) {\r\n const { children, loc } = node;\r\n const { slotName, slotProps } = processSlotOutlet(node, context);\r\n const slotArgs = [\r\n context.prefixIdentifiers ? `_ctx.$slots` : `$slots`,\r\n slotName,\r\n '{}',\r\n 'undefined',\r\n 'true'\r\n ];\r\n let expectedLen = 2;\r\n if (slotProps) {\r\n slotArgs[2] = slotProps;\r\n expectedLen = 3;\r\n }\r\n if (children.length) {\r\n slotArgs[3] = createFunctionExpression([], children, false, false, loc);\r\n expectedLen = 4;\r\n }\r\n if (context.scopeId && !context.slotted) {\r\n expectedLen = 5;\r\n }\r\n slotArgs.splice(expectedLen); // remove unused arguments\r\n node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);\r\n }\r\n};\r\nfunction processSlotOutlet(node, context) {\r\n let slotName = `\"default\"`;\r\n let slotProps = undefined;\r\n const nonNameProps = [];\r\n for (let i = 0; i < node.props.length; i++) {\r\n const p = node.props[i];\r\n if (p.type === 6 /* ATTRIBUTE */) {\r\n if (p.value) {\r\n if (p.name === 'name') {\r\n slotName = JSON.stringify(p.value.content);\r\n }\r\n else {\r\n p.name = camelize(p.name);\r\n nonNameProps.push(p);\r\n }\r\n }\r\n }\r\n else {\r\n if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) {\r\n if (p.exp)\r\n slotName = p.exp;\r\n }\r\n else {\r\n if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {\r\n p.arg.content = camelize(p.arg.content);\r\n }\r\n nonNameProps.push(p);\r\n }\r\n }\r\n }\r\n if (nonNameProps.length > 0) {\r\n const { props, directives } = buildProps(node, context, nonNameProps);\r\n slotProps = props;\r\n if (directives.length) {\r\n context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));\r\n }\r\n }\r\n return {\r\n slotName,\r\n slotProps\r\n };\r\n}\n\nconst fnExpRE = /^\\s*([\\w$_]+|(async\\s*)?\\([^)]*?\\))\\s*=>|^\\s*(async\\s+)?function(?:\\s+[\\w$]+)?\\s*\\(/;\r\nconst transformOn = (dir, node, context, augmentor) => {\r\n const { loc, modifiers, arg } = dir;\r\n if (!dir.exp && !modifiers.length) {\r\n context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));\r\n }\r\n let eventName;\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n let rawName = arg.content;\r\n // TODO deprecate @vnodeXXX usage\r\n if (rawName.startsWith('vue:')) {\r\n rawName = `vnode-${rawName.slice(4)}`;\r\n }\r\n // for all event listeners, auto convert it to camelCase. See issue #2249\r\n eventName = createSimpleExpression(toHandlerKey(camelize$1(rawName)), true, arg.loc);\r\n }\r\n else {\r\n // #2388\r\n eventName = createCompoundExpression([\r\n `${context.helperString(TO_HANDLER_KEY)}(`,\r\n arg,\r\n `)`\r\n ]);\r\n }\r\n }\r\n else {\r\n // already a compound expression.\r\n eventName = arg;\r\n eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);\r\n eventName.children.push(`)`);\r\n }\r\n // handler processing\r\n let exp = dir.exp;\r\n if (exp && !exp.content.trim()) {\r\n exp = undefined;\r\n }\r\n let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;\r\n if (exp) {\r\n const isMemberExp = isMemberExpression(exp.content);\r\n const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));\r\n const hasMultipleStatements = exp.content.includes(`;`);\r\n if ((process.env.NODE_ENV !== 'production') && true) {\r\n validateBrowserExpression(exp, context, false, hasMultipleStatements);\r\n }\r\n if (isInlineStatement || (shouldCache && isMemberExp)) {\r\n // wrap inline statement in a function expression\r\n exp = createCompoundExpression([\r\n `${isInlineStatement\r\n ? `$event`\r\n : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`,\r\n exp,\r\n hasMultipleStatements ? `}` : `)`\r\n ]);\r\n }\r\n }\r\n let ret = {\r\n props: [\r\n createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))\r\n ]\r\n };\r\n // apply extended compiler augmentor\r\n if (augmentor) {\r\n ret = augmentor(ret);\r\n }\r\n if (shouldCache) {\r\n // cache handlers so that it's always the same handler being passed down.\r\n // this avoids unnecessary re-renders when users use inline handlers on\r\n // components.\r\n ret.props[0].value = context.cache(ret.props[0].value);\r\n }\r\n // mark the key as handler for props normalization check\r\n ret.props.forEach(p => (p.key.isHandlerKey = true));\r\n return ret;\r\n};\n\n// v-bind without arg is handled directly in ./transformElements.ts due to it affecting\r\n// codegen for the entire props object. This transform here is only for v-bind\r\n// *with* args.\r\nconst transformBind = (dir, _node, context) => {\r\n const { exp, modifiers, loc } = dir;\r\n const arg = dir.arg;\r\n if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {\r\n arg.children.unshift(`(`);\r\n arg.children.push(`) || \"\"`);\r\n }\r\n else if (!arg.isStatic) {\r\n arg.content = `${arg.content} || \"\"`;\r\n }\r\n // .sync is replaced by v-model:arg\r\n if (modifiers.includes('camel')) {\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n arg.content = camelize$1(arg.content);\r\n }\r\n else {\r\n arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;\r\n }\r\n }\r\n else {\r\n arg.children.unshift(`${context.helperString(CAMELIZE)}(`);\r\n arg.children.push(`)`);\r\n }\r\n }\r\n if (!context.inSSR) {\r\n if (modifiers.includes('prop')) {\r\n injectPrefix(arg, '.');\r\n }\r\n if (modifiers.includes('attr')) {\r\n injectPrefix(arg, '^');\r\n }\r\n }\r\n if (!exp ||\r\n (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {\r\n context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));\r\n return {\r\n props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]\r\n };\r\n }\r\n return {\r\n props: [createObjectProperty(arg, exp)]\r\n };\r\n};\r\nconst injectPrefix = (arg, prefix) => {\r\n if (arg.type === 4 /* SIMPLE_EXPRESSION */) {\r\n if (arg.isStatic) {\r\n arg.content = prefix + arg.content;\r\n }\r\n else {\r\n arg.content = `\\`${prefix}\\${${arg.content}}\\``;\r\n }\r\n }\r\n else {\r\n arg.children.unshift(`'${prefix}' + (`);\r\n arg.children.push(`)`);\r\n }\r\n};\n\n// Merge adjacent text nodes and expressions into a single expression\r\n// e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child.\r\nconst transformText = (node, context) => {\r\n if (node.type === 0 /* ROOT */ ||\r\n node.type === 1 /* ELEMENT */ ||\r\n node.type === 11 /* FOR */ ||\r\n node.type === 10 /* IF_BRANCH */) {\r\n // perform the transform on node exit so that all expressions have already\r\n // been processed.\r\n return () => {\r\n const children = node.children;\r\n let currentContainer = undefined;\r\n let hasText = false;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isText(child)) {\r\n hasText = true;\r\n for (let j = i + 1; j < children.length; j++) {\r\n const next = children[j];\r\n if (isText(next)) {\r\n if (!currentContainer) {\r\n currentContainer = children[i] = {\r\n type: 8 /* COMPOUND_EXPRESSION */,\r\n loc: child.loc,\r\n children: [child]\r\n };\r\n }\r\n // merge adjacent text node into current\r\n currentContainer.children.push(` + `, next);\r\n children.splice(j, 1);\r\n j--;\r\n }\r\n else {\r\n currentContainer = undefined;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n if (!hasText ||\r\n // if this is a plain element with a single text child, leave it\r\n // as-is since the runtime has dedicated fast path for this by directly\r\n // setting textContent of the element.\r\n // for component root it's always normalized anyway.\r\n (children.length === 1 &&\r\n (node.type === 0 /* ROOT */ ||\r\n (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n // #3756\r\n // custom directives can potentially add DOM elements arbitrarily,\r\n // we need to avoid setting textContent of the element at runtime\r\n // to avoid accidentally overwriting the DOM elements added\r\n // by the user through custom directives.\r\n !node.props.find(p => p.type === 7 /* DIRECTIVE */ &&\r\n !context.directiveTransforms[p.name]) &&\r\n // in compat mode, <template> tags with no special directives\r\n // will be rendered as a fragment so its children must be\r\n // converted into vnodes.\r\n !(node.tag === 'template'))))) {\r\n return;\r\n }\r\n // pre-convert text nodes into createTextVNode(text) calls to avoid\r\n // runtime normalization.\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) {\r\n const callArgs = [];\r\n // createTextVNode defaults to single whitespace, so if it is a\r\n // single space the code could be an empty call to save bytes.\r\n if (child.type !== 2 /* TEXT */ || child.content !== ' ') {\r\n callArgs.push(child);\r\n }\r\n // mark dynamic text with flag so it gets patched inside a block\r\n if (!context.ssr &&\r\n getConstantType(child, context) === 0 /* NOT_CONSTANT */) {\r\n callArgs.push(1 /* TEXT */ +\r\n ((process.env.NODE_ENV !== 'production') ? ` /* ${PatchFlagNames[1 /* TEXT */]} */` : ``));\r\n }\r\n children[i] = {\r\n type: 12 /* TEXT_CALL */,\r\n content: child,\r\n loc: child.loc,\r\n codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)\r\n };\r\n }\r\n }\r\n };\r\n }\r\n};\n\nconst seen = new WeakSet();\r\nconst transformOnce = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) {\r\n if (seen.has(node) || context.inVOnce) {\r\n return;\r\n }\r\n seen.add(node);\r\n context.inVOnce = true;\r\n context.helper(SET_BLOCK_TRACKING);\r\n return () => {\r\n context.inVOnce = false;\r\n const cur = context.currentNode;\r\n if (cur.codegenNode) {\r\n cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */);\r\n }\r\n };\r\n }\r\n};\n\nconst transformModel = (dir, node, context) => {\r\n const { exp, arg } = dir;\r\n if (!exp) {\r\n context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));\r\n return createTransformProps();\r\n }\r\n const rawExp = exp.loc.source;\r\n const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp;\r\n // im SFC <script setup> inline mode, the exp may have been transformed into\r\n // _unref(exp)\r\n context.bindingMetadata[rawExp];\r\n const maybeRef = !true /* SETUP_CONST */;\r\n if (!expString.trim() ||\r\n (!isMemberExpression(expString) && !maybeRef)) {\r\n context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));\r\n return createTransformProps();\r\n }\r\n const propName = arg ? arg : createSimpleExpression('modelValue', true);\r\n const eventName = arg\r\n ? isStaticExp(arg)\r\n ? `onUpdate:${arg.content}`\r\n : createCompoundExpression(['\"onUpdate:\" + ', arg])\r\n : `onUpdate:modelValue`;\r\n let assignmentExp;\r\n const eventArg = context.isTS ? `($event: any)` : `$event`;\r\n {\r\n assignmentExp = createCompoundExpression([\r\n `${eventArg} => ((`,\r\n exp,\r\n `) = $event)`\r\n ]);\r\n }\r\n const props = [\r\n // modelValue: foo\r\n createObjectProperty(propName, dir.exp),\r\n // \"onUpdate:modelValue\": $event => (foo = $event)\r\n createObjectProperty(eventName, assignmentExp)\r\n ];\r\n // modelModifiers: { foo: true, \"bar-baz\": true }\r\n if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) {\r\n const modifiers = dir.modifiers\r\n .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`)\r\n .join(`, `);\r\n const modifiersKey = arg\r\n ? isStaticExp(arg)\r\n ? `${arg.content}Modifiers`\r\n : createCompoundExpression([arg, ' + \"Modifiers\"'])\r\n : `modelModifiers`;\r\n props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */)));\r\n }\r\n return createTransformProps(props);\r\n};\r\nfunction createTransformProps(props = []) {\r\n return { props };\r\n}\n\nconst validDivisionCharRE = /[\\w).+\\-_$\\]]/;\r\nconst transformFilter = (node, context) => {\r\n if (!isCompatEnabled(\"COMPILER_FILTER\" /* COMPILER_FILTERS */, context)) {\r\n return;\r\n }\r\n if (node.type === 5 /* INTERPOLATION */) {\r\n // filter rewrite is applied before expression transform so only\r\n // simple expressions are possible at this stage\r\n rewriteFilter(node.content, context);\r\n }\r\n if (node.type === 1 /* ELEMENT */) {\r\n node.props.forEach((prop) => {\r\n if (prop.type === 7 /* DIRECTIVE */ &&\r\n prop.name !== 'for' &&\r\n prop.exp) {\r\n rewriteFilter(prop.exp, context);\r\n }\r\n });\r\n }\r\n};\r\nfunction rewriteFilter(node, context) {\r\n if (node.type === 4 /* SIMPLE_EXPRESSION */) {\r\n parseFilter(node, context);\r\n }\r\n else {\r\n for (let i = 0; i < node.children.length; i++) {\r\n const child = node.children[i];\r\n if (typeof child !== 'object')\r\n continue;\r\n if (child.type === 4 /* SIMPLE_EXPRESSION */) {\r\n parseFilter(child, context);\r\n }\r\n else if (child.type === 8 /* COMPOUND_EXPRESSION */) {\r\n rewriteFilter(node, context);\r\n }\r\n else if (child.type === 5 /* INTERPOLATION */) {\r\n rewriteFilter(child.content, context);\r\n }\r\n }\r\n }\r\n}\r\nfunction parseFilter(node, context) {\r\n const exp = node.content;\r\n let inSingle = false;\r\n let inDouble = false;\r\n let inTemplateString = false;\r\n let inRegex = false;\r\n let curly = 0;\r\n let square = 0;\r\n let paren = 0;\r\n let lastFilterIndex = 0;\r\n let c, prev, i, expression, filters = [];\r\n for (i = 0; i < exp.length; i++) {\r\n prev = c;\r\n c = exp.charCodeAt(i);\r\n if (inSingle) {\r\n if (c === 0x27 && prev !== 0x5c)\r\n inSingle = false;\r\n }\r\n else if (inDouble) {\r\n if (c === 0x22 && prev !== 0x5c)\r\n inDouble = false;\r\n }\r\n else if (inTemplateString) {\r\n if (c === 0x60 && prev !== 0x5c)\r\n inTemplateString = false;\r\n }\r\n else if (inRegex) {\r\n if (c === 0x2f && prev !== 0x5c)\r\n inRegex = false;\r\n }\r\n else if (c === 0x7c && // pipe\r\n exp.charCodeAt(i + 1) !== 0x7c &&\r\n exp.charCodeAt(i - 1) !== 0x7c &&\r\n !curly &&\r\n !square &&\r\n !paren) {\r\n if (expression === undefined) {\r\n // first filter, end of expression\r\n lastFilterIndex = i + 1;\r\n expression = exp.slice(0, i).trim();\r\n }\r\n else {\r\n pushFilter();\r\n }\r\n }\r\n else {\r\n switch (c) {\r\n case 0x22:\r\n inDouble = true;\r\n break; // \"\r\n case 0x27:\r\n inSingle = true;\r\n break; // '\r\n case 0x60:\r\n inTemplateString = true;\r\n break; // `\r\n case 0x28:\r\n paren++;\r\n break; // (\r\n case 0x29:\r\n paren--;\r\n break; // )\r\n case 0x5b:\r\n square++;\r\n break; // [\r\n case 0x5d:\r\n square--;\r\n break; // ]\r\n case 0x7b:\r\n curly++;\r\n break; // {\r\n case 0x7d:\r\n curly--;\r\n break; // }\r\n }\r\n if (c === 0x2f) {\r\n // /\r\n let j = i - 1;\r\n let p;\r\n // find first non-whitespace prev char\r\n for (; j >= 0; j--) {\r\n p = exp.charAt(j);\r\n if (p !== ' ')\r\n break;\r\n }\r\n if (!p || !validDivisionCharRE.test(p)) {\r\n inRegex = true;\r\n }\r\n }\r\n }\r\n }\r\n if (expression === undefined) {\r\n expression = exp.slice(0, i).trim();\r\n }\r\n else if (lastFilterIndex !== 0) {\r\n pushFilter();\r\n }\r\n function pushFilter() {\r\n filters.push(exp.slice(lastFilterIndex, i).trim());\r\n lastFilterIndex = i + 1;\r\n }\r\n if (filters.length) {\r\n (process.env.NODE_ENV !== 'production') &&\r\n warnDeprecation(\"COMPILER_FILTER\" /* COMPILER_FILTERS */, context, node.loc);\r\n for (i = 0; i < filters.length; i++) {\r\n expression = wrapFilter(expression, filters[i], context);\r\n }\r\n node.content = expression;\r\n }\r\n}\r\nfunction wrapFilter(exp, filter, context) {\r\n context.helper(RESOLVE_FILTER);\r\n const i = filter.indexOf('(');\r\n if (i < 0) {\r\n context.filters.add(filter);\r\n return `${toValidAssetId(filter, 'filter')}(${exp})`;\r\n }\r\n else {\r\n const name = filter.slice(0, i);\r\n const args = filter.slice(i + 1);\r\n context.filters.add(name);\r\n return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`;\r\n }\r\n}\n\nconst seen$1 = new WeakSet();\r\nconst transformMemo = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n const dir = findDir(node, 'memo');\r\n if (!dir || seen$1.has(node)) {\r\n return;\r\n }\r\n seen$1.add(node);\r\n return () => {\r\n const codegenNode = node.codegenNode ||\r\n context.currentNode.codegenNode;\r\n if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) {\r\n // non-component sub tree should be turned into a block\r\n if (node.tagType !== 1 /* COMPONENT */) {\r\n makeBlock(codegenNode, context);\r\n }\r\n node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [\r\n dir.exp,\r\n createFunctionExpression(undefined, codegenNode),\r\n `_cache`,\r\n String(context.cached++)\r\n ]);\r\n }\r\n };\r\n }\r\n};\n\nfunction getBaseTransformPreset(prefixIdentifiers) {\r\n return [\r\n [\r\n transformOnce,\r\n transformIf,\r\n transformMemo,\r\n transformFor,\r\n ...([transformFilter] ),\r\n ...((process.env.NODE_ENV !== 'production')\r\n ? [transformExpression]\r\n : []),\r\n transformSlotOutlet,\r\n transformElement,\r\n trackSlotScopes,\r\n transformText\r\n ],\r\n {\r\n on: transformOn,\r\n bind: transformBind,\r\n model: transformModel\r\n }\r\n ];\r\n}\r\n// we name it `baseCompile` so that higher order compilers like\r\n// @vue/compiler-dom can export `compile` while re-exporting everything else.\r\nfunction baseCompile(template, options = {}) {\r\n const onError = options.onError || defaultOnError;\r\n const isModuleMode = options.mode === 'module';\r\n /* istanbul ignore if */\r\n {\r\n if (options.prefixIdentifiers === true) {\r\n onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));\r\n }\r\n else if (isModuleMode) {\r\n onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));\r\n }\r\n }\r\n const prefixIdentifiers = !true ;\r\n if (options.cacheHandlers) {\r\n onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));\r\n }\r\n if (options.scopeId && !isModuleMode) {\r\n onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));\r\n }\r\n const ast = isString(template) ? baseParse(template, options) : template;\r\n const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();\r\n transform(ast, extend({}, options, {\r\n prefixIdentifiers,\r\n nodeTransforms: [\r\n ...nodeTransforms,\r\n ...(options.nodeTransforms || []) // user transforms\r\n ],\r\n directiveTransforms: extend({}, directiveTransforms, options.directiveTransforms || {} // user transforms\r\n )\r\n }));\r\n return generate(ast, extend({}, options, {\r\n prefixIdentifiers\r\n }));\r\n}\n\nconst noopDirectiveTransform = () => ({ props: [] });\n\nexport { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildProps, buildSlots, checkCompatEnabled, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, extractIdentifiers, findDir, findProp, generate, getBaseTransformPreset, getInnerRange, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isBuiltInType, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVSlot, locStub, makeBlock, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };\n","import { registerRuntimeHelpers, isBuiltInType, createSimpleExpression, createCompilerError, createObjectProperty, createCallExpression, TO_DISPLAY_STRING, transformModel as transformModel$1, findProp, hasDynamicKeyVBind, transformOn as transformOn$1, createCompoundExpression, isStaticExp, checkCompatEnabled, noopDirectiveTransform, baseCompile, baseParse } from '@vue/compiler-core';\nexport * from '@vue/compiler-core';\nimport { isVoidTag, isHTMLTag, isSVGTag, makeMap, parseStringStyle, capitalize, extend } from '@vue/shared';\n\nconst V_MODEL_RADIO = Symbol((process.env.NODE_ENV !== 'production') ? `vModelRadio` : ``);\r\nconst V_MODEL_CHECKBOX = Symbol((process.env.NODE_ENV !== 'production') ? `vModelCheckbox` : ``);\r\nconst V_MODEL_TEXT = Symbol((process.env.NODE_ENV !== 'production') ? `vModelText` : ``);\r\nconst V_MODEL_SELECT = Symbol((process.env.NODE_ENV !== 'production') ? `vModelSelect` : ``);\r\nconst V_MODEL_DYNAMIC = Symbol((process.env.NODE_ENV !== 'production') ? `vModelDynamic` : ``);\r\nconst V_ON_WITH_MODIFIERS = Symbol((process.env.NODE_ENV !== 'production') ? `vOnModifiersGuard` : ``);\r\nconst V_ON_WITH_KEYS = Symbol((process.env.NODE_ENV !== 'production') ? `vOnKeysGuard` : ``);\r\nconst V_SHOW = Symbol((process.env.NODE_ENV !== 'production') ? `vShow` : ``);\r\nconst TRANSITION = Symbol((process.env.NODE_ENV !== 'production') ? `Transition` : ``);\r\nconst TRANSITION_GROUP = Symbol((process.env.NODE_ENV !== 'production') ? `TransitionGroup` : ``);\r\nregisterRuntimeHelpers({\r\n [V_MODEL_RADIO]: `vModelRadio`,\r\n [V_MODEL_CHECKBOX]: `vModelCheckbox`,\r\n [V_MODEL_TEXT]: `vModelText`,\r\n [V_MODEL_SELECT]: `vModelSelect`,\r\n [V_MODEL_DYNAMIC]: `vModelDynamic`,\r\n [V_ON_WITH_MODIFIERS]: `withModifiers`,\r\n [V_ON_WITH_KEYS]: `withKeys`,\r\n [V_SHOW]: `vShow`,\r\n [TRANSITION]: `Transition`,\r\n [TRANSITION_GROUP]: `TransitionGroup`\r\n});\n\n/* eslint-disable no-restricted-globals */\r\nlet decoder;\r\nfunction decodeHtmlBrowser(raw, asAttr = false) {\r\n if (!decoder) {\r\n decoder = document.createElement('div');\r\n }\r\n if (asAttr) {\r\n decoder.innerHTML = `<div foo=\"${raw.replace(/\"/g, '"')}\">`;\r\n return decoder.children[0].getAttribute('foo');\r\n }\r\n else {\r\n decoder.innerHTML = raw;\r\n return decoder.textContent;\r\n }\r\n}\n\nconst isRawTextContainer = /*#__PURE__*/ makeMap('style,iframe,script,noscript', true);\r\nconst parserOptions = {\r\n isVoidTag,\r\n isNativeTag: tag => isHTMLTag(tag) || isSVGTag(tag),\r\n isPreTag: tag => tag === 'pre',\r\n decodeEntities: decodeHtmlBrowser ,\r\n isBuiltInComponent: (tag) => {\r\n if (isBuiltInType(tag, `Transition`)) {\r\n return TRANSITION;\r\n }\r\n else if (isBuiltInType(tag, `TransitionGroup`)) {\r\n return TRANSITION_GROUP;\r\n }\r\n },\r\n // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher\r\n getNamespace(tag, parent) {\r\n let ns = parent ? parent.ns : 0 /* HTML */;\r\n if (parent && ns === 2 /* MATH_ML */) {\r\n if (parent.tag === 'annotation-xml') {\r\n if (tag === 'svg') {\r\n return 1 /* SVG */;\r\n }\r\n if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ &&\r\n a.name === 'encoding' &&\r\n a.value != null &&\r\n (a.value.content === 'text/html' ||\r\n a.value.content === 'application/xhtml+xml'))) {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n else if (/^m(?:[ions]|text)$/.test(parent.tag) &&\r\n tag !== 'mglyph' &&\r\n tag !== 'malignmark') {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n else if (parent && ns === 1 /* SVG */) {\r\n if (parent.tag === 'foreignObject' ||\r\n parent.tag === 'desc' ||\r\n parent.tag === 'title') {\r\n ns = 0 /* HTML */;\r\n }\r\n }\r\n if (ns === 0 /* HTML */) {\r\n if (tag === 'svg') {\r\n return 1 /* SVG */;\r\n }\r\n if (tag === 'math') {\r\n return 2 /* MATH_ML */;\r\n }\r\n }\r\n return ns;\r\n },\r\n // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments\r\n getTextMode({ tag, ns }) {\r\n if (ns === 0 /* HTML */) {\r\n if (tag === 'textarea' || tag === 'title') {\r\n return 1 /* RCDATA */;\r\n }\r\n if (isRawTextContainer(tag)) {\r\n return 2 /* RAWTEXT */;\r\n }\r\n }\r\n return 0 /* DATA */;\r\n }\r\n};\n\n// Parse inline CSS strings for static style attributes into an object.\r\n// This is a NodeTransform since it works on the static `style` attribute and\r\n// converts it into a dynamic equivalent:\r\n// style=\"color: red\" -> :style='{ \"color\": \"red\" }'\r\n// It is then processed by `transformElement` and included in the generated\r\n// props.\r\nconst transformStyle = node => {\r\n if (node.type === 1 /* ELEMENT */) {\r\n node.props.forEach((p, i) => {\r\n if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) {\r\n // replace p with an expression node\r\n node.props[i] = {\r\n type: 7 /* DIRECTIVE */,\r\n name: `bind`,\r\n arg: createSimpleExpression(`style`, true, p.loc),\r\n exp: parseInlineCSS(p.value.content, p.loc),\r\n modifiers: [],\r\n loc: p.loc\r\n };\r\n }\r\n });\r\n }\r\n};\r\nconst parseInlineCSS = (cssText, loc) => {\r\n const normalized = parseStringStyle(cssText);\r\n return createSimpleExpression(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */);\r\n};\n\nfunction createDOMCompilerError(code, loc) {\r\n return createCompilerError(code, loc, (process.env.NODE_ENV !== 'production') || !true ? DOMErrorMessages : undefined);\r\n}\r\nconst DOMErrorMessages = {\r\n [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`,\r\n [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`,\r\n [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`,\r\n [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`,\r\n [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`,\r\n [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`,\r\n [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,\r\n [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,\r\n [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`,\r\n [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`,\r\n [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`\r\n};\n\nconst transformVHtml = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc));\r\n }\r\n if (node.children.length) {\r\n context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc));\r\n node.children.length = 0;\r\n }\r\n return {\r\n props: [\r\n createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression('', true))\r\n ]\r\n };\r\n};\n\nconst transformVText = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc));\r\n }\r\n if (node.children.length) {\r\n context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc));\r\n node.children.length = 0;\r\n }\r\n return {\r\n props: [\r\n createObjectProperty(createSimpleExpression(`textContent`, true), exp\r\n ? createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc)\r\n : createSimpleExpression('', true))\r\n ]\r\n };\r\n};\n\nconst transformModel = (dir, node, context) => {\r\n const baseResult = transformModel$1(dir, node, context);\r\n // base transform has errors OR component v-model (only need props)\r\n if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {\r\n return baseResult;\r\n }\r\n if (dir.arg) {\r\n context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc));\r\n }\r\n function checkDuplicatedValue() {\r\n const value = findProp(node, 'value');\r\n if (value) {\r\n context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc));\r\n }\r\n }\r\n const { tag } = node;\r\n const isCustomElement = context.isCustomElement(tag);\r\n if (tag === 'input' ||\r\n tag === 'textarea' ||\r\n tag === 'select' ||\r\n isCustomElement) {\r\n let directiveToUse = V_MODEL_TEXT;\r\n let isInvalidType = false;\r\n if (tag === 'input' || isCustomElement) {\r\n const type = findProp(node, `type`);\r\n if (type) {\r\n if (type.type === 7 /* DIRECTIVE */) {\r\n // :type=\"foo\"\r\n directiveToUse = V_MODEL_DYNAMIC;\r\n }\r\n else if (type.value) {\r\n switch (type.value.content) {\r\n case 'radio':\r\n directiveToUse = V_MODEL_RADIO;\r\n break;\r\n case 'checkbox':\r\n directiveToUse = V_MODEL_CHECKBOX;\r\n break;\r\n case 'file':\r\n isInvalidType = true;\r\n context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc));\r\n break;\r\n default:\r\n // text type\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n break;\r\n }\r\n }\r\n }\r\n else if (hasDynamicKeyVBind(node)) {\r\n // element has bindings with dynamic keys, which can possibly contain\r\n // \"type\".\r\n directiveToUse = V_MODEL_DYNAMIC;\r\n }\r\n else {\r\n // text type\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n }\r\n }\r\n else if (tag === 'select') {\r\n directiveToUse = V_MODEL_SELECT;\r\n }\r\n else {\r\n // textarea\r\n (process.env.NODE_ENV !== 'production') && checkDuplicatedValue();\r\n }\r\n // inject runtime directive\r\n // by returning the helper symbol via needRuntime\r\n // the import will replaced a resolveDirective call.\r\n if (!isInvalidType) {\r\n baseResult.needRuntime = context.helper(directiveToUse);\r\n }\r\n }\r\n else {\r\n context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc));\r\n }\r\n // native vmodel doesn't need the `modelValue` props since they are also\r\n // passed to the runtime as `binding.value`. removing it reduces code size.\r\n baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ &&\r\n p.key.content === 'modelValue'));\r\n return baseResult;\r\n};\n\nconst isEventOptionModifier = /*#__PURE__*/ makeMap(`passive,once,capture`);\r\nconst isNonKeyModifier = /*#__PURE__*/ makeMap(\r\n// event propagation management\r\n`stop,prevent,self,` +\r\n // system modifiers + exact\r\n `ctrl,shift,alt,meta,exact,` +\r\n // mouse\r\n `middle`);\r\n// left & right could be mouse or key modifiers based on event type\r\nconst maybeKeyModifier = /*#__PURE__*/ makeMap('left,right');\r\nconst isKeyboardEvent = /*#__PURE__*/ makeMap(`onkeyup,onkeydown,onkeypress`, true);\r\nconst resolveModifiers = (key, modifiers, context, loc) => {\r\n const keyModifiers = [];\r\n const nonKeyModifiers = [];\r\n const eventOptionModifiers = [];\r\n for (let i = 0; i < modifiers.length; i++) {\r\n const modifier = modifiers[i];\r\n if (modifier === 'native' &&\r\n checkCompatEnabled(\"COMPILER_V_ON_NATIVE\" /* COMPILER_V_ON_NATIVE */, context, loc)) {\r\n eventOptionModifiers.push(modifier);\r\n }\r\n else if (isEventOptionModifier(modifier)) {\r\n // eventOptionModifiers: modifiers for addEventListener() options,\r\n // e.g. .passive & .capture\r\n eventOptionModifiers.push(modifier);\r\n }\r\n else {\r\n // runtimeModifiers: modifiers that needs runtime guards\r\n if (maybeKeyModifier(modifier)) {\r\n if (isStaticExp(key)) {\r\n if (isKeyboardEvent(key.content)) {\r\n keyModifiers.push(modifier);\r\n }\r\n else {\r\n nonKeyModifiers.push(modifier);\r\n }\r\n }\r\n else {\r\n keyModifiers.push(modifier);\r\n nonKeyModifiers.push(modifier);\r\n }\r\n }\r\n else {\r\n if (isNonKeyModifier(modifier)) {\r\n nonKeyModifiers.push(modifier);\r\n }\r\n else {\r\n keyModifiers.push(modifier);\r\n }\r\n }\r\n }\r\n }\r\n return {\r\n keyModifiers,\r\n nonKeyModifiers,\r\n eventOptionModifiers\r\n };\r\n};\r\nconst transformClick = (key, event) => {\r\n const isStaticClick = isStaticExp(key) && key.content.toLowerCase() === 'onclick';\r\n return isStaticClick\r\n ? createSimpleExpression(event, true)\r\n : key.type !== 4 /* SIMPLE_EXPRESSION */\r\n ? createCompoundExpression([\r\n `(`,\r\n key,\r\n `) === \"onClick\" ? \"${event}\" : (`,\r\n key,\r\n `)`\r\n ])\r\n : key;\r\n};\r\nconst transformOn = (dir, node, context) => {\r\n return transformOn$1(dir, node, context, baseResult => {\r\n const { modifiers } = dir;\r\n if (!modifiers.length)\r\n return baseResult;\r\n let { key, value: handlerExp } = baseResult.props[0];\r\n const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc);\r\n // normalize click.right and click.middle since they don't actually fire\r\n if (nonKeyModifiers.includes('right')) {\r\n key = transformClick(key, `onContextmenu`);\r\n }\r\n if (nonKeyModifiers.includes('middle')) {\r\n key = transformClick(key, `onMouseup`);\r\n }\r\n if (nonKeyModifiers.length) {\r\n handlerExp = createCallExpression(context.helper(V_ON_WITH_MODIFIERS), [\r\n handlerExp,\r\n JSON.stringify(nonKeyModifiers)\r\n ]);\r\n }\r\n if (keyModifiers.length &&\r\n // if event name is dynamic, always wrap with keys guard\r\n (!isStaticExp(key) || isKeyboardEvent(key.content))) {\r\n handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [\r\n handlerExp,\r\n JSON.stringify(keyModifiers)\r\n ]);\r\n }\r\n if (eventOptionModifiers.length) {\r\n const modifierPostfix = eventOptionModifiers.map(capitalize).join('');\r\n key = isStaticExp(key)\r\n ? createSimpleExpression(`${key.content}${modifierPostfix}`, true)\r\n : createCompoundExpression([`(`, key, `) + \"${modifierPostfix}\"`]);\r\n }\r\n return {\r\n props: [createObjectProperty(key, handlerExp)]\r\n };\r\n });\r\n};\n\nconst transformShow = (dir, node, context) => {\r\n const { exp, loc } = dir;\r\n if (!exp) {\r\n context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc));\r\n }\r\n return {\r\n props: [],\r\n needRuntime: context.helper(V_SHOW)\r\n };\r\n};\n\nconst warnTransitionChildren = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 1 /* COMPONENT */) {\r\n const component = context.isBuiltInComponent(node.tag);\r\n if (component === TRANSITION) {\r\n return () => {\r\n if (node.children.length && hasMultipleChildren(node)) {\r\n context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, {\r\n start: node.children[0].loc.start,\r\n end: node.children[node.children.length - 1].loc.end,\r\n source: ''\r\n }));\r\n }\r\n };\r\n }\r\n }\r\n};\r\nfunction hasMultipleChildren(node) {\r\n // #1352 filter out potential comment nodes.\r\n const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ &&\r\n !(c.type === 2 /* TEXT */ && !c.content.trim())));\r\n const child = children[0];\r\n return (children.length !== 1 ||\r\n child.type === 11 /* FOR */ ||\r\n (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren)));\r\n}\n\nconst ignoreSideEffectTags = (node, context) => {\r\n if (node.type === 1 /* ELEMENT */ &&\r\n node.tagType === 0 /* ELEMENT */ &&\r\n (node.tag === 'script' || node.tag === 'style')) {\r\n context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc));\r\n context.removeNode();\r\n }\r\n};\n\nconst DOMNodeTransforms = [\r\n transformStyle,\r\n ...((process.env.NODE_ENV !== 'production') ? [warnTransitionChildren] : [])\r\n];\r\nconst DOMDirectiveTransforms = {\r\n cloak: noopDirectiveTransform,\r\n html: transformVHtml,\r\n text: transformVText,\r\n model: transformModel,\r\n on: transformOn,\r\n show: transformShow\r\n};\r\nfunction compile(template, options = {}) {\r\n return baseCompile(template, extend({}, parserOptions, options, {\r\n nodeTransforms: [\r\n // ignore <script> and <tag>\r\n // this is not put inside DOMNodeTransforms because that list is used\r\n // by compiler-ssr to generate vnode fallback branches\r\n ignoreSideEffectTags,\r\n ...DOMNodeTransforms,\r\n ...(options.nodeTransforms || [])\r\n ],\r\n directiveTransforms: extend({}, DOMDirectiveTransforms, options.directiveTransforms || {}),\r\n transformHoist: null \r\n }));\r\n}\r\nfunction parse(template, options = {}) {\r\n return baseParse(template, extend({}, parserOptions, options));\r\n}\n\nexport { DOMDirectiveTransforms, DOMNodeTransforms, TRANSITION, TRANSITION_GROUP, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, compile, createDOMCompilerError, parse, parserOptions, transformStyle };\n","import * as runtimeDom from '@vue/runtime-dom';\nimport { initCustomFormatter, warn, registerRuntimeCompiler } from '@vue/runtime-dom';\nexport * from '@vue/runtime-dom';\nimport { compile } from '@vue/compiler-dom';\nimport { isString, NOOP, extend, generateCodeFrame } from '@vue/shared';\n\nfunction initDev() {\r\n {\r\n initCustomFormatter();\r\n }\r\n}\n\n// This entry is the \"full-build\" that includes both the runtime\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n initDev();\r\n}\r\nconst compileCache = Object.create(null);\r\nfunction compileToFunction(template, options) {\r\n if (!isString(template)) {\r\n if (template.nodeType) {\r\n template = template.innerHTML;\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warn(`invalid template option: `, template);\r\n return NOOP;\r\n }\r\n }\r\n const key = template;\r\n const cached = compileCache[key];\r\n if (cached) {\r\n return cached;\r\n }\r\n if (template[0] === '#') {\r\n const el = document.querySelector(template);\r\n if ((process.env.NODE_ENV !== 'production') && !el) {\r\n warn(`Template element not found or is empty: ${template}`);\r\n }\r\n // __UNSAFE__\r\n // Reason: potential execution of JS expressions in in-DOM template.\r\n // The user must make sure the in-DOM template is trusted. If it's rendered\r\n // by the server, the template should not contain any user data.\r\n template = el ? el.innerHTML : ``;\r\n }\r\n const { code } = compile(template, extend({\r\n hoistStatic: true,\r\n onError: (process.env.NODE_ENV !== 'production') ? onError : undefined,\r\n onWarn: (process.env.NODE_ENV !== 'production') ? e => onError(e, true) : NOOP\r\n }, options));\r\n function onError(err, asWarning = false) {\r\n const message = asWarning\r\n ? err.message\r\n : `Template compilation error: ${err.message}`;\r\n const codeFrame = err.loc &&\r\n generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);\r\n warn(codeFrame ? `${message}\\n${codeFrame}` : message);\r\n }\r\n // The wildcard import results in a huge object with every export\r\n // with keys that cannot be mangled, and can be quite heavy size-wise.\r\n // In the global build we know `Vue` is available globally so we can avoid\r\n // the wildcard object.\r\n const render = (new Function('Vue', code)(runtimeDom));\r\n render._rc = true;\r\n return (compileCache[key] = render);\r\n}\r\nregisterRuntimeCompiler(compileToFunction);\n\nexport { compileToFunction as compile };\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"), require(\"sortablejs\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([, \"sortablejs\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vuedraggable\"] = factory(require(\"vue\"), require(\"sortablejs\"));\n\telse\n\t\troot[\"vuedraggable\"] = factory(root[\"Vue\"], root[\"Sortable\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_a352__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"00ee\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n\n\n/***/ }),\n\n/***/ \"0366\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar aFunction = __webpack_require__(\"1c0b\");\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n\n/***/ \"057f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar nativeGetOwnPropertyNames = __webpack_require__(\"241c\").f;\n\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return nativeGetOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]'\n ? getWindowNames(it)\n : nativeGetOwnPropertyNames(toIndexedObject(it));\n};\n\n\n/***/ }),\n\n/***/ \"06cf\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar propertyIsEnumerableModule = __webpack_require__(\"d1e7\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar has = __webpack_require__(\"5135\");\nvar IE8_DOM_DEFINE = __webpack_require__(\"0cfb\");\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n\n\n/***/ }),\n\n/***/ \"0cfb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar fails = __webpack_require__(\"d039\");\nvar createElement = __webpack_require__(\"cc12\");\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n\n\n/***/ }),\n\n/***/ \"13d5\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $reduce = __webpack_require__(\"d58f\").left;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"14c3\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"c6b6\");\nvar regexpExec = __webpack_require__(\"9263\");\n\n// `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n\n return regexpExec.call(R, S);\n};\n\n\n\n/***/ }),\n\n/***/ \"159b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar DOMIterables = __webpack_require__(\"fdbc\");\nvar forEach = __webpack_require__(\"17c2\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n\n\n/***/ }),\n\n/***/ \"17c2\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $forEach = __webpack_require__(\"b727\").forEach;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n\n\n/***/ }),\n\n/***/ \"1be4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n\n\n/***/ }),\n\n/***/ \"1c0b\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"1c7e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line no-throw-literal\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n\n\n/***/ }),\n\n/***/ \"1d80\":\n/***/ (function(module, exports) {\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n\n/***/ \"1dde\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar V8_VERSION = __webpack_require__(\"2d00\");\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n\n\n/***/ }),\n\n/***/ \"23cb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n\n\n/***/ }),\n\n/***/ \"23e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar getOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar setGlobal = __webpack_require__(\"ce4e\");\nvar copyConstructorProperties = __webpack_require__(\"e893\");\nvar isForced = __webpack_require__(\"94ca\");\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n\n\n/***/ }),\n\n/***/ \"241c\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar internalObjectKeys = __webpack_require__(\"ca84\");\nvar enumBugKeys = __webpack_require__(\"7839\");\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n\n\n/***/ }),\n\n/***/ \"25f0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar redefine = __webpack_require__(\"6eeb\");\nvar anObject = __webpack_require__(\"825a\");\nvar fails = __webpack_require__(\"d039\");\nvar flags = __webpack_require__(\"ad6d\");\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = String(R.source);\n var rf = R.flags;\n var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);\n return '/' + p + '/' + f;\n }, { unsafe: true });\n}\n\n\n/***/ }),\n\n/***/ \"2ca0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar getOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar toLength = __webpack_require__(\"50c4\");\nvar notARegExp = __webpack_require__(\"5a34\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\nvar correctIsRegExpLogic = __webpack_require__(\"ab13\");\nvar IS_PURE = __webpack_require__(\"c430\");\n\nvar nativeStartsWith = ''.startsWith;\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return nativeStartsWith\n ? nativeStartsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n\n\n/***/ }),\n\n/***/ \"2d00\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar userAgent = __webpack_require__(\"342f\");\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n\n\n/***/ }),\n\n/***/ \"342f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n\n\n/***/ }),\n\n/***/ \"35a1\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"f5df\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/***/ }),\n\n/***/ \"37e8\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar anObject = __webpack_require__(\"825a\");\nvar objectKeys = __webpack_require__(\"df75\");\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n\n\n/***/ }),\n\n/***/ \"3bbe\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"3ca3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar charAt = __webpack_require__(\"6547\").charAt;\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar defineIterator = __webpack_require__(\"7dd0\");\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n\n/***/ \"3f8c\":\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n\n/***/ \"4160\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar forEach = __webpack_require__(\"17c2\");\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n\n\n/***/ }),\n\n/***/ \"428f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\n\nmodule.exports = global;\n\n\n/***/ }),\n\n/***/ \"44ad\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\nvar classof = __webpack_require__(\"c6b6\");\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n\n\n/***/ }),\n\n/***/ \"44d2\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar create = __webpack_require__(\"7c73\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n\n\n/***/ }),\n\n/***/ \"44e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\nvar classof = __webpack_require__(\"c6b6\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n\n\n/***/ }),\n\n/***/ \"4930\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n\n\n/***/ }),\n\n/***/ \"4d64\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n\n\n/***/ }),\n\n/***/ \"4de4\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $filter = __webpack_require__(\"b727\").filter;\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n// Edge 14- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"4df4\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar bind = __webpack_require__(\"0366\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar callWithSafeIterationClosing = __webpack_require__(\"9bdd\");\nvar isArrayIteratorMethod = __webpack_require__(\"e95a\");\nvar toLength = __webpack_require__(\"50c4\");\nvar createProperty = __webpack_require__(\"8418\");\nvar getIteratorMethod = __webpack_require__(\"35a1\");\n\n// `Array.from` method implementation\n// https://tc39.github.io/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"4fad\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar $entries = __webpack_require__(\"6f53\").entries;\n\n// `Object.entries` method\n// https://tc39.github.io/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n\n\n/***/ }),\n\n/***/ \"50c4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\n\n/***/ }),\n\n/***/ \"5135\":\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n\n/***/ \"5319\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar fixRegExpWellKnownSymbolLogic = __webpack_require__(\"d784\");\nvar anObject = __webpack_require__(\"825a\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toInteger = __webpack_require__(\"a691\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\nvar advanceStringIndex = __webpack_require__(\"8aa5\");\nvar regExpExec = __webpack_require__(\"14c3\");\n\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {\n var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;\n var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined\n ? replacer.call(searchValue, O, replaceValue)\n : nativeReplace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n if (\n (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||\n (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)\n ) {\n var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);\n if (res.done) return res.value;\n }\n\n var rx = anObject(regexp);\n var S = String(this);\n\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n\n results.push(result);\n if (!global) break;\n\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return nativeReplace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n\n\n/***/ }),\n\n/***/ \"5692\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar IS_PURE = __webpack_require__(\"c430\");\nvar store = __webpack_require__(\"c6cd\");\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.5',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n\n/***/ \"56ef\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getBuiltIn = __webpack_require__(\"d066\");\nvar getOwnPropertyNamesModule = __webpack_require__(\"241c\");\nvar getOwnPropertySymbolsModule = __webpack_require__(\"7418\");\nvar anObject = __webpack_require__(\"825a\");\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n\n\n/***/ }),\n\n/***/ \"5a34\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isRegExp = __webpack_require__(\"44e7\");\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"5c6c\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n\n/***/ \"5db7\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar flattenIntoArray = __webpack_require__(\"a2bf\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar aFunction = __webpack_require__(\"1c0b\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\n\n// `Array.prototype.flatMap` method\n// https://github.com/tc39/proposal-flatMap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"6547\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(\"a691\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n\n\n/***/ }),\n\n/***/ \"65f0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n\n\n/***/ }),\n\n/***/ \"69f3\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar NATIVE_WEAK_MAP = __webpack_require__(\"7f9a\");\nvar global = __webpack_require__(\"da84\");\nvar isObject = __webpack_require__(\"861d\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar objectHas = __webpack_require__(\"5135\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar hiddenKeys = __webpack_require__(\"d012\");\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\n\n/***/ }),\n\n/***/ \"6eeb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar has = __webpack_require__(\"5135\");\nvar setGlobal = __webpack_require__(\"ce4e\");\nvar inspectSource = __webpack_require__(\"8925\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n\n\n/***/ }),\n\n/***/ \"6f53\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar objectKeys = __webpack_require__(\"df75\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar propertyIsEnumerable = __webpack_require__(\"d1e7\").f;\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.github.io/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.github.io/ecma262/#sec-object.values\n values: createMethod(false)\n};\n\n\n/***/ }),\n\n/***/ \"73d9\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = __webpack_require__(\"44d2\");\n\naddToUnscopables('flatMap');\n\n\n/***/ }),\n\n/***/ \"7418\":\n/***/ (function(module, exports) {\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n/***/ }),\n\n/***/ \"746f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar path = __webpack_require__(\"428f\");\nvar has = __webpack_require__(\"5135\");\nvar wrappedWellKnownSymbolModule = __webpack_require__(\"e538\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n\n\n/***/ }),\n\n/***/ \"7839\":\n/***/ (function(module, exports) {\n\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n\n\n/***/ }),\n\n/***/ \"7b0b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n\n\n/***/ }),\n\n/***/ \"7c73\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\nvar defineProperties = __webpack_require__(\"37e8\");\nvar enumBugKeys = __webpack_require__(\"7839\");\nvar hiddenKeys = __webpack_require__(\"d012\");\nvar html = __webpack_require__(\"1be4\");\nvar documentCreateElement = __webpack_require__(\"cc12\");\nvar sharedKey = __webpack_require__(\"f772\");\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n /* global ActiveXObject */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n\n\n/***/ }),\n\n/***/ \"7dd0\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar createIteratorConstructor = __webpack_require__(\"9ed3\");\nvar getPrototypeOf = __webpack_require__(\"e163\");\nvar setPrototypeOf = __webpack_require__(\"d2bb\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar IS_PURE = __webpack_require__(\"c430\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar IteratorsCore = __webpack_require__(\"ae93\");\n\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n\n\n/***/ }),\n\n/***/ \"7f9a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar inspectSource = __webpack_require__(\"8925\");\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n\n\n/***/ }),\n\n/***/ \"825a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n\n\n/***/ }),\n\n/***/ \"83ab\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\n\n/***/ }),\n\n/***/ \"8418\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n\n\n/***/ }),\n\n/***/ \"861d\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n\n/***/ \"8875\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*<script>([\\\\d\\\\D]*?)<\\\\/script>[\\\\d\\\\D]*', 'i');\n inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();\n }\n \n for (var i = 0; i < scripts.length; i++) {\n // If ready state is interactive, return the script tag\n if (scripts[i].readyState === 'interactive') {\n return scripts[i];\n }\n \n // If src matches, return the script tag\n if (scripts[i].src === scriptLocation) {\n return scripts[i];\n }\n \n // If inline source matches, return the script tag\n if (\n scriptLocation === currentLocation &&\n scripts[i].innerHTML &&\n scripts[i].innerHTML.trim() === inlineScriptSource\n ) {\n return scripts[i];\n }\n }\n \n // If no match, return null\n return null;\n }\n };\n\n return getCurrentScript\n}));\n\n\n/***/ }),\n\n/***/ \"8925\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(\"c6cd\");\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n\n\n/***/ }),\n\n/***/ \"8aa5\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar charAt = __webpack_require__(\"6547\").charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? charAt(S, index).length : 1);\n};\n\n\n/***/ }),\n\n/***/ \"8bbf\":\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;\n\n/***/ }),\n\n/***/ \"90e3\":\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n\n\n/***/ }),\n\n/***/ \"9112\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n\n/***/ \"9263\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar regexpFlags = __webpack_require__(\"ad6d\");\nvar stickyHelpers = __webpack_require__(\"9f7f\");\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = regexpFlags.call(re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n\n if (sticky) {\n flags = flags.replace('y', '');\n if (flags.indexOf('g') === -1) {\n flags += 'g';\n }\n\n strCopy = String(str).slice(re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n match = nativeExec.call(sticky ? reCopy : re, strCopy);\n\n if (sticky) {\n if (match) {\n match.input = match.input.slice(charsAdded);\n match[0] = match[0].slice(charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n\n\n/***/ }),\n\n/***/ \"94ca\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n\n\n/***/ }),\n\n/***/ \"99af\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar fails = __webpack_require__(\"d039\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar isObject = __webpack_require__(\"861d\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar createProperty = __webpack_require__(\"8418\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar V8_VERSION = __webpack_require__(\"2d00\");\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n concat: function concat(arg) { // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"9bdd\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) anObject(returnMethod.call(iterator));\n throw error;\n }\n};\n\n\n/***/ }),\n\n/***/ \"9bf2\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar IE8_DOM_DEFINE = __webpack_require__(\"0cfb\");\nvar anObject = __webpack_require__(\"825a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n\n/***/ \"9ed3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar IteratorPrototype = __webpack_require__(\"ae93\").IteratorPrototype;\nvar create = __webpack_require__(\"7c73\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar Iterators = __webpack_require__(\"3f8c\");\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n\n\n/***/ }),\n\n/***/ \"9f7f\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar fails = __webpack_require__(\"d039\");\n\n// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,\n// so we use an intermediate function.\nfunction RE(s, f) {\n return RegExp(s, f);\n}\n\nexports.UNSUPPORTED_Y = fails(function () {\n // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\n var re = RE('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\n\nexports.BROKEN_CARET = fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = RE('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\n\n/***/ }),\n\n/***/ \"a2bf\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar isArray = __webpack_require__(\"e8b5\");\nvar toLength = __webpack_require__(\"50c4\");\nvar bind = __webpack_require__(\"0366\");\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n\n\n/***/ }),\n\n/***/ \"a352\":\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_a352__;\n\n/***/ }),\n\n/***/ \"a434\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\nvar toInteger = __webpack_require__(\"a691\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\nvar createProperty = __webpack_require__(\"8418\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n\n\n/***/ }),\n\n/***/ \"a4d3\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar global = __webpack_require__(\"da84\");\nvar getBuiltIn = __webpack_require__(\"d066\");\nvar IS_PURE = __webpack_require__(\"c430\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(\"fdbf\");\nvar fails = __webpack_require__(\"d039\");\nvar has = __webpack_require__(\"5135\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar isObject = __webpack_require__(\"861d\");\nvar anObject = __webpack_require__(\"825a\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar toPrimitive = __webpack_require__(\"c04e\");\nvar createPropertyDescriptor = __webpack_require__(\"5c6c\");\nvar nativeObjectCreate = __webpack_require__(\"7c73\");\nvar objectKeys = __webpack_require__(\"df75\");\nvar getOwnPropertyNamesModule = __webpack_require__(\"241c\");\nvar getOwnPropertyNamesExternal = __webpack_require__(\"057f\");\nvar getOwnPropertySymbolsModule = __webpack_require__(\"7418\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\nvar propertyIsEnumerableModule = __webpack_require__(\"d1e7\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar shared = __webpack_require__(\"5692\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar hiddenKeys = __webpack_require__(\"d012\");\nvar uid = __webpack_require__(\"90e3\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar wrappedWellKnownSymbolModule = __webpack_require__(\"e538\");\nvar defineWellKnownSymbol = __webpack_require__(\"746f\");\nvar setToStringTag = __webpack_require__(\"d44e\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar $forEach = __webpack_require__(\"b727\").forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar isSymbol = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return Object(it) instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPrimitive(P, true);\n anObject(Attributes);\n if (has(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPrimitive(V, true);\n var enumerable = nativePropertyIsEnumerable.call(this, P);\n if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPrimitive(P, true);\n if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {\n result.push(AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.github.io/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty($Symbol[PROTOTYPE], 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n // `Symbol.for` method\n // https://tc39.github.io/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = String(key);\n if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.github.io/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.github.io/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.github.io/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n\n $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {\n // eslint-disable-next-line no-unused-vars\n stringify: function stringify(it, replacer, space) {\n var args = [it];\n var index = 1;\n var $replacer;\n while (arguments.length > index) args.push(arguments[index++]);\n $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return $stringify.apply(null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {\n createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n\n\n/***/ }),\n\n/***/ \"a630\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar from = __webpack_require__(\"4df4\");\nvar checkCorrectnessOfIteration = __webpack_require__(\"1c7e\");\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.github.io/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n\n\n/***/ }),\n\n/***/ \"a640\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n\n\n/***/ }),\n\n/***/ \"a691\":\n/***/ (function(module, exports) {\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n\n\n/***/ }),\n\n/***/ \"ab13\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n\n\n/***/ }),\n\n/***/ \"ac1f\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar exec = __webpack_require__(\"9263\");\n\n$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {\n exec: exec\n});\n\n\n/***/ }),\n\n/***/ \"ad6d\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar anObject = __webpack_require__(\"825a\");\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"ae40\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar fails = __webpack_require__(\"d039\");\nvar has = __webpack_require__(\"5135\");\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n\n\n/***/ }),\n\n/***/ \"ae93\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar getPrototypeOf = __webpack_require__(\"e163\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar has = __webpack_require__(\"5135\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar IS_PURE = __webpack_require__(\"c430\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nif (IteratorPrototype == undefined) IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nif (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n\n\n/***/ }),\n\n/***/ \"b041\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar classof = __webpack_require__(\"f5df\");\n\n// `Object.prototype.toString` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n\n\n/***/ }),\n\n/***/ \"b0c0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\n\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.github.io/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n\n\n/***/ }),\n\n/***/ \"b622\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar shared = __webpack_require__(\"5692\");\nvar has = __webpack_require__(\"5135\");\nvar uid = __webpack_require__(\"90e3\");\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\nvar USE_SYMBOL_AS_UID = __webpack_require__(\"fdbf\");\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n\n\n/***/ }),\n\n/***/ \"b64b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar nativeKeys = __webpack_require__(\"df75\");\nvar fails = __webpack_require__(\"d039\");\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n\n\n/***/ }),\n\n/***/ \"b727\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar bind = __webpack_require__(\"0366\");\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar toLength = __webpack_require__(\"50c4\");\nvar arraySpeciesCreate = __webpack_require__(\"65f0\");\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n\n\n/***/ }),\n\n/***/ \"c04e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"861d\");\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n\n/***/ \"c430\":\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n\n/***/ \"c6b6\":\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n\n/***/ \"c6cd\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar setGlobal = __webpack_require__(\"ce4e\");\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n\n\n/***/ }),\n\n/***/ \"c740\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $findIndex = __webpack_require__(\"b727\").findIndex;\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);\n\n// Shouldn't skip holes\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n\n\n/***/ }),\n\n/***/ \"c8ba\":\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n\n/***/ \"c975\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $indexOf = __webpack_require__(\"4d64\").indexOf;\nvar arrayMethodIsStrict = __webpack_require__(\"a640\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.indexOf` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"ca84\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar indexOf = __webpack_require__(\"4d64\").indexOf;\nvar hiddenKeys = __webpack_require__(\"d012\");\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"caad\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $includes = __webpack_require__(\"4d64\").includes;\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n\n\n/***/ }),\n\n/***/ \"cc12\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar isObject = __webpack_require__(\"861d\");\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n\n/***/ \"ce4e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n\n\n/***/ }),\n\n/***/ \"d012\":\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n\n/***/ \"d039\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\n\n/***/ }),\n\n/***/ \"d066\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar path = __webpack_require__(\"428f\");\nvar global = __webpack_require__(\"da84\");\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n\n\n/***/ }),\n\n/***/ \"d1e7\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n\n\n/***/ }),\n\n/***/ \"d28b\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar defineWellKnownSymbol = __webpack_require__(\"746f\");\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n\n\n/***/ }),\n\n/***/ \"d2bb\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(\"825a\");\nvar aPossiblePrototype = __webpack_require__(\"3bbe\");\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n\n\n/***/ }),\n\n/***/ \"d3b7\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar toString = __webpack_require__(\"b041\");\n\n// `Object.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\n\n\n/***/ }),\n\n/***/ \"d44e\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar defineProperty = __webpack_require__(\"9bf2\").f;\nvar has = __webpack_require__(\"5135\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n\n\n/***/ }),\n\n/***/ \"d58f\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar aFunction = __webpack_require__(\"1c0b\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar toLength = __webpack_require__(\"50c4\");\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n\n\n/***/ }),\n\n/***/ \"d784\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// TODO: Remove from `core-js@4` since it's moved to entry points\n__webpack_require__(\"ac1f\");\nvar redefine = __webpack_require__(\"6eeb\");\nvar fails = __webpack_require__(\"d039\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar regexpExec = __webpack_require__(\"9263\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\n\nvar SPECIES = wellKnownSymbol('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$<a>') !== '7';\n});\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = (function () {\n return 'a'.replace(/./, '$0') === '$0';\n})();\n\nvar REPLACE = wellKnownSymbol('replace');\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n})();\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\nmodule.exports = function (KEY, length, exec, sham) {\n var SYMBOL = wellKnownSymbol(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n\n if (KEY === 'split') {\n // We can't use real regex here since it causes deoptimization\n // and serious performance degradation in V8\n // https://github.com/zloirock/core-js/issues/306\n re = {};\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n re.flags = '';\n re[SYMBOL] = /./[SYMBOL];\n }\n\n re.exec = function () { execCalled = true; return null; };\n\n re[SYMBOL]('');\n return !execCalled;\n });\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !(\n REPLACE_SUPPORTS_NAMED_GROUPS &&\n REPLACE_KEEPS_$0 &&\n !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE\n )) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }, {\n REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,\n REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE\n });\n var stringMethod = methods[0];\n var regexMethod = methods[1];\n\n redefine(String.prototype, KEY, stringMethod);\n redefine(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return regexMethod.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return regexMethod.call(string, this); }\n );\n }\n\n if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);\n};\n\n\n/***/ }),\n\n/***/ \"d81d\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar $map = __webpack_require__(\"b727\").map;\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/***/ }),\n\n/***/ \"da84\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(\"c8ba\")))\n\n/***/ }),\n\n/***/ \"dbb4\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar ownKeys = __webpack_require__(\"56ef\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar createProperty = __webpack_require__(\"8418\");\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n});\n\n\n/***/ }),\n\n/***/ \"dbf1\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return console; });\nfunction getConsole() {\n if (typeof window !== \"undefined\") {\n return window.console;\n }\n\n return global.console;\n}\n\nvar console = getConsole();\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(\"c8ba\")))\n\n/***/ }),\n\n/***/ \"ddb0\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(\"da84\");\nvar DOMIterables = __webpack_require__(\"fdbc\");\nvar ArrayIteratorMethods = __webpack_require__(\"e260\");\nvar createNonEnumerableProperty = __webpack_require__(\"9112\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n\n\n/***/ }),\n\n/***/ \"df75\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar internalObjectKeys = __webpack_require__(\"ca84\");\nvar enumBugKeys = __webpack_require__(\"7839\");\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n\n\n/***/ }),\n\n/***/ \"e01a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n// `Symbol.prototype.description` getter\n// https://tc39.github.io/ecma262/#sec-symbol.prototype.description\n\nvar $ = __webpack_require__(\"23e7\");\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\nvar global = __webpack_require__(\"da84\");\nvar has = __webpack_require__(\"5135\");\nvar isObject = __webpack_require__(\"861d\");\nvar defineProperty = __webpack_require__(\"9bf2\").f;\nvar copyConstructorProperties = __webpack_require__(\"e893\");\n\nvar NativeSymbol = global.Symbol;\n\nif (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||\n // Safari 12 bug\n NativeSymbol().description !== undefined\n)) {\n var EmptyStringDescriptionStore = {};\n // wrap Symbol constructor for correct work with undefined description\n var SymbolWrapper = function Symbol() {\n var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);\n var result = this instanceof SymbolWrapper\n ? new NativeSymbol(description)\n // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'\n : description === undefined ? NativeSymbol() : NativeSymbol(description);\n if (description === '') EmptyStringDescriptionStore[result] = true;\n return result;\n };\n copyConstructorProperties(SymbolWrapper, NativeSymbol);\n var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;\n symbolPrototype.constructor = SymbolWrapper;\n\n var symbolToString = symbolPrototype.toString;\n var native = String(NativeSymbol('test')) == 'Symbol(test)';\n var regexp = /^Symbol\\((.*)\\)[^)]+$/;\n defineProperty(symbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n var symbol = isObject(this) ? this.valueOf() : this;\n var string = symbolToString.call(symbol);\n if (has(EmptyStringDescriptionStore, symbol)) return '';\n var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');\n return desc === '' ? undefined : desc;\n }\n });\n\n $({ global: true, forced: true }, {\n Symbol: SymbolWrapper\n });\n}\n\n\n/***/ }),\n\n/***/ \"e163\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar toObject = __webpack_require__(\"7b0b\");\nvar sharedKey = __webpack_require__(\"f772\");\nvar CORRECT_PROTOTYPE_GETTER = __webpack_require__(\"e177\");\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n\n\n/***/ }),\n\n/***/ \"e177\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar fails = __webpack_require__(\"d039\");\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n\n\n/***/ }),\n\n/***/ \"e260\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar addToUnscopables = __webpack_require__(\"44d2\");\nvar Iterators = __webpack_require__(\"3f8c\");\nvar InternalStateModule = __webpack_require__(\"69f3\");\nvar defineIterator = __webpack_require__(\"7dd0\");\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.github.io/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/***/ }),\n\n/***/ \"e439\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(\"23e7\");\nvar fails = __webpack_require__(\"d039\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar nativeGetOwnPropertyDescriptor = __webpack_require__(\"06cf\").f;\nvar DESCRIPTORS = __webpack_require__(\"83ab\");\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n\n\n/***/ }),\n\n/***/ \"e538\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nexports.f = wellKnownSymbol;\n\n\n/***/ }),\n\n/***/ \"e893\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(\"5135\");\nvar ownKeys = __webpack_require__(\"56ef\");\nvar getOwnPropertyDescriptorModule = __webpack_require__(\"06cf\");\nvar definePropertyModule = __webpack_require__(\"9bf2\");\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n\n\n/***/ }),\n\n/***/ \"e8b5\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(\"c6b6\");\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n\n\n/***/ }),\n\n/***/ \"e95a\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar Iterators = __webpack_require__(\"3f8c\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n\n\n/***/ }),\n\n/***/ \"f5df\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar TO_STRING_TAG_SUPPORT = __webpack_require__(\"00ee\");\nvar classofRaw = __webpack_require__(\"c6b6\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n\n\n/***/ }),\n\n/***/ \"f772\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(\"5692\");\nvar uid = __webpack_require__(\"90e3\");\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n\n\n/***/ }),\n\n/***/ \"fb15\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (true) {\n var getCurrentScript = __webpack_require__(\"8875\")\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_require__.p = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\n/* harmony default export */ var setPublicPath = (null);\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js\nvar es_array_concat = __webpack_require__(\"99af\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js\nvar es_array_filter = __webpack_require__(\"4de4\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js\nvar es_array_for_each = __webpack_require__(\"4160\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js\nvar es_array_index_of = __webpack_require__(\"c975\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js\nvar es_array_map = __webpack_require__(\"d81d\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js\nvar es_array_splice = __webpack_require__(\"a434\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js\nvar web_dom_collections_for_each = __webpack_require__(\"159b\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js\nvar es_symbol = __webpack_require__(\"a4d3\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js\nvar es_object_get_own_property_descriptor = __webpack_require__(\"e439\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js\nvar es_object_get_own_property_descriptors = __webpack_require__(\"dbb4\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js\nvar es_object_keys = __webpack_require__(\"b64b\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js\nfunction _defineProperty(obj, key, value) {\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\n return obj;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js\n\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js\nvar es_symbol_description = __webpack_require__(\"e01a\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js\nvar es_symbol_iterator = __webpack_require__(\"d28b\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js\nvar es_array_iterator = __webpack_require__(\"e260\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js\nvar es_object_to_string = __webpack_require__(\"d3b7\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js\nvar es_string_iterator = __webpack_require__(\"3ca3\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js\nvar web_dom_collections_iterator = __webpack_require__(\"ddb0\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js\n\n\n\n\n\n\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js\nvar es_array_from = __webpack_require__(\"a630\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js\nvar es_array_slice = __webpack_require__(\"fb6a\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js\nvar es_function_name = __webpack_require__(\"b0c0\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js\nvar es_regexp_to_string = __webpack_require__(\"25f0\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\n\n\n\n\n\n\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js\n\n\n\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js\n\n\n\n\n\n\n\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\n\n\n\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n// EXTERNAL MODULE: external {\"commonjs\":\"sortablejs\",\"commonjs2\":\"sortablejs\",\"amd\":\"sortablejs\",\"root\":\"Sortable\"}\nvar external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__(\"a352\");\nvar external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);\n\n// CONCATENATED MODULE: ./src/util/htmlHelper.js\nfunction removeNode(node) {\n if (node.parentElement !== null) {\n node.parentElement.removeChild(node);\n }\n}\n\nfunction insertNodeAt(fatherNode, node, position) {\n var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;\n fatherNode.insertBefore(node, refNode);\n}\n\n\n// EXTERNAL MODULE: ./src/util/console.js\nvar console = __webpack_require__(\"dbf1\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js\nvar es_array_reduce = __webpack_require__(\"13d5\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js\nvar es_object_entries = __webpack_require__(\"4fad\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js\nvar es_regexp_exec = __webpack_require__(\"ac1f\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js\nvar es_string_replace = __webpack_require__(\"5319\");\n\n// CONCATENATED MODULE: ./src/util/string.js\n\n\n\nfunction cached(fn) {\n var cache = Object.create(null);\n return function cachedFn(str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\n\nvar regex = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(regex, function (_, c) {\n return c.toUpperCase();\n });\n});\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.flat-map.js\nvar es_array_flat_map = __webpack_require__(\"5db7\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unscopables.flat-map.js\nvar es_array_unscopables_flat_map = __webpack_require__(\"73d9\");\n\n// CONCATENATED MODULE: ./src/core/sortableEvents.js\n\n\n\n\nvar manageAndEmit = [\"Start\", \"Add\", \"Remove\", \"Update\", \"End\"];\nvar emit = [\"Choose\", \"Unchoose\", \"Sort\", \"Filter\", \"Clone\"];\nvar manage = [\"Move\"];\nvar eventHandlerNames = [manage, manageAndEmit, emit].flatMap(function (events) {\n return events;\n}).map(function (evt) {\n return \"on\".concat(evt);\n});\nvar events = {\n manage: manage,\n manageAndEmit: manageAndEmit,\n emit: emit\n};\n\nfunction isReadOnly(eventName) {\n return eventHandlerNames.indexOf(eventName) !== -1;\n}\n\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js\nvar es_array_includes = __webpack_require__(\"caad\");\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js\nvar es_string_starts_with = __webpack_require__(\"2ca0\");\n\n// CONCATENATED MODULE: ./src/util/tags.js\n\n\nvar tags = [\"a\", \"abbr\", \"address\", \"area\", \"article\", \"aside\", \"audio\", \"b\", \"base\", \"bdi\", \"bdo\", \"blockquote\", \"body\", \"br\", \"button\", \"canvas\", \"caption\", \"cite\", \"code\", \"col\", \"colgroup\", \"data\", \"datalist\", \"dd\", \"del\", \"details\", \"dfn\", \"dialog\", \"div\", \"dl\", \"dt\", \"em\", \"embed\", \"fieldset\", \"figcaption\", \"figure\", \"footer\", \"form\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"head\", \"header\", \"hgroup\", \"hr\", \"html\", \"i\", \"iframe\", \"img\", \"input\", \"ins\", \"kbd\", \"label\", \"legend\", \"li\", \"link\", \"main\", \"map\", \"mark\", \"math\", \"menu\", \"menuitem\", \"meta\", \"meter\", \"nav\", \"noscript\", \"object\", \"ol\", \"optgroup\", \"option\", \"output\", \"p\", \"param\", \"picture\", \"pre\", \"progress\", \"q\", \"rb\", \"rp\", \"rt\", \"rtc\", \"ruby\", \"s\", \"samp\", \"script\", \"section\", \"select\", \"slot\", \"small\", \"source\", \"span\", \"strong\", \"style\", \"sub\", \"summary\", \"sup\", \"svg\", \"table\", \"tbody\", \"td\", \"template\", \"textarea\", \"tfoot\", \"th\", \"thead\", \"time\", \"title\", \"tr\", \"track\", \"u\", \"ul\", \"var\", \"video\", \"wbr\"];\n\nfunction isHtmlTag(name) {\n return tags.includes(name);\n}\n\nfunction isTransition(name) {\n return [\"transition-group\", \"TransitionGroup\"].includes(name);\n}\n\nfunction isHtmlAttribute(value) {\n return [\"id\", \"class\", \"role\", \"style\"].includes(value) || value.startsWith(\"data-\") || value.startsWith(\"aria-\") || value.startsWith(\"on\");\n}\n\n\n// CONCATENATED MODULE: ./src/core/componentBuilderHelper.js\n\n\n\n\n\n\n\n\n\n\n\n\nfunction project(entries) {\n return entries.reduce(function (res, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n res[key] = value;\n return res;\n }, {});\n}\n\nfunction getComponentAttributes(_ref3) {\n var $attrs = _ref3.$attrs,\n _ref3$componentData = _ref3.componentData,\n componentData = _ref3$componentData === void 0 ? {} : _ref3$componentData;\n var attributes = project(Object.entries($attrs).filter(function (_ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n key = _ref5[0],\n _ = _ref5[1];\n\n return isHtmlAttribute(key);\n }));\n return _objectSpread2(_objectSpread2({}, attributes), componentData);\n}\n\nfunction createSortableOption(_ref6) {\n var $attrs = _ref6.$attrs,\n callBackBuilder = _ref6.callBackBuilder;\n var options = project(getValidSortableEntries($attrs));\n Object.entries(callBackBuilder).forEach(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 2),\n eventType = _ref8[0],\n eventBuilder = _ref8[1];\n\n events[eventType].forEach(function (event) {\n options[\"on\".concat(event)] = eventBuilder(event);\n });\n });\n var draggable = \"[data-draggable]\".concat(options.draggable || \"\");\n return _objectSpread2(_objectSpread2({}, options), {}, {\n draggable: draggable\n });\n}\n\nfunction getValidSortableEntries(value) {\n return Object.entries(value).filter(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n key = _ref10[0],\n _ = _ref10[1];\n\n return !isHtmlAttribute(key);\n }).map(function (_ref11) {\n var _ref12 = _slicedToArray(_ref11, 2),\n key = _ref12[0],\n value = _ref12[1];\n\n return [camelize(key), value];\n }).filter(function (_ref13) {\n var _ref14 = _slicedToArray(_ref13, 2),\n key = _ref14[0],\n _ = _ref14[1];\n\n return !isReadOnly(key);\n });\n}\n\n\n// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js\nvar es_array_find_index = __webpack_require__(\"c740\");\n\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n// CONCATENATED MODULE: ./src/core/componentStructure.js\n\n\n\n\n\n\n\n\nvar getHtmlElementFromNode = function getHtmlElementFromNode(_ref) {\n var el = _ref.el;\n return el;\n};\n\nvar addContext = function addContext(domElement, context) {\n return domElement.__draggable_context = context;\n};\n\nvar getContext = function getContext(domElement) {\n return domElement.__draggable_context;\n};\n\nvar componentStructure_ComponentStructure = /*#__PURE__*/function () {\n function ComponentStructure(_ref2) {\n var _ref2$nodes = _ref2.nodes,\n header = _ref2$nodes.header,\n defaultNodes = _ref2$nodes.default,\n footer = _ref2$nodes.footer,\n root = _ref2.root,\n realList = _ref2.realList;\n\n _classCallCheck(this, ComponentStructure);\n\n this.defaultNodes = defaultNodes;\n this.children = [].concat(_toConsumableArray(header), _toConsumableArray(defaultNodes), _toConsumableArray(footer));\n this.externalComponent = root.externalComponent;\n this.rootTransition = root.transition;\n this.tag = root.tag;\n this.realList = realList;\n }\n\n _createClass(ComponentStructure, [{\n key: \"render\",\n value: function render(h, attributes) {\n var tag = this.tag,\n children = this.children,\n _isRootComponent = this._isRootComponent;\n var option = !_isRootComponent ? children : {\n default: function _default() {\n return children;\n }\n };\n return h(tag, attributes, option);\n }\n }, {\n key: \"updated\",\n value: function updated() {\n var defaultNodes = this.defaultNodes,\n realList = this.realList;\n defaultNodes.forEach(function (node, index) {\n addContext(getHtmlElementFromNode(node), {\n element: realList[index],\n index: index\n });\n });\n }\n }, {\n key: \"getUnderlyingVm\",\n value: function getUnderlyingVm(domElement) {\n return getContext(domElement);\n }\n }, {\n key: \"getVmIndexFromDomIndex\",\n value: function getVmIndexFromDomIndex(domIndex, element) {\n var defaultNodes = this.defaultNodes;\n var length = defaultNodes.length;\n var domChildren = element.children;\n var domElement = domChildren.item(domIndex);\n\n if (domElement === null) {\n return length;\n }\n\n var context = getContext(domElement);\n\n if (context) {\n return context.index;\n }\n\n if (length === 0) {\n return 0;\n }\n\n var firstDomListElement = getHtmlElementFromNode(defaultNodes[0]);\n\n var indexFirstDomListElement = _toConsumableArray(domChildren).findIndex(function (element) {\n return element === firstDomListElement;\n });\n\n return domIndex < indexFirstDomListElement ? 0 : length;\n }\n }, {\n key: \"_isRootComponent\",\n get: function get() {\n return this.externalComponent || this.rootTransition;\n }\n }]);\n\n return ComponentStructure;\n}();\n\n\n// EXTERNAL MODULE: external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}\nvar external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(\"8bbf\");\n\n// CONCATENATED MODULE: ./src/core/renderHelper.js\n\n\n\n\n\n\n\n\n\nfunction getSlot(slots, key) {\n var slotValue = slots[key];\n return slotValue ? slotValue() : [];\n}\n\nfunction computeNodes(_ref) {\n var $slots = _ref.$slots,\n realList = _ref.realList,\n getKey = _ref.getKey;\n var normalizedList = realList || [];\n\n var _map = [\"header\", \"footer\"].map(function (name) {\n return getSlot($slots, name);\n }),\n _map2 = _slicedToArray(_map, 2),\n header = _map2[0],\n footer = _map2[1];\n\n var item = $slots.item;\n\n if (!item) {\n throw new Error(\"draggable element must have an item slot\");\n }\n\n var defaultNodes = normalizedList.flatMap(function (element, index) {\n return item({\n element: element,\n index: index\n }).map(function (node) {\n node.key = getKey(element);\n node.props = _objectSpread2(_objectSpread2({}, node.props || {}), {}, {\n \"data-draggable\": true\n });\n return node;\n });\n });\n\n if (defaultNodes.length !== normalizedList.length) {\n throw new Error(\"Item slot must have only one child\");\n }\n\n return {\n header: header,\n footer: footer,\n default: defaultNodes\n };\n}\n\nfunction getRootInformation(tag) {\n var transition = isTransition(tag);\n var externalComponent = !isHtmlTag(tag) && !transition;\n return {\n transition: transition,\n externalComponent: externalComponent,\n tag: externalComponent ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"resolveComponent\"])(tag) : transition ? external_commonjs_vue_commonjs2_vue_root_Vue_[\"TransitionGroup\"] : tag\n };\n}\n\nfunction computeComponentStructure(_ref2) {\n var $slots = _ref2.$slots,\n tag = _ref2.tag,\n realList = _ref2.realList,\n getKey = _ref2.getKey;\n var nodes = computeNodes({\n $slots: $slots,\n realList: realList,\n getKey: getKey\n });\n var root = getRootInformation(tag);\n return new componentStructure_ComponentStructure({\n nodes: nodes,\n root: root,\n realList: realList\n });\n}\n\n\n// CONCATENATED MODULE: ./src/vuedraggable.js\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction _emit(evtName, evtData) {\n var _this = this;\n\n Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"nextTick\"])(function () {\n return _this.$emit(evtName.toLowerCase(), evtData);\n });\n}\n\nfunction _manage(evtName) {\n var _this2 = this;\n\n return function (evtData, originalElement) {\n if (_this2.realList !== null) {\n return _this2[\"onDrag\".concat(evtName)](evtData, originalElement);\n }\n };\n}\n\nfunction _manageAndEmit(evtName) {\n var _this3 = this;\n\n var delegateCallBack = _manage.call(this, evtName);\n\n return function (evtData, originalElement) {\n delegateCallBack.call(_this3, evtData, originalElement);\n\n _emit.call(_this3, evtName, evtData);\n };\n}\n\nvar draggingElement = null;\nvar props = {\n list: {\n type: Array,\n required: false,\n default: null\n },\n modelValue: {\n type: Array,\n required: false,\n default: null\n },\n itemKey: {\n type: [String, Function],\n required: true\n },\n clone: {\n type: Function,\n default: function _default(original) {\n return original;\n }\n },\n tag: {\n type: String,\n default: \"div\"\n },\n move: {\n type: Function,\n default: null\n },\n componentData: {\n type: Object,\n required: false,\n default: null\n }\n};\nvar emits = [\"update:modelValue\", \"change\"].concat(_toConsumableArray([].concat(_toConsumableArray(events.manageAndEmit), _toConsumableArray(events.emit)).map(function (evt) {\n return evt.toLowerCase();\n})));\nvar draggableComponent = Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"defineComponent\"])({\n name: \"draggable\",\n inheritAttrs: false,\n props: props,\n emits: emits,\n data: function data() {\n return {\n error: false\n };\n },\n render: function render() {\n try {\n this.error = false;\n var $slots = this.$slots,\n $attrs = this.$attrs,\n tag = this.tag,\n componentData = this.componentData,\n realList = this.realList,\n getKey = this.getKey;\n var componentStructure = computeComponentStructure({\n $slots: $slots,\n tag: tag,\n realList: realList,\n getKey: getKey\n });\n this.componentStructure = componentStructure;\n var attributes = getComponentAttributes({\n $attrs: $attrs,\n componentData: componentData\n });\n return componentStructure.render(external_commonjs_vue_commonjs2_vue_root_Vue_[\"h\"], attributes);\n } catch (err) {\n this.error = true;\n return Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"h\"])(\"pre\", {\n style: {\n color: \"red\"\n }\n }, err.stack);\n }\n },\n created: function created() {\n if (this.list !== null && this.modelValue !== null) {\n console[\"a\" /* console */].error(\"modelValue and list props are mutually exclusive! Please set one or another.\");\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n\n if (this.error) {\n return;\n }\n\n var $attrs = this.$attrs,\n $el = this.$el,\n componentStructure = this.componentStructure;\n componentStructure.updated();\n var sortableOptions = createSortableOption({\n $attrs: $attrs,\n callBackBuilder: {\n manageAndEmit: function manageAndEmit(event) {\n return _manageAndEmit.call(_this4, event);\n },\n emit: function emit(event) {\n return _emit.bind(_this4, event);\n },\n manage: function manage(event) {\n return _manage.call(_this4, event);\n }\n }\n });\n var targetDomElement = $el.nodeType === 1 ? $el : $el.parentElement;\n this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(targetDomElement, sortableOptions);\n this.targetDomElement = targetDomElement;\n targetDomElement.__draggable_component__ = this;\n },\n updated: function updated() {\n this.componentStructure.updated();\n },\n beforeUnmount: function beforeUnmount() {\n if (this._sortable !== undefined) this._sortable.destroy();\n },\n computed: {\n realList: function realList() {\n var list = this.list;\n return list ? list : this.modelValue;\n },\n getKey: function getKey() {\n var itemKey = this.itemKey;\n\n if (typeof itemKey === \"function\") {\n return itemKey;\n }\n\n return function (element) {\n return element[itemKey];\n };\n }\n },\n watch: {\n $attrs: {\n handler: function handler(newOptionValue) {\n var _sortable = this._sortable;\n if (!_sortable) return;\n getValidSortableEntries(newOptionValue).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n _sortable.option(key, value);\n });\n },\n deep: true\n }\n },\n methods: {\n getUnderlyingVm: function getUnderlyingVm(domElement) {\n return this.componentStructure.getUnderlyingVm(domElement) || null;\n },\n getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(htmElement) {\n //TODO check case where you need to see component children\n return htmElement.__draggable_component__;\n },\n emitChanges: function emitChanges(evt) {\n var _this5 = this;\n\n Object(external_commonjs_vue_commonjs2_vue_root_Vue_[\"nextTick\"])(function () {\n return _this5.$emit(\"change\", evt);\n });\n },\n alterList: function alterList(onList) {\n if (this.list) {\n onList(this.list);\n return;\n }\n\n var newList = _toConsumableArray(this.modelValue);\n\n onList(newList);\n this.$emit(\"update:modelValue\", newList);\n },\n spliceList: function spliceList() {\n var _arguments = arguments;\n\n var spliceList = function spliceList(list) {\n return list.splice.apply(list, _toConsumableArray(_arguments));\n };\n\n this.alterList(spliceList);\n },\n updatePosition: function updatePosition(oldIndex, newIndex) {\n var updatePosition = function updatePosition(list) {\n return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]);\n };\n\n this.alterList(updatePosition);\n },\n getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref3) {\n var to = _ref3.to,\n related = _ref3.related;\n var component = this.getUnderlyingPotencialDraggableComponent(to);\n\n if (!component) {\n return {\n component: component\n };\n }\n\n var list = component.realList;\n var context = {\n list: list,\n component: component\n };\n\n if (to !== related && list) {\n var destination = component.getUnderlyingVm(related) || {};\n return _objectSpread2(_objectSpread2({}, destination), context);\n }\n\n return context;\n },\n getVmIndexFromDomIndex: function getVmIndexFromDomIndex(domIndex) {\n return this.componentStructure.getVmIndexFromDomIndex(domIndex, this.targetDomElement);\n },\n onDragStart: function onDragStart(evt) {\n this.context = this.getUnderlyingVm(evt.item);\n evt.item._underlying_vm_ = this.clone(this.context.element);\n draggingElement = evt.item;\n },\n onDragAdd: function onDragAdd(evt) {\n var element = evt.item._underlying_vm_;\n\n if (element === undefined) {\n return;\n }\n\n removeNode(evt.item);\n var newIndex = this.getVmIndexFromDomIndex(evt.newIndex);\n this.spliceList(newIndex, 0, element);\n var added = {\n element: element,\n newIndex: newIndex\n };\n this.emitChanges({\n added: added\n });\n },\n onDragRemove: function onDragRemove(evt) {\n insertNodeAt(this.$el, evt.item, evt.oldIndex);\n\n if (evt.pullMode === \"clone\") {\n removeNode(evt.clone);\n return;\n }\n\n var _this$context = this.context,\n oldIndex = _this$context.index,\n element = _this$context.element;\n this.spliceList(oldIndex, 1);\n var removed = {\n element: element,\n oldIndex: oldIndex\n };\n this.emitChanges({\n removed: removed\n });\n },\n onDragUpdate: function onDragUpdate(evt) {\n removeNode(evt.item);\n insertNodeAt(evt.from, evt.item, evt.oldIndex);\n var oldIndex = this.context.index;\n var newIndex = this.getVmIndexFromDomIndex(evt.newIndex);\n this.updatePosition(oldIndex, newIndex);\n var moved = {\n element: this.context.element,\n oldIndex: oldIndex,\n newIndex: newIndex\n };\n this.emitChanges({\n moved: moved\n });\n },\n computeFutureIndex: function computeFutureIndex(relatedContext, evt) {\n if (!relatedContext.element) {\n return 0;\n }\n\n var domChildren = _toConsumableArray(evt.to.children).filter(function (el) {\n return el.style[\"display\"] !== \"none\";\n });\n\n var currentDomIndex = domChildren.indexOf(evt.related);\n var currentIndex = relatedContext.component.getVmIndexFromDomIndex(currentDomIndex);\n var draggedInList = domChildren.indexOf(draggingElement) !== -1;\n return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;\n },\n onDragMove: function onDragMove(evt, originalEvent) {\n var move = this.move,\n realList = this.realList;\n\n if (!move || !realList) {\n return true;\n }\n\n var relatedContext = this.getRelatedContextFromMoveEvent(evt);\n var futureIndex = this.computeFutureIndex(relatedContext, evt);\n\n var draggedContext = _objectSpread2(_objectSpread2({}, this.context), {}, {\n futureIndex: futureIndex\n });\n\n var sendEvent = _objectSpread2(_objectSpread2({}, evt), {}, {\n relatedContext: relatedContext,\n draggedContext: draggedContext\n });\n\n return move(sendEvent, originalEvent);\n },\n onDragEnd: function onDragEnd() {\n draggingElement = null;\n }\n }\n});\n/* harmony default export */ var vuedraggable = (draggableComponent);\n// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js\n\n\n/* harmony default export */ var entry_lib = __webpack_exports__[\"default\"] = (vuedraggable);\n\n\n\n/***/ }),\n\n/***/ \"fb6a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(\"23e7\");\nvar isObject = __webpack_require__(\"861d\");\nvar isArray = __webpack_require__(\"e8b5\");\nvar toAbsoluteIndex = __webpack_require__(\"23cb\");\nvar toLength = __webpack_require__(\"50c4\");\nvar toIndexedObject = __webpack_require__(\"fc6a\");\nvar createProperty = __webpack_require__(\"8418\");\nvar wellKnownSymbol = __webpack_require__(\"b622\");\nvar arrayMethodHasSpeciesSupport = __webpack_require__(\"1dde\");\nvar arrayMethodUsesToLength = __webpack_require__(\"ae40\");\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n\n\n/***/ }),\n\n/***/ \"fc6a\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = __webpack_require__(\"44ad\");\nvar requireObjectCoercible = __webpack_require__(\"1d80\");\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n\n\n/***/ }),\n\n/***/ \"fdbc\":\n/***/ (function(module, exports) {\n\n// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n\n\n/***/ }),\n\n/***/ \"fdbf\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar NATIVE_SYMBOL = __webpack_require__(\"4930\");\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n\n\n/***/ })\n\n/******/ })[\"default\"];\n});\n//# sourceMappingURL=vuedraggable.umd.js.map","export let createNanoEvents = () => ({\n events: {},\n emit(event, ...args) {\n ;(this.events[event] || []).forEach(i => i(...args))\n },\n on(event, cb) {\n ;(this.events[event] = this.events[event] || []).push(cb)\n return () =>\n (this.events[event] = (this.events[event] || []).filter(i => i !== cb))\n }\n})\n","export default function _defineProperty(obj, key, value) {\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\n return obj;\n}"],"names":["makeMap","str","expectsLowerCase","map","Object","create","list","split","i","length","val","toLowerCase","PatchFlagNames","GLOBALS_WHITE_LISTED","isGloballyWhitelisted","range","generateCodeFrame","source","start","end","lines","newlineSequences","filter","_","idx","count","res","j","line","push","repeat","Math","max","String","lineLength","newLineSeqLength","pad","min","join","specialBooleanAttrs","isSpecialBooleanAttr","includeBooleanAttr","value","normalizeStyle","isArray","item","normalized","isString","parseStringStyle","key","isObject","listDelimiterRE","propertyDelimiterRE","cssText","ret","forEach","tmp","trim","normalizeClass","name","normalizeProps","props","class","klass","style","HTML_TAGS","SVG_TAGS","VOID_TAGS","isHTMLTag","isSVGTag","isVoidTag","looseCompareArrays","a","b","equal","looseEqual","aValidType","isDate","bValidType","getTime","aKeysCount","keys","bKeysCount","aHasKey","hasOwnProperty","bHasKey","looseIndexOf","arr","findIndex","toDisplayString","toString","objectToString","isFunction","JSON","stringify","replacer","_key","__v_isRef","isMap","size","entries","reduce","isSet","values","isPlainObject","EMPTY_OBJ","EMPTY_ARR","NOOP","NO","onRE","isOn","test","isModelListener","startsWith","extend","assign","remove","el","indexOf","splice","prototype","hasOwn","call","Array","toTypeString","Date","isSymbol","isPromise","then","catch","toRawType","slice","isIntegerKey","parseInt","isReservedProp","cacheStringFunction","fn","cache","hit","camelizeRE","camelize","replace","c","toUpperCase","hyphenateRE","hyphenate","capitalize","charAt","toHandlerKey","hasChanged","oldValue","is","invokeArrayFns","fns","arg","def","obj","defineProperty","configurable","enumerable","toNumber","n","parseFloat","isNaN","_globalThis","getGlobalThis","globalThis","self","window","g","global","isCallable","tryToString","TypeError","module","exports","argument","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","fromIndex","O","index","includes","uncurryThis","stringSlice","it","TO_STRING_TAG_SUPPORT","classofRaw","wellKnownSymbol","TO_STRING_TAG","CORRECT_ARGUMENTS","arguments","tryGet","error","tag","result","undefined","callee","TEST","Error","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","exceptions","f","getOwnPropertyDescriptor","DESCRIPTORS","createPropertyDescriptor","object","bitmap","writable","fails","get","document","EXISTS","createElement","getBuiltIn","match","version","userAgent","process","Deno","versions","v8","createNonEnumerableProperty","redefine","setGlobal","copyConstructorProperties","isForced","options","FORCED","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","noTargetGet","forced","sham","exec","FunctionPrototype","Function","apply","bind","Reflect","getDescriptor","PROPER","CONFIGURABLE","aFunction","namespace","method","aCallable","V","P","func","check","this","toObject","classof","propertyIsEnumerable","setPrototypeOf","dummy","Wrapper","NewTarget","NewTargetPrototype","constructor","store","functionToString","inspectSource","cause","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","getterFor","TYPE","state","type","wmget","wmhas","wmset","metadata","facade","STATE","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","V8_VERSION","getOwnPropertySymbols","symbol","Symbol","$default","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","enumBugKeys","concat","getOwnPropertyNames","names","$propertyIsEnumerable","NASHORN_BUG","aPossiblePrototype","setter","CORRECT_SETTER","proto","__proto__","input","pref","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","InternalStateModule","CONFIGURABLE_FUNCTION_NAME","getInternalState","enforceInternalState","TEMPLATE","unsafe","simple","uid","SHARED","IS_PURE","mode","copyright","toIntegerOrInfinity","integer","IndexedObject","requireObjectCoercible","ceil","floor","number","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","inheritIfRequired","normalizeStringArgument","installErrorCause","clearErrorStack","ERROR_STACK_INSTALLABLE","FULL_NAME","wrapper","IS_AGGREGATE_ERROR","OPTIONS_POSITION","path","ERROR_NAME","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","message","$","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","exportWebAssemblyErrorCauseWrapper","init","enumerableOnly","symbols","sym","_objectSpread2","_defineProperty","getOwnPropertyDescriptors","defineProperties","_typeof","_extends","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","iter","from","o","minLen","len","arr2","pattern","navigator","IE11OrLess","Edge","FireFox","Safari","IOS","ChromeForAndroid","captureMode","capture","passive","on","event","addEventListener","off","removeEventListener","matches","selector","substring","msMatchesSelector","webkitMatchesSelector","getParentOrHost","host","nodeType","parentNode","closest","ctx","includeCTX","_throttleTimeout","R_SPACE","toggleClass","classList","className","css","prop","defaultView","getComputedStyle","currentStyle","matrix","selfOnly","appliedTransforms","transform","matrixFn","DOMMatrix","WebKitCSSMatrix","CSSMatrix","MSCSSMatrix","find","tagName","getElementsByTagName","getWindowScrollingElement","scrollingElement","documentElement","getRect","relativeToContainingBlock","relativeToNonStaticParent","undoScale","container","getBoundingClientRect","elRect","top","left","bottom","right","height","width","innerHeight","innerWidth","containerRect","elMatrix","scaleX","scaleY","d","isScrolledPast","elSide","parentSide","parent","getParentAutoScrollElement","elSideVal","parentSideVal","visible","getChild","childNum","includeDragEl","currentChild","children","display","Sortable","ghost","dragged","draggable","lastChild","last","lastElementChild","previousElementSibling","nodeName","clone","getRelativeScrollOffset","offsetLeft","offsetTop","winScroller","scrollLeft","scrollTop","indexOfObject","Number","includeSelf","elem","gotSelf","clientWidth","scrollWidth","clientHeight","scrollHeight","elemCSS","overflowX","overflowY","body","dst","src","isRectEqual","rect1","rect2","round","throttle","callback","ms","args","_this","setTimeout","cancelThrottle","clearTimeout","scrollBy","x","y","Polymer","jQuery","Zepto","dom","cloneNode","setRect","rect","unsetRect","expando","AnimationStateManager","animationCallbackId","animationStates","captureAnimationState","animation","child","fromRect","thisAnimationDuration","childMatrix","e","addAnimationState","removeAnimationState","animateAll","animating","animationTime","time","toRect","prevFromRect","prevToRect","animatingRect","targetMatrix","calculateRealTime","animate","animationResetTimer","currentRect","duration","translateX","translateY","animatingX","animatingY","forRepaintDummy","repaint","easing","animated","offsetWidth","sqrt","pow","plugins","defaults","initializeByDefault","PluginManager","mount","plugin","option","p","pluginName","pluginEvent","eventName","sortable","evt","eventCanceled","cancel","eventNameGlobal","initializePlugins","initialized","modified","modifyOption","getEventProperties","eventProperties","modifiedValue","optionListeners","dispatchEvent","_ref","rootEl","targetEl","cloneEl","toEl","fromEl","oldIndex","newIndex","oldDraggableIndex","newDraggableIndex","originalEvent","putSortable","extraEventProperties","onName","substr","CustomEvent","createEvent","initEvent","bubbles","cancelable","to","pullMode","lastPutMode","allEventProperties","_excluded","dragEl","parentEl","ghostEl","nextEl","lastDownEl","cloneHidden","dragStarted","moved","activeSortable","active","hideGhostForTarget","_hideGhostForTarget","unhideGhostForTarget","_unhideGhostForTarget","cloneNowHidden","cloneNowShown","dispatchSortableEvent","_dispatchEvent","info","activeGroup","tapEvt","touchEvt","lastDx","lastDy","tapDistanceLeft","tapDistanceTop","lastTarget","lastDirection","targetMoveDistance","ghostRelativeParent","awaitingDragStarted","ignoreNextClick","sortables","pastFirstInvertThresh","isCircumstantialInvert","ghostRelativeParentInitialScroll","_silent","savedInputChecked","documentExists","PositionGhostAbsolutely","CSSFloatProperty","supportDraggable","supportCssPointerEvents","pointerEvents","_detectDirection","elCSS","elWidth","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth","child1","child2","firstChildCSS","secondChildCSS","firstChildWidth","marginLeft","marginRight","secondChildWidth","flexDirection","gridTemplateColumns","touchingSideChild2","clear","_dragElInRowColumn","dragRect","targetRect","vertical","dragElS1Opp","dragElS2Opp","dragElOppLength","targetS1Opp","targetS2Opp","targetOppLength","_detectNearestEmptySortable","some","threshold","emptyInsertThreshold","insideHorizontally","insideVertically","_prepareGroup","toFn","pull","sameGroup","group","otherGroup","originalGroup","checkPull","checkPut","put","revertClone","preventDefault","stopPropagation","stopImmediatePropagation","nearestEmptyInsertDetectEvent","touches","nearest","clientX","clientY","_onDragOver","_checkOutsideTargetEl","_isOutsideThisEl","sort","disabled","handle","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","ghostClass","chosenClass","dragClass","ignore","preventOnFilter","setData","dataTransfer","textContent","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","devicePixelRatio","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","nativeDraggable","_onTapStart","_globalDragOver","dropEffect","_onMove","willInsertAfter","retVal","onMoveFn","onMove","draggedRect","related","relatedRect","_disableDraggable","_unsilent","_ghostIsFirst","spacer","_ghostIsLast","_getSwapDirection","isLastTarget","mouseOnAxis","targetLength","targetS1","targetS2","invert","_getInsertDirection","_generateId","href","sum","charCodeAt","_saveInputCheckedState","root","inputs","checked","_nextTick","_cancelNextTick","contains","_getDirection","touch","pointerType","originalTarget","shadowRoot","composedPath","button","isContentEditable","criteria","_prepareDragStart","dragStartFn","ownerDocument","nextSibling","_lastX","_lastY","_onDrop","_disableDelayedDragEvents","_triggerDragStart","_disableDelayedDrag","_delayedDragTouchMoveHandler","_dragStartTimer","abs","_onTouchMove","_onDragStart","selection","empty","getSelection","removeAllRanges","err","_dragStarted","fallback","_appendGhost","_nulling","_emulateDragOver","elementFromPoint","inserted","ghostMatrix","relativeScrollOffset","dx","dy","cssMatrix","appendChild","_hideClone","cloneId","insertBefore","_loopId","setInterval","effectAllowed","_dragStartId","revert","isOwner","canSort","fromSortable","completedFired","dragOverEvent","_ignoreWhileAnimating","completed","elLastChild","changed","firstChild","targetBeforeFirstSwap","sibling","differentLevel","differentRowCol","side1","scrolledPastTop","scrollBefore","dragIndex","nextElementSibling","after","moveVector","extra","axis","insertion","_showClone","_offMoveEvents","_offUpEvents","clearInterval","removeChild","save","handleEvent","toArray","order","getAttribute","useAnimation","items","destroy","querySelectorAll","removeAttribute","utils","nextTick","cancelNextTick","detectDirection","element","_len","scrollEl","scrollRootEl","lastAutoScrollX","lastAutoScrollY","touchEvt$1","pointerElemChangedInterval","autoScrolls","scrolling","AutoScrollPlugin","AutoScroll","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","_handleAutoScroll","_handleFallbackAutoScroll","dragOverCompleted","_ref2","dragOverBubble","drop","clearPointerElemChangedInterval","clearAutoScrolls","nulling","autoScroll","ogElemScroller","newElem","pid","lastSwapEl","isFallback","scrollCustomFn","sens","speed","scrollThisInstance","scrollFn","layersOut","currentParent","canScrollX","canScrollY","scrollPosX","scrollPosY","vx","vy","layer","scrollOffsetY","scrollOffsetX","toSortable","changedTouches","onSpill","Revert","Remove","SwapPlugin","Swap","swapClass","dragStart","dragOverValid","swap","prevSwapEl","_ref3","swapNodes","swapItem","n1","n2","i1","i2","p1","p2","isEqualNode","startIndex","_ref4","parentSortable","lastMultiDragSelect","multiDragSortable","dragEl$1","clonesFromRect","clonesHidden","multiDragElements","multiDragClones","initialFolding","folding","MultiDragPlugin","MultiDrag","_deselectMultiDrag","_checkKeyDown","_checkKeyUp","selectedClass","multiDragKey","multiDragElement","multiDragKeyDown","isMultiDrag","delayStartGlobal","delayEnded","setupClone","sortableIndex","insertMultiDragClones","showClone","hideClone","_ref5","dragStartGlobal","_ref6","multiDrag","_ref7","_this2","removeMultiDragElements","dragOver","_ref8","_ref9","insertMultiDragElements","_ref10","dragRectAbsolute","clonesHiddenBefore","dragOverAnimationCapture","_ref11","dragMatrix","dragOverAnimationComplete","_ref12","originalEvt","shiftKey","lastIndex","currentIndex","multiDragIndex","update","nullingGlobal","destroyGlobal","shift","select","deselect","_this3","oldIndicies","newIndicies","clones","clonesInserted","elementsInserted","sfc","__vccOpts","T","C","N","D","t","E","l","s","done","u","next","return","L","inheritAttrs","autocomplete","required","modelValue","placeholder","Boolean","tabindex","autofocus","comboboxUid","emits","setup","focus","handleInput","emit","handleChange","handleFocus","handleBlur","handleEscape","blur","render","$slots","ref","onInput","onChange","onFocus","onBlur","onKeyup","__file","U","validator","every","label","selected","collapseTags","dataAttrs","handleClick","collapsed","onMousedown","onClick","z","maxHeight","highlightedOriginalIndex","handleClickItem","handleMouseenter","q","role","r","hidden","highlighted","originalIndex","onMouseenter","H","valueBy","W","Z","R","G","Q","reverse","pointerForward","pointerBackward","pointerSet","Y","emptyModelValue","labelBy","disabledBy","default","groupBy","visibleOptions","multiple","searchable","searchPlaceholder","clearOnSelect","clearOnClose","taggable","loading","closeOnSelect","hideSelected","openDirection","refs","activeElement","relatedTarget","v","RegExp","B","k","Set","F","deep","S","originalOption","A","Event","K","querySelector","paddingTop","paddingBottom","$el","immediate","J","X","ee","ne","te","instance","isFocusing","dropdown","toggle","searchingInputValue","handleInputForInput","handleChangeForInput","handleFocusForInput","handleBlurForInput","optionsWithInfo","addOrRemoveOption","innerPlaceholder","pointerFirst","pointerLast","typeAhead","code","components","VInput","VTags","VDropdown","__VERSION__","ae","le","m","h","$attrs","onKeypress","$event","onKeydown","readonly","alt","onEscape","onClickItem","script","autosize","minHeight","important","maxHeightScroll","computed","computedStyles","resize","isResizeImportant","overflow","isOverflowImportant","imp","isHeightImportant","watch","_val","$nextTick","$emit","methods","contentHeight","heightVal","created","mounted","normalizeComponent","template","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","originalRender","existing","beforeCreate","normalizeComponent_1","__vue_script__","__vue_render__","_vm","_h","$createElement","_c","_self","directives","rawName","expression","domProps","composing","__vue_staticRenderFns__","__vue_inject_styles__","__vue_scope_id__","__vue_module_identifier__","__vue_is_functional_template__","TextareaAutosize","install","Vue","component","use","activeEffectScope","effectScopeStack","EffectScope","detached","effects","cleanups","scopes","run","pop","stop","fromParent","cleanup","effectScope","recordEffectScope","effect","scope","getCurrentScope","onScopeDispose","createDep","dep","w","wasTracked","trackOpBit","newTracked","initDepMarkers","deps","finalizeDepMarkers","ptr","delete","targetMap","effectTrackDepth","maxMarkerBits","effectStack","activeEffect","ITERATE_KEY","MAP_KEY_ITERATE_KEY","ReactiveEffect","scheduler","enableTracking","cleanupEffect","resetTracking","onStop","_effect","lazy","runner","shouldTrack","trackStack","pauseTracking","track","isTracking","depsMap","Map","eventInfo","trackEffects","debuggerEventExtraInfo","trigger","newValue","oldTarget","triggerEffects","allowRecurse","isNonTrackableKeys","builtInSymbols","createGetter","shallowGet","readonlyGet","shallowReadonlyGet","arrayInstrumentations","createArrayInstrumentations","instrumentations","isReadonly","shallow","receiver","shallowReadonlyMap","readonlyMap","shallowReactiveMap","reactiveMap","targetIsArray","isRef","shouldUnwrap","reactive","createSetter","shallowSet","hadKey","deleteProperty","mutableHandlers","readonlyHandlers","shallowReactiveHandlers","shallowReadonlyHandlers","toShallow","getProto","getPrototypeOf","get$1","isShallow","rawTarget","rawKey","wrap","toReadonly","toReactive","has$1","set$1","deleteEntry","hadItems","createForEach","thisArg","observed","createIterableMethod","targetIsMap","isPair","isKeyOnly","innerIterator","createReadonlyMethod","createInstrumentations","mutableInstrumentations","shallowInstrumentations","readonlyInstrumentations","shallowReadonlyInstrumentations","iteratorMethods","createInstrumentationGetter","mutableCollectionHandlers","shallowCollectionHandlers","readonlyCollectionHandlers","shallowReadonlyCollectionHandlers","targetTypeMap","rawType","getTargetType","isExtensible","createReactiveObject","shallowReactive","shallowReadonly","baseHandlers","collectionHandlers","proxyMap","existingProxy","targetType","proxy","Proxy","isReactive","isProxy","raw","markRaw","trackRefValue","triggerRefValue","newVal","createRef","shallowRef","rawValue","RefImpl","_shallow","_rawValue","_value","triggerRef","unref","shallowUnwrapHandlers","proxyRefs","objectWithRefs","CustomRefImpl","factory","_get","_set","customRef","toRefs","toRef","ObjectRefImpl","_object","_defaultValue","defaultValue","ComputedRefImpl","getter","_setter","_dirty","getterOrOptions","debugOptions","onlyGetter","cRef","Promise","resolve","devtools","buffer","devtoolsNotInstalled","setDevtoolsHook","_a","_b","enabled","HTMLElement","replay","__VUE_DEVTOOLS_HOOK_REPLAY__","newHook","emit$1","rawArgs","vnode","modelArg","modifiersKey","handlerName","handler","callWithAsyncErrorHandling","onceHandler","emitted","normalizeEmitsOptions","comp","appContext","asMixin","emitsCache","cached","hasExtends","extendEmits","normalizedFromExtend","mixins","extends","isEmitListener","currentRenderingInstance","currentScopeId","setCurrentRenderingInstance","prev","__scopeId","pushScopeId","popScopeId","withScopeId","_id","withCtx","isNonScopedSlot","_n","renderFnWithContext","_d","setBlockTracking","prevInstance","renderComponentRoot","Component","withProxy","propsOptions","slots","attrs","renderCache","setupState","fallthroughAttrs","shapeFlag","proxyToUse","normalizeVNode","getFunctionalFallthrough","blockStack","handleError","createVNode","Comment","filterModelListeners","cloneVNode","dirs","transition","filterSingleRoot","singleRoot","isVNode","shouldUpdateComponent","prevVNode","nextVNode","optimized","prevProps","prevChildren","nextProps","nextChildren","patchFlag","emitsOptions","$stable","hasPropsChanged","dynamicProps","nextKeys","updateHOCHostEl","subTree","isSuspense","__isSuspense","SuspenseImpl","anchor","parentComponent","parentSuspense","isSVG","slotScopeIds","rendererInternals","mountSuspense","patchSuspense","hydrate","hydrateSuspense","createSuspenseBoundary","normalizeSuspenseChildren","Suspense","triggerEvent","eventListener","patch","hiddenContainer","suspense","pendingBranch","ssContent","ssFallback","setActiveBranch","um","unmount","newBranch","newFallback","activeBranch","isInFallback","isHydrating","isSameVNodeType","pendingId","timeout","move","isUnmounted","resume","delayEnter","afterLeave","hasUnresolvedAncestor","queuePostFlushCb","fallbackVNode","mountFallback","registerDep","setupRenderEffect","isInPendingSuspense","hydratedEl","asyncDep","asyncSetupResult","suspenseId","asyncResolved","handleSetupResult","doRemove","node","hydrateNode","isSlotChildren","normalizeSuspenseSlot","block","trackBlock","isBlockTreeEnabled","openBlock","currentBlock","closeBlock","singleChild","dynamicChildren","queueEffectWithSuspense","branch","provide","currentInstance","provides","parentProvides","inject","treatDefaultAsFactory","useTransitionState","isMounted","isLeaving","isUnmounting","leavingVNodes","onMounted","onBeforeUnmount","TransitionHookValidator","BaseTransitionImpl","appear","persisted","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","getCurrentInstance","prevTransitionKey","getTransitionRawChildren","rawProps","emptyPlaceholder","innerChild","getKeepAliveChild","enterHooks","resolveTransitionHooks","setTransitionHooks","oldChild","oldInnerChild","transitionKeyChanged","getTransitionKey","leavingHooks","delayLeave","earlyRemove","delayedLeave","leavingVNodesCache","getLeavingNodesForType","_leaveCb","BaseTransition","callHook","hooks","beforeEnter","leavingVNode","enter","afterHook","cancelHook","called","_enterCb","cancelled","leave","isKeepAlive","keepComment","keyedFragmentCount","Fragment","defineComponent","isAsyncWrapper","__asyncLoader","defineAsyncComponent","loader","loadingComponent","errorComponent","suspensible","onError","userOnError","resolvedComp","pendingRequest","retries","retry","load","thisRequest","reject","userRetry","userFail","__esModule","toStringTag","__asyncResolved","createInnerComp","loaded","delayed","queueJob","__isKeepAlive","KeepAliveImpl","include","exclude","sharedContext","renderer","_unmount","storageContainer","resetShapeFlag","pruneCache","getComponentName","pruneCacheEntry","activate","queuePostRenderEffect","isDeactivated","vnodeHook","onVnodeMounted","invokeVNodeHook","deactivate","da","onVnodeUnmounted","flush","pendingCacheKey","cacheSubtree","getInnerChild","onUpdated","rawVNode","cachedVNode","KeepAlive","onActivated","registerKeepAliveHook","onDeactivated","wrappedHook","__wdc","injectHook","injectToKeepAliveRoot","keepAliveRoot","injected","onUnmounted","prepend","__weh","setCurrentInstance","unsetCurrentInstance","unshift","createHook","lifecycle","isInSSRComponentSetup","onBeforeMount","onBeforeUpdate","onServerPrefetch","onRenderTriggered","onRenderTracked","onErrorCaptured","shouldCacheAccess","applyOptions","resolveMergedOptions","publicThis","dataOptions","computedOptions","watchOptions","provideOptions","injectOptions","beforeMount","beforeUpdate","updated","activated","deactivated","beforeDestroy","beforeUnmount","destroyed","unmounted","renderTracked","renderTriggered","errorCaptured","serverPrefetch","expose","filters","checkDuplicateProperties","resolveInjections","config","unwrapInjectedRef","methodHandler","opt","createWatcher","registerLifecycleHook","register","_hook","exposed","unwrapRef","normalizeInject","createPathGetter","base","extendsOptions","globalMixins","optionsCache","optionMergeStrategies","resolved","mergeOptions","strats","strat","internalOptionMergeStrats","mergeDataFn","mergeObjectOptions","mergeAsArray","mergeWatchOptions","mergeInject","merged","initProps","isStateful","isSSR","InternalObjectKey","propsDefaults","setFullProps","updateProps","rawPrevProps","rawCurrentProps","hasAttrsChanged","kebabKey","resolvePropValue","propsToUpdate","camelizedKey","needCastKeys","rawCastValues","camelKey","castValues","isAbsent","hasDefault","normalizePropsOptions","propsCache","extendProps","normalizedKey","validatePropName","booleanIndex","getTypeIndex","stringIndex","getType","ctor","isSameType","expectedTypes","isInternalKey","normalizeSlotValue","normalizeSlot","rawSlot","normalizeObjectSlots","rawSlots","_ctx","normalizeVNodeSlots","initSlots","updateSlots","needDeletionCheck","deletionComparisonTarget","withDirectives","internalInstance","bindings","dir","modifiers","traverse","invokeDirectiveHook","oldBindings","binding","createAppContext","app","isNativeTag","performance","globalProperties","errorHandler","warnHandler","compilerOptions","createAppAPI","rootComponent","rootProps","installedPlugins","_uid","_component","_props","_container","_context","_instance","mixin","directive","rootContainer","isHydrate","__vue_app__","getExposeProxy","setRef","rawRef","oldRawRef","isUnmount","refValue","owner","oldRef","callWithErrorHandling","_isString","_isRef","doSet","hasMismatch","isSVGContainer","namespaceURI","isComment","createHydrationFunctions","mt","mountComponent","patchProp","insert","createComment","hasChildNodes","flushPostFlushCbs","console","isFragmentStart","onMismatch","handleMismatch","domType","nextNode","Text","Static","needToAdoptContent","staticCount","outerHTML","hydrateFragment","hydrateElement","locateClosingAsyncAnchor","previousSibling","createTextVNode","hydrateChildren","forcePatchValue","endsWith","vnodeHooks","onVnodeBeforeMount","innerHTML","cur","parentVNode","fragmentSlotScopeIds","isFragment","initFeatureFlags","createRenderer","baseCreateRenderer","createHydrationRenderer","createHydrationFns","__VUE__","hostInsert","hostRemove","hostPatchProp","hostCreateElement","createText","hostCreateText","hostCreateComment","setText","hostSetText","setElementText","hostSetElementText","hostParentNode","hostNextSibling","setScopeId","hostSetScopeId","hostCloneNode","insertStaticContent","hostInsertStaticContent","getNextHostNode","processText","processCommentNode","mountStaticNode","processFragment","processElement","processComponent","internals","moveStaticNode","removeStaticNode","mountElement","patchElement","mountChildren","unmountChildren","needCallTransitionHooks","cloneIfMounted","oldProps","newProps","toggleRecurse","onVnodeBeforeUpdate","areChildrenSVG","patchBlockChildren","patchChildren","patchProps","onVnodeUpdated","oldChildren","newChildren","fallbackContainer","oldVNode","newVNode","fragmentStartAnchor","fragmentEndAnchor","traverseStaticChildren","updateComponent","initialVNode","createComponentInstance","setupComponent","updateComponentPreRender","invalidateJob","componentUpdateFn","bu","originNext","nextTree","prevTree","bm","isAsyncWrapperVNode","hydrateSubTree","scopedInitialVNode","flushPreFlushCbs","c1","prevShapeFlag","c2","patchKeyedChildren","patchUnkeyedChildren","oldLength","newLength","commonLength","nextChild","parentAnchor","l2","e1","e2","nextPos","s1","s2","keyToNewIndexMap","patched","toBePatched","maxNewIndexSoFar","newIndexToOldIndexMap","prevChild","increasingNewIndexSequence","getSequence","nextIndex","moveType","needTransition","performLeave","shouldInvokeDirs","shouldInvokeVnodeHook","onVnodeBeforeUnmount","unmountComponent","removeFragment","performRemove","bum","_vnode","mc","pc","pbc","createApp","allowed","ch1","ch2","arrI","isTeleport","__isTeleport","isTeleportDisabled","isTargetSVG","SVGElement","resolveTarget","targetSelector","TeleportImpl","mainAnchor","targetAnchor","wasDisabled","currentContainer","currentAnchor","moveTeleport","nextTarget","hydrateTeleport","isReorder","targetNode","_lpa","Teleport","COMPONENTS","DIRECTIVES","resolveComponent","maybeSelfReference","resolveAsset","NULL_DYNAMIC_COMPONENT","resolveDynamicComponent","resolveDirective","warnMissing","selfName","registry","disableTracking","vnodeArgsTransformer","setupBlock","createElementBlock","createBaseVNode","createBlock","__v_isVNode","transformVNodeArgs","transformer","normalizeKey","normalizeRef","ref_key","ref_for","isBlockNode","needFullChildrenNormalization","__v_skip","normalizeChildren","_createVNode","cloned","isClassComponent","guardReactiveProps","extraProps","mergeRef","mergedProps","mergeProps","text","flag","createStaticVNode","content","numberOfNodes","createCommentVNode","asBlock","memo","slot","slotFlag","toMerge","incoming","renderList","renderItem","createSlots","dynamicSlots","renderSlot","noSlotted","isCE","validSlotContent","ensureValidVNode","rendered","vnodes","toHandlers","getPublicInstance","isStatefulComponent","publicPropertiesMap","$data","$props","$refs","$parent","$forceUpdate","$watch","instanceWatch","PublicInstanceProxyHandlers","accessCache","normalizedProps","publicGetter","cssModule","__cssModules","RuntimeCompiledPublicInstanceProxyHandlers","unscopables","emptyAppContext","uid$1","exposeProxy","setupContext","bc","rtg","rtc","ec","sp","ce","compile","installWithProxy","setupResult","setupStatefulComponent","createSetupContext","resolvedResult","finishComponentSetup","__ssrInlineRender","ssrRender","registerRuntimeCompiler","_compile","_rc","skipOptions","isCustomElement","delimiters","componentCompilerOptions","finalCompilerOptions","createAttrsProxy","classifyRE","classify","displayName","formatComponentName","isRoot","inferFromRegistry","msg","appWarnHandler","trace","getComponentTrace","warnArgs","formatTrace","warn","currentVNode","normalizedStack","recurseCount","parentInstance","logs","entry","formatTraceEntry","open","close","formatProps","formatProp","throwInDev","contextVNode","exposedInstance","errorInfo","errorCapturedHooks","appErrorHandler","logError","isFlushing","isFlushPending","flushIndex","pendingPreFlushCbs","activePreFlushCbs","preFlushIndex","pendingPostFlushCbs","activePostFlushCbs","postFlushIndex","resolvedPromise","currentFlushPromise","currentPreFlushParentJob","findInsertionIndex","middle","middleJobId","getId","job","queueFlush","flushJobs","queueCb","cb","activeQueue","pendingQueue","queuePreFlushCb","seen","parentJob","deduped","Infinity","watchEffect","doWatch","watchPostEffect","watchSyncEffect","INITIAL_WATCHER_VALUE","onTrack","onTrigger","forceTrigger","isMultiSource","onInvalidate","baseGetter","segments","defineProps","defineEmits","defineExpose","withDefaults","useSlots","getContext","useAttrs","mergeDefaults","createPropsRestProxy","excludedKeys","withAsyncContext","getAwaitable","awaitable","propsOrChildren","ssrContextKey","useSSRContext","withMemo","isMemoSame","_ssrUtils","ssrUtils","resolveFilter","compatUtils","svgNS","doc","staticTemplateCache","nodeOps","createElementNS","setAttribute","createTextNode","nodeValue","before","patchClass","transitionClasses","_vtc","patchStyle","isCssString","setStyle","currentDisplay","importantRE","setProperty","prefixed","autoPrefix","prefixes","prefixCache","xlinkNS","patchAttr","removeAttributeNS","setAttributeNS","isBoolean","patchDOMProp","_getNow","now","skipTimestampCheck","timeStamp","ffMatch","cachedNow","getNow","patchEvent","prevValue","nextValue","invokers","_vei","existingInvoker","parseName","invoker","createInvoker","optionsModifierRE","initialValue","attached","patchStopImmediatePropagation","originalStop","_stopped","nativeOnRE","shouldSetAsProp","_trueValue","_falseValue","defineCustomElement","hydate","Comp","VueCustomElement","VueElement","initialProps","super","defineSSRCustomElement","BaseClass","_def","_connected","_resolved","_numberProps","attachShadow","connectedCallback","_resolveDef","disconnectedCallback","attributes","_setAttr","MutationObserver","mutations","attributeName","observe","styles","hasOptions","rawKeys","numberProps","_setProp","_getProp","_applyStyles","_update","asyncDef","shouldReflect","shouldUpdate","detail","useCssModule","modules","mod","useCssVars","setVars","setVarsOnVNode","ob","childList","disconnect","vars","setVarsOnNode","TRANSITION","ANIMATION","Transition","resolveTransitionProps","DOMTransitionPropsValidators","enterFromClass","enterActiveClass","enterToClass","appearFromClass","appearActiveClass","appearToClass","leaveFromClass","leaveActiveClass","leaveToClass","TransitionPropsValidators","hasExplicitCallback","baseProps","durations","normalizeDuration","enterDuration","leaveDuration","finishEnter","isAppear","removeTransitionClass","finishLeave","makeEnterHook","nextFrame","addTransitionClass","whenTransitionEnds","forceReflow","NumberOf","cls","requestAnimationFrame","endId","expectedType","explicitTimeout","_endId","resolveIfNotStale","propCount","getTransitionInfo","endEvent","ended","onEnd","getStyleProperties","transitionDelays","transitionDurations","transitionTimeout","getTimeout","animationDelays","animationDurations","animationTimeout","hasTransform","delays","toMs","offsetHeight","positionMap","newPositionMap","TransitionGroupImpl","moveClass","hasCSSTransform","callPendingCbs","recordPosition","movedChildren","applyTranslation","webkitTransform","transitionDuration","_moveCb","propertyName","cssTransitionProps","TransitionGroup","oldPos","newPos","getModelAssigner","onCompositionStart","onCompositionEnd","vModelText","_assign","castToNumber","domValue","vModelCheckbox","_modelValue","elementValue","getValue","found","filtered","getCheckboxValue","setChecked","vModelRadio","vModelSelect","isSetModel","selectedVal","setSelected","_binding","isMultiple","optionValue","selectedIndex","vModelDynamic","callModelHook","modelToUse","initVModelForSSR","getSSRProps","systemModifiers","modifierGuards","prevent","currentTarget","ctrl","ctrlKey","altKey","meta","metaKey","exact","withModifiers","guard","keyNames","esc","space","up","down","withKeys","eventKey","vShow","_vod","setDisplay","initVShowForSSR","rendererOptions","enabledHydration","ensureRenderer","ensureHydrationRenderer","containerOrSelector","normalizeContainer","Element","createSSRApp","ssrDirectiveInitialized","initDirectivesForSSR","defaultOnError","defaultOnWarn","createCompilerError","loc","messages","additionalMessage","SyntaxError","FRAGMENT","TELEPORT","SUSPENSE","KEEP_ALIVE","BASE_TRANSITION","OPEN_BLOCK","CREATE_BLOCK","CREATE_ELEMENT_BLOCK","CREATE_VNODE","CREATE_ELEMENT_VNODE","CREATE_COMMENT","CREATE_TEXT","CREATE_STATIC","RESOLVE_COMPONENT","RESOLVE_DYNAMIC_COMPONENT","RESOLVE_DIRECTIVE","RESOLVE_FILTER","WITH_DIRECTIVES","RENDER_LIST","RENDER_SLOT","CREATE_SLOTS","TO_DISPLAY_STRING","MERGE_PROPS","NORMALIZE_CLASS","NORMALIZE_STYLE","NORMALIZE_PROPS","GUARD_REACTIVE_PROPS","TO_HANDLERS","CAMELIZE","CAPITALIZE","TO_HANDLER_KEY","SET_BLOCK_TRACKING","PUSH_SCOPE_ID","POP_SCOPE_ID","WITH_CTX","UNREF","IS_REF","WITH_MEMO","IS_MEMO_SAME","helperNameMap","registerRuntimeHelpers","helpers","locStub","column","offset","createRoot","hoists","imports","temps","codegenNode","createVNodeCall","isBlock","isComponent","helper","getVNodeBlockHelper","inSSR","getVNodeHelper","createArrayExpression","elements","createObjectExpression","properties","createObjectProperty","createSimpleExpression","isStatic","constType","createCompoundExpression","createCallExpression","createFunctionExpression","params","returns","newline","isSlot","createConditionalExpression","consequent","alternate","createCacheExpression","createBlockStatement","isStaticExp","isBuiltInType","expected","isCoreComponent","nonIdentifierRE","isSimpleIdentifier","validFirstIdentCharRE","validIdentCharRE","whitespaceRE","isMemberExpressionBrowser","stateStack","currentOpenBracketCount","currentOpenParensCount","currentStringType","char","isMemberExpression","getInnerRange","newLoc","advancePositionWithClone","pos","numberOfCharacters","advancePositionWithMutation","linesCount","lastNewLinePos","findDir","allowEmpty","exp","findProp","dynamicOnly","isStaticArgOf","hasDynamicKeyVBind","isText","isVSlot","isTemplateNode","tagType","isSlotOutlet","ssr","propsHelperSet","getUnnormalizedProps","callPath","injectProp","propsWithInjection","parentCall","first","alreadyExists","propKeyName","toValidAssetId","searchValue","replaceValue","getMemoedVNodeCall","makeBlock","removeHelper","getCompatValue","compatConfig","isCompatEnabled","checkCompatEnabled","decodeRE","decodeMap","gt","lt","amp","apos","quot","defaultParserOptions","getNamespace","getTextMode","isPreTag","decodeEntities","rawText","onWarn","comments","createParserContext","getCursor","parseChildren","rawOptions","originalSource","inPre","inVPre","ancestors","ns","nodes","isEnd","parseInterpolation","emitError","parseComment","parseBogusComment","parseCDATA","advanceBy","parseTag","parseElement","isSpecialTemplateDirective","parseText","pushNode","removedWhitespace","shouldCondense","whitespace","prevIndex","nestedIndex","contentStart","closeIndex","wasInPre","wasInVPre","isPreBoundary","isVPreBoundary","isSelfClosing","inlineTemplateProp","startsWithEndTagOpen","advanceSpaces","cursor","currentSource","parseAttributes","isBuiltInComponent","attributeNames","attr","parseAttribute","nameSet","parseAttributeValue","isPropShorthand","dirName","startOffset","lastIndexOf","getNewPosition","isQuoted","valueLoc","quote","endIndex","parseTextData","unexpectedChars","innerStart","innerEnd","rawContentLength","rawContent","preTrimContent","endOffset","endTokens","xs","searchString","hoistStatic","walk","isSingleElementRoot","doNotHoistNode","originalCount","hoistedCount","constantType","getConstantType","hoist","getPatchFlag","getGeneratedPropsConstantType","getNodeProps","vSlot","branches","transformHoist","constantCache","returnType","generatedPropsType","childType","expType","allowHoistedHelperSet","getConstantTypeOfHelperCall","keyType","valueType","createTransformContext","filename","prefixIdentifiers","cacheHandlers","nodeTransforms","directiveTransforms","expressionPlugins","slotted","ssrCssVars","bindingMetadata","inline","isTS","nameMatch","identifiers","vFor","vPre","vOnce","currentNode","childIndex","inVOnce","currentCount","helperString","replaceNode","removeNode","removalIndex","onNodeRemoved","addIdentifiers","removeIdentifiers","identifier","hoisted","traverseNode","createRootCodegen","traverseChildren","nodeRemoved","exitFns","onExit","createStructuralDirectiveTransform","PURE_ANNOTATION","createCodegenContext","ast","sourceMap","optimizeImports","runtimeGlobalName","runtimeModuleName","ssrRuntimeModuleName","indentLevel","pure","indent","deindent","withoutNewLine","generate","onContextCreated","hasHelpers","useWithBlock","preambleContext","genFunctionPreamble","functionName","signature","genAssets","genNode","preamble","toJSON","VueBinding","aliasHelper","staticHelpers","genHoists","assets","resolver","genNodeListAsArray","multilines","genNodeList","comma","genText","genExpression","genInterpolation","genCompoundExpression","genComment","genVNodeCall","genCallExpression","genObjectExpression","genArrayExpression","genFunctionExpression","genConditionalExpression","genCacheExpression","genExpressionAsPropertyKey","callHelper","genNullableArgs","needNewline","needsParens","isNested","transformIf","processIf","ifNode","siblings","createCodegenNodeForBranch","parentCondition","getParentCondition","processCodegen","createIfBranch","condition","userKey","keyIndex","createChildrenCodegenNode","keyProperty","needFragmentWrapper","vnodeCall","transformFor","processFor","forNode","renderExp","keyProp","keyExp","isStableFragment","fragmentFlag","childBlock","isTemplate","slotOutlet","loop","createForLoopParams","parseResult","parseForExpression","valueAlias","keyAlias","objectIndexAlias","forAliasRE","forIteratorRE","stripParensRE","inMatch","LHS","RHS","createAliasExpression","valueContent","trimmedOffset","iteratorMatch","keyContent","keyOffset","indexContent","memoArgs","createParamsList","defaultFallback","trackSlotScopes","buildClientSlotFn","buildSlots","buildSlotFn","slotsProperties","hasDynamicSlots","onComponentSlot","hasTemplateSlots","hasNamedDefaultSlot","implicitDefaultChildren","seenSlotNames","slotElement","slotDir","slotChildren","slotLoc","slotName","slotProps","dirLoc","staticSlotName","slotFunction","vIf","vElse","buildDynamicSlot","conditional","buildDefaultSlotProperty","isNonWhitespaceContent","hasForwardedSlots","directiveImportMap","transformElement","vnodeTag","resolveComponentType","isDynamicComponent","vnodeProps","vnodeChildren","vnodePatchFlag","vnodeDynamicProps","dynamicPropNames","vnodeDirectives","shouldUseBlock","propsBuildResult","buildProps","buildDirectiveArgs","shouldBuildAsSlots","hasDynamicTextChild","stringifyDynamicPropNames","isExplicitDynamic","isComponentTag","isProp","isDir","builtIn","elementLoc","mergeArgs","runtimeDirectives","hasChildren","hasRef","hasClassBinding","hasStyleBinding","hasHydrationEventBinding","hasDynamicKeys","hasVnodeHook","analyzePatchFlag","isEventHandler","isVBind","isVOn","dedupeProperties","directiveTransform","needRuntime","propsExpression","classKeyIndex","styleKeyIndex","hasDynamicKey","isHandlerKey","classProp","styleProp","knownProps","dirArgs","runtime","trueExpression","modifier","propsNamesString","transformSlotOutlet","processSlotOutlet","slotArgs","expectedLen","nonNameProps","fnExpRE","transformOn","augmentor","shouldCache","isMemberExp","isInlineStatement","hasMultipleStatements","transformBind","_node","injectPrefix","prefix","transformText","hasText","callArgs","WeakSet","transformOnce","transformModel","createTransformProps","rawExp","expString","maybeRef","propName","assignmentExp","eventArg","validDivisionCharRE","transformFilter","rewriteFilter","parseFilter","inSingle","inDouble","inTemplateString","inRegex","curly","square","paren","lastFilterIndex","pushFilter","wrapFilter","seen$1","transformMemo","getBaseTransformPreset","model","baseCompile","isModuleMode","noopDirectiveTransform","V_MODEL_RADIO","V_MODEL_CHECKBOX","V_MODEL_TEXT","V_MODEL_SELECT","V_MODEL_DYNAMIC","V_ON_WITH_MODIFIERS","V_ON_WITH_KEYS","V_SHOW","TRANSITION_GROUP","decoder","decodeHtmlBrowser","asAttr","isRawTextContainer","parserOptions","transformStyle","parseInlineCSS","createDOMCompilerError","transformVHtml","transformVText","baseResult","directiveToUse","isInvalidType","isEventOptionModifier","isNonKeyModifier","maybeKeyModifier","isKeyboardEvent","resolveModifiers","keyModifiers","nonKeyModifiers","eventOptionModifiers","transformClick","isStaticClick","handlerExp","modifierPostfix","transformShow","ignoreSideEffectTags","DOMNodeTransforms","DOMDirectiveTransforms","cloak","html","show","compileCache","compileToFunction","__WEBPACK_EXTERNAL_MODULE__8bbf__","__WEBPACK_EXTERNAL_MODULE_a352__","installedModules","moduleId","property","that","nativeGetOwnPropertyNames","windowNames","getWindowNames","nativeGetOwnPropertyDescriptor","$reduce","arrayMethodIsStrict","arrayMethodUsesToLength","STRICT_METHOD","USES_TO_LENGTH","callbackfn","regexpExec","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","$forEach","ITERATOR","SAFE_CLOSING","iteratorWithReturn","SKIP_CLOSING","ITERATION_SUPPORT","SPECIES","METHOD_NAME","array","foo","toInteger","flags","TO_STRING","RegExpPrototype","nativeToString","NOT_GENERIC","INCORRECT_NAME","rf","notARegExp","correctIsRegExpLogic","nativeStartsWith","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","search","Iterators","objectKeys","Properties","defineIterator","STRING_ITERATOR","setInternalState","iterated","point","UNSCOPABLES","ArrayPrototype","MATCH","isRegExp","$filter","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","callWithSafeIterationClosing","isArrayIteratorMethod","createProperty","getIteratorMethod","arrayLike","step","argumentsLength","mapfn","mapping","iteratorMethod","$entries","fixRegExpWellKnownSymbolLogic","advanceStringIndex","regExpExec","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","maybeToString","REPLACE","nativeReplace","maybeCallNative","reason","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","REPLACE_KEEPS_$0","UNSAFE_SUBSTITUTE","regexp","rx","functionalReplace","fullUnicode","unicode","results","matchStr","accumulatedResult","nextSourcePosition","matched","position","captures","namedCaptures","groups","replacerArgs","getSubstitution","tailPos","ch","flattenIntoArray","arraySpeciesCreate","flatMap","sourceLen","CONVERT_TO_STRING","second","codeAt","originalArray","objectHas","TO_ENTRIES","addToUnscopables","wrappedWellKnownSymbolModule","NAME","activeXDocument","documentCreateElement","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","NullProtoObjectViaActiveX","write","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","JS","contentWindow","NullProtoObject","domain","ActiveXObject","createIteratorConstructor","setToStringTag","IteratorsCore","IteratorPrototype","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","ENTRIES","returnThis","Iterable","IteratorConstructor","DEFAULT","IS_SET","CurrentIteratorPrototype","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","propertyKey","__webpack_require__","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","getCurrentScript","currentScript","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","scriptLocation","currentLocation","location","hash","scripts","readyState","regexpFlags","stickyHelpers","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","re1","re2","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","PATCH","reCopy","re","sticky","charsAdded","strCopy","multiline","IS_CONCAT_SPREADABLE","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_INDEX_EXCEEDED","IS_CONCAT_SPREADABLE_SUPPORT","SPECIES_SUPPORT","isConcatSpreadable","spreadable","returnMethod","nativeDefineProperty","RE","original","depth","mapper","targetIndex","sourceIndex","mapFn","ACCESSORS","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","deleteCount","insertCount","actualDeleteCount","actualStart","nativeObjectCreate","getOwnPropertyNamesExternal","defineWellKnownSymbol","HIDDEN","SYMBOL","ObjectPrototype","$stringify","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","QObject","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","$defineProperties","$getOwnPropertySymbols","$create","$getOwnPropertyNames","IS_OBJECT_PROTOTYPE","keyFor","useSetter","useSimple","FORCED_JSON_STRINGIFY","$replacer","checkCorrectnessOfIteration","INCORRECT_ITERATION","iterable","ignoreCase","dotAll","thrower","argument0","argument1","PrototypeOfArrayIteratorPrototype","arrayIterator","FunctionPrototypeToString","nameRE","nativeKeys","FAILS_ON_PRIMITIVES","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","specificCreate","boundFunction","PREFERRED_STRING","$findIndex","FIND_INDEX","SKIPS_HOLES","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","$includes","variable","TAG","IS_RIGHT","REPLACE_SUPPORTS_NAMED_GROUPS","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","nativeRegExpMethod","nativeMethod","arg2","forceStringMethod","stringMethod","regexMethod","$map","__webpack_exports__","getConsole","ArrayIteratorMethods","ArrayValues","NativeSymbol","EmptyStringDescriptionStore","SymbolWrapper","symbolPrototype","symbolToString","native","desc","CORRECT_PROTOTYPE_GETTER","ARRAY_ITERATOR","kind","Arguments","_arrayWithHoles","_iterableToArrayLimit","_arr","_e","_s","_i","_nonIterableRest","_slicedToArray","external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_","external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default","parentElement","insertNodeAt","fatherNode","refNode","regex","manageAndEmit","manage","eventHandlerNames","events","isReadOnly","tags","isHtmlTag","isTransition","isHtmlAttribute","project","getComponentAttributes","_ref3$componentData","componentData","createSortableOption","callBackBuilder","getValidSortableEntries","eventType","eventBuilder","_ref13","_ref14","_classCallCheck","Constructor","_defineProperties","_createClass","protoProps","staticProps","getHtmlElementFromNode","addContext","domElement","__draggable_context","componentStructure_ComponentStructure","ComponentStructure","_ref2$nodes","header","defaultNodes","footer","realList","externalComponent","rootTransition","_isRootComponent","domIndex","domChildren","firstDomListElement","indexFirstDomListElement","external_commonjs_vue_commonjs2_vue_root_Vue_","getSlot","slotValue","computeNodes","getKey","normalizedList","_map","_map2","getRootInformation","computeComponentStructure","_emit","evtName","evtData","_manage","originalElement","_manageAndEmit","delegateCallBack","draggingElement","itemKey","draggableComponent","componentStructure","color","_this4","sortableOptions","targetDomElement","_sortable","__draggable_component__","newOptionValue","getUnderlyingVm","getUnderlyingPotencialDraggableComponent","htmElement","emitChanges","_this5","alterList","onList","newList","spliceList","_arguments","updatePosition","getRelatedContextFromMoveEvent","destination","getVmIndexFromDomIndex","onDragStart","_underlying_vm_","onDragAdd","added","onDragRemove","_this$context","removed","onDragUpdate","computeFutureIndex","relatedContext","currentDomIndex","draggedInList","onDragMove","futureIndex","draggedContext","sendEvent","onDragEnd","vuedraggable","nativeSlice","fin","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","createNanoEvents"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index c3012aa..0000000 --- a/package-lock.json +++ /dev/null @@ -1,7847 +0,0 @@ -{ - "name": "profectus", - "version": "0.7.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "profectus", - "version": "0.7.0", - "dependencies": { - "@fontsource/material-icons": "^5.1.0", - "@fontsource/roboto-mono": "^5.1.0", - "@pixi/app": "^6.5.10", - "@pixi/constants": "~6.5.10", - "@pixi/core": "^6.5.10", - "@pixi/display": "~6.5.10", - "@pixi/math": "~6.5.10", - "@pixi/particle-emitter": "^5.0.7", - "@pixi/sprite": "~6.5.10", - "@pixi/ticker": "~6.5.10", - "@vitejs/plugin-vue": "^5.1.4", - "@vitejs/plugin-vue-jsx": "^4.0.1", - "is-plain-object": "^5.0.0", - "lz-string": "^1.5.0", - "nanoevents": "^9.0.0", - "unofficial-galaxy-sdk": "git+https://code.incremental.social/thepaperpilot/unofficial-galaxy-sdk.git#1.0.1", - "vite": "^5.1.8", - "vite-plugin-pwa": "^0.20.5", - "vite-tsconfig-paths": "^4.3.0", - "vue": "^3.5.13", - "vue-next-select": "^2.10.5", - "vue-panzoom": "https://github.com/thepaperpilot/vue-panzoom.git", - "vue-textarea-autosize": "^1.1.1", - "vue-toastification": "^2.0.0-rc.5", - "vuedraggable": "^4.1.0" - }, - "devDependencies": { - "@ivanv/vue-collapse-transition": "^1.0.2", - "@rushstack/eslint-patch": "^1.7.2", - "@types/lz-string": "^1.5.0", - "@types/node": "^22.7.6", - "@typescript-eslint/parser": "^7.2.0", - "@vue/eslint-config-prettier": "^9.0.0", - "@vue/eslint-config-typescript": "^13.0.0", - "eslint": "^8.57.0", - "jsdom": "^24.0.0", - "prettier": "^3.2.5", - "typescript": "~5.5.4", - "vitest": "^1.4.0", - "vue-tsc": "^2.0.6" - }, - "engines": { - "node": "21.x" - }, - "optionalDependencies": { - "@rollup/rollup-linux-x64-gnu": "^4.24.0" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz", - "integrity": "sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g==", - "dependencies": { - "@babel/highlight": "^7.25.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.8.tgz", - "integrity": "sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.8.tgz", - "integrity": "sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helpers": "^7.25.7", - "@babel/parser": "^7.25.8", - "@babel/template": "^7.25.7", - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.8", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.7.tgz", - "integrity": "sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA==", - "dependencies": { - "@babel/types": "^7.25.7", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.7.tgz", - "integrity": "sha512-4xwU8StnqnlIhhioZf1tqnVWeQ9pvH/ujS8hRfw/WOza+/a+1qv69BWNy+oY231maTCWgKWhfBU7kDpsds6zAA==", - "dependencies": { - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.25.7.tgz", - "integrity": "sha512-12xfNeKNH7jubQNm7PAkzlLwEmCs1tfuX3UjIw6vP6QXi+leKh6+LyC/+Ed4EIQermwd58wsyh070yjDHFlNGg==", - "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz", - "integrity": "sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A==", - "dependencies": { - "@babel/compat-data": "^7.25.7", - "@babel/helper-validator-option": "^7.25.7", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.7.tgz", - "integrity": "sha512-bD4WQhbkx80mAyj/WCm4ZHcF4rDxkoLFO6ph8/5/mQ3z4vAzltQXAmbc7GvVJx5H+lk5Mi5EmbTeox5nMGCsbw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "@babel/helper-member-expression-to-functions": "^7.25.7", - "@babel/helper-optimise-call-expression": "^7.25.7", - "@babel/helper-replace-supers": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7", - "@babel/traverse": "^7.25.7", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.25.7.tgz", - "integrity": "sha512-byHhumTj/X47wJ6C6eLpK7wW/WBEcnUeb7D0FNc/jFQnQVw7DOso3Zz5u9x/zLrFVkHa89ZGDbkAa1D54NdrCQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "regexpu-core": "^6.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz", - "integrity": "sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.7.tgz", - "integrity": "sha512-O31Ssjd5K6lPbTX9AAYpSKrZmLeagt9uwschJd+Ixo6QiRyfpvgtVQp8qrDR9UNFjZ8+DO34ZkdrN+BnPXemeA==", - "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz", - "integrity": "sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw==", - "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz", - "integrity": "sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ==", - "dependencies": { - "@babel/helper-module-imports": "^7.25.7", - "@babel/helper-simple-access": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.7.tgz", - "integrity": "sha512-VAwcwuYhv/AT+Vfr28c9y6SHzTan1ryqrydSTFGjU0uDJHw3uZ+PduI8plCLkRsDnqK2DMEDmwrOQRsK/Ykjng==", - "dependencies": { - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz", - "integrity": "sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.7.tgz", - "integrity": "sha512-kRGE89hLnPfcz6fTrlNU+uhgcwv0mBE4Gv3P9Ke9kLVJYpi4AMVVEElXvB5CabrPZW4nCM8P8UyyjrzCM0O2sw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "@babel/helper-wrap-function": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.7.tgz", - "integrity": "sha512-iy8JhqlUW9PtZkd4pHM96v6BdJ66Ba9yWSE4z0W4TvSZwLBPkyDsiIU3ENe4SmrzRBs76F7rQXTy1lYC49n6Lw==", - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.25.7", - "@babel/helper-optimise-call-expression": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz", - "integrity": "sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ==", - "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.7.tgz", - "integrity": "sha512-pPbNbchZBkPMD50K0p3JGcFMNLVUCuU/ABybm/PGNj4JiHrpmNyqqCphBk4i19xXtNV0JhldQJJtbSW5aUvbyA==", - "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz", - "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz", - "integrity": "sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz", - "integrity": "sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.7.tgz", - "integrity": "sha512-MA0roW3JF2bD1ptAaJnvcabsVlNQShUaThyJbCDD4bCp8NEgiFvpoqRI2YS22hHlc2thjO/fTg2ShLMC3jygAg==", - "dependencies": { - "@babel/template": "^7.25.7", - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.7.tgz", - "integrity": "sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA==", - "dependencies": { - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.25.7.tgz", - "integrity": "sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz", - "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==", - "dependencies": { - "@babel/types": "^7.25.8" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.7.tgz", - "integrity": "sha512-UV9Lg53zyebzD1DwQoT9mzkEKa922LNUp5YkTJ6Uta0RbyXaQNUgcvSt7qIu1PpPzVb6rd10OVNTzkyBGeVmxQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.7.tgz", - "integrity": "sha512-GDDWeVLNxRIkQTnJn2pDOM1pkCgYdSqPeT1a9vh9yIqu2uzzgw1zcqEb+IJOhy+dTBMlNdThrDIksr2o09qrrQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.7.tgz", - "integrity": "sha512-wxyWg2RYaSUYgmd9MR0FyRGyeOMQE/Uzr1wzd/g5cf5bwi9A4v6HFdDm7y1MgDtod/fLOSTZY6jDgV0xU9d5bA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.7.tgz", - "integrity": "sha512-Xwg6tZpLxc4iQjorYsyGMyfJE7nP5MV8t/Ka58BgiA7Jw0fRqQNcANlLfdJ/yvBt9z9LD2We+BEkT7vLqZRWng==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7", - "@babel/plugin-transform-optional-chaining": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.7.tgz", - "integrity": "sha512-UVATLMidXrnH+GMUIuxq55nejlj02HP7F5ETyBONzP6G87fPBogG4CH6kxrSrdIuAjdwNO9VzyaYsrZPscWUrw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.25.7.tgz", - "integrity": "sha512-ZvZQRmME0zfJnDQnVBKYzHxXT7lYBB3Revz1GuS7oLXWMgqUPX4G+DDbT30ICClht9WKV34QVrZhSw6WdklwZQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz", - "integrity": "sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz", - "integrity": "sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz", - "integrity": "sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.7.tgz", - "integrity": "sha512-EJN2mKxDwfOUCPxMO6MUI58RN3ganiRAG/MS/S3HfB6QFNjroAMelQo/gybyYq97WerCBAZoyrAoW8Tzdq2jWg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.8.tgz", - "integrity": "sha512-9ypqkozyzpG+HxlH4o4gdctalFGIjjdufzo7I2XPda0iBnZ6a+FO0rIEQcdSPXp02CkvGsII1exJhmROPQd5oA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-remap-async-to-generator": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.7.tgz", - "integrity": "sha512-ZUCjAavsh5CESCmi/xCpX1qcCaAglzs/7tmuvoFnJgA1dM7gQplsguljoTg+Ru8WENpX89cQyAtWoaE0I3X3Pg==", - "dependencies": { - "@babel/helper-module-imports": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-remap-async-to-generator": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.7.tgz", - "integrity": "sha512-xHttvIM9fvqW+0a3tZlYcZYSBpSWzGBFIt/sYG3tcdSzBB8ZeVgz2gBP7Df+sM0N1850jrviYSSeUuc+135dmQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.7.tgz", - "integrity": "sha512-ZEPJSkVZaeTFG/m2PARwLZQ+OG0vFIhPlKHK/JdIMy8DbRJ/htz6LRrTFtdzxi9EHmcwbNPAKDnadpNSIW+Aow==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.7.tgz", - "integrity": "sha512-mhyfEW4gufjIqYFo9krXHJ3ElbFLIze5IDp+wQTxoPd+mwFb1NxatNAwmv8Q8Iuxv7Zc+q8EkiMQwc9IhyGf4g==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.25.8.tgz", - "integrity": "sha512-e82gl3TCorath6YLf9xUwFehVvjvfqFhdOo4+0iVIVju+6XOi5XHkqB3P2AXnSwoeTX0HBoXq5gJFtvotJzFnQ==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.7.tgz", - "integrity": "sha512-9j9rnl+YCQY0IGoeipXvnk3niWicIB6kCsWRGLwX241qSXpbA4MKxtp/EdvFxsc4zI5vqfLxzOd0twIJ7I99zg==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-replace-supers": "^7.25.7", - "@babel/traverse": "^7.25.7", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.7.tgz", - "integrity": "sha512-QIv+imtM+EtNxg/XBKL3hiWjgdLjMOmZ+XzQwSgmBfKbfxUjBzGgVPklUuE55eq5/uVoh8gg3dqlrwR/jw3ZeA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/template": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.7.tgz", - "integrity": "sha512-xKcfLTlJYUczdaM1+epcdh1UGewJqr9zATgrNHcLBcV2QmfvPPEixo/sK/syql9cEmbr7ulu5HMFG5vbbt/sEA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.7.tgz", - "integrity": "sha512-kXzXMMRzAtJdDEgQBLF4oaiT6ZCU3oWHgpARnTKDAqPkDJ+bs3NrZb310YYevR5QlRo3Kn7dzzIdHbZm1VzJdQ==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.7.tgz", - "integrity": "sha512-by+v2CjoL3aMnWDOyCIg+yxU9KXSRa9tN6MbqggH5xvymmr9p4AMjYkNlQy4brMceBnUyHZ9G8RnpvT8wP7Cfg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.7.tgz", - "integrity": "sha512-HvS6JF66xSS5rNKXLqkk7L9c/jZ/cdIVIcoPVrnl8IsVpLggTjXs8OWekbLHs/VtYDDh5WXnQyeE3PPUGm22MA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.8.tgz", - "integrity": "sha512-gznWY+mr4ZQL/EWPcbBQUP3BXS5FwZp8RUOw06BaRn8tQLzN4XLIxXejpHN9Qo8x8jjBmAAKp6FoS51AgkSA/A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.25.7.tgz", - "integrity": "sha512-yjqtpstPfZ0h/y40fAXRv2snciYr0OAoMXY/0ClC7tm4C/nG5NJKmIItlaYlLbIVAWNfrYuy9dq1bE0SbX0PEg==", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.8.tgz", - "integrity": "sha512-sPtYrduWINTQTW7FtOy99VCTWp4H23UX7vYcut7S4CIMEXU+54zKX9uCoGkLsWXteyaMXzVHgzWbLfQ1w4GZgw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.7.tgz", - "integrity": "sha512-n/TaiBGJxYFWvpJDfsxSj9lEEE44BFM1EPGz4KEiTipTgkoFVVcCmzAL3qA7fdQU96dpo4gGf5HBx/KnDvqiHw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.7.tgz", - "integrity": "sha512-5MCTNcjCMxQ63Tdu9rxyN6cAWurqfrDZ76qvVPrGYdBxIj+EawuuxTu/+dgJlhK5eRz3v1gLwp6XwS8XaX2NiQ==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.8.tgz", - "integrity": "sha512-4OMNv7eHTmJ2YXs3tvxAfa/I43di+VcF+M4Wt66c88EAED1RoGaf1D64cL5FkRpNL+Vx9Hds84lksWvd/wMIdA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.7.tgz", - "integrity": "sha512-fwzkLrSu2fESR/cm4t6vqd7ebNIopz2QHGtjoU+dswQo/P6lwAG04Q98lliE3jkz/XqnbGFLnUcE0q0CVUf92w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.8.tgz", - "integrity": "sha512-f5W0AhSbbI+yY6VakT04jmxdxz+WsID0neG7+kQZbCOjuyJNdL5Nn4WIBm4hRpKnUcO9lP0eipUhFN12JpoH8g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.7.tgz", - "integrity": "sha512-Std3kXwpXfRV0QtQy5JJcRpkqP8/wG4XL7hSKZmGlxPlDqmpXtEPRmhF7ztnlTCtUN3eXRUJp+sBEZjaIBVYaw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.7.tgz", - "integrity": "sha512-CgselSGCGzjQvKzghCvDTxKHP3iooenLpJDO842ehn5D2G5fJB222ptnDwQho0WjEvg7zyoxb9P+wiYxiJX5yA==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.25.7.tgz", - "integrity": "sha512-L9Gcahi0kKFYXvweO6n0wc3ZG1ChpSFdgG+eV1WYZ3/dGbJK7vvk91FgGgak8YwRgrCuihF8tE/Xg07EkL5COg==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-simple-access": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.7.tgz", - "integrity": "sha512-t9jZIvBmOXJsiuyOwhrIGs8dVcD6jDyg2icw1VL4A/g+FnWyJKwUfSSU2nwJuMV2Zqui856El9u+ElB+j9fV1g==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "@babel/traverse": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.7.tgz", - "integrity": "sha512-p88Jg6QqsaPh+EB7I9GJrIqi1Zt4ZBHUQtjw3z1bzEXcLh6GfPqzZJ6G+G1HBGKUNukT58MnKG7EN7zXQBCODw==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.7.tgz", - "integrity": "sha512-BtAT9LzCISKG3Dsdw5uso4oV1+v2NlVXIIomKJgQybotJY3OwCwJmkongjHgwGKoZXd0qG5UZ12JUlDQ07W6Ow==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.7.tgz", - "integrity": "sha512-CfCS2jDsbcZaVYxRFo2qtavW8SpdzmBXC2LOI4oO0rP+JSRDxxF3inF4GcPsLgfb5FjkhXG5/yR/lxuRs2pySA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.8.tgz", - "integrity": "sha512-Z7WJJWdQc8yCWgAmjI3hyC+5PXIubH9yRKzkl9ZEG647O9szl9zvmKLzpbItlijBnVhTUf1cpyWBsZ3+2wjWPQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.8.tgz", - "integrity": "sha512-rm9a5iEFPS4iMIy+/A/PiS0QN0UyjPIeVvbU5EMZFKJZHt8vQnasbpo3T3EFcxzCeYO0BHfc4RqooCZc51J86Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.8.tgz", - "integrity": "sha512-LkUu0O2hnUKHKE7/zYOIjByMa4VRaV2CD/cdGz0AxU9we+VA3kDDggKEzI0Oz1IroG+6gUP6UmWEHBMWZU316g==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/plugin-transform-parameters": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.7.tgz", - "integrity": "sha512-pWT6UXCEW3u1t2tcAGtE15ornCBvopHj9Bps9D2DsH15APgNVOTwwczGckX+WkAvBmuoYKRCFa4DK+jM8vh5AA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-replace-supers": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.8.tgz", - "integrity": "sha512-EbQYweoMAHOn7iJ9GgZo14ghhb9tTjgOc88xFgYngifx7Z9u580cENCV159M4xDh3q/irbhSjZVpuhpC2gKBbg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.8.tgz", - "integrity": "sha512-q05Bk7gXOxpTHoQ8RSzGSh/LHVB9JEIkKnk3myAWwZHnYiTGYtbdrYkIsS8Xyh4ltKf7GNUSgzs/6P2bJtBAQg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.7.tgz", - "integrity": "sha512-FYiTvku63me9+1Nz7TOx4YMtW3tWXzfANZtrzHhUZrz4d47EEtMQhzFoZWESfXuAMMT5mwzD4+y1N8ONAX6lMQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.7.tgz", - "integrity": "sha512-KY0hh2FluNxMLwOCHbxVOKfdB5sjWG4M183885FmaqWWiGMhRZq4DQRKH6mHdEucbJnyDyYiZNwNG424RymJjA==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.8.tgz", - "integrity": "sha512-8Uh966svuB4V8RHHg0QJOB32QK287NBksJOByoKmHMp1TAobNniNalIkI2i5IPj5+S9NYCG4VIjbEuiSN8r+ow==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "@babel/helper-create-class-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.7.tgz", - "integrity": "sha512-lQEeetGKfFi0wHbt8ClQrUSUMfEeI3MMm74Z73T9/kuz990yYVtfofjf3NuA42Jy3auFOpbjDyCSiIkTs1VIYw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.7.tgz", - "integrity": "sha512-mgDoQCRjrY3XK95UuV60tZlFCQGXEtMg8H+IsW72ldw1ih1jZhzYXbJvghmAEpg5UVhhnCeia1CkGttUvCkiMQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.7.tgz", - "integrity": "sha512-3OfyfRRqiGeOvIWSagcwUTVk2hXBsr/ww7bLn6TRTuXnexA+Udov2icFOxFX9abaj4l96ooYkcNN1qi2Zvqwng==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.7.tgz", - "integrity": "sha512-uBbxNwimHi5Bv3hUccmOFlUy3ATO6WagTApenHz9KzoIdn0XeACdB12ZJ4cjhuB2WSi80Ez2FWzJnarccriJeA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.7.tgz", - "integrity": "sha512-Mm6aeymI0PBh44xNIv/qvo8nmbkpZze1KvR8MkEqbIREDxoiWTi18Zr2jryfRMwDfVZF9foKh060fWgni44luw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.7.tgz", - "integrity": "sha512-ZFAeNkpGuLnAQ/NCsXJ6xik7Id+tHuS+NT+ue/2+rn/31zcdnupCdmunOizEaP0JsUmTFSTOPoQY7PkK2pttXw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.7.tgz", - "integrity": "sha512-SI274k0nUsFFmyQupiO7+wKATAmMFf8iFgq2O+vVFXZ0SV9lNfT1NGzBEhjquFmD8I9sqHLguH+gZVN3vww2AA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.7.tgz", - "integrity": "sha512-OmWmQtTHnO8RSUbL0NTdtpbZHeNTnm68Gj5pA4Y2blFNh+V4iZR68V1qL9cI37J21ZN7AaCnkfdHtLExQPf2uA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.7.tgz", - "integrity": "sha512-VKlgy2vBzj8AmEzunocMun2fF06bsSWV+FvVXohtL6FGve/+L217qhHxRTVGHEDO/YR8IANcjzgJsd04J8ge5Q==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.7", - "@babel/helper-create-class-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.7", - "@babel/plugin-syntax-typescript": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.7.tgz", - "integrity": "sha512-BN87D7KpbdiABA+t3HbVqHzKWUDN3dymLaTnPFAMyc8lV+KN3+YzNhVRNdinaCPA4AUqx7ubXbQ9shRjYBl3SQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.7.tgz", - "integrity": "sha512-IWfR89zcEPQGB/iB408uGtSPlQd3Jpq11Im86vUgcmSTcoWAiQMCTOa2K2yNNqFJEBVICKhayctee65Ka8OB0w==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.7.tgz", - "integrity": "sha512-8JKfg/hiuA3qXnlLx8qtv5HWRbgyFx2hMMtpDDuU2rTckpKkGu4ycK5yYHwuEa16/quXfoxHBIApEsNyMWnt0g==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.7.tgz", - "integrity": "sha512-YRW8o9vzImwmh4Q3Rffd09bH5/hvY0pxg+1H1i0f7APoUeg12G7+HhLj9ZFNIrYkgBXhIijPJ+IXypN0hLTIbw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.8.tgz", - "integrity": "sha512-58T2yulDHMN8YMUxiLq5YmWUnlDCyY1FsHM+v12VMx+1/FlrUj5tY50iDCpofFQEM8fMYOaY9YRvym2jcjn1Dg==", - "dependencies": { - "@babel/compat-data": "^7.25.8", - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-validator-option": "^7.25.7", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.7", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.7", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.7", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.7", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.7", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.25.7", - "@babel/plugin-syntax-import-attributes": "^7.25.7", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.25.7", - "@babel/plugin-transform-async-generator-functions": "^7.25.8", - "@babel/plugin-transform-async-to-generator": "^7.25.7", - "@babel/plugin-transform-block-scoped-functions": "^7.25.7", - "@babel/plugin-transform-block-scoping": "^7.25.7", - "@babel/plugin-transform-class-properties": "^7.25.7", - "@babel/plugin-transform-class-static-block": "^7.25.8", - "@babel/plugin-transform-classes": "^7.25.7", - "@babel/plugin-transform-computed-properties": "^7.25.7", - "@babel/plugin-transform-destructuring": "^7.25.7", - "@babel/plugin-transform-dotall-regex": "^7.25.7", - "@babel/plugin-transform-duplicate-keys": "^7.25.7", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.7", - "@babel/plugin-transform-dynamic-import": "^7.25.8", - "@babel/plugin-transform-exponentiation-operator": "^7.25.7", - "@babel/plugin-transform-export-namespace-from": "^7.25.8", - "@babel/plugin-transform-for-of": "^7.25.7", - "@babel/plugin-transform-function-name": "^7.25.7", - "@babel/plugin-transform-json-strings": "^7.25.8", - "@babel/plugin-transform-literals": "^7.25.7", - "@babel/plugin-transform-logical-assignment-operators": "^7.25.8", - "@babel/plugin-transform-member-expression-literals": "^7.25.7", - "@babel/plugin-transform-modules-amd": "^7.25.7", - "@babel/plugin-transform-modules-commonjs": "^7.25.7", - "@babel/plugin-transform-modules-systemjs": "^7.25.7", - "@babel/plugin-transform-modules-umd": "^7.25.7", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.7", - "@babel/plugin-transform-new-target": "^7.25.7", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.8", - "@babel/plugin-transform-numeric-separator": "^7.25.8", - "@babel/plugin-transform-object-rest-spread": "^7.25.8", - "@babel/plugin-transform-object-super": "^7.25.7", - "@babel/plugin-transform-optional-catch-binding": "^7.25.8", - "@babel/plugin-transform-optional-chaining": "^7.25.8", - "@babel/plugin-transform-parameters": "^7.25.7", - "@babel/plugin-transform-private-methods": "^7.25.7", - "@babel/plugin-transform-private-property-in-object": "^7.25.8", - "@babel/plugin-transform-property-literals": "^7.25.7", - "@babel/plugin-transform-regenerator": "^7.25.7", - "@babel/plugin-transform-reserved-words": "^7.25.7", - "@babel/plugin-transform-shorthand-properties": "^7.25.7", - "@babel/plugin-transform-spread": "^7.25.7", - "@babel/plugin-transform-sticky-regex": "^7.25.7", - "@babel/plugin-transform-template-literals": "^7.25.7", - "@babel/plugin-transform-typeof-symbol": "^7.25.7", - "@babel/plugin-transform-unicode-escapes": "^7.25.7", - "@babel/plugin-transform-unicode-property-regex": "^7.25.7", - "@babel/plugin-transform-unicode-regex": "^7.25.7", - "@babel/plugin-transform-unicode-sets-regex": "^7.25.7", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.38.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz", - "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz", - "integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==", - "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/types": "^7.25.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.7.tgz", - "integrity": "sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg==", - "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz", - "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==", - "dependencies": { - "@babel/helper-string-parser": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.1.tgz", - "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", - "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@fontsource/material-icons": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@fontsource/material-icons/-/material-icons-5.1.0.tgz", - "integrity": "sha512-xqTEO5vcVl8saTAi3QBRpGot4pX9WkqR7lOp07NfHwizigIPUTWnCc9UNlotWs3Jt4TWI8GKomDn2HdK2GwOtw==" - }, - "node_modules/@fontsource/roboto-mono": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-5.1.0.tgz", - "integrity": "sha512-7lIxTeanF2XrwAIukUrOUvO9veGkQiG7L7vizMxVjl+lrTwS4GAYyOvziyGZ6/3kU80K3lGd/FnWrmoTud0V6A==" - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", - "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", - "deprecated": "Use @eslint/config-array instead", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "dev": true - }, - "node_modules/@ivanv/vue-collapse-transition": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@ivanv/vue-collapse-transition/-/vue-collapse-transition-1.0.2.tgz", - "integrity": "sha512-eWEameFXJM/1khcoKbITvKjYYXDP1WKQ/Xf9ItJVPoEjCiOdocR3AgDAERzDrNNg4oWK28gRGi+0ft8Te27zxw==", - "dev": true - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", - "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pixi/app": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/app/-/app-6.5.10.tgz", - "integrity": "sha512-VsNHLajZ5Dbc/Zrj7iWmIl3eu6Fec+afjW/NXXezD8Sp3nTDF0bv5F+GDgN/zSc2gqIvPHyundImT7hQGBDghg==", - "peerDependencies": { - "@pixi/core": "6.5.10", - "@pixi/display": "6.5.10", - "@pixi/math": "6.5.10", - "@pixi/utils": "6.5.10" - } - }, - "node_modules/@pixi/constants": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/constants/-/constants-6.5.10.tgz", - "integrity": "sha512-PUF2Y9YISRu5eVrVVHhHCWpc/KmxQTg3UH8rIUs8UI9dCK41/wsPd3pEahzf7H47v7x1HCohVZcFO3XQc1bUDw==" - }, - "node_modules/@pixi/core": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/core/-/core-6.5.10.tgz", - "integrity": "sha512-Gdzp5ENypyglvsh5Gv3teUZnZnmizo4xOsL+QqmWALdFlJXJwLJMVhKVThV/q/095XR6i4Ou54oshn+m4EkuFw==", - "dependencies": { - "@types/offscreencanvas": "^2019.6.4" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/pixijs" - }, - "peerDependencies": { - "@pixi/constants": "6.5.10", - "@pixi/extensions": "6.5.10", - "@pixi/math": "6.5.10", - "@pixi/runner": "6.5.10", - "@pixi/settings": "6.5.10", - "@pixi/ticker": "6.5.10", - "@pixi/utils": "6.5.10" - } - }, - "node_modules/@pixi/display": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/display/-/display-6.5.10.tgz", - "integrity": "sha512-NxFdDDxlbH5fQkzGHraLGoTMucW9pVgXqQm13TSmkA3NWIi/SItHL4qT2SI8nmclT9Vid1VDEBCJFAbdeuQw1Q==", - "peerDependencies": { - "@pixi/constants": "6.5.10", - "@pixi/math": "6.5.10", - "@pixi/settings": "6.5.10", - "@pixi/utils": "6.5.10" - } - }, - "node_modules/@pixi/extensions": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/extensions/-/extensions-6.5.10.tgz", - "integrity": "sha512-EIUGza+E+sCy3dupuIjvRK/WyVyfSzHb5XsxRaxNrPwvG1iIUIqNqZ3owLYCo4h17fJWrj/yXVufNNtUKQccWQ==", - "peer": true - }, - "node_modules/@pixi/math": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.5.10.tgz", - "integrity": "sha512-fxeu7ykVbMGxGV2S3qRTupHToeo1hdWBm8ihyURn3BMqJZe2SkZEECPd5RyvIuuNUtjRnmhkZRnF3Jsz2S+L0g==" - }, - "node_modules/@pixi/particle-emitter": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/@pixi/particle-emitter/-/particle-emitter-5.0.8.tgz", - "integrity": "sha512-OzuZ4+esQo+zJ0u3htuNHHMAE8Ixmr3nz3tEfrTGZHje1vnGyie3ANQj9F0V4OM47oi9jd70njVCmeb7bTkS9A==", - "peerDependencies": { - "@pixi/constants": ">=6.0.4 <8.0.0", - "@pixi/core": ">=6.0.4 <8.0.0", - "@pixi/display": ">=6.0.4 <8.0.0", - "@pixi/math": ">=6.0.4 <8.0.0", - "@pixi/sprite": ">=6.0.4 <8.0.0", - "@pixi/ticker": ">=6.0.4 <8.0.0" - }, - "workspaces": { - "packages": [ - "./", - "test/pixi-v6-iife", - "test/pixi-v6-module" - ] - } - }, - "node_modules/@pixi/runner": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/runner/-/runner-6.5.10.tgz", - "integrity": "sha512-4HiHp6diCmigJT/DSbnqQP62OfWKmZB7zPWMdV1AEdr4YT1QxzXAW1wHg7dkoEfyTHqZKl0tm/zcqKq/iH7tMA==", - "peer": true - }, - "node_modules/@pixi/settings": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/settings/-/settings-6.5.10.tgz", - "integrity": "sha512-ypAS5L7pQ2Qb88yQK72bXtc7sD8OrtLWNXdZ/gnw5kwSWCFaOSoqhKqJCXrR5DQtN98+RQefwbEAmMvqobhFyw==", - "peer": true, - "peerDependencies": { - "@pixi/constants": "6.5.10" - } - }, - "node_modules/@pixi/sprite": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/sprite/-/sprite-6.5.10.tgz", - "integrity": "sha512-UiK+8LgM9XQ/SBDKjRgZ8WggdOSlFRXqiWjEZVmNkiyU8HvXeFzWPRhpc8RR1zDwAUhZWKtMhF8X/ba9m+z2lg==", - "peerDependencies": { - "@pixi/constants": "6.5.10", - "@pixi/core": "6.5.10", - "@pixi/display": "6.5.10", - "@pixi/math": "6.5.10", - "@pixi/settings": "6.5.10", - "@pixi/utils": "6.5.10" - } - }, - "node_modules/@pixi/ticker": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/ticker/-/ticker-6.5.10.tgz", - "integrity": "sha512-UqX1XYtzqFSirmTOy8QAK4Ccg4KkIZztrBdRPKwFSOEiKAJoGDCSBmyQBo/9aYQKGObbNnrJ7Hxv3/ucg3/1GA==", - "peerDependencies": { - "@pixi/extensions": "6.5.10", - "@pixi/settings": "6.5.10" - } - }, - "node_modules/@pixi/utils": { - "version": "6.5.10", - "resolved": "https://registry.npmjs.org/@pixi/utils/-/utils-6.5.10.tgz", - "integrity": "sha512-4f4qDMmAz9IoSAe08G2LAxUcEtG9jSdudfsMQT2MG+OpfToirboE6cNoO0KnLCvLzDVE/mfisiQ9uJbVA9Ssdw==", - "peer": true, - "dependencies": { - "@types/earcut": "^2.1.0", - "earcut": "^2.2.4", - "eventemitter3": "^3.1.0", - "url": "^0.11.0" - }, - "peerDependencies": { - "@pixi/constants": "6.5.10", - "@pixi/settings": "6.5.10" - } - }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "15.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.0.tgz", - "integrity": "sha512-9eO5McEICxMzJpDW9OnMYSv4Sta3hmt7VtBFz5zR9273suNOydOyq/FrGeGy+KsTRFm8w0SLVhzig2ILFT63Ag==", - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "@types/resolve": "1.20.2", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.78.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-terser": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz", - "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==", - "dependencies": { - "serialize-javascript": "^6.0.1", - "smob": "^1.0.0", - "terser": "^5.17.4" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/pluginutils": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.2.tgz", - "integrity": "sha512-/FIdS3PyZ39bjZlwqFnWqCOVnW7o963LtKMwQOD0NhQqw22gSr2YY1afu3FxRip4ZCZNsD5jq6Aaz6QV3D/Njw==", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz", - "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz", - "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz", - "integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==", - "dev": true - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "node_modules/@surma/rollup-plugin-off-main-thread": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", - "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", - "dependencies": { - "ejs": "^3.1.6", - "json5": "^2.2.0", - "magic-string": "^0.25.0", - "string.prototype.matchall": "^4.0.6" - } - }, - "node_modules/@surma/rollup-plugin-off-main-thread/node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, - "node_modules/@types/earcut": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@types/earcut/-/earcut-2.1.4.tgz", - "integrity": "sha512-qp3m9PPz4gULB9MhjGID7wpo3gJ4bTGXm7ltNDsmOvsPduTeHp8wSW9YckBj3mljeOh4F0m2z/0JKAALRKbmLQ==", - "peer": true - }, - "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==" - }, - "node_modules/@types/lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@types/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-s84fKOrzqqNCAPljhVyC5TjAo6BH4jKHw9NRNFNiRUY5QSgZCmVm5XILlWbisiKl+0OcS7eWihmKGS5akc2iQw==", - "deprecated": "This is a stub types definition. lz-string provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "lz-string": "*" - } - }, - "node_modules/@types/node": { - "version": "22.7.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.6.tgz", - "integrity": "sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==", - "devOptional": true, - "dependencies": { - "undici-types": "~6.19.2" - } - }, - "node_modules/@types/offscreencanvas": { - "version": "2019.7.3", - "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz", - "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==" - }, - "node_modules/@types/resolve": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", - "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==" - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", - "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/type-utils": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^7.0.0", - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", - "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", - "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", - "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "7.18.0", - "@typescript-eslint/utils": "7.18.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", - "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", - "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/visitor-keys": "7.18.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", - "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "7.18.0", - "@typescript-eslint/types": "7.18.0", - "@typescript-eslint/typescript-estree": "7.18.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", - "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.18.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true - }, - "node_modules/@vitejs/plugin-vue": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.1.4.tgz", - "integrity": "sha512-N2XSI2n3sQqp5w7Y/AN/L2XDjBIRGqXko+eDp42sydYSBeJuSm5a1sLf8zakmo8u7tA8NmBgoDLA1HeOESjp9A==", - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "vite": "^5.0.0", - "vue": "^3.2.25" - } - }, - "node_modules/@vitejs/plugin-vue-jsx": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-4.0.1.tgz", - "integrity": "sha512-7mg9HFGnFHMEwCdB6AY83cVK4A6sCqnrjFYF4WIlebYAQVVJ/sC/CiTruVdrRlhrFoeZ8rlMxY9wYpPTIRhhAg==", - "dependencies": { - "@babel/core": "^7.24.7", - "@babel/plugin-transform-typescript": "^7.24.7", - "@vue/babel-plugin-jsx": "^1.2.2" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "peerDependencies": { - "vite": "^5.0.0", - "vue": "^3.0.0" - } - }, - "node_modules/@vitest/expect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.0.tgz", - "integrity": "sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==", - "dev": true, - "dependencies": { - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "chai": "^4.3.10" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.0.tgz", - "integrity": "sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==", - "dev": true, - "dependencies": { - "@vitest/utils": "1.6.0", - "p-limit": "^5.0.0", - "pathe": "^1.1.1" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner/node_modules/p-limit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", - "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vitest/runner/node_modules/yocto-queue": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz", - "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==", - "dev": true, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@vitest/snapshot": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.0.tgz", - "integrity": "sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==", - "dev": true, - "dependencies": { - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "pretty-format": "^29.7.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.0.tgz", - "integrity": "sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==", - "dev": true, - "dependencies": { - "tinyspy": "^2.2.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.0.tgz", - "integrity": "sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==", - "dev": true, - "dependencies": { - "diff-sequences": "^29.6.3", - "estree-walker": "^3.0.3", - "loupe": "^2.3.7", - "pretty-format": "^29.7.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils/node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/@volar/language-core": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.6.tgz", - "integrity": "sha512-FxUfxaB8sCqvY46YjyAAV6c3mMIq/NWQMVvJ+uS4yxr1KzOvyg61gAuOnNvgCvO4TZ7HcLExBEsWcDu4+K4E8A==", - "dev": true, - "dependencies": { - "@volar/source-map": "2.4.6" - } - }, - "node_modules/@volar/source-map": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.6.tgz", - "integrity": "sha512-Nsh7UW2ruK+uURIPzjJgF0YRGP5CX9nQHypA2OMqdM2FKy7rh+uv3XgPnWPw30JADbKvZ5HuBzG4gSbVDYVtiw==", - "dev": true - }, - "node_modules/@volar/typescript": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.6.tgz", - "integrity": "sha512-NMIrA7y5OOqddL9VtngPWYmdQU03htNKFtAYidbYfWA0TOhyGVd9tfcP4TsLWQ+RBWDZCbBqsr8xzU0ZOxYTCQ==", - "dev": true, - "dependencies": { - "@volar/language-core": "2.4.6", - "path-browserify": "^1.0.1", - "vscode-uri": "^3.0.8" - } - }, - "node_modules/@vue/babel-helper-vue-transform-on": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.2.5.tgz", - "integrity": "sha512-lOz4t39ZdmU4DJAa2hwPYmKc8EsuGa2U0L9KaZaOJUt0UwQNjNA3AZTq6uEivhOKhhG1Wvy96SvYBoFmCg3uuw==" - }, - "node_modules/@vue/babel-plugin-jsx": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.2.5.tgz", - "integrity": "sha512-zTrNmOd4939H9KsRIGmmzn3q2zvv1mjxkYZHgqHZgDrXz5B1Q3WyGEjO2f+JrmKghvl1JIRcvo63LgM1kH5zFg==", - "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/plugin-syntax-jsx": "^7.24.7", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.6", - "@babel/types": "^7.25.6", - "@vue/babel-helper-vue-transform-on": "1.2.5", - "@vue/babel-plugin-resolve-type": "1.2.5", - "html-tags": "^3.3.1", - "svg-tags": "^1.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - } - } - }, - "node_modules/@vue/babel-plugin-resolve-type": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.2.5.tgz", - "integrity": "sha512-U/ibkQrf5sx0XXRnUZD1mo5F7PkpKyTbfXM3a3rC4YnUz6crHEz9Jg09jzzL6QYlXNto/9CePdOg/c87O4Nlfg==", - "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/parser": "^7.25.6", - "@vue/compiler-sfc": "^3.5.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@vue/compiler-core": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.13.tgz", - "integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==", - "dependencies": { - "@babel/parser": "^7.25.3", - "@vue/shared": "3.5.13", - "entities": "^4.5.0", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.0" - } - }, - "node_modules/@vue/compiler-dom": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz", - "integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==", - "dependencies": { - "@vue/compiler-core": "3.5.13", - "@vue/shared": "3.5.13" - } - }, - "node_modules/@vue/compiler-sfc": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz", - "integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==", - "dependencies": { - "@babel/parser": "^7.25.3", - "@vue/compiler-core": "3.5.13", - "@vue/compiler-dom": "3.5.13", - "@vue/compiler-ssr": "3.5.13", - "@vue/shared": "3.5.13", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.11", - "postcss": "^8.4.48", - "source-map-js": "^1.2.0" - } - }, - "node_modules/@vue/compiler-ssr": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz", - "integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==", - "dependencies": { - "@vue/compiler-dom": "3.5.13", - "@vue/shared": "3.5.13" - } - }, - "node_modules/@vue/compiler-vue2": { - "version": "2.7.16", - "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", - "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", - "dev": true, - "dependencies": { - "de-indent": "^1.0.2", - "he": "^1.2.0" - } - }, - "node_modules/@vue/eslint-config-prettier": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", - "integrity": "sha512-z1ZIAAUS9pKzo/ANEfd2sO+v2IUalz7cM/cTLOZ7vRFOPk5/xuRKQteOu1DErFLAh/lYGXMVZ0IfYKlyInuDVg==", - "dev": true, - "dependencies": { - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0" - }, - "peerDependencies": { - "eslint": ">= 8.0.0", - "prettier": ">= 3.0.0" - } - }, - "node_modules/@vue/eslint-config-typescript": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-13.0.0.tgz", - "integrity": "sha512-MHh9SncG/sfqjVqjcuFLOLD6Ed4dRAis4HNt0dXASeAuLqIAx4YMB1/m2o4pUKK1vCt8fUvYG8KKX2Ot3BVZTg==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "^7.1.1", - "@typescript-eslint/parser": "^7.1.1", - "vue-eslint-parser": "^9.3.1" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "peerDependencies": { - "eslint": "^8.56.0", - "eslint-plugin-vue": "^9.0.0", - "typescript": ">=4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@vue/language-core": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.1.6.tgz", - "integrity": "sha512-MW569cSky9R/ooKMh6xa2g1D0AtRKbL56k83dzus/bx//RDJk24RHWkMzbAlXjMdDNyxAaagKPRquBIxkxlCkg==", - "dev": true, - "dependencies": { - "@volar/language-core": "~2.4.1", - "@vue/compiler-dom": "^3.4.0", - "@vue/compiler-vue2": "^2.7.16", - "@vue/shared": "^3.4.0", - "computeds": "^0.0.1", - "minimatch": "^9.0.3", - "muggle-string": "^0.4.1", - "path-browserify": "^1.0.1" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@vue/reactivity": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.13.tgz", - "integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==", - "dependencies": { - "@vue/shared": "3.5.13" - } - }, - "node_modules/@vue/runtime-core": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.13.tgz", - "integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==", - "dependencies": { - "@vue/reactivity": "3.5.13", - "@vue/shared": "3.5.13" - } - }, - "node_modules/@vue/runtime-dom": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz", - "integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==", - "dependencies": { - "@vue/reactivity": "3.5.13", - "@vue/runtime-core": "3.5.13", - "@vue/shared": "3.5.13", - "csstype": "^3.1.3" - } - }, - "node_modules/@vue/server-renderer": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.13.tgz", - "integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==", - "dependencies": { - "@vue/compiler-ssr": "3.5.13", - "@vue/shared": "3.5.13" - }, - "peerDependencies": { - "vue": "3.5.13" - } - }, - "node_modules/@vue/shared": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.13.tgz", - "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==" - }, - "node_modules/acorn": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.13.0.tgz", - "integrity": "sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", - "dev": true, - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", - "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", - "dev": true, - "dependencies": { - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/amator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/amator/-/amator-1.1.0.tgz", - "integrity": "sha512-V5+aH8pe+Z3u/UG3L3pG3BaFQGXAyXHVQDroRwjPHdh08bcUEchAVsU1MCuJSCaU5o60wTK6KaE6te5memzgYw==", - "dependencies": { - "bezier-easing": "^2.0.3" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", - "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/async": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.11", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz", - "integrity": "sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==", - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.2", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", - "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz", - "integrity": "sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/bezier-easing": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/bezier-easing/-/bezier-easing-2.1.0.tgz", - "integrity": "sha512-gbIqZ/eslnUFC1tjEvtz0sgx+xTK20wDnYMIA27VA04R7w6xxXQPZDbibjA9DTWZRA2CXtwHykkVzlCaAJAZig==" - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true, - "peer": true - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.0.tgz", - "integrity": "sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001663", - "electron-to-chromium": "^1.5.28", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001669", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001669.tgz", - "integrity": "sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", - "dev": true, - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/computeds": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/computeds/-/computeds-0.0.1.tgz", - "integrity": "sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/confbox": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" - }, - "node_modules/core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", - "hasInstallScript": true - }, - "node_modules/core-js-compat": { - "version": "3.38.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.38.1.tgz", - "integrity": "sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==", - "dependencies": { - "browserslist": "^4.23.3" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "peer": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssstyle": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.1.0.tgz", - "integrity": "sha512-h66W1URKpBS5YMI/V8PyXvTMFT8SupJ1IzoIV8IeBC/ji8WVmrO8dGlTi+2dh6whmdk6BiKJLD/ZBkhWbcg6nA==", - "dev": true, - "dependencies": { - "rrweb-cssom": "^0.7.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" - }, - "node_modules/data-urls": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", - "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==", - "dev": true, - "dependencies": { - "whatwg-mimetype": "^4.0.0", - "whatwg-url": "^14.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/de-indent": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", - "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", - "dev": true - }, - "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, - "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", - "dev": true, - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/earcut": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz", - "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==", - "peer": true - }, - "node_modules/ejs": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", - "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.41", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.41.tgz", - "integrity": "sha512-dfdv/2xNjX0P8Vzme4cfzHqnPm5xsZXwsolTYr0eyW18IUmNyG08vL+fttvinTfhKfIKdRoqkDIC9e9iWQCNYQ==" - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", - "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", - "dependencies": { - "get-intrinsic": "^1.2.4", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", - "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-vue": { - "version": "9.29.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.29.0.tgz", - "integrity": "sha512-hamyjrBhNH6Li6R1h1VF9KHfshJlKgKEg3ARbGTn72CMNDSMhWbgC7NdkRDEh25AFW+4SDATzyNM+3gWuZii8g==", - "dev": true, - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "globals": "^13.24.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.1.1", - "postcss-selector-parser": "^6.0.15", - "semver": "^7.6.3", - "vue-eslint-parser": "^9.4.3", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" - } - }, - "node_modules/eslint-plugin-vue/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-plugin-vue/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", - "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", - "peer": true - }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fast-uri": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", - "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==" - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "dependencies": { - "minimatch": "^5.0.1" - } - }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/form-data": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", - "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fs-extra/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", - "dependencies": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz", - "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^3.1.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/html-tags": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz", - "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "dev": true, - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/https-proxy-agent": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", - "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", - "dev": true, - "dependencies": { - "agent-base": "^7.0.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/idb": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", - "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", - "dependencies": { - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jake": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", - "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", - "dependencies": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.4", - "minimatch": "^3.1.2" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jake/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jake/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/jake/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jake/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jake/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jake/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jake/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/jake/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsdom": { - "version": "24.1.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-24.1.3.tgz", - "integrity": "sha512-MyL55p3Ut3cXbeBEG7Hcv0mVM8pp8PBNWxRqchZnSfAiES1v1mRnMeFfaHWIPULpwsYfvO+ZmMZz5tGCnjzDUQ==", - "dev": true, - "dependencies": { - "cssstyle": "^4.0.1", - "data-urls": "^5.0.0", - "decimal.js": "^10.4.3", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^4.0.0", - "http-proxy-agent": "^7.0.2", - "https-proxy-agent": "^7.0.5", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.12", - "parse5": "^7.1.2", - "rrweb-cssom": "^0.7.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.4", - "w3c-xmlserializer": "^5.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^3.1.1", - "whatwg-mimetype": "^4.0.0", - "whatwg-url": "^14.0.0", - "ws": "^8.18.0", - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "canvas": "^2.11.2" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/xml-name-validator": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", - "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", - "dev": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonfile/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/local-pkg": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", - "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", - "dev": true, - "dependencies": { - "mlly": "^1.4.2", - "pkg-types": "^1.0.3" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" - }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", - "bin": { - "lz-string": "bin/bin.js" - } - }, - "node_modules/magic-string": { - "version": "0.30.12", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz", - "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mlly": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.2.tgz", - "integrity": "sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==", - "dev": true, - "dependencies": { - "acorn": "^8.12.1", - "pathe": "^1.1.2", - "pkg-types": "^1.2.0", - "ufo": "^1.5.4" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/muggle-string": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", - "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", - "dev": true - }, - "node_modules/nanoevents": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/nanoevents/-/nanoevents-9.1.0.tgz", - "integrity": "sha512-Jd0fILWG44a9luj8v5kED4WI+zfkkgwKyRQKItTtlPfEsh7Lznfi1kr8/iZ+XAIss4Qq5GqRB0qtWbaz9ceO/A==", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/ngraph.events": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/ngraph.events/-/ngraph.events-1.2.2.tgz", - "integrity": "sha512-JsUbEOzANskax+WSYiAPETemLWYXmixuPAlmZmhIbIj6FH/WDgEGCGnRwUQBK0GjOnVm8Ui+e5IJ+5VZ4e32eQ==" - }, - "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==" - }, - "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "dev": true, - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dev": true, - "peer": true, - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/nwsapi": { - "version": "2.2.13", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.13.tgz", - "integrity": "sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==", - "dev": true - }, - "node_modules/object-inspect": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", - "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/panzoom": { - "version": "9.4.3", - "resolved": "https://registry.npmjs.org/panzoom/-/panzoom-9.4.3.tgz", - "integrity": "sha512-xaxCpElcRbQsUtIdwlrZA90P90+BHip4Vda2BC8MEb4tkI05PmR6cKECdqUCZ85ZvBHjpI9htJrZBxV5Gp/q/w==", - "dependencies": { - "amator": "^1.1.0", - "ngraph.events": "^1.2.2", - "wheel": "^1.0.0" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse5": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.0.tgz", - "integrity": "sha512-ZkDsAOcxsUMZ4Lz5fVciOehNcJ+Gb8gTzcA4yl3wnc273BAybYWrQ+Ks/OjCjSEpjvQkDSeZbybK9qj2VHHdGA==", - "dev": true, - "dependencies": { - "entities": "^4.5.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", - "dev": true - }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkg-types": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.1.tgz", - "integrity": "sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==", - "dev": true, - "dependencies": { - "confbox": "^0.1.8", - "mlly": "^1.7.2", - "pathe": "^1.1.2" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss": { - "version": "8.4.49", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", - "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", - "dev": true, - "peer": true, - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", - "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pretty-bytes": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz", - "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==", - "engines": { - "node": "^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "peer": true, - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", - "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", - "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpu-core": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.1.1.tgz", - "integrity": "sha512-k67Nb9jvwJcJmVpw0jPttR1/zVfnKf8Km0IPatrU/zJ5XeG3+Slx0xLXs9HByJSzXzrlz5EDvN6yLNMDc2qdnw==", - "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.0", - "regjsgen": "^0.8.0", - "regjsparser": "^0.11.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==" - }, - "node_modules/regjsparser": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.11.1.tgz", - "integrity": "sha512-1DHODs4B8p/mQHU9kr+jv8+wIC9mtG4eBHxWxIq5mhjE3D5oORhCc6deRKzTjs9DcfRFmj9BHSDguZklqCGFWQ==", - "dependencies": { - "jsesc": "~3.0.2" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz", - "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==", - "dependencies": { - "@types/estree": "1.0.6" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.24.0", - "@rollup/rollup-android-arm64": "4.24.0", - "@rollup/rollup-darwin-arm64": "4.24.0", - "@rollup/rollup-darwin-x64": "4.24.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.24.0", - "@rollup/rollup-linux-arm-musleabihf": "4.24.0", - "@rollup/rollup-linux-arm64-gnu": "4.24.0", - "@rollup/rollup-linux-arm64-musl": "4.24.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0", - "@rollup/rollup-linux-riscv64-gnu": "4.24.0", - "@rollup/rollup-linux-s390x-gnu": "4.24.0", - "@rollup/rollup-linux-x64-gnu": "4.24.0", - "@rollup/rollup-linux-x64-musl": "4.24.0", - "@rollup/rollup-win32-arm64-msvc": "4.24.0", - "@rollup/rollup-win32-ia32-msvc": "4.24.0", - "@rollup/rollup-win32-x64-msvc": "4.24.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/rrweb-cssom": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz", - "integrity": "sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==", - "dev": true - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" - } - }, - "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/smob": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/smob/-/smob-1.5.0.tgz", - "integrity": "sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==" - }, - "node_modules/sortablejs": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.14.0.tgz", - "integrity": "sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==" - }, - "node_modules/source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "dependencies": { - "whatwg-url": "^7.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map/node_modules/tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/source-map/node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "node_modules/source-map/node_modules/whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "deprecated": "Please use @jridgewell/sourcemap-codec instead" - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true - }, - "node_modules/std-env": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", - "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", - "dev": true - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", - "integrity": "sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.7", - "regexp.prototype.flags": "^1.5.2", - "set-function-name": "^2.0.2", - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dependencies": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", - "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-literal": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.0.tgz", - "integrity": "sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==", - "dev": true, - "dependencies": { - "js-tokens": "^9.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/strip-literal/node_modules/js-tokens": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.0.tgz", - "integrity": "sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==", - "dev": true - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svg-tags": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", - "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==" - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/synckit": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz", - "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==", - "dev": true, - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, - "node_modules/temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tempy": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", - "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", - "dependencies": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.16.0", - "unique-string": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/tempy/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/terser": { - "version": "5.36.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz", - "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true - }, - "node_modules/tinyglobby": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.9.tgz", - "integrity": "sha512-8or1+BGEdk1Zkkw2ii16qSS7uVrQJPre5A9o/XkWPATkk23FZh/15BKFxPnlTy6vkljZxLqYCzzBMj30ZrSvjw==", - "dependencies": { - "fdir": "^6.4.0", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", - "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/tinypool": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz", - "integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", - "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tough-cookie": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", - "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz", - "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==", - "dev": true, - "dependencies": { - "punycode": "^2.3.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/ts-api-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", - "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "dev": true, - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "typescript": ">=4.2.0" - } - }, - "node_modules/tsconfck": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.4.tgz", - "integrity": "sha512-kdqWFGVJqe+KGYvlSO9NIaWn9jT1Ny4oKVzAJsKii5eoE9snzTJzL4+MMVOMn+fikWGFmKEylcXL710V/kIPJQ==", - "bin": { - "tsconfck": "bin/tsconfck.js" - }, - "engines": { - "node": "^18 || >=20" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/tslib": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", - "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", - "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", - "devOptional": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/ufo": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", - "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==", - "dev": true - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "devOptional": true - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", - "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", - "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/unofficial-galaxy-sdk": { - "version": "1.0.0", - "resolved": "git+https://code.incremental.social/thepaperpilot/unofficial-galaxy-sdk.git#e16fb553ae8a5aa0019b749c603faeba93de35cb" - }, - "node_modules/upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", - "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", - "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", - "peer": true, - "dependencies": { - "punycode": "^1.4.1", - "qs": "^6.12.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", - "peer": true - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "peer": true - }, - "node_modules/vite": { - "version": "5.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.9.tgz", - "integrity": "sha512-20OVpJHh0PAM0oSOELa5GaZNWeDjcAvQjGXy2Uyr+Tp+/D2/Hdz6NLgpJLsarPTA2QJ6v8mX2P1ZfbsSKvdMkg==", - "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.0.tgz", - "integrity": "sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==", - "dev": true, - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.3.4", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "vite": "^5.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vite-plugin-pwa": { - "version": "0.20.5", - "resolved": "https://registry.npmjs.org/vite-plugin-pwa/-/vite-plugin-pwa-0.20.5.tgz", - "integrity": "sha512-aweuI/6G6n4C5Inn0vwHumElU/UEpNuO+9iZzwPZGTCH87TeZ6YFMrEY6ZUBQdIHHlhTsbMDryFARcSuOdsz9Q==", - "dependencies": { - "debug": "^4.3.6", - "pretty-bytes": "^6.1.1", - "tinyglobby": "^0.2.0", - "workbox-build": "^7.1.0", - "workbox-window": "^7.1.0" - }, - "engines": { - "node": ">=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vite-pwa/assets-generator": "^0.2.6", - "vite": "^3.1.0 || ^4.0.0 || ^5.0.0", - "workbox-build": "^7.1.0", - "workbox-window": "^7.1.0" - }, - "peerDependenciesMeta": { - "@vite-pwa/assets-generator": { - "optional": true - } - } - }, - "node_modules/vite-tsconfig-paths": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.3.2.tgz", - "integrity": "sha512-0Vd/a6po6Q+86rPlntHye7F31zA2URZMbH8M3saAZ/xR9QoGN/L21bxEGfXdWmFdNkqPpRdxFT7nmNe12e9/uA==", - "dependencies": { - "debug": "^4.1.1", - "globrex": "^0.1.2", - "tsconfck": "^3.0.3" - }, - "peerDependencies": { - "vite": "*" - }, - "peerDependenciesMeta": { - "vite": { - "optional": true - } - } - }, - "node_modules/vitest": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.0.tgz", - "integrity": "sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==", - "dev": true, - "dependencies": { - "@vitest/expect": "1.6.0", - "@vitest/runner": "1.6.0", - "@vitest/snapshot": "1.6.0", - "@vitest/spy": "1.6.0", - "@vitest/utils": "1.6.0", - "acorn-walk": "^8.3.2", - "chai": "^4.3.10", - "debug": "^4.3.4", - "execa": "^8.0.1", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "std-env": "^3.5.0", - "strip-literal": "^2.0.0", - "tinybench": "^2.5.1", - "tinypool": "^0.8.3", - "vite": "^5.0.0", - "vite-node": "1.6.0", - "why-is-node-running": "^2.2.2" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.6.0", - "@vitest/ui": "1.6.0", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/vscode-uri": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", - "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", - "dev": true - }, - "node_modules/vue": { - "version": "3.5.13", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.13.tgz", - "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", - "dependencies": { - "@vue/compiler-dom": "3.5.13", - "@vue/compiler-sfc": "3.5.13", - "@vue/runtime-dom": "3.5.13", - "@vue/server-renderer": "3.5.13", - "@vue/shared": "3.5.13" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/vue-eslint-parser": { - "version": "9.4.3", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", - "integrity": "sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==", - "dev": true, - "dependencies": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, - "node_modules/vue-next-select": { - "version": "2.10.5", - "resolved": "https://registry.npmjs.org/vue-next-select/-/vue-next-select-2.10.5.tgz", - "integrity": "sha512-O77bdbp2wj/Dkpd8XFv21EYXI8UtqgTxnKBsycCd2pUe4SAxKsT1h3MT+b7tuyGQV5udMpBYaUE445Z1VdHyUw==", - "engines": { - "node": "^14 || ^16 || >=18" - }, - "peerDependencies": { - "vue": "^3.2.0" - } - }, - "node_modules/vue-panzoom": { - "version": "1.1.6", - "resolved": "git+ssh://git@github.com/thepaperpilot/vue-panzoom.git#fa3cc91f6842cdfbd1bfb433c75cac01f177fe2d", - "dependencies": { - "panzoom": "^9.4.1" - } - }, - "node_modules/vue-textarea-autosize": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/vue-textarea-autosize/-/vue-textarea-autosize-1.1.1.tgz", - "integrity": "sha512-B33Mg5ZDEfj/whhoPBLg25qqAdGHGM2NjDT99Qi5MXRyeLmXb4C3s6EprAHqy3nU0cooWXFU+IekI5DpoEbnFg==", - "dependencies": { - "core-js": "^2.6.5" - } - }, - "node_modules/vue-toastification": { - "version": "2.0.0-rc.5", - "resolved": "https://registry.npmjs.org/vue-toastification/-/vue-toastification-2.0.0-rc.5.tgz", - "integrity": "sha512-q73e5jy6gucEO/U+P48hqX+/qyXDozAGmaGgLFm5tXX4wJBcVsnGp4e/iJqlm9xzHETYOilUuwOUje2Qg1JdwA==", - "peerDependencies": { - "vue": "^3.0.2" - } - }, - "node_modules/vue-tsc": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-2.1.6.tgz", - "integrity": "sha512-f98dyZp5FOukcYmbFpuSCJ4Z0vHSOSmxGttZJCsFeX0M4w/Rsq0s4uKXjcSRsZqsRgQa6z7SfuO+y0HVICE57Q==", - "dev": true, - "dependencies": { - "@volar/typescript": "~2.4.1", - "@vue/language-core": "2.1.6", - "semver": "^7.5.4" - }, - "bin": { - "vue-tsc": "bin/vue-tsc.js" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - } - }, - "node_modules/vuedraggable": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-4.1.0.tgz", - "integrity": "sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==", - "dependencies": { - "sortablejs": "1.14.0" - }, - "peerDependencies": { - "vue": "^3.0.1" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", - "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/w3c-xmlserializer/node_modules/xml-name-validator": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", - "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", - "dev": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-encoding": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", - "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", - "dev": true, - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/whatwg-mimetype": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", - "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", - "dev": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/whatwg-url": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.0.0.tgz", - "integrity": "sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==", - "dev": true, - "dependencies": { - "tr46": "^5.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/wheel": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wheel/-/wheel-1.0.0.tgz", - "integrity": "sha512-XiCMHibOiqalCQ+BaNSwRoZ9FDTAvOsXxGHXChBugewDj7HC8VBIER71dEOiRH1fSdLbRCQzngKTSiZ06ZQzeA==" - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/workbox-background-sync": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-7.1.0.tgz", - "integrity": "sha512-rMbgrzueVWDFcEq1610YyDW71z0oAXLfdRHRQcKw4SGihkfOK0JUEvqWHFwA6rJ+6TClnMIn7KQI5PNN1XQXwQ==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-broadcast-update": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-7.1.0.tgz", - "integrity": "sha512-O36hIfhjej/c5ar95pO67k1GQw0/bw5tKP7CERNgK+JdxBANQhDmIuOXZTNvwb2IHBx9hj2kxvcDyRIh5nzOgQ==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-build": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-7.1.1.tgz", - "integrity": "sha512-WdkVdC70VMpf5NBCtNbiwdSZeKVuhTEd5PV3mAwpTQCGAB5XbOny1P9egEgNdetv4srAMmMKjvBk4RD58LpooA==", - "dependencies": { - "@apideck/better-ajv-errors": "^0.3.1", - "@babel/core": "^7.24.4", - "@babel/preset-env": "^7.11.0", - "@babel/runtime": "^7.11.2", - "@rollup/plugin-babel": "^5.2.0", - "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-replace": "^2.4.1", - "@rollup/plugin-terser": "^0.4.3", - "@surma/rollup-plugin-off-main-thread": "^2.2.3", - "ajv": "^8.6.0", - "common-tags": "^1.8.0", - "fast-json-stable-stringify": "^2.1.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "lodash": "^4.17.20", - "pretty-bytes": "^5.3.0", - "rollup": "^2.43.1", - "source-map": "^0.8.0-beta.0", - "stringify-object": "^3.3.0", - "strip-comments": "^2.0.1", - "tempy": "^0.6.0", - "upath": "^1.2.0", - "workbox-background-sync": "7.1.0", - "workbox-broadcast-update": "7.1.0", - "workbox-cacheable-response": "7.1.0", - "workbox-core": "7.1.0", - "workbox-expiration": "7.1.0", - "workbox-google-analytics": "7.1.0", - "workbox-navigation-preload": "7.1.0", - "workbox-precaching": "7.1.0", - "workbox-range-requests": "7.1.0", - "workbox-recipes": "7.1.0", - "workbox-routing": "7.1.0", - "workbox-strategies": "7.1.0", - "workbox-streams": "7.1.0", - "workbox-sw": "7.1.0", - "workbox-window": "7.1.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", - "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", - "dependencies": { - "json-schema": "^0.4.0", - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "ajv": ">=8" - } - }, - "node_modules/workbox-build/node_modules/@rollup/plugin-babel": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", - "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", - "dependencies": { - "@babel/helper-module-imports": "^7.10.4", - "@rollup/pluginutils": "^3.1.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "@types/babel__core": "^7.1.9", - "rollup": "^1.20.0||^2.0.0" - }, - "peerDependenciesMeta": { - "@types/babel__core": { - "optional": true - } - } - }, - "node_modules/workbox-build/node_modules/@rollup/plugin-replace": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", - "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "magic-string": "^0.25.7" - }, - "peerDependencies": { - "rollup": "^1.20.0 || ^2.0.0" - } - }, - "node_modules/workbox-build/node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/workbox-build/node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" - }, - "node_modules/workbox-build/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/workbox-build/node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" - }, - "node_modules/workbox-build/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/workbox-build/node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, - "node_modules/workbox-build/node_modules/pretty-bytes": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", - "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/workbox-build/node_modules/rollup": { - "version": "2.79.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", - "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/workbox-cacheable-response": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-7.1.0.tgz", - "integrity": "sha512-iwsLBll8Hvua3xCuBB9h92+/e0wdsmSVgR2ZlvcfjepZWwhd3osumQB3x9o7flj+FehtWM2VHbZn8UJeBXXo6Q==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-core": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-7.1.0.tgz", - "integrity": "sha512-5KB4KOY8rtL31nEF7BfvU7FMzKT4B5TkbYa2tzkS+Peqj0gayMT9SytSFtNzlrvMaWgv6y/yvP9C0IbpFjV30Q==" - }, - "node_modules/workbox-expiration": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-7.1.0.tgz", - "integrity": "sha512-m5DcMY+A63rJlPTbbBNtpJ20i3enkyOtSgYfv/l8h+D6YbbNiA0zKEkCUaMsdDlxggla1oOfRkyqTvl5Ni5KQQ==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-google-analytics": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-7.1.0.tgz", - "integrity": "sha512-FvE53kBQHfVTcZyczeBVRexhh7JTkyQ8HAvbVY6mXd2n2A7Oyz/9fIwnY406ZcDhvE4NFfKGjW56N4gBiqkrew==", - "dependencies": { - "workbox-background-sync": "7.1.0", - "workbox-core": "7.1.0", - "workbox-routing": "7.1.0", - "workbox-strategies": "7.1.0" - } - }, - "node_modules/workbox-navigation-preload": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-7.1.0.tgz", - "integrity": "sha512-4wyAbo0vNI/X0uWNJhCMKxnPanNyhybsReMGN9QUpaePLTiDpKxPqFxl4oUmBNddPwIXug01eTSLVIFXimRG/A==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-precaching": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-7.1.0.tgz", - "integrity": "sha512-LyxzQts+UEpgtmfnolo0hHdNjoB7EoRWcF7EDslt+lQGd0lW4iTvvSe3v5JiIckQSB5KTW5xiCqjFviRKPj1zA==", - "dependencies": { - "workbox-core": "7.1.0", - "workbox-routing": "7.1.0", - "workbox-strategies": "7.1.0" - } - }, - "node_modules/workbox-range-requests": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-7.1.0.tgz", - "integrity": "sha512-m7+O4EHolNs5yb/79CrnwPR/g/PRzMFYEdo01LqwixVnc/sbzNSvKz0d04OE3aMRel1CwAAZQheRsqGDwATgPQ==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-recipes": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-7.1.0.tgz", - "integrity": "sha512-NRrk4ycFN9BHXJB6WrKiRX3W3w75YNrNrzSX9cEZgFB5ubeGoO8s/SDmOYVrFYp9HMw6sh1Pm3eAY/1gVS8YLg==", - "dependencies": { - "workbox-cacheable-response": "7.1.0", - "workbox-core": "7.1.0", - "workbox-expiration": "7.1.0", - "workbox-precaching": "7.1.0", - "workbox-routing": "7.1.0", - "workbox-strategies": "7.1.0" - } - }, - "node_modules/workbox-routing": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-7.1.0.tgz", - "integrity": "sha512-oOYk+kLriUY2QyHkIilxUlVcFqwduLJB7oRZIENbqPGeBP/3TWHYNNdmGNhz1dvKuw7aqvJ7CQxn27/jprlTdg==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-strategies": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-7.1.0.tgz", - "integrity": "sha512-/UracPiGhUNehGjRm/tLUQ+9PtWmCbRufWtV0tNrALuf+HZ4F7cmObSEK+E4/Bx1p8Syx2tM+pkIrvtyetdlew==", - "dependencies": { - "workbox-core": "7.1.0" - } - }, - "node_modules/workbox-streams": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-7.1.0.tgz", - "integrity": "sha512-WyHAVxRXBMfysM8ORwiZnI98wvGWTVAq/lOyBjf00pXFvG0mNaVz4Ji+u+fKa/mf1i2SnTfikoYKto4ihHeS6w==", - "dependencies": { - "workbox-core": "7.1.0", - "workbox-routing": "7.1.0" - } - }, - "node_modules/workbox-sw": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-7.1.0.tgz", - "integrity": "sha512-Hml/9+/njUXBglv3dtZ9WBKHI235AQJyLBV1G7EFmh4/mUdSQuXui80RtjDeVRrXnm/6QWgRUEHG3/YBVbxtsA==" - }, - "node_modules/workbox-window": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-7.1.0.tgz", - "integrity": "sha512-ZHeROyqR+AS5UPzholQRDttLFqGMwP0Np8MKWAdyxsDETxq3qOAyXvqessc3GniohG6e0mAqSQyKOHmT8zPF7g==", - "dependencies": { - "@types/trusted-types": "^2.0.2", - "workbox-core": "7.1.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index e7e4cb8..0000000 --- a/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "profectus", - "version": "0.7.0", - "private": true, - "type": "module", - "scripts": { - "start": "vite", - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "preview": "vite preview", - "test": "vitest run", - "testw": "vitest", - "serve": "vite preview --host", - "lint": "eslint src --max-warnings 0", - "lint:fix": "eslint --fix --max-warnings 0 src" - }, - "dependencies": { - "@fontsource/material-icons": "^5.1.0", - "@fontsource/roboto-mono": "^5.1.0", - "@pixi/app": "^6.5.10", - "@pixi/constants": "~6.5.10", - "@pixi/core": "^6.5.10", - "@pixi/display": "~6.5.10", - "@pixi/math": "~6.5.10", - "@pixi/particle-emitter": "^5.0.7", - "@pixi/sprite": "~6.5.10", - "@pixi/ticker": "~6.5.10", - "@vitejs/plugin-vue": "^5.1.4", - "@vitejs/plugin-vue-jsx": "^4.0.1", - "is-plain-object": "^5.0.0", - "lz-string": "^1.5.0", - "nanoevents": "^9.0.0", - "unofficial-galaxy-sdk": "git+https://code.incremental.social/thepaperpilot/unofficial-galaxy-sdk.git#1.0.1", - "vite": "^5.1.8", - "vite-plugin-pwa": "^0.20.5", - "vite-tsconfig-paths": "^4.3.0", - "vue": "^3.5.13", - "vue-next-select": "^2.10.5", - "vue-panzoom": "https://github.com/thepaperpilot/vue-panzoom.git", - "vue-textarea-autosize": "^1.1.1", - "vue-toastification": "^2.0.0-rc.5", - "vuedraggable": "^4.1.0" - }, - "devDependencies": { - "@ivanv/vue-collapse-transition": "^1.0.2", - "@rushstack/eslint-patch": "^1.7.2", - "@types/lz-string": "^1.5.0", - "@types/node": "^22.7.6", - "@typescript-eslint/parser": "^7.2.0", - "@vue/eslint-config-prettier": "^9.0.0", - "@vue/eslint-config-typescript": "^13.0.0", - "eslint": "^8.57.0", - "jsdom": "^24.0.0", - "prettier": "^3.2.5", - "typescript": "~5.5.4", - "vitest": "^1.4.0", - "vue-tsc": "^2.0.6" - }, - "optionalDependencies": { - "@rollup/rollup-linux-x64-gnu": "^4.24.0" - }, - "engines": { - "node": "21.x" - } -} diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index afa6845..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,24 +0,0 @@ -<svg width="656" height="649" viewBox="0 0 656 649" fill="none" xmlns="http://www.w3.org/2000/svg"> -<g filter="url(#filter0_d_65_3)"> -<rect x="26" y="21" width="600" height="600" rx="30" fill="#2E3440"/> -</g> -<path d="M313 572.877C295.453 567.525 262.205 562.614 233 572.877C243.737 355.447 238.724 271.878 233 107.877C233 107.877 279.614 70.7611 313 65.8775C346.386 60.9938 399.025 76.3369 433 115.877C438 145.877 428.647 222.534 389 271.878C354.851 314.378 259 310.358 259 364.877C259 466.877 313 572.877 313 572.877Z" stroke="#A3BE8C" stroke-width="10" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M433 115.878C421.023 186.453 397.39 226.835 370.997 251.5C305.783 312.444 223.719 277.436 259 364.877" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M406.5 248C395.275 252.447 387.434 253.134 370.997 251.5" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M285.5 306.5C323.145 305.626 339.011 298.775 368.5 288" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M433 115.877C381.5 77.8262 298.094 104.947 259 167C254.257 174.528 251.896 182.373 250.674 191C247.146 215.91 253.117 247.34 238.673 296.5" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M233 107.878L250.674 191" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<path d="M215 386.5C228.178 408.708 231.486 429.334 236.7 467.5" stroke="#A3BE8C" stroke-width="5" stroke-miterlimit="16" stroke-linecap="round"/> -<defs> -<filter id="filter0_d_65_3" x="22" y="21" width="608" height="608" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> -<feFlood flood-opacity="0" result="BackgroundImageFix"/> -<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/> -<feOffset dy="4"/> -<feGaussianBlur stdDeviation="2"/> -<feComposite in2="hardAlpha" operator="out"/> -<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/> -<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_65_3"/> -<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_65_3" result="shape"/> -</filter> -</defs> -</svg> diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index c2a49f4..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Allow: / diff --git a/replit.nix b/replit.nix deleted file mode 100644 index 1b59d2e..0000000 --- a/replit.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ pkgs }: { - deps = [ - pkgs.nodejs-16_x - pkgs.nodePackages.typescript-language-server - pkgs.nodePackages.npm - ]; -} diff --git a/saves/.placehold b/saves/.placehold deleted file mode 100644 index e69de29..0000000 diff --git a/site.webmanifest b/site.webmanifest new file mode 100644 index 0000000..87d8130 --- /dev/null +++ b/site.webmanifest @@ -0,0 +1 @@ +{"name":"Profectus","short_name":"Profectus","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#2E3440","background_color":"#2E3440","display":"standalone"} \ No newline at end of file diff --git a/src/App.vue b/src/App.vue deleted file mode 100644 index 2605d13..0000000 --- a/src/App.vue +++ /dev/null @@ -1,74 +0,0 @@ -<template> - <div v-if="appErrors.length > 0" class="error-container" :style="theme"> - <Error :errors="appErrors" /> - </div> - <template v-else> - <div id="modal-root" :style="theme" /> - <div class="app" :style="theme" :class="{ useHeader }"> - <Nav v-if="useHeader" /> - <Game /> - <TPS v-if="unref(showTPS)" /> - <AddictionWarning /> - <GameOverScreen /> - <NaNScreen /> - <CloudSaveResolver /> - <GameComponent /> - </div> - </template> -</template> - -<script setup lang="tsx"> -import "@fontsource/roboto-mono"; -import Error from "components/Error.vue"; -import AddictionWarning from "components/modals/AddictionWarning.vue"; -import CloudSaveResolver from "components/modals/CloudSaveResolver.vue"; -import GameOverScreen from "components/modals/GameOverScreen.vue"; -import NaNScreen from "components/modals/NaNScreen.vue"; -import state from "game/state"; -import { render } from "util/vue"; -import type { CSSProperties } from "vue"; -import { computed, toRef, unref } from "vue"; -import Game from "./components/Game.vue"; -import Nav from "./components/Nav.vue"; -import TPS from "./components/TPS.vue"; -import projInfo from "./data/projInfo.json"; -import themes from "./data/themes"; -import settings, { gameComponents } from "./game/settings"; -import "./main.css"; - -const useHeader = projInfo.useHeader; -const theme = computed(() => themes[settings.theme].variables as CSSProperties); -const showTPS = toRef(settings, "showTPS"); -const appErrors = toRef(state, "errors"); - -const GameComponent = () => gameComponents.map(c => render(c)); -</script> - -<style scoped> -.app { - background-color: var(--background); - color: var(--foreground); - display: flex; - flex-flow: column; - min-height: 100%; - height: 100%; -} - -#modal-root { - position: absolute; - min-height: 100%; - height: 100%; - color: var(--foreground); -} - -.error-container { - background: var(--background); - overflow: auto; - width: 100%; - height: 100%; -} - -.error-container > .error { - position: static; -} -</style> diff --git a/src/components/Context.vue b/src/components/Context.vue deleted file mode 100644 index 33cbf2b..0000000 --- a/src/components/Context.vue +++ /dev/null @@ -1,89 +0,0 @@ -<template> - <slot /> - <div ref="resizeListener" class="resize-listener" /> -</template> - -<script setup lang="ts"> -import { - RegisterNodeInjectionKey, - UnregisterNodeInjectionKey, - NodesInjectionKey, - BoundsInjectionKey -} from "game/layers"; -import type { FeatureNode } from "game/layers"; -import { nextTick, onMounted, provide, ref } from "vue"; -import { globalBus } from "game/events"; - -const emit = defineEmits<{ - (e: "updateNodes", nodes: Record<string, FeatureNode | undefined>): void; -}>(); - -const nodes = ref<Record<string, FeatureNode | undefined>>({}); - -const resizeObserver = new ResizeObserver(updateBounds); -const resizeListener = ref<Element | null>(null); -onMounted(() => { - // ResizeListener exists because ResizeObserver's don't work when told to observe an SVG element - const resListener = resizeListener.value; - if (resListener != null) { - resizeObserver.observe(resListener); - } -}); -let isDirty = true; -let boundingRect = ref(resizeListener.value?.getBoundingClientRect()); -function updateBounds() { - if (isDirty) { - isDirty = false; - nextTick(() => { - boundingRect.value = resizeListener.value?.getBoundingClientRect(); - (Object.values(nodes.value) as FeatureNode[]) - .filter(n => n) // Sometimes the values become undefined - .forEach(node => (node.rect = node.element.getBoundingClientRect())); - emit("updateNodes", nodes.value); - isDirty = true; - }); - } -} -globalBus.on("fontsLoaded", updateBounds); - -const observerOptions = { - attributes: false, - childList: true, - subtree: false -}; - -provide(RegisterNodeInjectionKey, (id, element) => { - const observer = new MutationObserver(() => updateNode(id)); - observer.observe(element, observerOptions); - nodes.value[id] = { element, observer, rect: element.getBoundingClientRect() }; - updateBounds(); -}); -provide(UnregisterNodeInjectionKey, id => { - nodes.value[id]?.observer.disconnect(); - nodes.value[id] = undefined; - updateBounds(); -}); -provide(NodesInjectionKey, nodes); -provide(BoundsInjectionKey, boundingRect); - -function updateNode(id: string) { - const node = nodes.value[id]; - if (node == null) { - return; - } - node.rect = node.element.getBoundingClientRect(); - emit("updateNodes", nodes.value); -} -</script> - -<style scoped> -.resize-listener { - position: absolute; - top: 0px; - left: 0; - right: -4px; - bottom: 5px; - z-index: -10; - pointer-events: none; -} -</style> diff --git a/src/components/Error.vue b/src/components/Error.vue deleted file mode 100644 index 16c9b6b..0000000 --- a/src/components/Error.vue +++ /dev/null @@ -1,135 +0,0 @@ -<template> - <div class="error"> - <h1 class="error-title">{{ firstError.name }}: {{ firstError.message }}</h1> - <div class="error-details" style="margin-top: -10px"> - <div v-if="firstError.cause"> - <div v-for="row in causes[0]" :key="row">{{ row }}</div> - </div> - <div v-if="firstError.stack" :style="firstError.cause ? 'margin-top: 10px' : ''"> - <div v-for="row in stacks[0]" :key="row">{{ row }}</div> - </div> - </div> - <div class="instructions"> - Check the console for more details, and consider sharing it with the developers on - <a :href="projInfo.discordLink || 'https://discord.gg/yJ4fjnjU54'" class="discord-link" - >discord</a - >! - <FeedbackButton @click="exportSave" class="button" style="display: inline-flex" - ><span class="material-icons" style="font-size: 16px">content_paste</span - ><span style="margin-left: 8px; font-size: medium">Copy Save</span></FeedbackButton - ><br /> - <div v-if="errors.length > 1" style="margin-top: 20px"><h3>Other errors</h3></div> - <div v-for="(error, i) in errors.slice(1)" :key="i" style="margin-top: 20px"> - <details class="error-details"> - <summary>{{ error.name }}: {{ error.message }}</summary> - <div v-if="error.cause" style="margin-top: 10px"> - <div v-for="row in causes[i + 1]" :key="row">{{ row }}</div> - </div> - <div v-if="error.stack" style="margin-top: 10px"> - <div v-for="row in stacks[i + 1]" :key="row">{{ row }}</div> - </div> - </details> - </div> - </div> - </div> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import player, { stringifySave } from "game/player"; -import LZString from "lz-string"; -import { computed, onMounted } from "vue"; -import FeedbackButton from "./fields/FeedbackButton.vue"; - -const props = defineProps<{ - errors: Error[]; -}>(); - -const firstError = computed(() => props.errors[0]); -const stacks = computed(() => - props.errors.map(error => (error.stack == null ? [] : error.stack.split("\n"))) -); -const causes = computed(() => - props.errors.map(error => - error.cause == null - ? [] - : (typeof error.cause === "string" ? error.cause : JSON.stringify(error.cause)).split( - "\n" - ) - ) -); - -function exportSave() { - let saveToExport = stringifySave(player); - switch (projInfo.exportEncoding) { - default: - console.warn(`Unknown save encoding: ${projInfo.exportEncoding}. Defaulting to lz`); - case "lz": - saveToExport = LZString.compressToUTF16(saveToExport); - break; - case "base64": - saveToExport = btoa(unescape(encodeURIComponent(saveToExport))); - break; - case "plain": - break; - } - console.log(saveToExport); - - // Put on clipboard. Using the clipboard API asks for permissions and stuff - const el = document.createElement("textarea"); - el.value = saveToExport; - document.body.appendChild(el); - el.select(); - el.setSelectionRange(0, 99999); - document.execCommand("copy"); - document.body.removeChild(el); -} - -onMounted(() => { - player.autosave = false; - player.devSpeed = 0; -}); -</script> - -<style scoped> -.error { - border: solid 10px var(--danger); - position: absolute; - top: 0; - left: 0; - right: 0; - text-align: left; - min-height: calc(100% - 20px); - text-align: left; - color: var(--foreground); -} - -.error-title { - background: var(--danger); - color: var(--feature-foreground); - display: block; - margin: -10px 0 10px 0; - position: sticky; - top: 0; -} - -.error-details { - white-space: nowrap; - overflow: auto; - padding: 10px; - background-color: var(--raised-background); -} - -.instructions { - padding: 10px; -} - -.discord-link { - display: inline; -} - -summary { - cursor: pointer; - user-select: none; -} -</style> diff --git a/src/components/Game.vue b/src/components/Game.vue deleted file mode 100644 index 9cf16f6..0000000 --- a/src/components/Game.vue +++ /dev/null @@ -1,108 +0,0 @@ -<template> - <div class="tabs-container" :class="{ useHeader }"> - <div - v-for="(tab, index) in tabs" - :key="index" - class="tab" - :style="unref(layers[tab]?.style)" - :class="unref(layers[tab]?.classes)" - > - <Nav v-if="index === 0 && !useHeader" /> - <div class="inner-tab"> - <LayerVue - v-if="layerKeys.includes(tab)" - v-bind="gatherLayerProps(layers[tab])" - :index="index" - @set-minimized="(value: boolean) => (layers[tab]!.minimized.value = value)" - /> - <component :is="tab" :index="index" v-else /> - </div> - </div> - </div> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import { type Layer, layers } from "game/layers"; -import player from "game/player"; -import { computed, toRef, unref } from "vue"; -import LayerVue from "./Layer.vue"; -import Nav from "./Nav.vue"; - -const tabs = toRef(player, "tabs"); -const layerKeys = computed(() => Object.keys(layers)); -const useHeader = projInfo.useHeader; - -function gatherLayerProps(layer: Layer) { - const { - display, - name, - color, - minimizable, - minimizedDisplay, - minimized, - nodes, - forceHideGoBack - } = layer; - return { - display, - name, - color, - minimizable, - minimizedDisplay, - minimized, - nodes, - forceHideGoBack - }; -} -</script> - -<style scoped> -.tabs-container { - width: 100vw; - flex-grow: 1; - overflow-x: auto; - overflow-y: hidden; - display: flex; -} - -.tabs-container:not(.useHeader) { - width: calc(100vw - 50px); - margin-left: 50px; -} - -.tab { - position: relative; - height: 100%; - flex-grow: 1; - transition-duration: 0s; - overflow-y: auto; - overflow-x: hidden; -} - -.inner-tab { - padding: 50px 10px; - min-height: calc(100% - 100px); - display: flex; - flex-direction: column; - margin: 0; - flex-grow: 1; -} - -.tab + .tab > .inner-tab { - border-left: solid 4px var(--outline); -} -</style> - -<style> -.tab hr { - height: 4px; - border: none; - background: var(--outline); - margin: var(--feature-margin) 0; -} - -.tab .modal-body hr { - margin: 7px 0; -} -</style> diff --git a/src/components/Hotkey.vue b/src/components/Hotkey.vue deleted file mode 100644 index 7964908..0000000 --- a/src/components/Hotkey.vue +++ /dev/null @@ -1,70 +0,0 @@ -<!-- Make eslint not whine about putting spaces before the +'s --> -<!-- eslint-disable prettier/prettier --> -<template> - <template v-if="isCtrl" - ><div class="key">Ctrl</div - >+</template - ><template v-if="isShift" - ><div class="key">Shift</div - >+</template - > - <div class="key">{{ key }}</div> -</template> - -<script setup lang="ts"> -import { Hotkey } from "features/hotkey"; -import { watchEffect } from "vue"; - -const props = defineProps<{ - hotkey: Hotkey; -}>(); - -let key = ""; -let isCtrl = false; -let isShift = false; -let isAlpha = false; -watchEffect(() => { - key = props.hotkey.key; - - isCtrl = key.startsWith("ctrl+"); - if (isCtrl) { - key = key.slice(5); - } - - isShift = key.startsWith("shift+"); - if (isShift) { - key = key.slice(6); - } - - isAlpha = key.length == 1 && key.toLowerCase() != key.toUpperCase(); - if (isAlpha) { - key = key.toUpperCase(); - } -}); -</script> - -<style scoped> -.key { - display: inline-block; - height: 1.4em; - min-width: 1em; - margin-block: 0.1em; - padding-inline: 0.2em; - vertical-align: 0.1em; - - background: var(--foreground); - color: var(--feature-foreground); - border: 1px solid #0007; - border-radius: 0.3em; - box-shadow: 0 0.1em #0007, 0 0.1em var(--foreground); - - font-size: smaller; - text-align: center; - user-select: none; - transition: transform 0s, box-shadow 0s; -} -.key:active { - transform: translateY(0.1em); - box-shadow: none; -} -</style> diff --git a/src/components/Layer.vue b/src/components/Layer.vue deleted file mode 100644 index 692ccac..0000000 --- a/src/components/Layer.vue +++ /dev/null @@ -1,185 +0,0 @@ -<template> - <ErrorVue v-if="errors.length > 0" :errors="errors" /> - <div class="layer-container" :style="{ '--layer-color': unref(color) }" v-bind="$attrs" v-else> - <button v-if="showGoBack" class="goBack" @click="goBack">❌</button> - - <button - class="layer-tab minimized" - v-if="unref(minimized)" - @click="$emit('setMinimized', false)" - > - <MinimizedComponent v-if="minimizedDisplay" /> - <div v-else>{{ unref(name) }}</div> - </button> - <div class="layer-tab" :class="{ showGoBack }" v-else> - <Context @update-nodes="updateNodes"> - <Component /> - </Context> - </div> - - <button v-if="unref(minimizable)" class="minimize" @click="$emit('setMinimized', true)"> - ▼ - </button> - </div> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import { type FeatureNode } from "game/layers"; -import player from "game/player"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { computed, MaybeRef, onErrorCaptured, Ref, ref, unref } from "vue"; -import Context from "./Context.vue"; -import ErrorVue from "./Error.vue"; - -const props = defineProps<{ - display: MaybeGetter<Renderable>; - minimizedDisplay?: MaybeGetter<Renderable>; - minimized: Ref<boolean>; - name?: MaybeRef<string>; - color?: MaybeRef<string>; - minimizable?: MaybeRef<boolean>; - nodes: Ref<Record<string, FeatureNode | undefined>>; - forceHideGoBack?: MaybeRef<boolean>; - index: number; -}>(); - -const Component = () => render(props.display); -const MinimizedComponent = () => props.minimizedDisplay == null ? undefined : render(props.minimizedDisplay); -const showGoBack = computed( - () => projInfo.allowGoBack && !unref(props.forceHideGoBack) && props.index > 0 && !unref(props.minimized) -); - -function goBack() { - player.tabs.splice(unref(props.index), Infinity); -} - -function updateNodes(nodes: Record<string, FeatureNode | undefined>) { - props.nodes.value = nodes; -} - -const errors = ref<Error[]>([]); -onErrorCaptured((err, instance, info) => { - console.warn(`Error caught in "${props.name}" layer`, err, instance, info); - errors.value.push( - err instanceof Error ? (err as Error) : new Error(JSON.stringify(err)) - ); - return false; -}); -</script> - -<style scoped> -.layer-container { - min-width: 100%; - min-height: 100%; - margin: 0; - flex-grow: 1; - display: flex; - isolation: isolate; -} - -.layer-tab:not(.minimized) { - padding-top: 20px; - padding-bottom: 20px; - min-height: 100%; - flex-grow: 1; - text-align: center; - position: relative; -} - -.inner-tab > .layer-container > .layer-tab:not(.minimized) { - padding-top: 50px; -} - -.layer-tab.minimized { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - padding: 0; - padding-top: 55px; - margin: 0; - cursor: pointer; - font-size: 40px; - color: var(--foreground); - border: none; - background-color: transparent; -} - -.layer-tab.minimized > * { - margin: 0; - writing-mode: vertical-rl; - text-align: left; - padding-left: 10px; - width: 50px; -} - -.inner-tab > .layer-container > .layer-tab:not(.minimized) { - margin: -50px -10px; - padding: 50px 10px; -} - -.modal-body .layer-tab { - padding-bottom: 0; -} - -.modal-body .layer-tab:not(.hasSubtabs) { - padding-top: 0; -} - -.minimize { - position: sticky; - top: 6px; - right: 9px; - z-index: 7; - line-height: 30px; - border: none; - background: var(--background); - box-shadow: var(--background) 0 2px 3px 5px; - border-radius: 50%; - color: var(--foreground); - font-size: 40px; - cursor: pointer; - margin-top: -44px; - margin-right: -30px; -} - -.minimized + .minimize { - transform: rotate(-90deg); - top: 10px; - right: 18px; - pointer-events: none; -} - -.goBack { - position: sticky; - top: 10px; - left: 10px; - line-height: 30px; - margin-top: -50px; - margin-left: -35px; - border: none; - background: var(--background); - box-shadow: var(--background) 0 2px 3px 5px; - border-radius: 50%; - color: var(--foreground); - font-size: 30px; - cursor: pointer; - z-index: 7; -} - -.goBack:hover { - transform: scale(1.1, 1.1); - text-shadow: 0 0 7px var(--foreground); -} -</style> - -<style> -.layer-tab.minimized > * > .desc { - color: var(--accent1); - font-size: 30px; -} -</style> diff --git a/src/components/Nav.vue b/src/components/Nav.vue deleted file mode 100644 index e013825..0000000 --- a/src/components/Nav.vue +++ /dev/null @@ -1,298 +0,0 @@ -<template> - <div class="nav" v-if="useHeader" v-bind="$attrs"> - <img v-if="banner" :src="banner" class="banner" :alt="title" /> - <div v-else class="title">{{ title }}</div> - <div @click="changelog?.open()" class="version-container"> - <Tooltip display="Changelog" :direction="Direction.Down" class="version" - ><span>v{{ versionNumber }}</span></Tooltip - > - </div> - <div style="flex-grow: 1; cursor: unset"></div> - <div class="discord"> - <span @click="openDiscord" class="material-icons">discord</span> - <ul class="discord-links"> - <li v-if="discordLink"> - <a :href="discordLink" target="_blank">{{ discordName }}</a> - </li> - <li> - <a href="https://discord.gg/yJ4fjnjU54" target="_blank">Profectus & Friends</a> - </li> - <li> - <a href="https://discord.gg/F3xveHV" target="_blank">The Modding Tree</a> - </li> - </ul> - </div> - <div> - <a href="https://forums.moddingtree.com/" target="_blank"> - <Tooltip display="Forums" :direction="Direction.Down" yoffset="5px"> - <span class="material-icons">forum</span> - </Tooltip> - </a> - </div> - <div @click="info?.open()"> - <Tooltip display="Info" :direction="Direction.Down" class="info"> - <span class="material-icons">info</span> - </Tooltip> - </div> - <div @click="savesManager?.open()"> - <Tooltip display="Saves" :direction="Direction.Down" xoffset="-20px"> - <span class="material-icons" :class="{ needsSync }">library_books</span> - </Tooltip> - </div> - <div @click="options?.open()"> - <Tooltip display="Settings" :direction="Direction.Down" xoffset="-66px"> - <span class="material-icons">settings</span> - </Tooltip> - </div> - </div> - <div v-else class="overlay-nav" v-bind="$attrs"> - <div @click="changelog?.open()" class="version-container"> - <Tooltip display="Changelog" :direction="Direction.Right" xoffset="25%" class="version"> - <span>v{{ versionNumber }}</span> - </Tooltip> - </div> - <div @click="savesManager?.open()"> - <Tooltip display="Saves" :direction="Direction.Right"> - <span class="material-icons" :class="{ needsSync }">library_books</span> - </Tooltip> - </div> - <div @click="options?.open()"> - <Tooltip display="Settings" :direction="Direction.Right"> - <span class="material-icons">settings</span> - </Tooltip> - </div> - <div @click="info?.open()"> - <Tooltip display="Info" :direction="Direction.Right"> - <span class="material-icons">info</span> - </Tooltip> - </div> - <div> - <a href="https://forums.moddingtree.com/" target="_blank"> - <Tooltip display="Forums" :direction="Direction.Right" xoffset="7px"> - <span class="material-icons">forum</span> - </Tooltip> - </a> - </div> - <div class="discord"> - <span @click="openDiscord" class="material-icons">discord</span> - <ul class="discord-links"> - <li v-if="discordLink"> - <a :href="discordLink" target="_blank">{{ discordName }}</a> - </li> - <li> - <a href="https://discord.gg/yJ4fjnjU54" target="_blank">Profectus & Friends</a> - </li> - <li> - <a href="https://discord.gg/F3xveHV" target="_blank">The Modding Tree</a> - </li> - </ul> - </div> - </div> - <Info ref="info" @open-changelog="changelog?.open()" /> - <SavesManager ref="savesManager" /> - <Options ref="options" /> - <Changelog ref="changelog" /> -</template> - -<script setup lang="ts"> -import Changelog from "data/Changelog.vue"; -import projInfo from "data/projInfo.json"; -import settings from "game/settings"; -import { Direction } from "util/common"; -import { galaxy, syncedSaves } from "util/galaxy"; -import { computed, ref } from "vue"; -import Tooltip from "wrappers/tooltips/Tooltip.vue"; -import Info from "./modals/Info.vue"; -import Options from "./modals/Options.vue"; -import SavesManager from "./modals/SavesManager.vue"; - -const info = ref<typeof Info | null>(null); -const savesManager = ref<typeof SavesManager | null>(null); -const options = ref<typeof Options | null>(null); -const changelog = ref<typeof Changelog | null>(null); - -const { useHeader, banner, title, discordName, discordLink, versionNumber } = projInfo; - -function openDiscord() { - window.open(discordLink, "mywindow"); -} - -const needsSync = computed( - () => galaxy.value?.loggedIn === true && !syncedSaves.value.includes(settings.active) -); -</script> - -<style scoped> -.nav { - background-color: var(--raised-background); - display: flex; - left: 0; - right: 0; - top: 0; - height: 46px; - width: 100%; - border-bottom: 4px solid var(--outline); -} - -.nav > * { - height: 46px; - width: 46px; - display: flex; - cursor: pointer; - flex-shrink: 0; -} - -.nav > .banner { - height: 100%; - width: unset; -} - -.overlay-nav { - position: fixed; - top: 10px; - left: 10px; - display: flex; - flex-direction: column; - z-index: 2; -} - -.overlay-nav > * { - height: 50px; - width: 50px; - display: flex; - cursor: pointer; - margin: 0; - align-items: center; - justify-content: center; -} - -.title { - font-size: 36px; - text-align: left; - margin-left: 12px; - cursor: unset; -} - -.nav > .title { - width: unset; - flex-shrink: 1; - overflow: hidden; - white-space: nowrap; -} - -.nav .saves, -.nav .info { - display: flex; -} - -.tooltip-container { - width: 100%; - height: 100%; - display: flex; -} - -.overlay-nav .discord { - position: relative; -} - -.discord img { - width: 100%; - height: 100%; -} - -.discord-links { - position: fixed; - top: 45px; - padding: 20px; - right: -280px; - width: 200px; - transition: right 0.25s ease; - background: var(--raised-background); - z-index: 10; -} - -.overlay-nav .discord-links { - position: absolute; - left: -280px; - right: unset; - transition: left 0.25s ease; -} - -.overlay-nav .discord:hover .discord-links { - left: -10px; -} - -.discord-links li { - margin-bottom: 4px; -} - -.discord-links li:first-child { - font-size: 1.2em; -} - -*:not(.overlay-nav) .discord:hover .discord-links { - right: 0; -} - -.material-icons { - font-size: 36px; -} - -.material-icons:hover { - text-shadow: 5px 0 10px var(--link), -3px 0 12px var(--foreground); -} - -.nav .version-container { - display: flex; - height: 25px; - margin-bottom: 0; - margin-left: 10px; -} - -.overlay-nav .version-container { - width: unset; - height: 25px; -} - -.version { - color: var(--points); -} - -.version:hover span { - text-shadow: 5px 0 10px var(--points), -3px 0 12px var(--points); -} - -.nav > div > a, -.overlay-nav > div > a { - color: var(--foreground); - text-shadow: none; -} - -.needsSync { - color: var(--danger); - animation: 4s wiggle ease infinite; -} - -@keyframes wiggle { - 0% { - transform: rotate(-3deg); - box-shadow: 0 2px 2px #0003; - } - 5% { - transform: rotate(20deg); - } - 10% { - transform: rotate(-15deg); - } - 15% { - transform: rotate(5deg); - } - 20% { - transform: rotate(-1deg); - } - 25% { - transform: rotate(0); - box-shadow: 0 2px 2px #0003; - } -} -</style> diff --git a/src/components/Node.vue b/src/components/Node.vue deleted file mode 100644 index 8797aac..0000000 --- a/src/components/Node.vue +++ /dev/null @@ -1,40 +0,0 @@ -<template> - <div class="node" ref="node"></div> -</template> - -<script setup lang="ts"> -import { RegisterNodeInjectionKey, UnregisterNodeInjectionKey } from "game/layers"; -import { computed, inject, onUnmounted, shallowRef, toRef, unref, watch } from "vue"; - -const props = defineProps<{ id: string }>(); - -// eslint-disable-next-line @typescript-eslint/no-empty-function -const register = inject(RegisterNodeInjectionKey, () => {}); -// eslint-disable-next-line @typescript-eslint/no-empty-function -const unregister = inject(UnregisterNodeInjectionKey, () => {}); - -const node = shallowRef<HTMLElement | null>(null); -const parentNode = computed(() => node.value && node.value.parentElement); - -watch([parentNode, toRef(props, "id")], ([newNode, newID], [prevNode, prevID]) => { - if (prevNode) { - unregister(unref(prevID)); - } - if (newNode) { - register(newID, newNode); - } -}); - -onUnmounted(() => unregister(props.id)); -</script> - -<style scoped> -.node { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; -} -</style> diff --git a/src/components/Notif.vue b/src/components/Notif.vue deleted file mode 100644 index 583117a..0000000 --- a/src/components/Notif.vue +++ /dev/null @@ -1,43 +0,0 @@ -<template> - <div class="notif">!</div> -</template> - -<script setup lang="ts"></script> - -<style scoped> -.notif { - position: absolute; - top: 0; - left: 5px; - z-index: 10; - pointer-events: none; - user-select: none; - color: var(--accent3); - font-size: x-large; - animation: 1s linear infinite bounce; - border-radius: var(--border-radius); - background: var(--locked); -} - -@keyframes bounce { - 0% { - animation-timing-function: cubic-bezier(0.1361, 0.2514, 0.2175, 0.8786); - transform: translate(0, 0px) scaleY(1); - } - 37% { - animation-timing-function: cubic-bezier(0.7674, 0.1844, 0.8382, 0.7157); - transform: translate(0, -20px) scaleY(1); - } - 72% { - animation-timing-function: cubic-bezier(0.1118, 0.2149, 0.2172, 0.941); - transform: translate(0, 0px) scaleY(1); - } - 87% { - animation-timing-function: cubic-bezier(0.7494, 0.2259, 0.8209, 0.6963); - transform: translate(0, 10px) scaleY(0.602); - } - 100% { - transform: translate(0, 0px) scaleY(1); - } -} -</style> diff --git a/src/components/Profectus.vue b/src/components/Profectus.vue deleted file mode 100644 index 3a7700b..0000000 --- a/src/components/Profectus.vue +++ /dev/null @@ -1,195 +0,0 @@ -<template> - <transition appear> - <svg - id="eaRe02fYmMp1" - xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - viewBox="0 0 228 521" - shape-rendering="geometricPrecision" - text-rendering="geometricPrecision" - > - <g id="P"> - <path - d="m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 10; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="trunk" - class="svg-elem-1" - ></path> - <path - d="M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="vine2" - class="svg-elem-2" - ></path> - <path - d="m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="short_vine4" - class="svg-elem-3" - ></path> - <path - d="M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="short_vine3" - class="svg-elem-4" - ></path> - <path - d="M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="vine1" - class="svg-elem-5" - ></path> - <path - d="M 21,47.8775 38.674,131" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="short_vine2" - class="svg-elem-6" - ></path> - <path - d="m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81" - style=" - display: inline; - fill: none; - stroke: rgb(163, 190, 140); - stroke-width: 5; - stroke-linecap: round; - stroke-miterlimit: 16; - " - id="short_vine1" - class="svg-elem-7" - ></path> - </g> - </svg> - </transition> -</template> - -<style scoped> -svg { - background: #2e3440; -} - -/*************************************************** - * Generated by SVG Artista on 1/7/2022, 4:39:47 PM - * MIT license (https://opensource.org/licenses/MIT) - * W. https://svgartista.net - **************************************************/ - -svg .svg-elem-1 { - stroke-dashoffset: 2648.758056640625px; - stroke-dasharray: 1324.3790283203125px; - transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0s; -} - -svg.v-enter-from .svg-elem-1, -svg.v-leave-to .svg-elem-1 { - stroke-dashoffset: 1324.3790283203125px; -} - -svg .svg-elem-2 { - stroke-dashoffset: 680.4000854492188px; - stroke-dasharray: 340.2000427246094px; - transition: stroke-dashoffset 1s ease-out 0.4s; -} - -svg.v-enter-from .svg-elem-2, -svg.v-leave-to .svg-elem-2 { - stroke-dashoffset: 340.2000427246094px; -} - -svg .svg-elem-3 { - stroke-dashoffset: 76.21031951904297px; - stroke-dasharray: 38.105159759521484px; - transition: stroke-dashoffset 1s ease-out 0.8s; -} - -svg.v-enter-from .svg-elem-3, -svg.v-leave-to .svg-elem-3 { - stroke-dashoffset: 38.105159759521484px; -} - -svg .svg-elem-4 { - stroke-dashoffset: 175.18072509765625px; - stroke-dasharray: 87.59036254882812px; - transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.36s; -} - -svg.v-enter-from .svg-elem-4, -svg.v-leave-to .svg-elem-4 { - stroke-dashoffset: 87.59036254882812px; -} - -svg .svg-elem-5 { - stroke-dashoffset: 671.9447021484375px; - stroke-dasharray: 335.97235107421875px; - transition: stroke-dashoffset 1s ease-out 0.8s; -} - -svg.v-enter-from .svg-elem-5, -svg.v-leave-to .svg-elem-5 { - stroke-dashoffset: 335.97235107421875px; -} - -svg .svg-elem-6 { - stroke-dashoffset: 173.96141052246094px; - stroke-dasharray: 86.98070526123047px; - transition: stroke-dashoffset 1s ease-out 1s; -} - -svg.v-enter-from .svg-elem-6, -svg.v-leave-to .svg-elem-6 { - stroke-dashoffset: 86.98070526123047px; -} - -svg .svg-elem-7 { - stroke-dashoffset: 172.99151611328125px; - stroke-dasharray: 86.49575805664062px; - transition: stroke-dashoffset 1s ease-out 0.85s; -} - -svg.v-enter-from .svg-elem-7, -svg.v-leave-to .svg-elem-7 { - stroke-dashoffset: 86.49575805664062px; -} -</style> diff --git a/src/components/TPS.vue b/src/components/TPS.vue deleted file mode 100644 index db73da6..0000000 --- a/src/components/TPS.vue +++ /dev/null @@ -1,33 +0,0 @@ -<template> - <div class="tpsDisplay" v-if="!tps.isNan()">TPS: {{ formatWhole(tps) }}</div> -</template> - -<script setup lang="ts"> -import state from "game/state"; -import Decimal, { formatWhole } from "util/bignum"; -import { computed } from "vue"; - -const tps = computed(() => - Decimal.div( - state.lastTenTicks.length, - state.lastTenTicks.reduce((acc, curr) => acc + curr, 0) - ) -); -</script> - -<style scoped> -.tpsDisplay { - position: absolute; - left: 10px; - bottom: 10px; - z-index: 100; -} - -.low { - color: var(--danger); -} - -.fade-leave-to { - opacity: 0; -} -</style> diff --git a/src/components/common/features.css b/src/components/common/features.css deleted file mode 100644 index 196fa09..0000000 --- a/src/components/common/features.css +++ /dev/null @@ -1,45 +0,0 @@ -.feature { - position: relative; -} - -button.feature, -.feature button { - padding: 5px; - border-radius: var(--border-radius); - border: 2px solid rgba(0, 0, 0, 0.125); - margin: var(--feature-margin); - box-sizing: border-box; - color: var(--feature-foreground); - z-index: 0; - transition: all 0.5s, z-index 0s 0.5s; -} - -.feature button { - position: relative; -} - -button.can, -.can button { - background-color: var(--layer-color); - cursor: pointer; -} - -button.can:hover, -.can:hover button { - transform: scale(1.15, 1.15); - box-shadow: 0 0 20px var(--points); - z-index: 1; - transition: all 0.5s, z-index 0s; -} - -button.locked, -.locked button { - background-color: var(--locked); - cursor: not-allowed; -} - -button.bought, -.bought button { - background-color: var(--bought); - cursor: default; -} diff --git a/src/components/common/fields.css b/src/components/common/fields.css deleted file mode 100644 index 48737e1..0000000 --- a/src/components/common/fields.css +++ /dev/null @@ -1,13 +0,0 @@ -.field { - display: flex; - position: relative; - min-height: 2em; - margin: 10px 0; - user-select: none; - justify-content: space-between; - align-items: center; -} - -.field > * { - margin: 0; -} diff --git a/src/components/common/modifiers.css b/src/components/common/modifiers.css deleted file mode 100644 index dc9e66d..0000000 --- a/src/components/common/modifiers.css +++ /dev/null @@ -1,21 +0,0 @@ -.modifier-container { - display: flex; - padding: 1px 8px; -} - -.modifier-container:nth-child(2n) { - background: var(--raised-background); -} - -.modifier-amount { - flex-shrink: 0; - text-align: right; -} -:not(:first-of-type, :last-of-type) > .modifier-amount::after { - content: var(--unit); - opacity: 0; -} - -.modifier-description { - flex-grow: 1; -} diff --git a/src/components/common/table.css b/src/components/common/table.css deleted file mode 100644 index ac5518e..0000000 --- a/src/components/common/table.css +++ /dev/null @@ -1,176 +0,0 @@ -.table { - display: flex; - flex-flow: column wrap; - justify-content: center; - align-items: center; - max-width: 100%; - margin: 0 auto; -} - -.table + .table { - margin-top: 10px; -} - -.row { - display: flex; - flex-flow: row wrap; - justify-content: center; - align-items: stretch; - max-width: 100%; - margin: 0 10px; -} - -.col { - display: flex; - flex-flow: column wrap; - justify-content: center; - align-items: center; - height: 100%; - margin: 10px 0; -} - -.row.mergeAdjacent *, -.row.mergeAdjacent button.feature, -.row.mergeAdjacent .feature button { - margin-left: 0; - margin-right: 0; -} - -.row.mergeAdjacent button.feature, -.row.mergeAdjacent .feature button { - border-radius: 0; -} - -.row.mergeAdjacent > button.feature:first-child, -.row.mergeAdjacent > .feature:first-child button, -.row.mergeAdjacent > :first-child button.feature, -.row.mergeAdjacent > :first-child .feature button { - border-radius: var(--border-radius) 0 0 var(--border-radius); -} - -.row.mergeAdjacent > button.feature:last-child, -.row.mergeAdjacent > .feature:last-child button, -.row.mergeAdjacent > :last-child button.feature, -.row.mergeAdjacent > :last-child .feature button { - border-radius: 0 var(--border-radius) var(--border-radius) 0; -} - -.row.mergeAdjacent > button.feature:first-child:last-child, -.row.mergeAdjacent > .feature:first-child:last-child button, -.row.mergeAdjacent > :first-child:last-child button.feature, -.row.mergeAdjacent > :first-child:last-child .feature button { - border-radius: var(--border-radius); -} - -.col.mergeAdjacent *, -.col.mergeAdjacent button.feature, -.col.mergeAdjacent .feature button { - margin-top: 0; - margin-bottom: 0; -} - -.col.mergeAdjacent button.feature, -.col.mergeAdjacent .feature button { - border-radius: 0; -} - -.col.mergeAdjacent > button.feature:first-child, -.col.mergeAdjacent > .feature:first-child button, -.col.mergeAdjacent > :first-child button.feature, -.col.mergeAdjacent > :first-child .feature button { - border-radius: var(--border-radius) var(--border-radius) 0 0; -} - -.col.mergeAdjacent > button.feature:last-child, -.col.mergeAdjacent > .feature:last-child button, -.col.mergeAdjacent > :last-child button.feature, -.col.mergeAdjacent > :last-child .feature button { - border-radius: 0 0 var(--border-radius) var(--border-radius); -} - -.col.mergeAdjacent > button.feature:first-child:last-child, -.col.mergeAdjacent > .feature:first-child:last-child button, -.col.mergeAdjacent > :first-child:last-child button.feature, -.col.mergeAdjacent > :first-child:last-child .feature button { - border-radius: var(--border-radius); -} - -.col.mergeAdjacent > .table > .row.mergeAdjacent:first-child > button.feature:not(:first-child):not(:last-child), -.col.mergeAdjacent > .table > .row.mergeAdjacent:first-child > .feature:not(:first-child):not(:last-child) button, -.col.mergeAdjacent > .table > .row.mergeAdjacent:first-child > :not(:first-child):not(:last-child) button.feature, -.col.mergeAdjacent > .table > .row.mergeAdjacent:first-child > :not(:first-child):not(:last-child) .feature button, - -.col.mergeAdjacent > .table > .row.mergeAdjacent:last-child > button.feature:not(:first-child):not(:last-child), -.col.mergeAdjacent > .table > .row.mergeAdjacent:last-child > .feature:not(:first-child):not(:last-child) button, -.col.mergeAdjacent > .table > .row.mergeAdjacent:last-child > :not(:first-child):not(:last-child) button.feature, -.col.mergeAdjacent > .table > .row.mergeAdjacent:last-child > :not(:first-child):not(:last-child) .feature button - -.col.mergeAdjacent > .table:not(:first-child):not(:last-child) > .row.mergeAdjacent > button.feature, -.col.mergeAdjacent > .table:not(:first-child):not(:last-child) > .row.mergeAdjacent > .feature button, -.col.mergeAdjacent > .table:not(:first-child):not(:last-child) > .row.mergeAdjacent > * button.feature, -.col.mergeAdjacent > .table:not(:first-child):not(:last-child) > .row.mergeAdjacent > * .feature button - -.row.mergeAdjacent > .table > .col.mergeAdjacent:first-child > button.feature:not(:first-child):not(:last-child), -.row.mergeAdjacent > .table > .col.mergeAdjacent:first-child > .feature:not(:first-child):not(:last-child) button, -.row.mergeAdjacent > .table > .col.mergeAdjacent:first-child > :not(:first-child):not(:last-child) button.feature, -.row.mergeAdjacent > .table > .col.mergeAdjacent:first-child > :not(:first-child):not(:last-child) .feature button, - -.row.mergeAdjacent > .table > .col.mergeAdjacent:last-child > button.feature:not(:first-child):not(:last-child), -.row.mergeAdjacent > .table > .col.mergeAdjacent:last-child > .feature:not(:first-child):not(:last-child) button, -.row.mergeAdjacent > .table > .col.mergeAdjacent:last-child > :not(:first-child):not(:last-child) button.feature, -.row.mergeAdjacent > .table > .col.mergeAdjacent:last-child > :not(:first-child):not(:last-child) .feature button - -.row.mergeAdjacent > .table:not(:first-child):not(:last-child) > .col.mergeAdjacent > button.feature, -.row.mergeAdjacent > .table:not(:first-child):not(:last-child) > .col.mergeAdjacent > .feature button, -.row.mergeAdjacent > .table:not(:first-child):not(:last-child) > .col.mergeAdjacent > * button.feature, -.row.mergeAdjacent > .table:not(:first-child):not(:last-child) > .col.mergeAdjacent > * .feature button { - border-radius: 0; -} - -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > button.feature:first-child, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > .feature:first-child button, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > :first-child button.feature, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > :first-child .feature button, - -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > button.feature:first-child, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > .feature:first-child button, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > :first-child button.feature, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > :first-child .feature button { - border-radius: var(--border-radius) 0 0 0; -} - -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > button.feature:last-child, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > .feature:last-child button, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > :last-child button.feature, -.col.mergeAdjacent > .table:first-child > .row.mergeAdjacent > :last-child .feature button, - -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > button.feature:last-child, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > .feature:last-child button, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > :last-child button.feature, -.row.mergeAdjacent > .table:first-child > .col.mergeAdjacent > :last-child .feature button { - border-radius: 0 var(--border-radius) 0 0; -} - -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > button.feature:last-child, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > .feature:last-child button, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > :last-child button.feature, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > :last-child .feature button, - -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > button.feature:last-child, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > .feature:last-child button, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > :last-child button.feature, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > :last-child .feature button { - border-radius: 0 0 var(--border-radius) 0; -} - -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > button.feature:first-child, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > .feature:first-child button, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > :first-child button.feature, -.col.mergeAdjacent > .table:last-child > .row.mergeAdjacent > :first-child .feature button, - -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > button.feature:first-child, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > .feature:first-child button, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > :first-child button.feature, -.row.mergeAdjacent > .table:last-child > .col.mergeAdjacent > :first-child .feature button { - border-radius: 0 0 0 var(--border-radius); -} diff --git a/src/components/fields/DangerButton.vue b/src/components/fields/DangerButton.vue deleted file mode 100644 index 657a4e8..0000000 --- a/src/components/fields/DangerButton.vue +++ /dev/null @@ -1,78 +0,0 @@ -<template> - <span class="container" :class="{ confirming: isConfirming }"> - <span v-if="isConfirming">Are you sure?</span> - <button @click.stop="click" class="button danger" :disabled="disabled"> - <span v-if="isConfirming">Yes</span> - <slot v-else /> - </button> - <button v-if="isConfirming" class="button" @click.stop="cancel">No</button> - </span> -</template> - -<script setup lang="ts"> -import { ref, watch } from "vue"; - -const props = defineProps<{ - disabled?: boolean; - skipConfirm?: boolean; -}>(); - -const emit = defineEmits<{ - (e: "click"): void; - (e: "confirmingChanged", value: boolean): void; -}>(); - -const isConfirming = ref(false); - -watch(isConfirming, isConfirming => { - emit("confirmingChanged", isConfirming); -}); - -function click() { - if (props.skipConfirm) { - emit("click"); - return; - } - if (isConfirming.value) { - emit("click"); - } - isConfirming.value = !isConfirming.value; -} - -function cancel() { - isConfirming.value = false; -} -</script> - -<style scoped> -.container { - display: flex; - align-items: center; - background: var(--raised-background); - box-shadow: var(--raised-background) 0 2px 3px 5px; -} - -.container.confirming button { - font-size: 1em; -} - -.container > * { - margin: 0 4px; -} -</style> - -<style> -.danger, -.button.danger { - position: relative; - border: solid 2px var(--danger); - border-right-width: 16px; -} - -.danger::after { - position: absolute; - content: "!"; - color: white; - right: -13px; -} -</style> diff --git a/src/components/fields/FeedbackButton.vue b/src/components/fields/FeedbackButton.vue deleted file mode 100644 index 2dcaafd..0000000 --- a/src/components/fields/FeedbackButton.vue +++ /dev/null @@ -1,74 +0,0 @@ -<template> - <button @click.stop="click" class="feedback" :class="{ activated, left }"> - <slot /> - </button> -</template> - -<script setup lang="ts"> -import { nextTick, ref } from "vue"; - -defineProps<{ - left?: boolean; -}>(); -const emit = defineEmits<{ - (e: "click"): void; -}>(); - -const activated = ref(false); -const activatedTimeout = ref<NodeJS.Timeout | null>(null); - -function click() { - emit("click"); - - // Give feedback to user - if (activatedTimeout.value != null) { - clearTimeout(activatedTimeout.value); - } - activated.value = false; - nextTick(() => { - activated.value = true; - activatedTimeout.value = setTimeout(() => (activated.value = false), 500); - }); -} -</script> - -<style scoped> -.feedback { - position: relative; -} - -.feedback::after { - position: absolute; - left: calc(100% + 5px); - top: 50%; - transform: translateY(-50%); - content: "✔"; - opacity: 0; - pointer-events: none; - box-shadow: inset 0 0 0 35px rgba(111, 148, 182, 0); - text-shadow: none; -} - -.feedback.left::after { - left: unset; - right: calc(100% + 5px); -} - -.feedback.activated::after { - animation: feedback 0.5s ease-out forwards; -} - -@keyframes feedback { - 0% { - opacity: 1; - transform: scale3d(0.4, 0.4, 1), translateY(-50%); - } - 80% { - opacity: 0.1; - } - 100% { - opacity: 0; - transform: scale3d(1.2, 1.2, 1), translateY(-50%); - } -} -</style> diff --git a/src/components/fields/Select.vue b/src/components/fields/Select.vue deleted file mode 100644 index 30f4eb5..0000000 --- a/src/components/fields/Select.vue +++ /dev/null @@ -1,97 +0,0 @@ -<template> - <div class="field"> - <span class="field-title" v-if="title"><Title /></span> - <VueNextSelect - :options="options" - v-model="value" - :min="1" - :placeholder="placeholder" - :close-on-select="closeOnSelect" - @update:model-value="onUpdate" - label-by="label" - /> - </div> -</template> - -<script setup lang="tsx"> -import "components/common/fields.css"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { ref, toRef, unref, watch } from "vue"; -import VueNextSelect from "vue-next-select"; -import "vue-next-select/dist/index.css"; - -export type SelectOption = { label: string; value: unknown }; - -const props = defineProps<{ - title?: MaybeGetter<Renderable>; - modelValue?: unknown; - options: SelectOption[]; - placeholder?: string; - closeOnSelect?: boolean; -}>(); -const emit = defineEmits<{ - (e: "update:modelValue", value: unknown): void; -}>(); - -const Title = () => props.title ? render(props.title, el => <span>{el}</span>) : <></>; - -const value = ref<SelectOption | null>( - props.options.find(option => option.value === props.modelValue) ?? null -); -watch(toRef(props, "modelValue"), modelValue => { - if (unref(value) !== modelValue) { - value.value = props.options.find(option => option.value === modelValue) ?? null; - } -}); - -function onUpdate(value: SelectOption) { - emit("update:modelValue", value.value); -} -</script> - -<style> -.vue-select { - width: 50%; - border-radius: var(--border-radius); -} - -.field-buttons .vue-select { - width: unset; -} - -.vue-select, -.vue-dropdown { - border-color: var(--outline); -} - -.vue-dropdown { - background: var(--raised-background); -} - -.vue-dropdown-item { - color: var(--foreground); -} - -.vue-dropdown-item, -.vue-dropdown-item * { - transition-duration: 0s; -} - -.vue-dropdown-item.highlighted { - background-color: var(--highlighted); -} - -.vue-dropdown-item.selected, -.vue-dropdown-item.highlighted.selected { - background-color: var(--bought); -} - -.vue-input input { - font-size: inherit; -} - -.vue-input input::placeholder { - color: var(--link); -} -</style> diff --git a/src/components/fields/Slider.vue b/src/components/fields/Slider.vue deleted file mode 100644 index 4a81862..0000000 --- a/src/components/fields/Slider.vue +++ /dev/null @@ -1,41 +0,0 @@ -<template> - <div class="field"> - <span class="field-title" v-if="title">{{ title }}</span> - <Tooltip :display="`${value}`" :class="{ fullWidth: !title }" :direction="Direction.Down"> - <input type="range" v-model="value" :min="min" :max="max" /> - </Tooltip> - </div> -</template> - -<script setup lang="ts"> -import "components/common/fields.css"; -import Tooltip from "wrappers/tooltips/Tooltip.vue"; -import { Direction } from "util/common"; -import { computed } from "vue"; - -const props = defineProps<{ - title?: string; - modelValue?: number; - min?: number; - max?: number; -}>(); - -const emit = defineEmits<{ - (e: "update:modelValue", value: number): void; -}>(); - -const value = computed({ - get() { - return String(props.modelValue ?? 0); - }, - set(value: string) { - emit("update:modelValue", Number(value)); - } -}); -</script> - -<style scoped> -.fullWidth { - width: 100%; -} -</style> diff --git a/src/components/fields/Text.vue b/src/components/fields/Text.vue deleted file mode 100644 index 75def9e..0000000 --- a/src/components/fields/Text.vue +++ /dev/null @@ -1,99 +0,0 @@ -<template> - <form @submit.prevent="submit"> - <div class="field"> - <span class="field-title" v-if="title"> - <Title /> - </span> - <VueTextareaAutosize - v-if="textArea" - v-model="value" - :placeholder="placeholder" - :maxHeight="maxHeight" - @blur="blur" - ref="field" - /> - <input - v-else - type="text" - v-model="value" - :placeholder="placeholder" - :class="{ fullWidth: !title }" - @blur="blur" - ref="field" - /> - </div> - </form> -</template> - -<script setup lang="tsx"> -import "components/common/fields.css"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { computed, onMounted, shallowRef, unref } from "vue"; -import VueTextareaAutosize from "vue-textarea-autosize"; - -const props = defineProps<{ - title?: MaybeGetter<Renderable>; - modelValue?: string; - textArea?: boolean; - placeholder?: string; - maxHeight?: number; - submitOnBlur?: boolean; -}>(); -const emit = defineEmits<{ - (e: "update:modelValue", value: string): void; - (e: "submit"): void; - (e: "cancel"): void; -}>(); - -const Title = () => props.title == null ? <></> : render(props.title, el => <span>{el}</span>); - -const field = shallowRef<HTMLElement | null>(null); -onMounted(() => { - field.value?.focus(); -}); - -const value = computed({ - get() { - return unref(props.modelValue) ?? ""; - }, - set(value: string) { - emit("update:modelValue", value); - } -}); - -function submit() { - emit("submit"); -} - -function blur() { - if (props.submitOnBlur !== false) { - emit("submit"); - } else { - emit("cancel"); - } -} -</script> - -<style scoped> -form { - margin: 0; - width: 100%; -} - -.field > * { - margin: 0; -} - -input { - width: 50%; - outline: none; - border: solid 1px var(--outline); - background-color: unset; - border-radius: var(--border-radius); -} - -.fullWidth { - width: 100%; -} -</style> diff --git a/src/components/fields/Toggle.vue b/src/components/fields/Toggle.vue deleted file mode 100644 index d9a16e9..0000000 --- a/src/components/fields/Toggle.vue +++ /dev/null @@ -1,117 +0,0 @@ -<template> - <label class="field"> - <input type="checkbox" class="toggle" v-model="value" /> - <Component /> - </label> -</template> - -<script setup lang="tsx"> -import "components/common/fields.css"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { computed } from "vue"; - -const props = defineProps<{ - title?: MaybeGetter<Renderable>; - modelValue?: boolean; -}>(); -const emit = defineEmits<{ - (e: "update:modelValue", value: boolean): void; -}>(); - -const Component = () => render(props.title ?? "", el => <span>{el}</span>); - -const value = computed({ - get() { - return !!props.modelValue; - }, - set(value: boolean) { - emit("update:modelValue", value); - } -}); -</script> - -<style scoped> -.field { - cursor: pointer; -} - -input { - appearance: none; - pointer-events: none; -} - -span { - width: 100%; - padding-right: 41px; - position: relative; -} - -/* track */ -input + span::before { - content: ""; - position: absolute; - top: calc(50% - 7px); - right: 0px; - border-radius: 7px; - width: 36px; - height: 14px; - background-color: var(--outline); - opacity: 0.38; - vertical-align: top; - transition: background-color 0.2s, opacity 0.2s; -} - -/* thumb */ -input + span::after { - content: ""; - position: absolute; - top: calc(50% - 10px); - right: 16px; - border-radius: 50%; - width: 20px; - height: 20px; - background-color: var(--locked); - box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), - 0 1px 5px 0 rgba(0, 0, 0, 0.12); - transition: background-color 0.2s, transform 0.2s; -} - -input:checked + span::before { - background-color: var(--link); - opacity: 0.6; -} - -input:checked + span::after { - background-color: var(--link); - transform: translateX(16px); -} - -/* active */ -input:active + span::before { - background-color: var(--link); - opacity: 0.6; -} - -input:checked:active + span::before { - background-color: var(--outline); - opacity: 0.38; -} - -/* disabled */ -input:disabled + span { - color: black; - opacity: 0.38; - cursor: default; -} - -input:disabled + span::before { - background-color: var(--outline); - opacity: 0.38; -} - -input:checked:disabled + span::before { - background-color: var(--link); - opacity: 0.6; -} -</style> diff --git a/src/components/layout/Collapsible.vue b/src/components/layout/Collapsible.vue deleted file mode 100644 index c5fda03..0000000 --- a/src/components/layout/Collapsible.vue +++ /dev/null @@ -1,69 +0,0 @@ -<template> - <Col class="collapsible-container"> - <button @click="collapsed.value = !collapsed.value" class="feature collapsible-toggle"> - <Display /> - </button> - <Content v-if="!collapsed.value" /> - </Col> -</template> - -<script setup lang="ts"> -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import type { Ref } from "vue"; -import Col from "./Column.vue"; - -const props = defineProps<{ - collapsed: Ref<boolean>; - display: MaybeGetter<Renderable>; - content: MaybeGetter<Renderable>; -}>(); - -const Display = () => render(props.display); -const Content = () => render(props.content); -</script> - -<style scoped> -.collapsible-container { - width: calc(100% - 10px); -} - -.collapsible-toggle { - max-width: unset; - width: calc(100% + 0px); - margin: 0; - margin-left: -5px; - background: var(--raised-background); - padding: var(--feature-margin); - color: var(--foreground); - cursor: pointer; - transition-duration: 0s; -} - -.collapsible-toggle:last-child { - margin-left: unset; -} - -:deep(.collapsible-toggle + .table) { - max-width: unset; - width: calc(100% + 10px); - margin-left: -5px; -} - -:deep(.col) { - margin-top: 0; - margin-bottom: 0; - width: 100%; -} - -.mergeAdjacent .collapsible-toggle { - border: 0; - border-top-left-radius: 0 !important; - border-top-right-radius: 0 !important; -} - -:deep(.mergeAdjacent .feature:not(.dontMerge):first-child) { - border-top-left-radius: 0 !important; - border-top-right-radius: 0 !important; -} -</style> diff --git a/src/components/layout/Column.vue b/src/components/layout/Column.vue deleted file mode 100644 index b8f516c..0000000 --- a/src/components/layout/Column.vue +++ /dev/null @@ -1,21 +0,0 @@ -<template> - <div class="table"> - <div class="col" :class="{ mergeAdjacent }"> - <slot /> - </div> - </div> -</template> - -<script setup lang="ts"> -import "components/common/table.css"; -import themes from "data/themes"; -import settings from "game/settings"; -import { computed } from "vue"; - -const props = defineProps<{ - dontMerge?: boolean -}>(); - -const mergeAdjacent = computed(() => - themes[settings.theme].mergeAdjacent && props.dontMerge !== true); -</script> diff --git a/src/components/layout/Row.vue b/src/components/layout/Row.vue deleted file mode 100644 index 6029a76..0000000 --- a/src/components/layout/Row.vue +++ /dev/null @@ -1,21 +0,0 @@ -<template> - <div class="table"> - <div class="row" :class="{ mergeAdjacent }"> - <slot /> - </div> - </div> -</template> - -<script setup lang="ts"> -import "components/common/table.css"; -import themes from "data/themes"; -import settings from "game/settings"; -import { computed } from "vue"; - -const props = defineProps<{ - dontMerge?: boolean -}>(); - -const mergeAdjacent = computed(() => - themes[settings.theme].mergeAdjacent && props.dontMerge !== true); -</script> diff --git a/src/components/layout/Spacer.vue b/src/components/layout/Spacer.vue deleted file mode 100644 index a5cfa56..0000000 --- a/src/components/layout/Spacer.vue +++ /dev/null @@ -1,16 +0,0 @@ -<template> - <div :style="{ width, height }"></div> -</template> - -<script setup lang="ts"> -withDefaults( - defineProps<{ - width?: string; - height?: string; - }>(), - { - width: "8px", - height: "17px" - } -); -</script> diff --git a/src/components/layout/Sticky.vue b/src/components/layout/Sticky.vue deleted file mode 100644 index d761210..0000000 --- a/src/components/layout/Sticky.vue +++ /dev/null @@ -1,49 +0,0 @@ -<template> - <div class="sticky" :style="{ top }" ref="element" data-v-sticky> - <slot /> - </div> -</template> - -<script setup lang="ts"> -import { nextTick, onMounted, ref, shallowRef } from "vue"; - -const top = ref("0"); -const observer = new ResizeObserver(updateTop); -const element = shallowRef<HTMLElement | null>(null); - -function updateTop() { - let el = element.value; - if (el == undefined) { - return; - } - - let newTop = 0; - while (el.previousSibling) { - const sibling = el.previousSibling as HTMLElement; - if (sibling.dataset && "vSticky" in sibling.dataset) { - newTop += sibling.offsetHeight; - } - el = sibling; - } - top.value = newTop + "px"; -} - -nextTick(updateTop); -document.fonts.ready.then(updateTop); - -onMounted(() => { - const el = element.value?.parentElement; - if (el) { - observer.observe(el); - } -}); -</script> - -<style scoped> -.sticky { - position: sticky; - background: var(--background); - width: calc(100% - 2px); - z-index: 3; -} -</style> diff --git a/src/components/layout/VerticalRule.vue b/src/components/layout/VerticalRule.vue deleted file mode 100644 index 04a8adf..0000000 --- a/src/components/layout/VerticalRule.vue +++ /dev/null @@ -1,18 +0,0 @@ -<template> - <div class="vr" :style="{ height }"></div> -</template> - -<script setup lang="ts"> -defineProps<{ - height?: string; -}>(); -</script> - -<style scoped> -.vr { - width: 4px; - background: var(--outline); - height: 100%; - margin: auto var(--feature-margin); -} -</style> diff --git a/src/components/math/Floor.vue b/src/components/math/Floor.vue deleted file mode 100644 index 7010c59..0000000 --- a/src/components/math/Floor.vue +++ /dev/null @@ -1,5 +0,0 @@ -<template> - <span style="white-space: nowrap; font-size: larger; font-family: initial"> - ⌊ <slot /> ⌋ - </span> -</template> diff --git a/src/components/math/Fraction.vue b/src/components/math/Fraction.vue deleted file mode 100644 index 8b13789..0000000 --- a/src/components/math/Fraction.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/math/Sqrt.vue b/src/components/math/Sqrt.vue deleted file mode 100644 index 461846f..0000000 --- a/src/components/math/Sqrt.vue +++ /dev/null @@ -1,8 +0,0 @@ -<template> - <span style="white-space: nowrap"> - <span style="font-size: larger; font-family: initial">√</span> - <div style="display: inline-block; border-top: 1px solid; padding-left: 0.2em"> - <slot /> - </div> - </span> -</template> diff --git a/src/components/modals/AddictionWarning.vue b/src/components/modals/AddictionWarning.vue deleted file mode 100644 index 3137187..0000000 --- a/src/components/modals/AddictionWarning.vue +++ /dev/null @@ -1,84 +0,0 @@ -<template> - <Modal v-model="isOpen" v-bind="$attrs"> - <template v-slot:header> - <div class="vga-modal-header"> - <h2>Kindly consider taking a break.</h2> - </div> - </template> - <template v-slot:body> - <p> - You've been actively enjoying this game for awhile recently - and it's great that - you've been having a good time! That said, there are dangers to games like these that you should be aware of: - </p> - <p> - While incremental games can be fun and even healthy in certain contexts, they can - exacerbate video game addiction even more than other genres. If you feel like - playing incremental games is taking priority over other things in your life, or - manipulating your sleep schedule, it may be prudent to seek help. - </p> - <h4>Resources:</h4> - <p> - <span> - <a style="display: inline" href="https://www.samhsa.gov/" target="_blank"> - SAMHSA - </a> - (<a style="display: inline" href="tel:1-800-662-4357">1-800-662-HELP</a>) - </span> - <br /> - <a href="https://www.reddit.com/r/StopGaming/">r/StopGaming</a> - </p> - </template> - <template v-slot:footer> - <div class="vga-footer"> - <button @click="neverShow" class="button">Never show this again</button> - <button @click="isOpen = false" class="button">Close</button> - </div> - </template> - </Modal> - <SavesManager ref="savesManager" /> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import settings from "game/settings"; -import state from "game/state"; -import { ref, watchEffect } from "vue"; -import Modal from "./Modal.vue"; -import SavesManager from "./SavesManager.vue"; - -const isOpen = ref(false); -watchEffect(() => { - if ( - projInfo.disableHealthWarning === false && - settings.showHealthWarning && - state.mouseActivity.filter(i => i).length > 6 - ) { - isOpen.value = true; - } -}); - -function neverShow() { - settings.showHealthWarning = false; - isOpen.value = false; -} -</script> - -<style scoped> -.vga-modal-header { - padding-top: 10px; - margin-left: 10px; -} - -.vga-footer { - display: flex; - justify-content: flex-end; -} - -.vga-footer button { - margin: 0 10px; -} - -p { - margin-bottom: 10px; -} -</style> diff --git a/src/components/modals/CloudSaveResolver.vue b/src/components/modals/CloudSaveResolver.vue deleted file mode 100644 index 6fc56cd..0000000 --- a/src/components/modals/CloudSaveResolver.vue +++ /dev/null @@ -1,228 +0,0 @@ -<template> - <Modal v-model="isOpen" width="960px" ref="modal" :prevent-closing="true"> - <template v-slot:header> - <div class="cloud-saves-modal-header"> - <h2>Cloud {{ pluralizedSave }} loaded!</h2> - </div> - </template> - <template v-slot:body> - <div> - Upon loading, your cloud {{ pluralizedSave }} - {{ conflictingSaves.length > 1 ? "appear" : "appears" }} to be out of sync with your - local {{ pluralizedSave }}. Which - {{ pluralizedSave }} - do you want to keep? - </div> - <br /> - <div - v-for="(conflict, i) in unref(conflictingSaves)" - :key="conflict.id" - class="conflict-container" - > - <div @click="selectCloud(i)" :class="{ selected: selectedSaves[i] === 'cloud' }"> - <h2> - Cloud - <span - v-if="(conflict.cloud.time ?? 0) > (conflict.local.time ?? 0)" - class="note" - >(more recent)</span - > - <span - v-if=" - (conflict.cloud.timePlayed ?? 0) > (conflict.local.timePlayed ?? 0) - " - class="note" - >(more playtime)</span - > - </h2> - <Save :save="conflict.cloud" :readonly="true" /> - </div> - <div @click="selectLocal(i)" :class="{ selected: selectedSaves[i] === 'local' }"> - <h2> - Local - <span - v-if="(conflict.cloud.time ?? 0) <= (conflict.local.time ?? 0)" - class="note" - >(more recent)</span - > - <span - v-if=" - (conflict.cloud.timePlayed ?? 0) <= (conflict.local.timePlayed ?? 0) - " - class="note" - >(more playtime)</span - > - </h2> - <Save :save="conflict.local" :readonly="true" /> - </div> - <div - @click="selectBoth(i)" - :class="{ selected: selectedSaves[i] === 'both' }" - style="flex-basis: 30%" - > - <h2>Both</h2> - <div class="save">Keep Both</div> - </div> - </div> - </template> - <template v-slot:footer> - <div class="cloud-saves-footer"> - <button @click="close" class="button">Confirm</button> - </div> - </template> - </Modal> -</template> - -<script setup lang="ts"> -import { stringifySave } from "game/player"; -import settings from "game/settings"; -import LZString from "lz-string"; -import { conflictingSaves, galaxy } from "util/galaxy"; -import { getUniqueID, save, setupInitialStore } from "util/save"; -import { ComponentPublicInstance, computed, ref, unref, watch } from "vue"; -import Modal from "./Modal.vue"; -import Save from "./Save.vue"; - -const isOpen = ref(false); -// True means replacing local save with cloud save -const selectedSaves = ref<("cloud" | "local" | "both")[]>([]); - -const pluralizedSave = computed(() => (conflictingSaves.value.length > 1 ? "saves" : "save")); - -const modal = ref<ComponentPublicInstance<typeof Modal> | null>(null); - -watch( - () => conflictingSaves.value.length > 0, - shouldOpen => { - if (shouldOpen) { - selectedSaves.value = conflictingSaves.value.map(({ local, cloud }) => { - return (local.time ?? 0) < (cloud.time ?? 0) ? "cloud" : "local"; - }); - isOpen.value = true; - } - }, - { immediate: true } -); - -watch( - () => modal.value?.isOpen, - open => { - if (open === false) { - conflictingSaves.value = []; - } - } -); - -function selectLocal(index: number) { - selectedSaves.value[index] = "local"; -} - -function selectCloud(index: number) { - selectedSaves.value[index] = "cloud"; -} - -function selectBoth(index: number) { - selectedSaves.value[index] = "both"; -} - -function close() { - for (let i = 0; i < selectedSaves.value.length; i++) { - const { slot, local, cloud } = conflictingSaves.value[i]; - switch (selectedSaves.value[i]) { - case "local": - // Replace cloud save with local - galaxy.value - ?.save( - slot, - LZString.compressToUTF16(stringifySave(setupInitialStore(local))), - cloud.name - ) - .catch(console.error); - break; - case "cloud": - // Replace local save with cloud - save(setupInitialStore(cloud)); - break; - case "both": - // Get a new save ID for the cloud save, and sync the local one to the cloud - const id = getUniqueID(); - save({ ...setupInitialStore(cloud), id }); - settings.saves.push(id); - galaxy.value - ?.save( - slot, - LZString.compressToUTF16(stringifySave(setupInitialStore(local))), - cloud.name - ) - .catch(console.error); - break; - } - } - isOpen.value = false; -} -</script> - -<style scoped> -.cloud-saves-modal-header { - padding: 10px 0; - margin-left: 10px; -} - -.cloud-saves-footer { - display: flex; - justify-content: flex-end; -} - -.cloud-saves-footer button { - margin: 0 10px; -} - -.conflict-container { - display: flex; -} - -.conflict-container > * { - flex-basis: 50%; - display: flex; - flex-flow: column; - margin: 0; -} - -.conflict-container + .conflict-container { - margin-top: 1em; -} - -.conflict-container h2 { - display: flex; - flex-flow: column wrap; - height: 1.5em; - margin: 0; -} - -.note { - font-size: x-small; - opacity: 0.7; - margin-right: 1em; -} - -.save { - border: solid 4px var(--outline); - padding: 4px; - background: var(--raised-background); - margin: var(--feature-margin); - display: flex; - align-items: center; - min-height: 30px; - height: 100%; -} -</style> - -<style> -.conflict-container .save { - cursor: pointer; -} - -.conflict-container .selected .save { - border-color: var(--bought); -} -</style> diff --git a/src/components/modals/GameOverScreen.vue b/src/components/modals/GameOverScreen.vue deleted file mode 100644 index be86c8c..0000000 --- a/src/components/modals/GameOverScreen.vue +++ /dev/null @@ -1,113 +0,0 @@ -<template> - <Modal :model-value="isOpen"> - <template v-slot:header> - <div class="game-over-modal-header"> - <img class="game-over-modal-logo" v-if="logo" :src="logo" :alt="title" /> - <div class="game-over-modal-title"> - <h2>Congratulations!</h2> - <h4>You've beaten {{ title }} v{{ versionNumber }}: {{ versionTitle }}</h4> - </div> - </div> - </template> - <template v-slot:body="{ shown }"> - <div v-if="shown"> - <div>It took you {{ timePlayed }} to beat the game.</div> - <br /> - <div> - Please check the Discord to discuss the game or to check for new content - updates! - </div> - <br /> - <div v-if="discordLink && discordName"> - <a :href="discordLink" class="game-over-modal-discord-link"> - <span class="material-icons game-over-modal-discord">discord</span> - {{ discordName }} - </a> - </div> - <div v-else> - <a href="https://discord.gg/yJ4fjnjU54" class="game-over-modal-discord-link"> - <span class="material-icons game-over-modal-discord">discord</span> - Profectus & Friends - </a> - </div> - <Toggle title="Autosave" v-model="autosave" /> - </div> - </template> - <template v-slot:footer> - <div class="game-over-footer"> - <button @click="keepGoing" class="button">Keep Going</button> - <button @click="playAgain" class="button danger">Play Again</button> - </div> - </template> - </Modal> -</template> - -<script setup lang="ts"> -import { hasWon } from "data/projEntry"; -import projInfo from "data/projInfo.json"; -import player from "game/player"; -import { formatTime } from "util/bignum"; -import { loadSave, newSave } from "util/save"; -import { computed, toRef } from "vue"; -import Toggle from "../fields/Toggle.vue"; -import Modal from "./Modal.vue"; - -const { title, logo, discordName, discordLink, versionNumber, versionTitle } = projInfo; - -const timePlayed = computed(() => formatTime(player.timePlayed)); -const isOpen = computed(() => hasWon.value && !player.keepGoing); -const autosave = toRef(player, "autosave"); - -function keepGoing() { - player.keepGoing = true; -} - -function playAgain() { - loadSave(newSave()); -} -</script> - -<style scoped> -.game-over-modal-header { - display: flex; - margin: -20px; - margin-bottom: 0; - background: var(--raised-background); - align-items: center; -} - -.game-over-modal-header * { - margin: 0; -} - -.game-over-modal-logo { - height: 4em; - width: 4em; -} - -.game-over-modal-title { - display: flex; - flex-direction: column; - padding: 10px 0; - margin-left: 10px; -} - -.game-over-footer { - display: flex; - justify-content: flex-end; -} - -.game-over-footer button { - margin: 0 10px; -} - -.game-over-modal-discord-link { - display: flex; - align-items: center; -} - -.game-over-modal-discord { - margin: 0; - margin-right: 4px; -} -</style> diff --git a/src/components/modals/Info.vue b/src/components/modals/Info.vue deleted file mode 100644 index e92b5e8..0000000 --- a/src/components/modals/Info.vue +++ /dev/null @@ -1,124 +0,0 @@ -<template> - <Modal v-model="isOpen"> - <template v-slot:header> - <div class="info-modal-header"> - <img class="info-modal-logo" v-if="logo" :src="logo" :alt="title" /> - <div class="info-modal-title"> - <h2>{{ title }}</h2> - <h4> - v{{ versionNumber }}<span v-if="versionTitle">: {{ versionTitle }}</span> - </h4> - </div> - </div> - </template> - <template v-slot:body="{ shown }"> - <div v-if="shown"> - <div v-if="author">By {{ author }}</div> - <div> - Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb - </div> - <br /> - <div class="link" @click="emits('openChangelog')">Changelog</div> - <br /> - <div> - <a - :href="discordLink" - v-if="discordLink" - class="info-modal-discord-link" - target="_blank" - > - <span class="material-icons info-modal-discord">discord</span> - {{ discordName }} - </a> - </div> - <div> - <a - href="https://discord.gg/yJ4fjnjU54" - class="info-modal-discord-link" - target="_blank" - > - <span class="material-icons info-modal-discord">discord</span> - Profectus & Friends - </a> - </div> - <div> - <a - href="https://discord.gg/F3xveHV" - class="info-modal-discord-link" - target="_blank" - > - <span class="material-icons info-modal-discord">discord</span> - The Modding Tree - </a> - </div> - <br /> - <div>Time Played: {{ timePlayed }}</div> - <InfoComponents /> - </div> - </template> - </Modal> -</template> - -<script setup lang="tsx"> -import projInfo from "data/projInfo.json"; -import player from "game/player"; -import { infoComponents } from "game/settings"; -import { formatTime } from "util/bignum"; -import { render } from "util/vue"; -import { computed, ref } from "vue"; -import Modal from "./Modal.vue"; - -const { title, logo, author, discordName, discordLink, versionNumber, versionTitle } = projInfo; - -const emits = defineEmits<{ - (e: "openChangelog"): void; -}>(); - -const isOpen = ref(false); - -const timePlayed = computed(() => formatTime(player.timePlayed)); - -const InfoComponents = () => infoComponents.map(f => render(f)); - -defineExpose({ - open() { - isOpen.value = true; - } -}); -</script> - -<style scoped> -.info-modal-header { - display: flex; - margin: -20px; - margin-bottom: 0; - background: var(--raised-background); - align-items: center; -} - -.info-modal-header * { - margin: 0; -} - -.info-modal-logo { - height: 4em; - width: 4em; -} - -.info-modal-title { - display: flex; - flex-direction: column; - padding: 10px 0; - margin-left: 10px; -} - -.info-modal-discord-link { - display: flex; - align-items: center; -} - -.info-modal-discord { - margin: 0; - margin-right: 4px; -} -</style> diff --git a/src/components/modals/Modal.vue b/src/components/modals/Modal.vue deleted file mode 100644 index 0394b41..0000000 --- a/src/components/modals/Modal.vue +++ /dev/null @@ -1,156 +0,0 @@ -<template> - <teleport to="#modal-root"> - <transition - name="modal" - @before-enter="isAnimating = true" - @after-leave="isAnimating = false" - appear - > - <div - class="modal-mask" - v-show="modelValue" - v-on:pointerdown.self="close" - v-bind="$attrs" - > - <div class="modal-wrapper"> - <div class="modal-container" :width="width"> - <div class="modal-header"> - <!-- - @slot Modal Header - @binding {boolean} shown Whether the modal is currently open or animating - --> - <slot name="header" :shown="isOpen" /> - </div> - <div class="modal-body"> - <Context ref="contextRef"> - <!-- - @slot Modal Body - @binding {boolean} shown Whether the modal is currently open or animating - --> - <slot name="body" :shown="isOpen" /> - </Context> - </div> - <div class="modal-footer"> - <!-- - @slot Modal Footer - @binding {boolean} shown Whether the modal is currently open or animating - --> - <slot name="footer" :shown="isOpen"> - <div class="modal-default-footer"> - <div class="modal-default-flex-grow"></div> - <button class="button modal-default-button" @click="close"> - Close - </button> - </div> - </slot> - </div> - </div> - </div> - </div> - </transition> - </teleport> -</template> - -<script setup lang="ts"> -import type { FeatureNode } from "game/layers"; -import { computed, ref } from "vue"; -import Context from "../Context.vue"; - -const props = defineProps<{ - modelValue: boolean; - preventClosing?: boolean; - width?: string; -}>(); - -const emit = defineEmits<{ - (e: "update:modelValue", value: boolean): void; -}>(); - -const isOpen = computed(() => props.modelValue || isAnimating.value); -function close() { - if (props.preventClosing !== true) { - emit("update:modelValue", false); - } -} - -const isAnimating = ref(false); - -const contextRef = ref<typeof Context | null>(null); -const nodes = computed<Record<string, FeatureNode | undefined> | null>( - () => contextRef.value?.nodes ?? null -); - -defineExpose({ isOpen, nodes }); -</script> - -<style> -.modal-mask { - position: fixed; - z-index: 9998; - top: 0; - left: 0; - bottom: 0; - right: 0; - background-color: rgba(0, 0, 0, 0.5); - transition: opacity 0.3s ease; -} - -.modal-wrapper { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); -} - -.modal-container { - width: 640px; - max-width: 95vw; - max-height: 95vh; - background-color: var(--background); - padding: 20px; - border-radius: 5px; - transition: all 0.3s ease; - text-align: left; - border: var(--modal-border); - box-sizing: border-box; - display: flex; - flex-direction: column; -} - -.modal-header { - width: 100%; -} - -.modal-body { - margin: 20px 0; - width: 100%; - overflow-y: auto; - overflow-x: hidden; -} - -.modal-footer { - width: 100%; -} - -.modal-default-footer { - display: flex; -} - -.modal-default-flex-grow { - flex-grow: 1; -} - -.modal-enter-from { - opacity: 0; -} - -.modal-leave-active { - opacity: 0; -} - -.modal-enter-from .modal-container, -.modal-leave-active .modal-container { - -webkit-transform: scale(1.1); - transform: scale(1.1); -} -</style> diff --git a/src/components/modals/NaNScreen.vue b/src/components/modals/NaNScreen.vue deleted file mode 100644 index f8735f4..0000000 --- a/src/components/modals/NaNScreen.vue +++ /dev/null @@ -1,130 +0,0 @@ -<template> - <Modal v-model="hasNaN" v-bind="$attrs"> - <template v-slot:header> - <div class="nan-modal-header"> - <h2>NaN value detected!</h2> - </div> - </template> - <template v-slot:body> - <div> - Attempted to assign "{{ path }}" to NaN<span v-if="previous"> - {{ " " }}(previously {{ format(previous) }})</span - >. Auto-saving has been {{ autosave ? "enabled" : "disabled" }}. Check the console - for more details, and consider sharing it with the developers on discord. - </div> - <br /> - <div> - <a - :href="discordLink || 'https://discord.gg/yJ4fjnjU54'" - class="nan-modal-discord-link" - > - <span class="material-icons nan-modal-discord">discord</span> - {{ discordName || "Profectus & Friends" }} - </a> - </div> - <br /> - <Toggle title="Autosave" v-model="autosave" /> - <Toggle v-if="projInfo.enablePausing" title="Pause game" v-model="isPaused" /> - </template> - <template v-slot:footer> - <div class="nan-footer"> - <button @click="savesManager?.open()" class="button">Open Saves Manager</button> - <button @click="setZero" class="button">Set to 0</button> - <button @click="setOne" class="button">Set to 1</button> - <button - @click="hasNaN = false" - class="button" - v-if="previous && Decimal.neq(previous, 0) && Decimal.neq(previous, 1)" - > - Set to previous - </button> - <button @click="ignore" class="button danger">Ignore</button> - </div> - </template> - </Modal> - <SavesManager ref="savesManager" /> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import player from "game/player"; -import state from "game/state"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { format } from "util/bignum"; -import type { ComponentPublicInstance } from "vue"; -import { computed, ref, toRef, watch } from "vue"; -import Toggle from "../fields/Toggle.vue"; -import Modal from "./Modal.vue"; -import SavesManager from "./SavesManager.vue"; - -const { discordName, discordLink } = projInfo; -const autosave = ref(true); -const isPaused = ref(true); -const hasNaN = toRef(state, "hasNaN"); -const savesManager = ref<ComponentPublicInstance<typeof SavesManager> | null>(null); - -watch(hasNaN, hasNaN => { - if (hasNaN) { - autosave.value = player.autosave; - isPaused.value = player.devSpeed === 0; - } else { - player.autosave = autosave.value; - player.devSpeed = isPaused.value ? 0 : null; - } -}); - -const path = computed(() => state.NaNPath?.join(".")); -const previous = computed<DecimalSource | null>(() => { - if (state.NaNPersistent != null) { - return state.NaNPersistent.value; - } - return null; -}); - -function setZero() { - if (state.NaNPersistent != null) { - state.NaNPersistent.value = new Decimal(0); - state.hasNaN = false; - } -} - -function setOne() { - if (state.NaNPersistent) { - state.NaNPersistent.value = new Decimal(1); - state.hasNaN = false; - } -} - -function ignore() { - if (state.NaNPersistent) { - state.NaNPersistent.value = new Decimal(NaN); - state.hasNaN = false; - } -} -</script> - -<style scoped> -.nan-modal-header { - padding: 10px 0; - margin-left: 10px; -} - -.nan-footer { - display: flex; - justify-content: flex-end; -} - -.nan-footer button { - margin: 0 10px; -} - -.nan-modal-discord-link { - display: flex; - align-items: center; -} - -.nan-modal-discord { - margin: 0; - margin-right: 4px; -} -</style> diff --git a/src/components/modals/Options.vue b/src/components/modals/Options.vue deleted file mode 100644 index 908d1a5..0000000 --- a/src/components/modals/Options.vue +++ /dev/null @@ -1,155 +0,0 @@ -<template> - <Modal v-model="isOpen"> - <template v-slot:header> - <div class="header"> - <h2>Settings</h2> - <div class="option-tabs"> - <button :class="{selected: isTab('behaviour')}" @click="setTab('behaviour')">Behaviour</button> - <button :class="{selected: isTab('appearance')}" @click="setTab('appearance')">Appearance</button> - </div> - </div> - </template> - <template v-slot:body> - <div v-if="isTab('behaviour')"> - <Toggle :title="unthrottledTitle" v-model="unthrottled" /> - <Toggle v-if="projInfo.enablePausing" :title="isPausedTitle" v-model="isPaused" /> - <Toggle :title="offlineProdTitle" v-model="offlineProd" /> - <Toggle :title="showHealthWarningTitle" v-model="showHealthWarning" v-if="!projInfo.disableHealthWarning" /> - <Toggle :title="autosaveTitle" v-model="autosave" /> - <FeedbackButton v-if="!autosave" class="button save-button" @click="save()">Manually save</FeedbackButton> - </div> - <div v-if="isTab('appearance')"> - <Select :title="themeTitle" :options="themes" v-model="theme" /> - <SettingFields /> - <Toggle :title="showTPSTitle" v-model="showTPS" /> - <Toggle :title="alignModifierUnitsTitle" v-model="alignUnits" /> - </div> - </template> - </Modal> -</template> - -<script setup lang="tsx"> -import projInfo from "data/projInfo.json"; -import rawThemes from "data/themes"; -import player from "game/player"; -import settings, { settingFields } from "game/settings"; -import { camelToTitle, Direction } from "util/common"; -import { save } from "util/save"; -import { render } from "util/vue"; -import { computed, ref, toRefs } from "vue"; -import Tooltip from "wrappers/tooltips/Tooltip.vue"; -import FeedbackButton from "../fields/FeedbackButton.vue"; -import Select from "../fields/Select.vue"; -import Toggle from "../fields/Toggle.vue"; -import Modal from "./Modal.vue"; - -const isOpen = ref(false); -const currentTab = ref("behaviour"); - -function isTab(tab: string): boolean { - return tab == currentTab.value; -} - -function setTab(tab: string) { - currentTab.value = tab; -} - -defineExpose({ - isTab, - setTab, - save, - open() { - isOpen.value = true; - } -}); - -const themes = Object.keys(rawThemes).map(theme => ({ - label: camelToTitle(theme), - value: theme -})); - -const SettingFields = () => settingFields.map(f => render(f)); - -const { showTPS, theme, unthrottled, alignUnits, showHealthWarning } = toRefs(settings); -const { autosave, offlineProd } = toRefs(player); -const isPaused = computed({ - get() { - return player.devSpeed === 0; - }, - set(value: boolean) { - player.devSpeed = value ? 0 : null; - } -}); - -const unthrottledTitle = <span class="option-title"> - Unthrottled - <desc>Allow the game to run as fast as possible. Not battery friendly.</desc> -</span>; -const offlineProdTitle = <span class="option-title"> - Offline production<Tooltip display="Save-specific" direction={Direction.Right}>*</Tooltip> - <desc>Simulate production that occurs while the game is closed.</desc> -</span>; -const showHealthWarningTitle = <span class="option-title"> - Show videogame addiction warning - <desc>Show a helpful warning after playing for a long time about video game addiction and encouraging you to take a break.</desc> -</span>; -const autosaveTitle = <span class="option-title"> - Autosave<Tooltip display="Save-specific" direction={Direction.Right}>*</Tooltip> - <desc>Automatically save the game every second or when the game is closed.</desc> -</span>; -const isPausedTitle = <span class="option-title"> - Pause game<Tooltip display="Save-specific" direction={Direction.Right}>*</Tooltip> - <desc>Stop everything from moving.</desc> -</span>; -const themeTitle = <span class="option-title"> - Theme - <desc>How the game looks.</desc> -</span>; -const showTPSTitle = <span class="option-title"> - Show TPS - <desc>Show TPS meter at the bottom-left corner of the page.</desc> -</span>; -const alignModifierUnitsTitle = <span class="option-title"> - Align modifier units - <desc>Align numbers to the beginning of the unit in modifier view.</desc> -</span>; -</script> - -<style> -.option-tabs { - border-bottom: 2px solid var(--outline); - margin-top: 10px; - margin-bottom: -10px; -} - -.option-tabs button { - background-color: transparent; - color: var(--foreground); - margin-bottom: -2px; - font-size: 14px; - cursor: pointer; - padding: 5px 20px; - border: none; - border-bottom: 2px solid var(--foreground); -} - -.option-tabs button:not(.selected) { - border-bottom-color: transparent; -} - -.option-title .tooltip-container { - display: inline; - margin-left: 5px; -} -.option-title desc { - display: block; - opacity: 0.6; - font-size: small; - width: 300px; - margin-left: 0; -} - -.save-button { - text-align: right; -} -</style> diff --git a/src/components/modals/Save.vue b/src/components/modals/Save.vue deleted file mode 100644 index 02c3fcc..0000000 --- a/src/components/modals/Save.vue +++ /dev/null @@ -1,245 +0,0 @@ -<template> - <div class="save" :class="{ active: isActive, readonly }"> - <div class="handle material-icons" v-if="readonly !== true">drag_handle</div> - <div class="actions" v-if="!isEditing && readonly !== true"> - <FeedbackButton - @click="emit('export')" - class="button" - left - v-if="save.error == undefined && !isConfirming" - > - <Tooltip display="Export" :direction="Direction.Left" class="info"> - <span class="material-icons">content_paste</span> - </Tooltip> - </FeedbackButton> - <button - @click="emit('duplicate')" - class="button" - v-if="save.error == undefined && !isConfirming" - > - <Tooltip display="Duplicate" :direction="Direction.Left" class="info"> - <span class="material-icons">content_copy</span> - </Tooltip> - </button> - <button - @click="isEditing = !isEditing" - class="button" - v-if="save.error == undefined && !isConfirming" - > - <Tooltip display="Edit Name" :direction="Direction.Left" class="info"> - <span class="material-icons">edit</span> - </Tooltip> - </button> - <DangerButton - :disabled="isActive" - @click="emit('delete')" - @confirmingChanged="(value: boolean) => (isConfirming = value)" - > - <Tooltip display="Delete" :direction="Direction.Left" class="info"> - <span class="material-icons" style="margin: -2px">delete</span> - </Tooltip> - </DangerButton> - </div> - <div class="actions" v-else-if="readonly !== true"> - <button @click="changeName" class="button"> - <Tooltip display="Save" :direction="Direction.Left" class="info"> - <span class="material-icons">check</span> - </Tooltip> - </button> - <button @click="isEditing = !isEditing" class="button"> - <Tooltip display="Cancel" :direction="Direction.Left" class="info"> - <span class="material-icons">close</span> - </Tooltip> - </button> - </div> - <div class="details" v-if="save.error == undefined && !isEditing"> - <Tooltip display="Synced!" :direction="Direction.Right" v-if="synced" - ><span class="material-icons synced">cloud</span></Tooltip - > - <button class="button open" @click="emit('open')" :disabled="readonly"> - <h3>{{ save.name }}</h3> - </button> - <span class="save-version">v{{ save.modVersion }}</span - ><br /> - <div v-if="currentTime" class="time"> - Last played {{ dateFormat.format(currentTime) }} - </div> - </div> - <div class="details" v-else-if="save.error == undefined && isEditing"> - <Text v-model="newName" class="editname" @submit="changeName" /> - </div> - <div v-else class="details error"> - Error: Failed to load save with id {{ save.id }}<br />{{ save.error }} - </div> - </div> -</template> - -<script setup lang="ts"> -import player from "game/player"; -import { Direction } from "util/common"; -import { galaxy, syncedSaves } from "util/galaxy"; -import { LoadablePlayerData } from "util/save"; -import { computed, ref, watch } from "vue"; -import Tooltip from "wrappers/tooltips/Tooltip.vue"; -import DangerButton from "../fields/DangerButton.vue"; -import FeedbackButton from "../fields/FeedbackButton.vue"; -import Text from "../fields/Text.vue"; - -const props = defineProps<{ - save: LoadablePlayerData; - readonly?: boolean; -}>(); - -const emit = defineEmits<{ - (e: "export"): void; - (e: "open"): void; - (e: "duplicate"): void; - (e: "delete"): void; - (e: "editName", name: string): void; -}>(); - -const dateFormat = new Intl.DateTimeFormat("en-US", { - year: "numeric", - month: "numeric", - day: "numeric", - hour: "numeric", - minute: "numeric", - second: "numeric" -}); - -const isEditing = ref(false); -const isConfirming = ref(false); -const newName = ref(""); - -watch(isEditing, () => (newName.value = props.save.name ?? "")); - -const isActive = computed( - () => props.save != null && props.save.id === player.id && !props.readonly -); -const currentTime = computed(() => - isActive.value ? player.time : (props.save != null && props.save.time) ?? 0 -); -const synced = computed( - () => - !props.readonly && - galaxy.value?.loggedIn === true && - syncedSaves.value.includes(props.save.id) -); - -function changeName() { - emit("editName", newName.value); - isEditing.value = false; -} -</script> - -<style scoped> -.save { - position: relative; - border: solid 4px var(--outline); - padding: 4px; - background: var(--raised-background); - margin: var(--feature-margin); - display: flex; - align-items: center; - min-height: 30px; -} - -.save.active { - border-color: var(--bought); -} - -.open { - display: inline; - margin: 0; - padding-left: 0; -} - -.open:disabled { - cursor: inherit; - color: var(--foreground); - opacity: 1; - pointer-events: none; -} - -.handle { - flex-grow: 0; - margin-right: 8px; - margin-left: 0; - cursor: pointer; -} - -.details { - margin: 0; - flex-grow: 1; - margin-right: 80px; -} - -.save.readonly .details { - margin-right: 0; -} - -.error { - font-size: 0.8em; - color: var(--danger); -} - -.save-version { - margin-left: 4px; - font-size: 0.7em; - opacity: 0.7; -} - -.actions { - position: absolute; - top: 0; - bottom: 0; - right: 4px; - display: flex; - padding: 4px; - z-index: 1; -} - -.editname { - margin: 0; -} - -.time { - font-size: small; -} - -.synced { - font-size: 100%; - margin-right: 0.5em; - vertical-align: middle; - cursor: default; -} -</style> - -<style> -.save button { - transition-duration: 0s; -} - -.save .actions button { - display: flex; - font-size: 1.2em; -} - -.save .actions button .material-icons { - font-size: unset; -} - -.save .button.danger { - display: flex; - align-items: center; - padding: 4px; -} - -.save .field { - margin: 0; -} - -.details > .tooltip-container { - display: inline; -} -</style> diff --git a/src/components/modals/SavesManager.vue b/src/components/modals/SavesManager.vue deleted file mode 100644 index b482225..0000000 --- a/src/components/modals/SavesManager.vue +++ /dev/null @@ -1,311 +0,0 @@ -<template> - <Modal v-model="isOpen" ref="modal"> - <template v-slot:header> - <h2>Saves Manager</h2> - </template> - <template #body="{ shown }"> - <div v-if="showNotSyncedWarning" style="color: var(--danger)"> - Not all saves are synced! You may need to delete stale saves. - </div> - <Draggable - :list="settings.saves" - handle=".handle" - v-if="shown" - :itemKey="(save: string) => save" - > - <template #item="{ element }"> - <Save - :save="saves[element]" - @open="openSave(element)" - @export="exportSave(element)" - @editName="(name: string) => editSave(element, name)" - @duplicate="duplicateSave(element)" - @delete="deleteSave(element)" - /> - </template> - </Draggable> - </template> - <template v-slot:footer> - <div class="modal-footer"> - <Text - v-model="saveToImport" - title="Import Save" - placeholder="Paste your save here!" - :class="{ importingFailed }" - /> - <div class="field"> - <span class="field-title">Create Save</span> - <div class="field-buttons"> - <button class="button" @click="openSave(newSave().id)">New Game</button> - <Select - v-if="Object.keys(bank).length > 0" - :options="bank" - :modelValue="selectedPreset" - @update:modelValue="(preset: unknown) => newFromPreset(preset as string)" - closeOnSelect - placeholder="Select preset" - class="presets" - /> - </div> - </div> - <div class="footer"> - <div style="flex-grow: 1"></div> - <button class="button modal-default-button" @click="isOpen = false"> - Close - </button> - </div> - </div> - </template> - </Modal> -</template> - -<script setup lang="ts"> -import projInfo from "data/projInfo.json"; -import type { Player } from "game/player"; -import player, { stringifySave } from "game/player"; -import settings from "game/settings"; -import LZString from "lz-string"; -import { galaxy, syncedSaves } from "util/galaxy"; -import { - clearCachedSave, - clearCachedSaves, - decodeSave, - getCachedSave, - getUniqueID, - LoadablePlayerData, - loadSave, - newSave, - save -} from "util/save"; -import type { ComponentPublicInstance } from "vue"; -import { computed, nextTick, ref, watch } from "vue"; -import Draggable from "vuedraggable"; -import Select from "../fields/Select.vue"; -import Text from "../fields/Text.vue"; -import Modal from "./Modal.vue"; -import Save from "./Save.vue"; - -const isOpen = ref(false); -const modal = ref<ComponentPublicInstance<typeof Modal> | null>(null); - -defineExpose({ - open() { - isOpen.value = true; - } -}); - -const importingFailed = ref(false); -const saveToImport = ref(""); -const selectedPreset = ref<string | null>(null); - -watch(saveToImport, importedSave => { - if (importedSave) { - nextTick(() => { - try { - importedSave = decodeSave(importedSave) ?? ""; - if (importedSave === "") { - console.warn("Unable to determine preset encoding", importedSave); - importingFailed.value = true; - return; - } - const playerData = JSON.parse(importedSave); - if (typeof playerData !== "object") { - importingFailed.value = true; - return; - } - const id = getUniqueID(); - playerData.id = id; - save(playerData); - saveToImport.value = ""; - importingFailed.value = false; - - settings.saves.push(id); - } catch (e) { - importingFailed.value = true; - } - }); - } else { - importingFailed.value = false; - } -}); - -let bankContext = import.meta.glob("./../../../saves/*.txt", { query: "?raw", eager: true }); -let bank = ref( - Object.keys(bankContext).reduce((acc: Array<{ label: string; value: string }>, curr) => { - acc.push({ - // .slice(2, -4) strips the leading ./ and the trailing .txt - label: curr.split("/").slice(-1)[0].slice(0, -4), - value: bankContext[curr] as string - }); - return acc; - }, []) -); - -// Wipe cache whenever the modal is opened -watch(isOpen, isOpen => { - if (isOpen) { - clearCachedSaves(); - } -}); - -const saves = computed(() => - settings.saves.reduce((acc: Record<string, LoadablePlayerData>, curr: string) => { - acc[curr] = getCachedSave(curr); - return acc; - }, {}) -); - -const showNotSyncedWarning = computed( - () => galaxy.value?.loggedIn === true && settings.saves.length < syncedSaves.value.length -); - -function exportSave(id: string) { - let saveToExport; - if (player.id === id) { - saveToExport = stringifySave(player); - } else { - saveToExport = JSON.stringify(saves.value[id]); - } - switch (projInfo.exportEncoding) { - default: - console.warn(`Unknown save encoding: ${projInfo.exportEncoding}. Defaulting to lz`); - case "lz": - saveToExport = LZString.compressToUTF16(saveToExport); - break; - case "base64": - saveToExport = btoa(unescape(encodeURIComponent(saveToExport))); - break; - case "plain": - break; - } - - // Put on clipboard. Using the clipboard API asks for permissions and stuff - const el = document.createElement("textarea"); - el.value = saveToExport; - document.body.appendChild(el); - el.select(); - el.setSelectionRange(0, 99999); - document.execCommand("copy"); - document.body.removeChild(el); -} - -function duplicateSave(id: string) { - if (player.id === id) { - save(); - } - - const playerData = { ...saves.value[id], id: getUniqueID() }; - save(playerData as Player); - - settings.saves.push(playerData.id); -} - -function deleteSave(id: string) { - if (galaxy.value?.loggedIn === true) { - galaxy.value.getSaveList().then(list => { - const slot = Object.keys(list).find(slot => { - const content = list[parseInt(slot)].content; - try { - if (JSON.parse(content).id === id) { - return true; - } - } catch (e) { - return false; - } - }); - if (slot != null) { - galaxy.value?.save(parseInt(slot), "", "").catch(console.error); - } - }); - } - settings.saves = settings.saves.filter((save: string) => save !== id); - localStorage.removeItem(id); - clearCachedSave(id); -} - -function openSave(id: string) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - saves.value[player.id]!.time = player.time; - save(); - clearCachedSave(player.id); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - loadSave(saves.value[id]!); - // Delete cached version in case of opening it again - clearCachedSave(id); -} - -function newFromPreset(preset: string) { - // Reset preset dropdown - selectedPreset.value = preset; - nextTick(() => { - selectedPreset.value = null; - }); - - preset = decodeSave(preset) ?? ""; - if (preset === "") { - console.warn("Unable to determine preset encoding", preset); - return; - } - const playerData = JSON.parse(preset); - playerData.id = getUniqueID(); - save(playerData as Player); - - settings.saves.push(playerData.id); - - openSave(playerData.id); -} - -function editSave(id: string, newName: string) { - const currSave = saves.value[id]; - if (currSave != null) { - currSave.name = newName; - if (player.id === id) { - player.name = newName; - save(); - } else { - save(currSave as Player); - clearCachedSave(id); - } - } -} -</script> - -<style scoped> -.field form, -.field .field-title, -.field .field-buttons { - margin: 0; -} - -.field-buttons { - display: flex; -} - -.field-buttons .field { - margin: 0; - margin-left: 8px; -} - -.modal-footer { - margin-top: -20px; -} - -.footer { - display: flex; - margin-top: 20px; -} -</style> - -<style> -.importingFailed input { - color: red; -} - -.field-buttons .v-select { - width: 220px; -} - -.presets .vue-select[aria-expanded="true"] vue-dropdown { - visibility: hidden; -} -</style> diff --git a/src/data/Changelog.vue b/src/data/Changelog.vue deleted file mode 100644 index 675fe38..0000000 --- a/src/data/Changelog.vue +++ /dev/null @@ -1,83 +0,0 @@ -<template> - <Modal v-model="isOpen"> - <template v-slot:header> - <h2>Changelog</h2> - </template> - <template v-slot:body> - <details open> - <summary>v0.0 Initial Commit - <time>2021-09-04</time></summary> - This is the first release :D - <ul> - <li class="feature">Did everything</li> - <li class="fix">Had some fun</li> - <li class="breaking">Removed everything</li> - <li class="balancing">Created some bugs to fix later</li> - </ul> - </details> - </template> - </Modal> -</template> - -<script setup lang="ts"> -import Modal from "components/modals/Modal.vue"; -import { ref } from "vue"; - -const isOpen = ref(false); - -defineExpose({ - open() { - isOpen.value = true; - } -}); -</script> - -<style scoped> -details { - margin: 10px 0; - padding-left: 18px; -} - -summary { - cursor: pointer; - margin-bottom: 10px; - margin-left: -18px; -} - -ul { - margin: var(--feature-margin) 0; - background: var(--raised-background); - border: 2px solid rgba(0, 0, 0, 0.125); - padding: 5px 5px 5px 15px; - list-style: inside; -} - -li { - margin: 8px 0; -} - -li::before { - padding: 2px 8px; - margin-right: 8px; - border-radius: var(--border-radius); -} - -.feature::before { - content: "Feature"; - background: var(--accent1); -} - -.fix::before { - content: "Fix"; - background: var(--accent2); -} - -.balancing::before { - content: "Balancing"; - background: var(--accent3); -} - -.breaking::before { - content: "Breaking"; - background: var(--danger); -} -</style> diff --git a/src/data/common.css b/src/data/common.css deleted file mode 100644 index 1d13f96..0000000 --- a/src/data/common.css +++ /dev/null @@ -1,18 +0,0 @@ -.modifier-toggle { - padding-right: 10px; - transform: translateY(-1px); - display: inline-block; -} - -.modifier-toggle.collapsed { - transform: translate(-5px, -5px) rotate(-90deg); -} - -.node-text { - text-anchor: middle; - dominant-baseline: middle; - font-family: monospace; - font-size: 200%; - pointer-events: none; - filter: drop-shadow(3px 3px 2px var(--tooltip-background)); -} diff --git a/src/data/common.tsx b/src/data/common.tsx deleted file mode 100644 index 2d0bf30..0000000 --- a/src/data/common.tsx +++ /dev/null @@ -1,520 +0,0 @@ -import Collapsible from "components/layout/Collapsible.vue"; -import { Achievement } from "features/achievements/achievement"; -import type { Clickable, ClickableOptions } from "features/clickables/clickable"; -import { createClickable } from "features/clickables/clickable"; -import { Conversion } from "features/conversion"; -import { getFirstFeature } from "features/feature"; -import { displayResource, Resource } from "features/resources/resource"; -import type { Tree, TreeNode, TreeNodeOptions } from "features/trees/tree"; -import { createTreeNode } from "features/trees/tree"; -import type { GenericFormula } from "game/formulas/types"; -import { BaseLayer } from "game/layers"; -import { Modifier } from "game/modifiers"; -import type { Persistent } from "game/persistence"; -import { DefaultValue, persistent } from "game/persistence"; -import player from "game/player"; -import settings from "game/settings"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { format, formatSmall, formatTime } from "util/bignum"; -import { WithRequired } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { render, Renderable, renderCol } from "util/vue"; -import type { ComputedRef, MaybeRef, MaybeRefOrGetter } from "vue"; -import { computed, ref, unref } from "vue"; -import { JSX } from "vue/jsx-runtime"; -import "./common.css"; - -/** An object that configures a {@link ResetButton} */ -export interface ResetButtonOptions extends ClickableOptions { - /** The conversion the button uses to calculate how much resources will be gained on click */ - conversion: Conversion; - /** The tree this reset button is apart of */ - tree: Tree; - /** The specific tree node associated with this reset button */ - treeNode: TreeNode; - /** - * Text to display on low conversion amounts, describing what "resetting" is in this context. - * Defaults to "Reset for ". - */ - resetDescription?: MaybeRefOrGetter<string>; - /** Whether or not to show how much currency would be required to make the gain amount increase. */ - showNextAt?: MaybeRefOrGetter<boolean>; - /** - * The content to display on the button. - * By default, this includes the reset description, and amount of currency to be gained. - */ - display?: MaybeGetter<Renderable>; - /** - * Whether or not this button can currently be clicked. - * Defaults to checking the current gain amount is greater than {@link minimumGain} - */ - canClick?: MaybeRefOrGetter<boolean>; - /** - * When {@link canClick} is left to its default, minimumGain is used to only enable the reset button when a sufficient amount of currency to gain is available. - */ - minimumGain?: MaybeRefOrGetter<DecimalSource>; - /** A persistent ref to track how much time has passed since the last time this tree node was reset. */ - resetTime?: Persistent<DecimalSource>; -} - -/** - * A button that is used to control a conversion. - * It will show how much can be converted currently, and can show when that amount will go up, as well as handle only being clickable when a sufficient amount of currency can be gained. - * Assumes this button is associated with a specific node on a tree, and triggers that tree's reset propagation. - */ -export interface ResetButton extends Clickable { - /** The conversion the button uses to calculate how much resources will be gained on click */ - conversion: Conversion; - /** The tree this reset button is apart of */ - tree: Tree; - /** The specific tree node associated with this reset button */ - treeNode: TreeNode; - /** - * Text to display on low conversion amounts, describing what "resetting" is in this context. - * Defaults to "Reset for ". - */ - resetDescription?: MaybeRef<string>; - /** Whether or not to show how much currency would be required to make the gain amount increase. */ - showNextAt?: MaybeRef<boolean>; - /** - * When {@link canClick} is left to its default, minimumGain is used to only enable the reset button when a sufficient amount of currency to gain is available. - */ - minimumGain?: MaybeRef<DecimalSource>; - /** A persistent ref to track how much time has passed since the last time this tree node was reset. */ - resetTime?: Persistent<DecimalSource>; -} - -/** - * Lazily creates a reset button with the given options. - * @param optionsFunc A function that returns the options object for this reset button. - */ -export function createResetButton<T extends ClickableOptions & ResetButtonOptions>( - optionsFunc: () => T -) { - const resetButton = createClickable(() => { - const options = optionsFunc(); - const { - conversion, - tree, - treeNode, - resetTime, - resetDescription, - showNextAt, - minimumGain, - display, - canClick, - onClick, - ...props - } = options; - - return { - ...(props as Omit<typeof props, keyof ResetButtonOptions>), - conversion, - tree, - treeNode, - resetTime, - resetDescription: - processGetter(resetDescription) ?? - computed((): string => - Decimal.lt(conversion.gainResource.value, 1e3) ? "Reset for " : "" - ), - showNextAt: processGetter(showNextAt) ?? true, - minimumGain: processGetter(minimumGain) ?? 1, - canClick: - processGetter(canClick) ?? - computed((): boolean => - Decimal.gte(unref(conversion.actualGain), unref(resetButton.minimumGain)) - ), - display: - display ?? - ((): JSX.Element => ( - <span> - {unref(resetButton.resetDescription)} - <b> - {displayResource( - conversion.gainResource, - Decimal.max( - unref(conversion.actualGain), - unref(resetButton.minimumGain) - ) - )} - </b>{" "} - {conversion.gainResource.displayName} - {unref(resetButton.showNextAt) != null ? ( - <div> - <br /> - {unref(conversion.buyMax) ? "Next:" : "Req:"}{" "} - {displayResource( - conversion.baseResource, - !unref<boolean>(conversion.buyMax) && - Decimal.gte(unref(conversion.actualGain), 1) - ? unref(conversion.currentAt) - : unref(conversion.nextAt) - )}{" "} - {conversion.baseResource.displayName} - </div> - ) : null} - </span> - )), - onClick: function (e?: MouseEvent | TouchEvent) { - if (unref(resetButton.canClick) === false) { - return; - } - conversion.convert(); - tree.reset(treeNode); - if (resetTime) { - resetTime.value = resetTime[DefaultValue]; - } - onClick?.call(resetButton, e); - } - }; - }) satisfies ResetButton; - - return resetButton; -} - -/** An object that configures a {@link LayerTreeNode} */ -export interface LayerTreeNodeOptions extends TreeNodeOptions { - /** The ID of the layer this tree node is associated with */ - layerID: string; - /** The color to display this tree node as */ - color: MaybeRefOrGetter<string>; // marking as required - /** Whether or not to append the layer to the tabs list. - * If set to false, then the tree node will instead always remove all tabs to its right and then add the layer tab. - * Defaults to true. - */ - append?: MaybeRefOrGetter<boolean>; -} - -/** A tree node that is associated with a given layer, and which opens the layer when clicked. */ -export interface LayerTreeNode extends TreeNode { - /** The ID of the layer this tree node is associated with */ - layerID: string; - /** Whether or not to append the layer to the tabs list. - * If set to false, then the tree node will instead always remove all tabs to its right and then add the layer tab. - * Defaults to true. - */ - append?: MaybeRef<boolean>; -} - -/** - * Lazily creates a tree node that's associated with a specific layer, with the given options. - * @param optionsFunc A function that returns the options object for this tree node. - */ -export function createLayerTreeNode<T extends LayerTreeNodeOptions>(optionsFunc: () => T) { - const layerTreeNode = createTreeNode(() => { - const options = optionsFunc(); - const { display, append, layerID, ...props } = options; - - return { - ...(props as Omit<typeof props, keyof LayerTreeNodeOptions>), - layerID, - display: display ?? layerID, - append: processGetter(append) ?? true, - onClick() { - if (unref<boolean>(layerTreeNode.append)) { - if (player.tabs.includes(layerID)) { - const index = player.tabs.lastIndexOf(layerID); - player.tabs.splice(index, 1); - } else { - player.tabs.push(layerID); - } - } else { - player.tabs.splice(1, 1, layerID); - } - } - }; - }) satisfies LayerTreeNode; - - return layerTreeNode; -} - -/** An option object for a modifier display as a single section. **/ -export interface Section { - /** The header for this modifier. **/ - title: MaybeRefOrGetter<string>; - /** A subtitle for this modifier, e.g. to explain the context for the modifier. **/ - subtitle?: MaybeRefOrGetter<string>; - /** The modifier to be displaying in this section. **/ - modifier: WithRequired<Modifier, "description">; - /** The base value being modified. **/ - base?: MaybeRefOrGetter<DecimalSource>; - /** The unit of measurement for the base. **/ - unit?: string; - /** The label to call the base amount. Defaults to "Base". **/ - baseText?: MaybeGetter<Renderable>; - /** Whether or not this section should be currently visible to the player. **/ - visible?: MaybeRefOrGetter<boolean>; - /** Determines if numbers larger or smaller than the base should be displayed as red. */ - smallerIsBetter?: boolean; -} - -/** - * Takes an array of modifier "sections", and creates a JSXFunction that can render all those sections, and allow each section to be collapsed. - * Also returns a list of persistent refs that are used to control which sections are currently collapsed. - * @param sectionsFunc A function that returns the sections to display. - */ -export function createCollapsibleModifierSections( - sectionsFunc: () => Section[] -): [() => Renderable, Persistent<Record<number, boolean>>] { - const sections: Section[] = []; - const processed: - | { - base: MaybeRef<DecimalSource | undefined>[]; - baseText: (MaybeGetter<Renderable> | undefined)[]; - visible: MaybeRef<boolean | undefined>[]; - title: MaybeRef<string | undefined>[]; - subtitle: MaybeRef<string | undefined>[]; - } - | Record<string, never> = {}; - let calculated = false; - function calculateSections() { - if (!calculated) { - sections.push(...sectionsFunc()); - processed.base = sections.map(s => processGetter(s.base)); - processed.baseText = sections.map(s => s.baseText); - processed.visible = sections.map(s => processGetter(s.visible)); - processed.title = sections.map(s => processGetter(s.title)); - processed.subtitle = sections.map(s => processGetter(s.subtitle)); - calculated = true; - } - return sections; - } - - const collapsed = persistent<Record<number, boolean>>({}, false); - const jsxFunc = () => { - const sections = calculateSections(); - - let firstVisibleSection = true; - const sectionJSX = sections.map((s, i) => { - if (unref(processed.visible[i]) === false) return null; - const header = ( - <h3 - onClick={() => (collapsed.value[i] = !collapsed.value[i])} - style="cursor: pointer" - > - <span - class={"modifier-toggle" + (unref(collapsed.value[i]) ? " collapsed" : "")} - > - ▼ - </span> - {unref(processed.title[i])} - {unref(processed.subtitle[i]) != null ? ( - <span class="subtitle"> ({unref(processed.subtitle[i])})</span> - ) : null} - </h3> - ); - - const modifiers = unref(collapsed.value[i]) ? null : ( - <> - <div class="modifier-container"> - <span class="modifier-description"> - {render(unref(processed.baseText[i]) ?? "Base")} - </span> - <span class="modifier-amount"> - {format(unref(processed.base[i]) ?? 1)} - {s.unit} - </span> - </div> - {s.modifier.description == null ? null : render(unref(s.modifier.description))} - </> - ); - - const hasPreviousSection = !firstVisibleSection; - firstVisibleSection = false; - - const base = unref(processed.base[i]) ?? 1; - const total = s.modifier.apply(base); - - return ( - <> - {hasPreviousSection ? <br /> : null} - <div - style={{ - "--unit": - settings.alignUnits && s.unit != null ? "'" + s.unit + "'" : "" - }} - > - {header} - <br /> - {modifiers} - <hr /> - <div class="modifier-container"> - <span class="modifier-description">Total</span> - <span - class="modifier-amount" - style={ - ( - s.smallerIsBetter === true - ? Decimal.gt(total, base ?? 1) - : Decimal.lt(total, base ?? 1) - ) - ? "color: var(--danger)" - : "" - } - > - {formatSmall(total)} - {s.unit} - </span> - </div> - </div> - </> - ); - }); - return <>{sectionJSX}</>; - }; - return [jsxFunc, collapsed]; -} - -/** - * Creates an HTML string for a span that writes some given text in a given color. - * @param textToColor The content to change the color of - * @param color The color to change the content to look like. Defaults to the current theme's accent 2 variable. - */ -export function colorText(textToColor: string, color = "var(--accent2)"): JSX.Element { - return <span style={{ color }}>{textToColor}</span>; -} - -/** - * Creates a collapsible display of a list of achievements - * @param achievements A dictionary of the achievements to display, inserted in the order from easiest to hardest - */ -export function createCollapsibleAchievements(achievements: Record<string, Achievement>) { - // Achievements are typically defined from easiest to hardest, and we want to show hardest first - const orderedAchievements = Object.values(achievements).reverse(); - const collapseAchievements = persistent<boolean>(true, false); - const lockedAchievements = computed(() => - orderedAchievements.filter(m => m.earned.value === false) - ); - const { firstFeature, collapsedContent, hasCollapsedContent } = getFirstFeature( - orderedAchievements, - m => m.earned.value - ); - const display = computed(() => { - const achievementsToDisplay = [...lockedAchievements.value]; - if (firstFeature.value) { - achievementsToDisplay.push(firstFeature.value); - } - return renderCol( - ...achievementsToDisplay, - <Collapsible - collapsed={collapseAchievements} - content={collapsedContent} - display={ - collapseAchievements.value - ? "Show other completed achievements" - : "Hide other completed achievements" - } - v-show={unref(hasCollapsedContent)} - /> - ); - }); - return { - collapseAchievements: collapseAchievements, - display - }; -} - -/** - * Utility function for getting an ETA for when a target will be reached by a resource with a known (and assumed consistent) gain. - * @param resource The resource that will be increasing over time. - * @param rate The rate at which the resource is increasing. - * @param target The target amount of the resource to estimate the duration until. - */ -export function estimateTime( - resource: Resource, - rate: MaybeRefOrGetter<DecimalSource>, - target: MaybeRefOrGetter<DecimalSource> -) { - const processedRate = processGetter(rate); - const processedTarget = processGetter(target); - return computed(() => { - const currRate = unref(processedRate); - const currTarget = unref(processedTarget); - if (Decimal.gte(resource.value, currTarget)) { - return "Now"; - } else if (Decimal.lte(currRate, 0)) { - return "Never"; - } - return formatTime(Decimal.sub(currTarget, resource.value).div(currRate)); - }); -} - -/** - * Utility function for displaying the result of a formula such that it will, when told to, preview how the formula's result will change. - * Requires a formula with a single variable inside. - * @param formula The formula to display the result of. - * @param showPreview Whether or not to preview how the formula's result will change. - * @param previewAmount The amount to _add_ to the current formula's variable amount to preview the change in result. - */ -export function createFormulaPreview( - formula: GenericFormula, - showPreview: MaybeRefOrGetter<boolean>, - previewAmount: MaybeRefOrGetter<DecimalSource> = 1 -) { - const processedShowPreview = processGetter(showPreview); - const processedPreviewAmount = processGetter(previewAmount); - if (!formula.hasVariable()) { - console.error("Cannot create formula preview if the formula does not have a variable"); - } - return computed(() => { - if (unref(processedShowPreview)) { - const curr = formatSmall(formula.evaluate()); - const preview = formatSmall( - formula.evaluate( - Decimal.add( - unref(formula.innermostVariable ?? 0), - unref(processedPreviewAmount) - ) - ) - ); - return ( - <> - <b> - <i> - {curr} → {preview} - </i> - </b> - </> - ); - } - return <>{formatSmall(formula.evaluate())}</>; - }); -} - -/** - * Utility function for getting a computed boolean for whether or not a given feature is currently rendered in the DOM. - * Note it will have a true value even if the feature is off screen. - * @param layer The layer the feature appears within - * @param id The ID of the feature - */ -export function isRendered(layer: BaseLayer, id: string): ComputedRef<boolean>; -/** - * Utility function for getting a computed boolean for whether or not a given feature is currently rendered in the DOM. - * Note it will have a true value even if the feature is off screen. - * @param layer The layer the feature appears within - * @param feature The feature that may be rendered - */ -export function isRendered(layer: BaseLayer, feature: { id: string }): ComputedRef<boolean>; -export function isRendered(layer: BaseLayer, idOrFeature: string | { id: string }) { - const id = typeof idOrFeature === "string" ? idOrFeature : idOrFeature.id; - return computed(() => id in layer.nodes.value); -} - -/** - * Utility function for setting up a system where one of many things can be selected. - * It's recommended to use an ID or index rather than the object itself, so that you can wrap the ref in a persistent without breaking anything. - * @returns The ref containing the selection, as well as a select and deselect function - */ -export function setupSelectable<T>() { - const selected = ref<T>(); - return { - select: function (node: T) { - selected.value = node; - }, - deselect: function () { - selected.value = undefined; - }, - selected - }; -} diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx deleted file mode 100644 index a065db1..0000000 --- a/src/data/layers/prestige.tsx +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @module - * @hidden - */ -import { main } from "data/projEntry"; -import { createCumulativeConversion } from "features/conversion"; -import { createHotkey } from "features/hotkey"; -import { createReset } from "features/reset"; -import MainDisplay from "features/resources/MainDisplay.vue"; -import { createResource } from "features/resources/resource"; -import { createResourceTooltip } from "features/trees/tree"; -import { createLayer } from "game/layers"; -import type { DecimalSource } from "util/bignum"; -import { render } from "util/vue"; -import { addTooltip } from "wrappers/tooltips/tooltip"; -import { createLayerTreeNode, createResetButton } from "../common"; - -const id = "p"; -const layer = createLayer(id, () => { - const name = "Prestige"; - const color = "#4BDC13"; - const points = createResource<DecimalSource>(0, "prestige points"); - - const conversion = createCumulativeConversion(() => ({ - formula: x => x.div(10).sqrt(), - baseResource: main.points, - gainResource: points - })); - - const reset = createReset(() => ({ - thingsToReset: (): Record<string, unknown>[] => [layer] - })); - - const treeNode = createLayerTreeNode(() => ({ - layerID: id, - color, - reset - })); - const tooltip = addTooltip(treeNode, () => ({ - display: createResourceTooltip(points), - pinnable: true - })); - - const resetButton = createResetButton(() => ({ - conversion, - tree: main.tree, - treeNode - })); - - const hotkey = createHotkey(() => ({ - description: "Reset for prestige points", - key: "p", - onPress: resetButton.onClick! - })); - - return { - name, - color, - points, - tooltip, - display: () => ( - <> - <MainDisplay resource={points} color={color} /> - {render(resetButton)} - </> - ), - treeNode, - hotkey - }; -}); - -export default layer; diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx deleted file mode 100644 index abba816..0000000 --- a/src/data/projEntry.tsx +++ /dev/null @@ -1,121 +0,0 @@ -import Node from "components/Node.vue"; -import Spacer from "components/layout/Spacer.vue"; -import { createResource, trackBest, trackOOMPS, trackTotal } from "features/resources/resource"; -import { branchedResetPropagation, createTree, Tree } from "features/trees/tree"; -import type { Layer } from "game/layers"; -import { createLayer } from "game/layers"; -import { noPersist } from "game/persistence"; -import player, { Player } from "game/player"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { format, formatTime } from "util/bignum"; -import { render } from "util/vue"; -import { computed, toRaw } from "vue"; -import prestige from "./layers/prestige"; - -/** - * @hidden - */ -export const main = createLayer("main", layer => { - const points = createResource<DecimalSource>(10); - const best = trackBest(points); - const total = trackTotal(points); - - const pointGain = computed(() => { - // eslint-disable-next-line prefer-const - let gain = new Decimal(1); - return gain; - }); - layer.on("update", diff => { - points.value = Decimal.add(points.value, Decimal.times(pointGain.value, diff)); - }); - const oomps = trackOOMPS(points, pointGain); - - // Note: Casting as generic tree to avoid recursive type definitions - const tree = createTree(() => ({ - nodes: noPersist([[prestige.treeNode]]), - branches: [], - onReset() { - points.value = toRaw(tree.resettingNode.value) === toRaw(prestige.treeNode) ? 0 : 10; - best.value = points.value; - total.value = points.value; - }, - resetPropagation: branchedResetPropagation - })) as Tree; - - // Note: layers don't _need_ a reference to everything, - // but I'd recommend it over trying to remember what does and doesn't need to be included. - // Officially all you need are anything with persistency or that you want to access elsewhere - return { - name: "Tree", - links: tree.links, - display: () => ( - <> - {player.devSpeed === 0 ? ( - <div> - Game Paused - <Node id="paused" /> - </div> - ) : null} - {player.devSpeed != null && player.devSpeed !== 0 && player.devSpeed !== 1 ? ( - <div> - Dev Speed: {format(player.devSpeed)}x - <Node id="devspeed" /> - </div> - ) : null} - {player.offlineTime != null && player.offlineTime !== 0 ? ( - <div> - Offline Time: {formatTime(player.offlineTime)} - <Node id="offline" /> - </div> - ) : null} - <div> - {Decimal.lt(points.value, "1e1000") ? <span>You have </span> : null} - <h2>{format(points.value)}</h2> - {Decimal.lt(points.value, "1e1e6") ? <span> points</span> : null} - </div> - {Decimal.gt(pointGain.value, 0) ? ( - <div> - ({oomps.value}) - <Node id="oomps" /> - </div> - ) : null} - <Spacer /> - {render(tree)} - </> - ), - points, - best, - total, - oomps, - tree - }; -}); - -/** - * Given a player save data object being loaded, return a list of layers that should currently be enabled. - * If your project does not use dynamic layers, this should just return all layers. - */ -export const getInitialLayers = ( - /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ - player: Partial<Player> -): Array<Layer> => [main, prestige]; - -/** - * A computed ref whose value is true whenever the game is over. - */ -export const hasWon = computed(() => { - return false; -}); - -/** - * Given a player save data object being loaded with a different version, update the save data object to match the structure of the current version. - * @param oldVersion The version of the save being loaded in - * @param player The save data being loaded in - */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -export function fixOldSave( - oldVersion: string | undefined, - player: Partial<Player> - // eslint-disable-next-line @typescript-eslint/no-empty-function -): void {} -/* eslint-enable @typescript-eslint/no-unused-vars */ diff --git a/src/data/projInfo-schema.json b/src/data/projInfo-schema.json deleted file mode 100644 index ceb448e..0000000 --- a/src/data/projInfo-schema.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "The name of the project, which will appear in the info tab and the header, if enabled. The page title will also be set to this value." - }, - "description": { - "type": "string", - "description": "A description of the project, which will be used when the project is installed as a Progressive Web Application." - }, - "id": { - "type": "string", - "description": "This is a unique ID used when saving player data. Changing this will effectively erase all save data for all players. This ID MUST be unique to your project, and should not be left as the default value. Otherwise, your project may use the save data from another project and cause issues for both projects.", - "minLength": 1 - }, - "author": { - "type": "string", - "description": "The author of the project, which will appear in the info tab." - }, - "discordName": { - "type": "string", - "description": "The text to display for the discord server to point users to. This will appear when hovering over the discord icon, inside the info tab, the game over screen, as well as the NaN detected screen." - }, - "discordLink": { - "type": "string", - "description": "The link for the discord server to point users to." - }, - "versionNumber": { - "type": "string", - "description": "The current version of the project loaded. If the player data was last saved in a different version of the project, fixOldSave will be run, so you can perform any save migrations necessary. This will also appear in the nav, the info tab, and the game over screen.", - "markdownDescription": "The current version of the project loaded. If the player data was last saved in a different version of the project, [fixOldSave](https://moddingtree.com/guide/creating-your-project/project-entry.html#fixoldsave) will be run, so you can perform any save migrations necessary. This will also appear in the nav, the info tab, and the game over screen." - }, - "versionTitle": { - "type": "string", - "description": "The display name for the current version of the project loaded. This will also appear in the nav, the info tab, and the game over screen unless set to an empty string." - }, - "allowGoBack": { - "type": "boolean", - "description": "Whether or not to allow tabs (besides the first) to display a \"back\" button to close them (and any other tabs to the right of them)." - }, - "defaultShowSmall": { - "type": "boolean", - "description": "Whether or not to allow resources to display small values (<.001). If false they'll just display as 0. Individual resources can also be configured to override this value." - }, - "defaultDecimalsShown": { - "type": "number", - "description": "Default precision to display numbers at when passed into format. Individual format calls can override this value, and resources can be configured with a custom precision as well.", - "markdownDescription": "Default precision to display numbers at when passed into format. Individual format calls can override this value, and resources can be configured with a custom precision as well." - }, - "useHeader": { - "type": "boolean", - "description": "Whether or not to display the nav as a header at the top of the screen. If disabled, the nav will appear on the left side of the screen laid over the first tab." - }, - "banner": { - "type": ["boolean", "null"], - "description": "A path to an image file to display as the logo of the app. If null, the title will be shown instead. This will appear in the nav when useHeader is true.", - "markdownDescription": "A path to an image file to display as the logo of the app. If null, the title will be shown instead. This will appear in the nav when `useHeader` is true." - }, - "logo": { - "type": "string", - "description": "A path to an image file to display as the logo of the app within the info tab. If left blank no logo will be shown." - }, - "initialTabs": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true, - "description": "The list of initial tabs to display on new saves. This value must have at least one element. Each element should be the ID of the layer to display in that tab." - }, - "maxTickLength": { - "type": "number", - "description": "The longest duration a single tick can be, in seconds. When calculating things like offline time, a single tick will be forced to be this amount or lower. This will make calculating offline time spread out across many ticks as necessary. The default value is 1 hour." - }, - "offlineLimit": { - "type": "number", - "description": "The max amount of time that can be stored as offline time, in hours." - }, - "enablePausing": { - "type": "boolean", - "description": "Whether or not to allow the player to pause the game. Turning this off disables the toggle from the options menu as well as the NaN screen. Developers can still manually pause by just setting player.devSpeed to 0 in console (or 1 to resume).", - "markdownDescription": "Whether or not to allow the player to pause the game. Turning this off disables the toggle from the options menu as well as the NaN screen. Developers can still manually pause by just running `player.devSpeed = 0` in console (or `= 1` to resume)." - }, - "exportEncoding": { - "type": "string", - "enum": ["base64", "lz", "plain"], - "description": "The encoding to use when exporting to the clipboard. Plain-text is fast to generate but is easiest for the player to manipulate and cheat with. Base 64 is slightly slower and the string will be longer but will offer a small barrier to people trying to cheat. LZ-String is the slowest method, but produces the smallest strings and still offers a small barrier to those trying to cheat. Some sharing platforms like pastebin may automatically delete base64 encoded text, and some sites might not support all the characters used in lz-string exports." - }, - "disableHealthWarning": { - "type": "boolean", - "description": "Whether or not to disable the health warning that appears to the player after excessive playtime (activity during 6 of the last 8 hours). If left enabled, the player will still be able to individually turn off the health warning in settings or by clicking \"Do not show again\" in the warning itself." - } - } -} \ No newline at end of file diff --git a/src/data/projInfo.json b/src/data/projInfo.json deleted file mode 100644 index 6618d79..0000000 --- a/src/data/projInfo.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "./projInfo-schema.json", - - "title": "Profectus", - "description": "A project made in Profectus", - "id": "", - "author": "", - "discordName": "", - "discordLink": "", - - "versionNumber": "0.0", - "versionTitle": "Initial Commit", - - "allowGoBack": true, - "defaultShowSmall": false, - "defaultDecimalsShown": 2, - "useHeader": true, - "banner": null, - "logo": "", - "initialTabs": [ "main" ], - - "maxTickLength": 3600, - "offlineLimit": 1, - "enablePausing": true, - "exportEncoding": "base64", - "disableHealthWarning": false -} diff --git a/src/data/themes.ts b/src/data/themes.ts deleted file mode 100644 index 7a24e1b..0000000 --- a/src/data/themes.ts +++ /dev/null @@ -1,137 +0,0 @@ -/** A object of all CSS variables determined by the current theme. */ -export interface ThemeVars { - "--foreground": string; - "--background": string; - "--feature-foreground": string; - "--tooltip-background": string; - "--raised-background": string; - "--points": string; - "--locked": string; - "--highlighted": string; - "--bought": string; - "--danger": string; - "--link": string; - "--outline": string; - "--accent1": string; - "--accent2": string; - "--accent3": string; - "--border-radius": string; - "--modal-border": string; - "--feature-margin": string; -} - -/** An object representing a theme the player can use to change the look of the game. */ -export interface Theme { - /** The values of the theme's CSS variables. */ - variables: ThemeVars; - /** Whether or not tabs should "float" in the center of their container. */ - floatingTabs: boolean; - /** Whether or not adjacent features should merge together - removing the margin between them, and only applying the border radius to the first and last elements in the row or column. */ - mergeAdjacent: boolean; - /** Whether or not to show a pin icon on pinned tooltips. */ - showPin: boolean; -} - -declare module "@vue/runtime-dom" { - /** Make CSS properties accept any CSS variables usually controlled by a theme. */ - // eslint-disable-next-line @typescript-eslint/no-empty-interface - interface CSSProperties extends Partial<ThemeVars> {} - - interface HTMLAttributes { - style?: StyleValue; - } -} - -const defaultTheme: Theme = { - variables: { - "--foreground": "#dfdfdf", - "--background": "#0f0f0f", - "--feature-foreground": "#0f0f0f", - "--tooltip-background": "rgba(0, 0, 0, 0.75)", - "--raised-background": "#0f0f0f", - "--points": "#ffffff", - "--locked": "#bf8f8f", - "--highlighted": "#333", - "--bought": "#77bf5f", - "--danger": "rgb(220, 53, 69)", - "--link": "#02f2f2", - "--outline": "#dfdfdf", - "--accent1": "#627a82", - "--accent2": "#658262", - "--accent3": "#7c6282", - - "--border-radius": "15px", - "--modal-border": "solid 2px var(--color)", - "--feature-margin": "0px" - }, - floatingTabs: true, - mergeAdjacent: true, - showPin: true -}; - -/** An enum of all available themes and their internal IDs. The keys are their display names. */ -export enum Themes { - Classic = "classic", - Paper = "paper", - Nordic = "nordic", - Aqua = "aqua" -} - -/** A dictionary of all available themes. */ -export default { - classic: defaultTheme, - paper: { - ...defaultTheme, - variables: { - ...defaultTheme.variables, - "--background": "#2a323d", - "--feature-foreground": "#000", - "--raised-background": "#333c4a", - "--locked": "#3a3e45", - "--bought": "#5C8A58", - "--outline": "#333c4a", - "--border-radius": "4px", - "--modal-border": "", - "--feature-margin": "5px" - }, - floatingTabs: false - } as Theme, - // Based on https://www.nordtheme.com - nordic: { - ...defaultTheme, - variables: { - ...defaultTheme.variables, - "--foreground": "#D8DEE9", - "--background": "#2E3440", - "--feature-foreground": "#000", - "--raised-background": "#3B4252", - "--points": "#E5E9F0", - "--locked": "#4c566a", - "--highlighted": "#434c5e", - "--bought": "#8FBCBB", - "--danger": "#D08770", - "--link": "#88C0D0", - "--outline": "#3B4252", - "--accent1": "#B48EAD", - "--accent2": "#A3BE8C", - "--accent3": "#EBCB8B", - "--border-radius": "4px", - "--modal-border": "solid 2px #3B4252", - "--feature-margin": "5px" - }, - floatingTabs: false - } as Theme, - aqua: { - ...defaultTheme, - variables: { - ...defaultTheme.variables, - "--foreground": "#bfdfff", - "--background": "#001f3f", - "--tooltip-background": "rgba(0, 15, 31, 0.75)", - "--raised-background": "#001f3f", - "--points": "#dfefff", - "--locked": "#c4a7b3", - "--outline": "#bfdfff" - } - } as Theme -} as Record<Themes, Theme>; diff --git a/src/features/VueFeature.vue b/src/features/VueFeature.vue deleted file mode 100644 index adedca2..0000000 --- a/src/features/VueFeature.vue +++ /dev/null @@ -1,41 +0,0 @@ -<template> - <div v-if="isVisible(unref(visibility))" - :style="[ - { - visibility: isHidden(unref(visibility)) ? 'hidden' : undefined - }, - unref(style) - ]" - :class="{ feature: true, ...unref(classes) }" - > - <Components /> - <Node :id="id" /> - </div> -</template> - -<script setup lang="tsx"> -import "components/common/features.css"; -import Node from "components/Node.vue"; -import type { Visibility } from "features/feature"; -import { isHidden, isVisible } from "features/feature"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable, Wrapper } from "util/vue"; -import { MaybeRef, unref, type CSSProperties } from "vue"; - -const props = withDefaults(defineProps<{ - id: string; - components: MaybeGetter<Renderable>[]; - wrappers: Wrapper[]; - visibility?: MaybeRef<Visibility | boolean>; - style?: MaybeRef<CSSProperties>; - classes?: MaybeRef<Record<string, boolean>>; -}>(), { - visibility: true, - style: () => ({}), - classes: () => ({}) -}); - -const Components = () => props.wrappers.reduce<() => Renderable>( - (acc, curr) => (() => curr(acc)), - () => <>{props.components.map(el => render(el))}</>)(); -</script> diff --git a/src/features/achievements/Achievement.vue b/src/features/achievements/Achievement.vue deleted file mode 100644 index 454fa3d..0000000 --- a/src/features/achievements/Achievement.vue +++ /dev/null @@ -1,71 +0,0 @@ -<template> - <button - :style="{ - backgroundImage: (unref(earned) && unref(image) && `url(${image})`) || '' - }" - :class="{ - achievement: true, - locked: !unref(earned), - done: unref(earned), - small: unref(small), - }" - > - <Component /> - </button> -</template> - -<script setup lang="tsx"> -import "components/common/features.css"; -import { Requirements } from "game/requirements"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { Component, MaybeRef, Ref, unref } from "vue"; - -const props = defineProps<{ - display?: MaybeGetter<Renderable>; - earned: Ref<boolean>; - requirements?: Requirements; - image?: MaybeRef<string>; - small?: MaybeRef<boolean>; -}>(); - -const Component = () => props.display == null ? <></> : render(props.display); -</script> - -<style scoped> -.achievement { - height: 90px; - width: 90px; - font-size: 10px; - color: white; - text-shadow: 0 0 2px #000000; -} - -.achievement:not(.small) { - height: unset; - width: calc(100% - 10px); - min-width: 120px; - padding-left: 5px; - padding-right: 5px; - background-color: var(--locked); - border-width: 4px; - border-radius: 5px; - color: rgba(0, 0, 0, 0.5); - font-size: unset; - text-shadow: unset; -} - -.achievement.done { - background-color: var(--bought); - cursor: default; -} - -.achievement :deep(.equal-spaced) { - display: flex; - justify-content: center; -} - -.achievement :deep(.equal-spaced > *) { - margin: auto; -} -</style> diff --git a/src/features/achievements/achievement.tsx b/src/features/achievements/achievement.tsx deleted file mode 100644 index 5997ff8..0000000 --- a/src/features/achievements/achievement.tsx +++ /dev/null @@ -1,257 +0,0 @@ -import Select from "components/fields/Select.vue"; -import { Visibility } from "features/feature"; -import { globalBus } from "game/events"; -import "game/notifications"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import player from "game/player"; -import { - createBooleanRequirement, - createVisibilityRequirement, - displayRequirements, - Requirements, - requirementsMet -} from "game/requirements"; -import settings, { registerSettingField } from "game/settings"; -import { camelToTitle } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { - isJSXElement, - render, - Renderable, - VueFeature, - vueFeatureMixin, - VueFeatureOptions -} from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, unref, watchEffect } from "vue"; -import { useToast } from "vue-toastification"; -import Achievement from "./Achievement.vue"; - -const toast = useToast(); - -/** A symbol used to identify {@link Achievement} features. */ -export const AchievementType = Symbol("Achievement"); - -/** Modes for only displaying some achievements. */ -export enum AchievementDisplay { - All = "all", - //Last = "last", - Configurable = "configurable", - Incomplete = "incomplete", - None = "none" -} - -/** - * An object that configures an {@link Achievement}. - */ -export interface AchievementOptions extends VueFeatureOptions { - /** The requirement(s) to earn this achievement. Can be left null if using {@link Achievement.complete}. */ - requirements?: Requirements; - /** The display to use for this achievement. */ - display?: - | MaybeGetter<Renderable> - | { - /** Description of the requirement(s) for this achievement. If unspecified then the requirements will be displayed automatically based on {@link requirements}. */ - requirement?: MaybeGetter<Renderable>; - /** Description of what will change (if anything) for achieving this. */ - effectDisplay?: MaybeGetter<Renderable>; - /** Any additional things to display on this achievement, such as a toggle for it's effect. */ - optionsDisplay?: MaybeGetter<Renderable>; - }; - /** Toggles a smaller design for the feature. */ - small?: MaybeRefOrGetter<boolean>; - /** An image to display as the background for this achievement. */ - image?: MaybeRefOrGetter<string>; - /** Whether or not to display a notification popup when this achievement is earned. */ - showPopups?: MaybeRefOrGetter<boolean>; - /** A function that is called when the achievement is completed. */ - onComplete?: VoidFunction; -} - -/** An object that represents a feature with requirements that is passively earned upon meeting certain requirements. */ -export interface Achievement extends VueFeature { - /** The requirement(s) to earn this achievement. */ - requirements?: Requirements; - /** A function that is called when the achievement is completed. */ - onComplete?: VoidFunction; - /** The display to use for this achievement. */ - display?: MaybeGetter<Renderable>; - /** Toggles a smaller design for the feature. */ - small?: MaybeRef<boolean>; - /** An image to display as the background for this achievement. */ - image?: MaybeRef<string>; - /** Whether or not to display a notification popup when this achievement is earned. */ - showPopups: MaybeRef<boolean>; - /** Whether or not this achievement has been earned. */ - earned: Persistent<boolean>; - /** A function to complete this achievement. */ - complete: VoidFunction; - /** A symbol that helps identify features of the same type. */ - type: typeof AchievementType; -} - -/** - * Lazily creates an achievement with the given options. - * @param optionsFunc Achievement options. - */ -export function createAchievement<T extends AchievementOptions>(optionsFunc?: () => T) { - const earned = persistent<boolean>(false, false); - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { - requirements, - display: _display, - small, - image, - showPopups, - onComplete, - ...props - } = options; - - const vueFeature = vueFeatureMixin("achievement", options, () => ( - <Achievement - display={achievement.display} - earned={achievement.earned} - requirements={achievement.requirements} - image={achievement.image} - small={achievement.small} - /> - )); - - let display: MaybeGetter<Renderable> | undefined = undefined; - if (typeof _display === "object" && !isJSXElement(_display)) { - const { requirement, effectDisplay, optionsDisplay } = _display; - display = () => ( - <span> - {requirement == null - ? displayRequirements(requirements ?? []) - : render(requirement, el => <h3>{el}</h3>)} - {effectDisplay == null ? null : ( - <div> - {render(effectDisplay, el => ( - <b>{el}</b> - ))} - </div> - )} - {optionsDisplay != null ? ( - <div class="equal-spaced">{render(optionsDisplay)}</div> - ) : null} - </span> - ); - } else if (_display != null) { - display = _display; - } - - const achievement = { - type: AchievementType, - ...(props as Omit<typeof props, keyof VueFeature | keyof AchievementOptions>), - ...vueFeature, - visibility: computed(() => { - switch (settings.msDisplay) { - default: - case AchievementDisplay.All: - return unref(vueFeature.visibility) ?? true; - case AchievementDisplay.Configurable: - if ( - unref(earned) && - !( - _display != null && - typeof _display === "object" && - !isJSXElement(_display) - ) - ) { - return Visibility.None; - } - return unref(vueFeature.visibility) ?? true; - case AchievementDisplay.Incomplete: - if (unref(earned)) { - return Visibility.None; - } - return unref(vueFeature.visibility) ?? true; - case AchievementDisplay.None: - return Visibility.None; - } - }), - earned, - onComplete, - small: processGetter(small), - image: processGetter(image), - showPopups: processGetter(showPopups) ?? true, - display, - requirements: - requirements == null - ? undefined - : [ - createVisibilityRequirement(vueFeature.visibility ?? true), - createBooleanRequirement(() => !earned.value), - ...(Array.isArray(requirements) ? requirements : [requirements]) - ], - complete() { - if (earned.value) { - return; - } - earned.value = true; - achievement.onComplete?.(); - if (achievement.display != null && unref(achievement.showPopups) === true) { - let display = achievement.display; - if (typeof _display === "object" && !isJSXElement(_display)) { - if (_display.requirement != null) { - display = _display.requirement; - } else { - display = displayRequirements(requirements ?? []); - } - } - toast.info( - <div> - <h3>Achievement earned!</h3> - <div>{render(display)}</div> - </div> - ); - } - } - } satisfies Achievement; - - if (achievement.requirements != null) { - watchEffect(() => { - if (settings.active !== player.id) return; - if (requirementsMet(achievement.requirements ?? [])) { - achievement.complete(); - } - }); - } - - return achievement; - }); -} - -declare module "game/settings" { - interface Settings { - msDisplay: AchievementDisplay; - } -} - -globalBus.on("loadSettings", settings => { - settings.msDisplay ??= AchievementDisplay.All; -}); - -const msDisplayOptions = Object.values(AchievementDisplay).map(option => ({ - label: camelToTitle(option), - value: option -})); - -globalBus.on("setupVue", () => - registerSettingField(() => ( - <Select - title={ - <span class="option-title"> - Show achievements - <desc>Select which achievements to display based on criterias.</desc> - </span> - } - options={msDisplayOptions} - onUpdate:modelValue={value => (settings.msDisplay = value as AchievementDisplay)} - modelValue={settings.msDisplay} - /> - )) -); diff --git a/src/features/bars/Bar.vue b/src/features/bars/Bar.vue deleted file mode 100644 index 047500e..0000000 --- a/src/features/bars/Bar.vue +++ /dev/null @@ -1,128 +0,0 @@ -<template> - <div - :style="{ - width: unref(width) + 'px', - height: unref(height) + 'px', - }" - class="bar" - > - <div - class="overlayTextContainer border" - :style="[ - { width: unref(width) + 'px', height: unref(height) + 'px' }, - unref(borderStyle) ?? {} - ]" - > - <span v-if="display" class="overlayText" :style="unref(textStyle)"> - <Component /> - </span> - </div> - <div - class="border" - :style="[ - { width: unref(width) + 'px', height: unref(height) + 'px' }, - unref(baseStyle) ?? {}, - unref(borderStyle) ?? {} - ]" - > - <div class="fill" :style="[barStyle, unref(fillStyle) ?? {}]" /> - </div> - </div> -</template> - -<script setup lang="ts"> -import Decimal, { DecimalSource } from "util/bignum"; -import { Direction } from "util/common"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import type { CSSProperties, MaybeRef } from "vue"; -import { computed, unref } from "vue"; - -const props = defineProps<{ - width: MaybeRef<number>; - height: MaybeRef<number>; - direction: MaybeRef<Direction>; - borderStyle?: MaybeRef<CSSProperties>; - baseStyle?: MaybeRef<CSSProperties>; - textStyle?: MaybeRef<CSSProperties>; - fillStyle?: MaybeRef<CSSProperties>; - progress: MaybeRef<DecimalSource>; - display?: MaybeGetter<Renderable>; -}>(); - -const normalizedProgress = computed(() => { - let progressNumber = - props.progress instanceof Decimal - ? props.progress.toNumber() - : Number(props.progress); - return (1 - Math.min(Math.max(progressNumber, 0), 1)) * 100; -}); - -const barStyle = computed(() => { - const barStyle: Partial<CSSProperties> = { - width: unref(props.width) + 0.5 + "px", - height: unref(props.height) + 0.5 + "px" - }; - switch (props.direction) { - case Direction.Up: - barStyle.clipPath = `inset(${normalizedProgress.value}% 0% 0% 0%)`; - barStyle.width = unref(props.width) + 1 + "px"; - break; - case Direction.Down: - barStyle.clipPath = `inset(0% 0% ${normalizedProgress.value}% 0%)`; - barStyle.width = unref(props.width) + 1 + "px"; - break; - case Direction.Right: - barStyle.clipPath = `inset(0% ${normalizedProgress.value}% 0% 0%)`; - break; - case Direction.Left: - barStyle.clipPath = `inset(0% 0% 0% ${normalizedProgress.value}%)`; - break; - case Direction.Default: - barStyle.clipPath = "inset(0% 50% 0% 0%)"; - break; - } - return barStyle; -}); - -const Component = () => props.display ? render(props.display) : null; -</script> - -<style scoped> -.bar { - position: relative; - display: table; -} - -.overlayTextContainer { - position: absolute; - border-radius: 10px; - vertical-align: middle; - display: flex; - justify-content: center; - z-index: 3; -} - -.overlayText { - z-index: 6; -} - -.border { - border: 2px solid; - border-radius: 10px; - border-color: var(--foreground); - overflow: hidden; - mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); - margin: 0; -} - -.fill { - position: absolute; - background-color: var(--foreground); - overflow: hidden; - margin-left: -0.5px; - transition-duration: 0.2s; - z-index: 2; - transition-duration: 0.05s; -} -</style> diff --git a/src/features/bars/bar.tsx b/src/features/bars/bar.tsx deleted file mode 100644 index cb86253..0000000 --- a/src/features/bars/bar.tsx +++ /dev/null @@ -1,109 +0,0 @@ -import Bar from "features/bars/Bar.vue"; -import type { DecimalSource } from "util/bignum"; -import { Direction } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable, VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import { CSSProperties, MaybeRef, MaybeRefOrGetter } from "vue"; - -/** A symbol used to identify {@link Bar} features. */ -export const BarType = Symbol("Bar"); - -/** - * An object that configures a {@link Bar}. - */ -export interface BarOptions extends VueFeatureOptions { - /** The width of the bar. */ - width: MaybeRefOrGetter<number>; - /** The height of the bar. */ - height: MaybeRefOrGetter<number>; - /** The direction in which the bar progresses. */ - direction: MaybeRefOrGetter<Direction>; - /** CSS to apply to the bar's border. */ - borderStyle?: MaybeRefOrGetter<CSSProperties>; - /** CSS to apply to the bar's base. */ - baseStyle?: MaybeRefOrGetter<CSSProperties>; - /** CSS to apply to the bar's text. */ - textStyle?: MaybeRefOrGetter<CSSProperties>; - /** CSS to apply to the bar's fill. */ - fillStyle?: MaybeRefOrGetter<CSSProperties>; - /** The progress value of the bar, from 0 to 1. */ - progress: MaybeRefOrGetter<DecimalSource>; - /** The display to use for this bar. */ - display?: MaybeGetter<Renderable>; -} - -/** An object that represents a feature that displays some sort of progress or completion or resource with a cap. */ -export interface Bar extends VueFeature { - /** The width of the bar. */ - width: MaybeRef<number>; - /** The height of the bar. */ - height: MaybeRef<number>; - /** The direction in which the bar progresses. */ - direction: MaybeRef<Direction>; - /** CSS to apply to the bar's border. */ - borderStyle?: MaybeRef<CSSProperties>; - /** CSS to apply to the bar's base. */ - baseStyle?: MaybeRef<CSSProperties>; - /** CSS to apply to the bar's text. */ - textStyle?: MaybeRef<CSSProperties>; - /** CSS to apply to the bar's fill. */ - fillStyle?: MaybeRef<CSSProperties>; - /** The progress value of the bar, from 0 to 1. */ - progress: MaybeRef<DecimalSource>; - /** The display to use for this bar. */ - display?: MaybeGetter<Renderable>; - /** A symbol that helps identify features of the same type. */ - type: typeof BarType; -} - -/** - * Lazily creates a bar with the given options. - * @param optionsFunc Bar options. - */ -export function createBar<T extends BarOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.(); - const { - width, - height, - direction, - borderStyle, - baseStyle, - textStyle, - fillStyle, - progress, - display, - ...props - } = options; - - const bar = { - type: BarType, - ...(props as Omit<typeof props, keyof VueFeature | keyof BarOptions>), - ...vueFeatureMixin("bar", options, () => ( - <Bar - width={bar.width} - height={bar.height} - direction={bar.direction} - borderStyle={bar.borderStyle} - baseStyle={bar.baseStyle} - textStyle={bar.textStyle} - fillStyle={bar.fillStyle} - progress={bar.progress} - display={bar.display} - /> - )), - width: processGetter(width), - height: processGetter(height), - direction: processGetter(direction), - borderStyle: processGetter(borderStyle), - baseStyle: processGetter(baseStyle), - textStyle: processGetter(textStyle), - fillStyle: processGetter(fillStyle), - progress: processGetter(progress), - display - } satisfies Bar; - - return bar; - }); -} diff --git a/src/features/challenges/Challenge.vue b/src/features/challenges/Challenge.vue deleted file mode 100644 index 1963d59..0000000 --- a/src/features/challenges/Challenge.vue +++ /dev/null @@ -1,99 +0,0 @@ -<template> - <div - :style="notifyStyle" - :class="{ - challenge: true, - done: unref(completed), - canStart: unref(canStart) && !unref(maxed), - maxed: unref(maxed) - }" - > - <button - class="toggleChallenge" - @click="emits('toggle')" - :disabled="!unref(canStart) || unref(maxed)" - > - {{ buttonText }} - </button> - <Component v-if="props.display" /> - </div> -</template> - -<script setup lang="tsx"> -import "components/common/features.css"; -import { getHighNotifyStyle, getNotifyStyle } from "game/notifications"; -import { Requirements } from "game/requirements"; -import { DecimalSource } from "util/bignum"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import type { Component, MaybeRef, Ref } from "vue"; -import { computed, unref } from "vue"; - -const props = defineProps<{ - active: Ref<boolean>; - maxed: Ref<boolean>; - canComplete: Ref<DecimalSource>; - display?: MaybeGetter<Renderable>; - requirements: Requirements; - completed: Ref<boolean>; - canStart?: MaybeRef<boolean>; -}>(); - -const emits = defineEmits<{ - (e: "toggle"): void; -}>(); - -const buttonText = computed(() => { - if (unref(props.active)) { - return unref(props.canComplete) ? "Finish" : "Exit Early"; - } - if (unref(props.maxed)) { - return "Completed"; - } - return "Start"; -}); - -const notifyStyle = computed(() => { - const currActive = unref(props.active); - const currCanComplete = unref(props.canComplete); - if (currActive) { - if (currCanComplete) { - return getHighNotifyStyle(); - } - return getNotifyStyle(); - } - return {}; -}); - -const Component = () => props.display == null ? <></> : render(props.display); -</script> - -<style scoped> -.challenge { - background-color: var(--locked); - width: 300px; - min-height: 300px; - color: black; - font-size: 15px; - display: flex; - flex-flow: column; - align-items: center; -} - -.challenge.done { - background-color: var(--bought); -} - -.challenge button { - min-height: 50px; - width: 120px; - border-radius: var(--border-radius); - box-shadow: none !important; - background: transparent; -} - -.challenge.canStart button { - cursor: pointer; - background-color: var(--layer-color); -} -</style> diff --git a/src/features/challenges/challenge.tsx b/src/features/challenges/challenge.tsx deleted file mode 100644 index 0fe3cee..0000000 --- a/src/features/challenges/challenge.tsx +++ /dev/null @@ -1,315 +0,0 @@ -import Toggle from "components/fields/Toggle.vue"; -import { isVisible } from "features/feature"; -import type { Reset } from "features/reset"; -import { globalBus } from "game/events"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import { Requirements, displayRequirements, maxRequirementsMet } from "game/requirements"; -import settings, { registerSettingField } from "game/settings"; -import type { DecimalSource } from "util/bignum"; -import Decimal from "util/bignum"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { - Renderable, - VueFeature, - VueFeatureOptions, - isJSXElement, - render, - vueFeatureMixin -} from "util/vue"; -import type { MaybeRef, MaybeRefOrGetter, Ref, WatchStopHandle } from "vue"; -import { computed, unref, watch } from "vue"; -import Challenge from "./Challenge.vue"; - -/** A symbol used to identify {@link Challenge} features. */ -export const ChallengeType = Symbol("Challenge"); - -/** - * An object that configures a {@link Challenge}. - */ -export interface ChallengeOptions extends VueFeatureOptions { - /** Whether this challenge can be started. */ - canStart?: MaybeRefOrGetter<boolean>; - /** The reset function for this challenge. */ - reset?: Reset; - /** The requirement(s) to complete this challenge. */ - requirements: Requirements; - /** The maximum number of times the challenge can be completed. */ - completionLimit?: MaybeRefOrGetter<DecimalSource>; - /** The display to use for this challenge. */ - display?: - | MaybeGetter<Renderable> - | { - /** A header to appear at the top of the display. */ - title?: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - description: MaybeGetter<Renderable>; - /** A description of the current goal for this challenge. If unspecified then the requirements will be displayed automatically based on {@link requirements}. */ - goal?: MaybeGetter<Renderable>; - /** A description of what will change upon completing this challenge. */ - reward?: MaybeGetter<Renderable>; - /** A description of the current effect of this challenge. */ - effectDisplay?: MaybeGetter<Renderable>; - }; - /** A function that is called when the challenge is completed. */ - onComplete?: VoidFunction; - /** A function that is called when the challenge is exited. */ - onExit?: VoidFunction; - /** A function that is called when the challenge is entered. */ - onEnter?: VoidFunction; -} - -/** An object that represents a feature that can be entered and exited, and have one or more completions with scaling requirements. */ -export interface Challenge extends VueFeature { - /** The reset function for this challenge. */ - reset?: Reset; - /** The requirement(s) to complete this challenge. */ - requirements: Requirements; - /** A function that is called when the challenge is completed. */ - onComplete?: VoidFunction; - /** A function that is called when the challenge is exited. */ - onExit?: VoidFunction; - /** A function that is called when the challenge is entered. */ - onEnter?: VoidFunction; - /** Whether this challenge can be started. */ - canStart?: MaybeRef<boolean>; - /** The maximum number of times the challenge can be completed. */ - completionLimit?: MaybeRef<DecimalSource>; - /** The display to use for this challenge. */ - display?: MaybeGetter<Renderable>; - /** The current amount of times this challenge can be completed. */ - canComplete: Ref<DecimalSource>; - /** The current number of times this challenge has been completed. */ - completions: Persistent<DecimalSource>; - /** Whether or not this challenge has been completed. */ - completed: Ref<boolean>; - /** Whether or not this challenge's completion count is at its limit. */ - maxed: Ref<boolean>; - /** Whether or not this challenge is currently active. */ - active: Persistent<boolean>; - /** A function to enter or leave the challenge. */ - toggle: VoidFunction; - /** - * A function to complete this challenge. - * @param remainInChallenge - Optional parameter to specify if the challenge should remain active after completion. - */ - complete: (remainInChallenge?: boolean) => void; - /** A symbol that helps identify features of the same type. */ - type: typeof ChallengeType; -} - -/** - * Lazily creates a challenge with the given options. - * @param optionsFunc Challenge options. - */ -export function createChallenge<T extends ChallengeOptions>(optionsFunc: () => T) { - const completions = persistent<DecimalSource>(0); - const active = persistent<boolean>(false, false); - return createLazyProxy(() => { - const options = optionsFunc(); - const { - requirements, - canStart, - completionLimit, - display: _display, - reset, - onComplete, - onEnter, - onExit, - ...props - } = options; - - const vueFeature = vueFeatureMixin("challenge", options, () => ( - <Challenge - active={challenge.active} - maxed={challenge.maxed} - canComplete={challenge.canComplete} - display={challenge.display} - requirements={challenge.requirements} - completed={challenge.completed} - canStart={challenge.canStart} - onToggle={challenge.toggle} - /> - )); - - let display: MaybeGetter<Renderable> | undefined = undefined; - if (typeof _display === "object" && !isJSXElement(_display)) { - const { title, description, goal, reward, effectDisplay } = _display; - display = () => ( - <span> - {title != null ? ( - <div> - {render(title, el => ( - <h3>{el}</h3> - ))} - </div> - ) : null} - {render(description, el => ( - <div>{el}</div> - ))} - <div> - <br /> - Goal:{" "} - {goal == null - ? displayRequirements(challenge.requirements) - : render(goal, el => <h3>{el}</h3>)} - </div> - {reward != null ? ( - <div> - <br /> - Reward: {render(reward)} - </div> - ) : null} - {effectDisplay != null ? <div>Currently: {render(effectDisplay)}</div> : null} - </span> - ); - } else if (_display != null) { - display = _display; - } - - const challenge = { - type: ChallengeType, - ...(props as Omit<typeof props, keyof VueFeature | keyof ChallengeOptions>), - ...vueFeature, - completions, - active, - completed: computed(() => Decimal.gt(completions.value, 0)), - canComplete: computed(() => maxRequirementsMet(requirements)), - maxed: computed((): boolean => - Decimal.gte(completions.value, unref(challenge.completionLimit)) - ), - canStart: processGetter(canStart) ?? true, - completionLimit: processGetter(completionLimit) ?? 1, - requirements, - reset, - onComplete, - onEnter, - onExit, - display, - toggle: function () { - if (active.value) { - if ( - Decimal.gt(unref(challenge.canComplete), 0) && - !unref<boolean>(challenge.maxed) - ) { - const newCompletions = unref(challenge.canComplete); - completions.value = Decimal.min( - Decimal.add(challenge.completions.value, newCompletions), - unref(challenge.completionLimit) - ); - onComplete?.(); - } - active.value = false; - onExit?.(); - reset?.reset(); - } else if ( - unref<boolean>(challenge.canStart) && - isVisible(unref(challenge.visibility) ?? true) && - !unref<boolean>(challenge.maxed) - ) { - challenge.reset?.reset(); - active.value = true; - onEnter?.(); - } - }, - complete: function (remainInChallenge?: boolean) { - const newCompletions = unref(challenge.canComplete); - if ( - active.value && - Decimal.gt(newCompletions, 0) && - !unref<boolean>(challenge.maxed) - ) { - completions.value = Decimal.min( - Decimal.add(challenge.completions.value, newCompletions), - unref(challenge.completionLimit) - ); - onComplete?.(); - if (remainInChallenge !== true) { - active.value = false; - onExit?.(); - reset?.reset(); - } - } - } - } satisfies Challenge; - - if (challenge.reset != null) { - globalBus.on("reset", currentReset => { - if (currentReset === challenge.reset && active.value) { - challenge.toggle(); - } - }); - } - - return challenge; - }); -} - -/** - * This will automatically complete a challenge when it's requirements are met. - * @param challenge The challenge to auto-complete - * @param autoActive Whether or not auto-completing should currently occur - * @param exitOnComplete Whether or not to exit the challenge after auto-completion - */ -export function setupAutoComplete( - challenge: Challenge, - autoActive: MaybeRefOrGetter<boolean> = true, - exitOnComplete = true -): WatchStopHandle { - const isActive = typeof autoActive === "function" ? computed(autoActive) : autoActive; - return watch( - [challenge.canComplete as Ref<DecimalSource>, isActive as Ref<boolean>], - ([canComplete, isActive]) => { - if (Decimal.gt(canComplete, 0) && isActive) { - challenge.complete(!exitOnComplete); - } - } - ); -} - -/** - * Utility for taking an array of challenges where only one may be active at a time, and giving a ref to the one currently active (or null if none are active) - * @param challenges The list of challenges that are mutually exclusive - */ -export function createActiveChallenge(challenges: Challenge[]): Ref<Challenge | null> { - return computed(() => challenges.find(challenge => challenge.active.value) ?? null); -} - -/** - * Utility for reporting if any challenge in a list is currently active. Intended for preventing entering a challenge if another is already active. - * @param challenges List of challenges that are mutually exclusive - */ -export function isAnyChallengeActive( - challenges: Challenge[] | Ref<Challenge | null> -): Ref<boolean> { - if (Array.isArray(challenges)) { - challenges = createActiveChallenge(challenges); - } - return computed(() => (challenges as Ref<Challenge | null>).value != null); -} - -declare module "game/settings" { - interface Settings { - hideChallenges: boolean; - } -} - -globalBus.on("loadSettings", settings => { - settings.hideChallenges ??= false; -}); - -globalBus.on("setupVue", () => - registerSettingField(() => ( - <Toggle - title={ - <span class="option-title"> - Hide maxed challenges - <desc>Hide challenges that have been fully completed.</desc> - </span> - } - onUpdate:modelValue={value => (settings.hideChallenges = value)} - modelValue={settings.hideChallenges} - /> - )) -); diff --git a/src/features/clickables/Clickable.vue b/src/features/clickables/Clickable.vue deleted file mode 100644 index c3294d7..0000000 --- a/src/features/clickables/Clickable.vue +++ /dev/null @@ -1,57 +0,0 @@ -<template> - <button - @click="e => emits('click', e)" - @mousedown="start" - @mouseleave="stop" - @mouseup="stop" - @touchstart.passive="start" - @touchend.passive="stop" - @touchcancel.passive="stop" - :class="{ - clickable: true, - can: unref(canClick), - locked: !unref(canClick) - }" - :disabled="!unref(canClick)" - > - <Component /> - </button> -</template> - -<script setup lang="tsx"> -import "components/common/features.css"; -import { MaybeGetter } from "util/computed"; -import { - render, - Renderable, - setupHoldToClick -} from "util/vue"; -import type { Component, MaybeRef } from "vue"; -import { unref } from "vue"; - -const props = defineProps<{ - canClick: MaybeRef<boolean>; - display?: MaybeGetter<Renderable>; -}>(); - -const emits = defineEmits<{ - (e: "click", event?: MouseEvent | TouchEvent): void; - (e: "hold"): void; -}>(); - -const Component = () => props.display == null ? <></> : render(props.display); - -const { start, stop } = setupHoldToClick(() => emits("hold")); -</script> - -<style scoped> -.clickable { - min-height: 120px; - width: 120px; - font-size: 10px; -} - -.clickable > * { - pointer-events: none; -} -</style> diff --git a/src/features/clickables/action.tsx b/src/features/clickables/action.tsx deleted file mode 100644 index df3ed18..0000000 --- a/src/features/clickables/action.tsx +++ /dev/null @@ -1,186 +0,0 @@ -import ClickableVue from "features/clickables/Clickable.vue"; -import { findFeatures } from "features/feature"; -import { globalBus } from "game/events"; -import { persistent } from "game/persistence"; -import { Unsubscribe } from "nanoevents"; -import Decimal, { DecimalSource } from "util/bignum"; -import { Direction } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { isJSXElement, render, Renderable, VueFeature, vueFeatureMixin } from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, Ref, ref, unref } from "vue"; -import { Bar, BarOptions, createBar } from "../bars/bar"; -import { type Clickable, ClickableOptions } from "./clickable"; - -/** A symbol used to identify {@link Action} features. */ -export const ActionType = Symbol("Action"); - -/** - * An object that configures an {@link Action}. - */ -export interface ActionOptions extends Omit<ClickableOptions, "onClick" | "onHold"> { - /** The cooldown during which the action cannot be performed again, in seconds. */ - duration: MaybeRefOrGetter<DecimalSource>; - /** Whether or not the action should perform automatically when the cooldown is finished. */ - autoStart?: MaybeRefOrGetter<boolean>; - /** A function that is called when the action is clicked. */ - onClick: (amount: DecimalSource) => void; - /** A pass-through to the {@link Bar} used to display the cooldown progress for the action. */ - barOptions?: Partial<BarOptions>; -} - -/** An object that represents a feature that can be clicked upon, and then has a cooldown before it can be clicked again. */ -export interface Action extends VueFeature { - /** The cooldown during which the action cannot be performed again, in seconds. */ - duration: MaybeRef<DecimalSource>; - /** Whether or not the action should perform automatically when the cooldown is finished. */ - autoStart: MaybeRef<boolean>; - /** Whether or not the action may be performed. */ - canClick: MaybeRef<boolean>; - /** The display to use for this action. */ - display?: MaybeGetter<Renderable>; - /** A function that is called when the action is clicked. */ - onClick: (amount: DecimalSource) => void; - /** Whether or not the player is holding down the action. Actions will be considered clicked as soon as the cooldown completes when being held down. */ - isHolding: Ref<boolean>; - /** The current amount of progress through the cooldown. */ - progress: Ref<DecimalSource>; - /** The bar used to display the current cooldown progress. */ - progressBar: Bar; - /** Update the cooldown the specified number of seconds */ - update: (diff: number) => void; - /** A symbol that helps identify features of the same type. */ - type: typeof ActionType; -} - -/** - * Lazily creates an action with the given options. - * @param optionsFunc Action options. - */ -export function createAction<T extends ActionOptions>(optionsFunc?: () => T) { - const progress = persistent<DecimalSource>(0); - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { - style, - duration, - canClick, - autoStart, - display: _display, - barOptions, - onClick, - ...props - } = options; - - const processedCanClick = processGetter(canClick) ?? true; - const processedStyle = processGetter(style); - - const progressBar = createBar(() => ({ - direction: Direction.Right, - width: 100, - height: 10, - borderStyle: { borderColor: "black" }, - baseStyle: { marginTop: "-1px" }, - progress: (): DecimalSource => Decimal.div(progress.value, unref(action.duration)), - ...(barOptions as Omit<typeof barOptions, keyof VueFeature>) - })); - - let display: MaybeGetter<Renderable>; - if (typeof _display === "object" && !isJSXElement(_display)) { - display = () => ( - <span> - {_display.title != null ? ( - <div> - {render(_display.title, el => ( - <h3>{el}</h3> - ))} - </div> - ) : null} - {render(_display.description, el => ( - <div>{el}</div> - ))} - </span> - ); - } else if (_display != null) { - display = _display; - } - - const action = { - type: ActionType, - ...(props as Omit<typeof props, keyof VueFeature | keyof ActionOptions>), - ...vueFeatureMixin( - "action", - { - ...options, - style: () => ({ - cursor: Decimal.gte(progress.value, unref(action.duration)) - ? "pointer" - : "progress", - display: "flex", - flexDirection: "column", - ...unref(processedStyle) - }) - }, - () => ( - <ClickableVue - canClick={action.canClick} - onClick={action.onClick} - onHold={action.onClick} - display={action.display} - /> - ) - ), - progress, - isHolding: ref(false), - duration: processGetter(duration), - canClick: computed( - (): boolean => - unref(processedCanClick) && Decimal.gte(progress.value, unref(action.duration)) - ), - autoStart: processGetter(autoStart) ?? false, - display: () => ( - <> - <div style="flex-grow: 1" /> - {display == null ? null : render(display)} - <div style="flex-grow: 1" /> - {render(progressBar)} - </> - ), - progressBar, - onClick: function () { - if (unref(action.canClick) === false) { - return; - } - const amount = Decimal.div(progress.value, unref(action.duration)); - onClick?.call(action, amount); - progress.value = 0; - }, - update: function (diff) { - const duration = unref(action.duration); - if (Decimal.gte(progress.value, duration)) { - progress.value = duration; - } else { - progress.value = Decimal.add(progress.value, diff); - if (action.isHolding.value || unref<boolean>(action.autoStart)) { - action.onClick(); - } - } - } - } satisfies Action satisfies Omit<Clickable, "type"> & { type: typeof ActionType }; - - return action; - }); -} - -const listeners: Record<string, Unsubscribe | undefined> = {}; -globalBus.on("addLayer", layer => { - const actions: Action[] = findFeatures(layer, ActionType) as Action[]; - listeners[layer.id] = layer.on("postUpdate", (diff: number) => { - actions.forEach(action => action.update(diff)); - }); -}); -globalBus.on("removeLayer", layer => { - // unsubscribe from postUpdate - listeners[layer.id]?.(); - listeners[layer.id] = undefined; -}); diff --git a/src/features/clickables/clickable.tsx b/src/features/clickables/clickable.tsx deleted file mode 100644 index 859099f..0000000 --- a/src/features/clickables/clickable.tsx +++ /dev/null @@ -1,136 +0,0 @@ -import Clickable from "features/clickables/Clickable.vue"; -import type { BaseLayer } from "game/layers"; -import type { Unsubscribe } from "nanoevents"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { - isJSXElement, - render, - Renderable, - VueFeature, - vueFeatureMixin, - VueFeatureOptions -} from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, unref } from "vue"; - -/** A symbol used to identify {@link Clickable} features. */ -export const ClickableType = Symbol("Clickable"); - -/** - * An object that configures a {@link Clickable}. - */ -export interface ClickableOptions extends VueFeatureOptions { - /** Whether or not the clickable may be clicked. */ - canClick?: MaybeRefOrGetter<boolean>; - /** The display to use for this clickable. */ - display?: - | MaybeGetter<Renderable> - | { - /** A header to appear at the top of the display. */ - title?: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - description: MaybeGetter<Renderable>; - }; - /** A function that is called when the clickable is clicked. */ - onClick?: (e?: MouseEvent | TouchEvent) => void; - /** A function that is called when the clickable is held down. */ - onHold?: VoidFunction; -} - -/** An object that represents a feature that can be clicked or held down. */ -export interface Clickable extends VueFeature { - /** A function that is called when the clickable is clicked. */ - onClick?: (e?: MouseEvent | TouchEvent) => void; - /** A function that is called when the clickable is held down. */ - onHold?: VoidFunction; - /** Whether or not the clickable may be clicked. */ - canClick: MaybeRef<boolean>; - /** The display to use for this clickable. */ - display?: MaybeGetter<Renderable>; - /** A symbol that helps identify features of the same type. */ - type: typeof ClickableType; -} - -/** - * Lazily creates a clickable with the given options. - * @param optionsFunc Clickable options. - */ -export function createClickable<T extends ClickableOptions>(optionsFunc?: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { canClick, display: _display, onClick: onClick, onHold: onHold, ...props } = options; - - let display: MaybeGetter<Renderable> | undefined = undefined; - if (typeof _display === "object" && !isJSXElement(_display)) { - display = () => ( - <span> - {_display.title != null ? ( - <div> - {render(_display.title, el => ( - <h3>{el}</h3> - ))} - </div> - ) : null} - {render(_display.description, el => ( - <div>{el}</div> - ))} - </span> - ); - } else if (_display != null) { - display = _display; - } - - const clickable = { - type: ClickableType, - ...(props as Omit<typeof props, keyof VueFeature | keyof ClickableOptions>), - ...vueFeatureMixin("clickable", options, () => ( - <Clickable - canClick={clickable.canClick} - onClick={clickable.onClick} - onHold={clickable.onClick} - display={clickable.display} - /> - )), - canClick: processGetter(canClick) ?? true, - display, - onClick: - onClick == null - ? undefined - : function (e?: MouseEvent | TouchEvent) { - if (unref(clickable.canClick) !== false) { - onClick.call(clickable, e); - } - }, - onHold: - onHold == null - ? undefined - : function () { - if (unref(clickable.canClick) !== false) { - onHold.call(clickable); - } - } - } satisfies Clickable; - - return clickable; - }); -} - -/** - * Utility to auto click a clickable whenever it can be. - * @param layer The layer the clickable is apart of - * @param clickable The clicker to click automatically - * @param autoActive Whether or not the clickable should currently be auto-clicking - */ -export function setupAutoClick( - layer: BaseLayer, - clickable: Clickable, - autoActive: MaybeRefOrGetter<boolean> = true -): Unsubscribe { - const isActive: MaybeRef<boolean> = - typeof autoActive === "function" ? computed(autoActive) : autoActive; - return layer.on("update", () => { - if (unref(isActive) && unref<boolean>(clickable.canClick)) { - clickable.onClick?.(); - } - }); -} diff --git a/src/features/clickables/repeatable.tsx b/src/features/clickables/repeatable.tsx deleted file mode 100644 index 9c78cff..0000000 --- a/src/features/clickables/repeatable.tsx +++ /dev/null @@ -1,197 +0,0 @@ -import Clickable from "features/clickables/Clickable.vue"; -import { Visibility } from "features/feature"; -import { DefaultValue, Persistent, persistent } from "game/persistence"; -import { - createVisibilityRequirement, - displayRequirements, - maxRequirementsMet, - payRequirements, - Requirements, - requirementsMet -} from "game/requirements"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { formatWhole } from "util/bignum"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { isJSXElement, render, Renderable, VueFeature, vueFeatureMixin } from "util/vue"; -import type { MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { computed, unref } from "vue"; -import { ClickableOptions } from "./clickable"; - -/** A symbol used to identify {@link Repeatable} features. */ -export const RepeatableType = Symbol("Repeatable"); - -/** An object that configures a {@link Repeatable}. */ -export interface RepeatableOptions extends ClickableOptions { - /** The requirement(s) to increase this repeatable. */ - requirements: Requirements; - /** The maximum amount obtainable for this repeatable. */ - limit?: MaybeRefOrGetter<DecimalSource>; - /** The initial amount this repeatable has on a new save / after reset. */ - initialAmount?: DecimalSource; - /** The display to use for this repeatable. */ - display?: - | MaybeGetter<Renderable> - | { - /** A header to appear at the top of the display. */ - title?: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - description: MaybeGetter<Renderable>; - /** A description of the current effect of this repeatable, based off its amount. */ - effectDisplay?: MaybeGetter<Renderable>; - /** Whether or not to show the current amount of this repeatable at the bottom of the display. */ - showAmount?: boolean; - }; -} - -/** An object that represents a feature with multiple "levels" with scaling requirements. */ -export interface Repeatable extends VueFeature { - /** The requirement(s) to increase this repeatable. */ - requirements: Requirements; - /** The maximum amount obtainable for this repeatable. */ - limit: MaybeRef<DecimalSource>; - /** The initial amount this repeatable has on a new save / after reset. */ - initialAmount?: DecimalSource; - /** The display to use for this repeatable. */ - display?: MaybeGetter<Renderable>; - /** Whether or not the repeatable may be clicked. */ - canClick: Ref<boolean>; - /** A function that is called when the repeatable is clicked. */ - onClick: (event?: MouseEvent | TouchEvent) => void; - /** The current amount this repeatable has. */ - amount: Persistent<DecimalSource>; - /** Whether or not this repeatable's amount is at it's limit. */ - maxed: Ref<boolean>; - /** How much amount can be increased by, or 1 if unclickable. **/ - amountToIncrease: Ref<DecimalSource>; - /** A symbol that helps identify features of the same type. */ - type: typeof RepeatableType; -} - -/** - * Lazily creates a repeatable with the given options. - * @param optionsFunc Repeatable options. - */ -export function createRepeatable<T extends RepeatableOptions>(optionsFunc: () => T) { - const amount = persistent<DecimalSource>(0); - return createLazyProxy(() => { - const options = optionsFunc(); - const { - requirements: _requirements, - display: _display, - limit, - onClick, - initialAmount, - ...props - } = options; - - if (options.classes == null) { - options.classes = computed(() => ({ bought: unref(repeatable.maxed) })); - } else { - const classes = processGetter(options.classes); - options.classes = computed(() => ({ - ...unref(classes), - bought: unref(repeatable.maxed) - })); - } - const vueFeature = vueFeatureMixin("repeatable", options, () => ( - <Clickable - canClick={repeatable.canClick} - onClick={repeatable.onClick} - onHold={repeatable.onClick} - display={repeatable.display} - /> - )); - - const limitRequirement = { - requirementMet: computed( - (): DecimalSource => Decimal.sub(unref(repeatable.limit), unref(amount)) - ), - requiresPay: false, - visibility: Visibility.None, - canMaximize: true - } as const; - const requirements: Requirements = [ - ...(Array.isArray(_requirements) ? _requirements : [_requirements]), - limitRequirement - ]; - if (vueFeature.visibility != null) { - requirements.push(createVisibilityRequirement(vueFeature.visibility)); - } - - let display; - if (typeof _display === "object" && !isJSXElement(_display)) { - const { title, description, effectDisplay, showAmount } = _display; - - display = () => ( - <span> - {title == null ? null : ( - <div> - {render(title, el => ( - <h3>{el}</h3> - ))} - </div> - )} - {render(description)} - {showAmount === false ? null : ( - <div> - <br /> - <>Amount: {formatWhole(unref(amount))}</> - {Decimal.isFinite(unref(repeatable.limit)) ? ( - <> / {formatWhole(unref(repeatable.limit))}</> - ) : undefined} - </div> - )} - {effectDisplay == null ? null : ( - <div> - <br /> - Currently: {render(effectDisplay)} - </div> - )} - {unref(repeatable.maxed) ? null : ( - <div> - <br /> - {displayRequirements(requirements, unref(repeatable.amountToIncrease))} - </div> - )} - </span> - ); - } else if (_display != null) { - display = _display; - } - - amount[DefaultValue] = initialAmount ?? 0; - - const repeatable = { - type: RepeatableType, - ...(props as Omit<typeof props, keyof VueFeature | keyof RepeatableOptions>), - ...vueFeature, - amount, - requirements, - initialAmount, - limit: processGetter(limit) ?? Decimal.dInf, - classes: computed(() => { - const currClasses = unref(vueFeature.classes) || {}; - if (unref(repeatable.maxed)) { - currClasses.bought = true; - } - return currClasses; - }), - maxed: computed((): boolean => Decimal.gte(unref(amount), unref(repeatable.limit))), - canClick: computed(() => requirementsMet(requirements)), - amountToIncrease: computed(() => Decimal.clampMin(maxRequirementsMet(requirements), 1)), - onClick(event?: MouseEvent | TouchEvent) { - if (!unref(repeatable.canClick)) { - return; - } - const purchaseAmount = unref(repeatable.amountToIncrease) ?? 1; - payRequirements(requirements, purchaseAmount); - amount.value = Decimal.add(unref(amount), purchaseAmount); - onClick?.(event); - }, - display - } satisfies Repeatable; - - return repeatable; - }); -} diff --git a/src/features/clickables/upgrade.tsx b/src/features/clickables/upgrade.tsx deleted file mode 100644 index 1eed690..0000000 --- a/src/features/clickables/upgrade.tsx +++ /dev/null @@ -1,174 +0,0 @@ -import { findFeatures } from "features/feature"; -import { Layer } from "game/layers"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import { - Requirements, - createVisibilityRequirement, - displayRequirements, - payRequirements, - requirementsMet -} from "game/requirements"; -import { isFunction } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { - Renderable, - VueFeature, - VueFeatureOptions, - isJSXElement, - render, - vueFeatureMixin -} from "util/vue"; -import type { MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { computed, unref } from "vue"; -import Clickable from "./Clickable.vue"; -import { ClickableOptions } from "./clickable"; - -/** A symbol used to identify {@link Upgrade} features. */ -export const UpgradeType = Symbol("Upgrade"); - -/** - * An object that configures a {@link Upgrade}. - */ -export interface UpgradeOptions extends VueFeatureOptions, ClickableOptions { - /** The display to use for this upgrade. */ - display?: - | MaybeGetter<Renderable> - | { - /** A header to appear at the top of the display. */ - title?: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - description: MaybeGetter<Renderable>; - /** A description of the current effect of the achievement. Useful when the effect changes dynamically. */ - effectDisplay?: MaybeGetter<Renderable>; - }; - /** The requirements to purchase this upgrade. */ - requirements: Requirements; - /** A function that is called when the upgrade is purchased. */ - onPurchase?: VoidFunction; -} - -/** An object that represents a feature that can be purchased a single time. */ -export interface Upgrade extends VueFeature { - /** The requirements to purchase this upgrade. */ - requirements: Requirements; - /** The display to use for this upgrade. */ - display?: MaybeGetter<Renderable>; - /** Whether or not this upgrade has been purchased. */ - bought: Persistent<boolean>; - /** Whether or not the upgrade can currently be purchased. */ - canPurchase: Ref<boolean>; - /** A function that is called when the upgrade is purchased. */ - onPurchase?: VoidFunction; - /** Purchase the upgrade */ - purchase: VoidFunction; - /** A symbol that helps identify features of the same type. */ - type: typeof UpgradeType; -} - -/** - * Lazily creates an upgrade with the given options. - * @param optionsFunc Upgrade options. - */ -export function createUpgrade<T extends UpgradeOptions>(optionsFunc: () => T) { - const bought = persistent<boolean>(false, false); - return createLazyProxy(() => { - const options = optionsFunc(); - const { requirements: _requirements, display: _display, onHold, ...props } = options; - - if (options.classes == null) { - options.classes = computed(() => ({ bought: unref(upgrade.bought) })); - } else { - const classes = processGetter(options.classes); - options.classes = computed(() => ({ - ...unref(classes), - bought: unref(upgrade.bought) - })); - } - const vueFeature = vueFeatureMixin("upgrade", options, () => ( - <Clickable - onClick={upgrade.purchase} - onHold={upgrade.onHold} - canClick={upgrade.canPurchase} - display={upgrade.display} - /> - )); - const requirements = Array.isArray(_requirements) ? _requirements : [_requirements]; - if (vueFeature.visibility != null) { - requirements.push(createVisibilityRequirement(vueFeature.visibility)); - } - - let display; - if (typeof _display === "object" && !isJSXElement(_display)) { - const { title, description, effectDisplay } = _display; - - display = () => ( - <span> - {title != null ? ( - <div> - {render(title, el => ( - <h3>{el}</h3> - ))} - </div> - ) : null} - {render(description, el => ( - <div>{el}</div> - ))} - {effectDisplay != null ? <div>Currently: {render(effectDisplay)}</div> : null} - {bought.value ? null : ( - <> - <br /> - {displayRequirements(requirements)} - </> - )} - </span> - ); - } else if (_display != null) { - display = _display; - } - - const upgrade = { - type: UpgradeType, - ...(props as Omit<typeof props, keyof VueFeature | keyof UpgradeOptions>), - ...vueFeature, - bought, - canPurchase: computed(() => !bought.value && requirementsMet(requirements)), - requirements, - display, - onHold, - purchase() { - if (!unref(upgrade.canPurchase)) { - return; - } - payRequirements(requirements); - bought.value = true; - options.onPurchase?.(); - } - } satisfies Upgrade; - - return upgrade; - }); -} - -/** - * Utility to auto purchase a list of upgrades whenever they're affordable. - * @param layer The layer the upgrades are apart of - * @param autoActive Whether or not the upgrades should currently be auto-purchasing - * @param upgrades The specific upgrades to upgrade. If unspecified, uses all upgrades on the layer. - */ -export function setupAutoPurchase( - layer: Layer, - autoActive: MaybeRefOrGetter<boolean>, - upgrades: Upgrade[] = [] -): void { - upgrades = upgrades.length === 0 ? (findFeatures(layer, UpgradeType) as Upgrade[]) : upgrades; - const isAutoActive: MaybeRef<boolean> = isFunction(autoActive) - ? computed(autoActive) - : autoActive; - layer.on("update", () => { - if (unref(isAutoActive)) { - upgrades.forEach(upgrade => upgrade.purchase()); - } - }); -} diff --git a/src/features/conversion.ts b/src/features/conversion.ts deleted file mode 100644 index 4969f3d..0000000 --- a/src/features/conversion.ts +++ /dev/null @@ -1,320 +0,0 @@ -import type { Resource } from "features/resources/resource"; -import Formula from "game/formulas/formulas"; -import { InvertibleFormula, InvertibleIntegralFormula } from "game/formulas/types"; -import type { BaseLayer } from "game/layers"; -import { createBooleanRequirement } from "game/requirements"; -import type { DecimalSource } from "util/bignum"; -import Decimal from "util/bignum"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable } from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, unref } from "vue"; - -/** A symbol used to identify {@link Conversion} features. */ -export const ConversionType = Symbol("Conversion"); - -/** An object that configures a {@link Conversion}. */ -export interface ConversionOptions { - /** - * The formula used to determine how much {@link gainResource} should be earned by this converting. - * The passed value will be a Formula representing the {@link baseResource} variable. - */ - formula: (variable: InvertibleIntegralFormula) => InvertibleFormula; - /** - * How much of the output resource the conversion can currently convert for. - * Typically this will be set for you in a conversion constructor. - */ - currentGain?: MaybeRefOrGetter<DecimalSource>; - /** - * The absolute amount the output resource will be changed by. - * Typically this will be set for you in a conversion constructor. - * This will differ from {@link currentGain} in the cases where the conversion isn't just adding the converted amount to the output resource. - */ - actualGain?: MaybeRefOrGetter<DecimalSource>; - /** - * The amount of the input resource currently being required in order to produce the {@link currentGain}. - * That is, if it went below this value then {@link currentGain} would decrease. - * Typically this will be set for you in a conversion constructor. - */ - currentAt?: MaybeRefOrGetter<DecimalSource>; - /** - * The amount of the input resource required to make {@link currentGain} increase. - * Typically this will be set for you in a conversion constructor. - */ - nextAt?: MaybeRefOrGetter<DecimalSource>; - /** - * The input {@link features/resources/resource.Resource} for this conversion. - */ - baseResource: Resource; - /** - * The output {@link features/resources/resource.Resource} for this conversion. i.e. the resource being generated. - */ - gainResource: Resource; - /** - * Whether or not to cap the amount of the output resource gained by converting at 1. - * Defaults to true. - */ - buyMax?: MaybeRefOrGetter<boolean>; - /** - * The function that performs the actual conversion from {@link baseResource} to {@link gainResource}. - * Typically this will be set for you in a conversion constructor. - */ - convert?: VoidFunction; - /** - * The function that spends the {@link baseResource} as part of the conversion. - * Defaults to setting the {@link baseResource} amount to 0. - */ - spend?: (amountGained: DecimalSource) => void; - /** - * A callback that happens after a conversion has been completed. - * Receives the amount gained via conversion. - * This will not be called whenever using currentGain without calling convert (e.g. passive generation) - */ - onConvert?: (amountGained: DecimalSource) => void; -} - -/** - * The properties that are added onto a processed {@link ConversionOptions} to create a {@link Conversion}. - */ -export interface Conversion { - /** - * The formula used to determine how much {@link gainResource} should be earned by this converting. - */ - formula: InvertibleFormula; - /** - * How much of the output resource the conversion can currently convert for. - * Typically this will be set for you in a conversion constructor. - */ - currentGain: MaybeRef<DecimalSource>; - /** - * The absolute amount the output resource will be changed by. - * Typically this will be set for you in a conversion constructor. - * This will differ from {@link currentGain} in the cases where the conversion isn't just adding the converted amount to the output resource. - */ - actualGain: MaybeRef<DecimalSource>; - /** - * The amount of the input resource currently being required in order to produce the {@link currentGain}. - * That is, if it went below this value then {@link currentGain} would decrease. - * Typically this will be set for you in a conversion constructor. - */ - currentAt: MaybeRef<DecimalSource>; - /** - * The amount of the input resource required to make {@link currentGain} increase. - * Typically this will be set for you in a conversion constructor. - */ - nextAt: MaybeRef<DecimalSource>; - /** - * The input {@link features/resources/resource.Resource} for this conversion. - */ - baseResource: Resource; - /** - * The output {@link features/resources/resource.Resource} for this conversion. i.e. the resource being generated. - */ - gainResource: Resource; - /** - * Whether or not to cap the amount of the output resource gained by converting at 1. - * Defaults to true. - */ - buyMax: MaybeRef<boolean>; - /** - * The function that performs the actual conversion from {@link baseResource} to {@link gainResource}. - * Typically this will be set for you in a conversion constructor. - */ - convert: VoidFunction; - /** - * The function that spends the {@link baseResource} as part of the conversion. - * Defaults to setting the {@link baseResource} amount to 0. - */ - spend: (amountGained: DecimalSource) => void; - /** - * A callback that happens after a conversion has been completed. - * Receives the amount gained via conversion. - * This will not be called whenever using currentGain without calling convert (e.g. passive generation) - */ - onConvert?: (amountGained: DecimalSource) => void; -} - -/** - * Lazily creates a conversion with the given options. - * You typically shouldn't use this function directly. Instead use one of the other conversion constructors, which will then call this. - * @param optionsFunc Conversion options. - * @see {@link createCumulativeConversion}. - * @see {@link createIndependentConversion}. - */ -export function createConversion<T extends ConversionOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc(); - const { - baseResource, - gainResource, - formula, - currentGain: _currentGain, - actualGain, - currentAt, - nextAt, - convert, - spend, - buyMax, - onConvert, - ...props - } = options; - - const currentGain = - _currentGain == null - ? computed((): Decimal => { - let gain = Decimal.floor(conversion.formula.evaluate(baseResource.value)).max( - 0 - ); - if (unref(conversion.buyMax) === false) { - gain = gain.min(1); - } - return gain; - }) - : processGetter(_currentGain); - - const conversion = { - type: ConversionType, - ...(props as Omit<typeof props, keyof ConversionOptions>), - baseResource, - gainResource, - formula: formula(Formula.variable(baseResource)), - currentGain, - actualGain: actualGain == null ? currentGain : processGetter(actualGain), - currentAt: - currentAt == null - ? computed( - (): DecimalSource => - conversion.formula.invert( - Decimal.floor(unref(conversion.currentGain)) - ) - ) - : processGetter(currentAt), - nextAt: - nextAt == null - ? computed( - (): DecimalSource => - conversion.formula.invert( - Decimal.floor(unref(conversion.currentGain)).add(1) - ) - ) - : processGetter(nextAt), - convert: - convert ?? - function () { - const amountGained = unref(conversion.currentGain); - gainResource.value = Decimal.add(gainResource.value, amountGained); - conversion.spend(amountGained); - onConvert?.(amountGained); - }, - spend: spend ?? (() => (baseResource.value = 0)), - buyMax: processGetter(buyMax) ?? true, - onConvert - } satisfies Conversion; - - return conversion; - }); -} - -/** - * Creates a conversion that simply adds to the gainResource amount upon converting. - * This is similar to the behavior of "normal" layers in The Modding Tree. - * This is equivalent to just calling createConversion directly. - * @param optionsFunc Conversion options. - */ -export function createCumulativeConversion<T extends ConversionOptions>(optionsFunc: () => T) { - return createConversion(optionsFunc); -} - -/** - * Creates a conversion that will replace the gainResource amount with the new amount upon converting. - * This is similar to the behavior of "static" layers in The Modding Tree. - * @param optionsFunc Converison options. - */ -export function createIndependentConversion<T extends ConversionOptions>(optionsFunc: () => T) { - const conversion = createConversion(() => { - const options = optionsFunc(); - - options.buyMax ??= false; - - options.currentGain ??= computed(() => { - let gain = Decimal.floor(conversion.formula.evaluate(options.baseResource.value)).max( - options.gainResource.value - ); - if (unref(options.buyMax as MaybeRef<boolean>) === false) { - gain = gain.min(Decimal.add(options.gainResource.value, 1)); - } - return gain; - }); - - options.actualGain ??= computed(() => { - let gain = Decimal.sub( - conversion.formula.evaluate(options.baseResource.value), - options.gainResource.value - ) - .floor() - .max(0); - - if (unref(options.buyMax as MaybeRef<boolean>) === false) { - gain = gain.min(1); - } - return gain; - }); - - options.convert ??= function () { - const amountGained = unref(conversion.actualGain); - options.gainResource.value = unref(conversion.currentGain); - conversion.spend(amountGained); - conversion.onConvert?.(amountGained); - }; - - return options; - }); - return conversion; -} - -/** - * This will automatically increase the value of conversion.gainResource without lowering the value of the input resource. - * It will by default perform 100% of a conversion's currentGain per second. - * If you use a ref for the rate you can set it's value to 0 when passive generation should be disabled. - * @param layer The layer this passive generation will be associated with. Typically `this` when calling this function from inside a layer's options function. - * @param conversion The conversion that will determine how much generation there is. - * @param rate A multiplier to multiply against the conversion's currentGain. - * @param cap A value that should not be passed via passive generation. - */ -export function setupPassiveGeneration( - layer: BaseLayer, - conversion: Conversion, - rate: MaybeRefOrGetter<DecimalSource> = 1, - cap: MaybeRefOrGetter<DecimalSource> = Decimal.dInf -): void { - const processedRate = processGetter(rate); - const processedCap = processGetter(cap); - layer.on("preUpdate", diff => { - const currRate = unref(processedRate); - if (Decimal.neq(currRate, 0)) { - conversion.gainResource.value = Decimal.add( - conversion.gainResource.value, - Decimal.times(currRate, diff).times(Decimal.ceil(unref(conversion.actualGain))) - ) - .min(unref(processedCap)) - .max(conversion.gainResource.value); - } - }); -} - -/** - * Creates requirement that is met when the conversion hits a specified gain amount - * @param conversion The conversion to check the gain amount of - * @param minGainAmount The minimum gain amount that must be met for the requirement to be met - */ -export function createCanConvertRequirement( - conversion: Conversion, - minGainAmount: MaybeRefOrGetter<DecimalSource> = 1, - display?: MaybeGetter<Renderable> -) { - const computedMinGainAmount = processGetter(minGainAmount); - return createBooleanRequirement( - () => Decimal.gte(unref(conversion.actualGain), unref(computedMinGainAmount)), - display - ); -} diff --git a/src/features/feature.ts b/src/features/feature.ts deleted file mode 100644 index 5523c28..0000000 --- a/src/features/feature.ts +++ /dev/null @@ -1,137 +0,0 @@ -import Decimal from "util/bignum"; -import { Renderable, renderCol, VueFeature } from "util/vue"; -import { computed, isRef, MaybeRef, Ref, unref } from "vue"; - -let id = 0; -/** - * Gets a unique ID to give to each feature, used for any sort of system that needs to identify - * elements in the DOM rather than references to the feature itself. (For example, branches) - * IDs are guaranteed unique, but _NOT_ persistent - they likely will change between updates. - * @param prefix A string to prepend to the id to make it more readable in the inspector tools - */ -export function getUniqueID(prefix = "feature-"): string { - return prefix + id++; -} - -/** Enum for what the visibility of a feature or component should be */ -export enum Visibility { - /** The feature or component should be visible */ - Visible, - /** The feature or component should not appear but still take up space */ - Hidden, - /** The feature or component should not appear not take up space */ - None -} - -/** - * Utility function for determining if a visibility value is anything but Visibility.None. - Booleans are allowed and false will be considered to be Visibility.None. - * @param visibility The ref to either a visibility value or boolean - * @returns True if the visibility is either true, Visibility.Visible, or Visibility.Hidden - */ -export function isVisible(visibility: MaybeRef<Visibility | boolean>) { - const currVisibility = unref(visibility); - return currVisibility !== Visibility.None && currVisibility !== false; -} - -/** - * Utility function for determining if a visibility value is Visibility.Hidden. - Booleans are allowed but will never be considered to be Visible.Hidden. - * @param visibility The ref to either a visibility value or boolean - * @returns True if the visibility is Visibility.Hidden - */ -export function isHidden(visibility: MaybeRef<Visibility | boolean>) { - const currVisibility = unref(visibility); - return currVisibility === Visibility.Hidden; -} - -/** - * Utility function for narrowing something that may or may not be a specified type of feature. - * Works off the principle that all features have a unique symbol to identify themselves with. - * @param object The object to determine whether or not is of the specified type - * @param type The symbol to look for in the object's "type" property - * @returns Whether or not the object is the specified type - */ -export function isType<T extends symbol>(object: unknown, type: T): object is { type: T } { - return object != null && typeof object === "object" && "type" in object && object.type === type; -} - -/** - * Traverses an object and returns all features of the given type(s) - * @param obj The object to traverse - * @param types The feature types that will be searched for - */ -export function findFeatures(obj: object, ...types: symbol[]): unknown[] { - const objects: unknown[] = []; - const handleObject = (obj: object) => { - Object.keys(obj).forEach(key => { - const value: unknown = obj[key as keyof typeof obj]; - if ( - value != null && - typeof value === "object" && - (value as Record<string, unknown>).__v_isVNode !== true - ) { - if (types.includes((value as Record<string, unknown>).type as symbol)) { - objects.push(value); - } else if (!(value instanceof Decimal) && !isRef(value)) { - handleObject(value as Record<string, unknown>); - } - } - }); - }; - handleObject(obj); - return objects; -} - -/** - * Utility function for taking a list of features and filtering them out, but keeping a reference to the first filtered out feature. Used for having a collapsible of the filtered out content, with the first filtered out item remaining outside the collapsible for easy reference. - * @param features The list of features to search through - * @param filter The filter to use to determine features that shouldn't be collapsible - * @returns An object containing a ref to the first filtered _out_ feature, a render function for the collapsed content, and a ref for whether or not there is any collapsed content to show - */ -export function getFirstFeature<T extends VueFeature>( - features: T[], - filter: (feature: T) => boolean -): { - firstFeature: Ref<T | undefined>; - collapsedContent: () => Renderable; - hasCollapsedContent: Ref<boolean>; -} { - const filteredFeatures = computed(() => - features.filter(feature => isVisible(feature.visibility ?? true) && filter(feature)) - ); - return { - firstFeature: computed(() => filteredFeatures.value[0]), - collapsedContent: () => renderCol(...filteredFeatures.value.slice(1)), - hasCollapsedContent: computed(() => filteredFeatures.value.length > 1) - }; -} - -/** - * Traverses an object and returns all features that are _not_ any of the given types. - * Features are any object with a "type" property that has a symbol value. - * @param obj The object to traverse - * @param types The feature types that will be skipped over - */ -export function excludeFeatures(obj: Record<string, unknown>, ...types: symbol[]): unknown[] { - const objects: unknown[] = []; - const handleObject = (obj: Record<string, unknown>) => { - Object.keys(obj).forEach(key => { - const value = obj[key]; - if ( - value != null && - typeof value === "object" && - (value as Record<string, unknown>).__v_isVNode !== true - ) { - const type = (value as Record<string, unknown>).type; - if (typeof type === "symbol" && !types.includes(type)) { - objects.push(value); - } else if (!(value instanceof Decimal) && !isRef(value)) { - handleObject(value as Record<string, unknown>); - } - } - }); - }; - handleObject(obj); - return objects; -} diff --git a/src/features/hotkey.tsx b/src/features/hotkey.tsx deleted file mode 100644 index 40da6af..0000000 --- a/src/features/hotkey.tsx +++ /dev/null @@ -1,137 +0,0 @@ -import Hotkey from "components/Hotkey.vue"; -import { hasWon } from "data/projEntry"; -import { findFeatures } from "features/feature"; -import { globalBus } from "game/events"; -import player from "game/player"; -import { registerInfoComponent } from "game/settings"; -import { processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { MaybeRef, MaybeRefOrGetter, shallowReactive, unref } from "vue"; - -/** A dictionary of all hotkeys. */ -export const hotkeys: Record<string, Hotkey | undefined> = shallowReactive({}); -/** A symbol used to identify {@link Hotkey} features. */ -export const HotkeyType = Symbol("Hotkey"); - -/** - * An object that configures a {@link Hotkey}. - */ -export interface HotkeyOptions { - /** Whether or not this hotkey is currently enabled. */ - enabled?: MaybeRefOrGetter<boolean>; - /** The key tied to this hotkey */ - key: string; - /** The description of this hotkey, to display in the settings. */ - description: MaybeRefOrGetter<string>; - /** What to do upon pressing the key. */ - onPress: (e?: MouseEvent | TouchEvent) => void; -} - -/** An object that represents a hotkey shortcut that performs an action upon a key sequence being pressed. */ -export interface Hotkey { - /** Whether or not this hotkey is currently enabled. */ - enabled: MaybeRef<boolean>; - /** The key tied to this hotkey */ - key: string; - /** The description of this hotkey, to display in the settings. */ - description: MaybeRef<string>; - /** What to do upon pressing the key. */ - onPress: (e?: MouseEvent | TouchEvent) => void; - /** A symbol that helps identify features of the same type. */ - type: typeof HotkeyType; -} - -const uppercaseNumbers = [")", "!", "@", "#", "$", "%", "^", "&", "*", "("]; - -/** - * Lazily creates a hotkey with the given options. - * @param optionsFunc Hotkey options. - */ -export function createHotkey<T extends HotkeyOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc(); - const { enabled, description, key, onPress, ...props } = options; - - const hotkey = { - type: HotkeyType, - ...(props as Omit<typeof props, keyof HotkeyOptions>), - enabled: processGetter(enabled) ?? true, - description: processGetter(description), - key, - onPress - } satisfies Hotkey; - - return hotkey; - }); -} - -globalBus.on("addLayer", layer => { - (findFeatures(layer, HotkeyType) as Hotkey[]).forEach(hotkey => { - hotkeys[hotkey.key] = hotkey; - }); -}); - -globalBus.on("removeLayer", layer => { - (findFeatures(layer, HotkeyType) as Hotkey[]).forEach(hotkey => { - hotkeys[hotkey.key] = undefined; - }); -}); - -document.onkeydown = function (e) { - if ((e.target as HTMLElement | null)?.tagName === "INPUT") { - return; - } - if (hasWon.value && !player.keepGoing) { - return; - } - const keysToCheck: string[] = [e.key]; - if (e.shiftKey && e.ctrlKey) { - keysToCheck.splice(0, 1); - keysToCheck.push("ctrl+shift+" + e.key.toUpperCase()); - keysToCheck.push("shift+ctrl+" + e.key.toUpperCase()); - if (uppercaseNumbers.includes(e.key)) { - keysToCheck.push("ctrl+shift+" + uppercaseNumbers.indexOf(e.key)); - keysToCheck.push("shift+ctrl+" + uppercaseNumbers.indexOf(e.key)); - } else { - keysToCheck.push("ctrl+shift+" + e.key.toLowerCase()); - keysToCheck.push("shift+ctrl+" + e.key.toLowerCase()); - } - } else if (uppercaseNumbers.includes(e.key)) { - keysToCheck.push("shift+" + e.key); - keysToCheck.push("shift+" + uppercaseNumbers.indexOf(e.key)); - } else if (e.shiftKey) { - keysToCheck.push("shift+" + e.key.toUpperCase()); - keysToCheck.push("shift+" + e.key.toLowerCase()); - } else if (e.ctrlKey) { - // remove e.key since the key doesn't change based on ctrl being held or not - keysToCheck.splice(0, 1); - keysToCheck.push("ctrl+" + e.key); - } - const hotkey = hotkeys[keysToCheck.find(key => key in hotkeys) ?? ""]; - if (hotkey != null && unref(hotkey.enabled) !== false) { - e.preventDefault(); - hotkey.onPress(); - } -}; - -globalBus.on("setupVue", () => - registerInfoComponent(() => { - const keys = Object.values(hotkeys).filter(hotkey => unref(hotkey?.enabled)); - if (keys.length === 0) { - return ""; - } - return ( - <div> - <br /> - <h4>Hotkeys</h4> - <div style="column-count: 2"> - {keys.map(hotkey => ( - <div> - <Hotkey hotkey={hotkey as Hotkey} /> {unref(hotkey?.description)} - </div> - ))} - </div> - </div> - ); - }) -); diff --git a/src/features/infoboxes/Infobox.vue b/src/features/infoboxes/Infobox.vue deleted file mode 100644 index 429aa4e..0000000 --- a/src/features/infoboxes/Infobox.vue +++ /dev/null @@ -1,133 +0,0 @@ -<template> - <div - class="infobox" - :style="{ - borderColor: unref(color), - }" - :class="{ collapsed: unref(collapsed), stacked }" - > - <button - class="title" - :style="[{ backgroundColor: unref(color) }, unref(titleStyle) || []]" - @click="collapsed.value = !unref(collapsed)" - > - <span class="toggle">▼</span> - <Title /> - </button> - <CollapseTransition> - <div v-if="!unref(collapsed)" class="body" :style="unref(bodyStyle)"> - <Body /> - </div> - </CollapseTransition> - </div> -</template> - -<script setup lang="ts"> -import CollapseTransition from "@ivanv/vue-collapse-transition/src/CollapseTransition.vue"; -import themes from "data/themes"; -import settings from "game/settings"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { computed, CSSProperties, MaybeRef, Ref, unref } from "vue"; - -const props = defineProps<{ - color?: MaybeRef<string>; - titleStyle?: MaybeRef<CSSProperties>; - bodyStyle?: MaybeRef<CSSProperties>; - collapsed: Ref<boolean>; - display: MaybeGetter<Renderable>; - title: MaybeGetter<Renderable>; -}>(); - -const Title = () => render(props.title); -const Body = () => render(props.display); - -const stacked = computed(() => themes[settings.theme].mergeAdjacent); -</script> - -<style scoped> -.infobox { - position: relative; - width: 600px; - max-width: 95%; - margin-top: 0; - text-align: left; - border-style: solid; - border-width: 0px; - box-sizing: border-box; - border-radius: 5px; -} - -.infobox.stacked { - border-width: 4px; -} - -.infobox:not(.stacked) + .infobox:not(.stacked) { - margin-top: 20px; -} - -.infobox + :not(.infobox) { - margin-top: 10px; -} - -.title { - font-size: 24px; - color: black; - cursor: pointer; - border: none; - padding: 4px; - width: auto; - text-align: left; - padding-left: 30px; - border-radius: 0; - margin: 00; -} - -.infobox:not(.stacked) .title { - border-top-left-radius: 5px; - border-top-right-radius: 5px; -} - -.infobox.stacked + .infobox.stacked { - border-top-left-radius: 0; - border-top-right-radius: 0; - margin-top: -5px; -} - -.stacked .title { - width: 100%; -} - -.collapsed:not(.stacked) .title::after { - content: ""; - position: absolute; - left: 0; - right: 0; - bottom: 0; - height: 4px; - background-color: inherit; -} - -.toggle { - position: absolute; - left: 10px; -} - -.collapsed .toggle { - transform: rotate(-90deg); -} - -.body { - transition-duration: 0.5s; - padding: 8px; - width: 100%; - display: block; - box-sizing: border-box; - background-color: var(--background); - border-radius: 0 0 var(--feature-margin) var(--feature-margin); -} - -.infobox:not(.stacked) .body { - padding: 4px; -} -</style> diff --git a/src/features/infoboxes/infobox.tsx b/src/features/infoboxes/infobox.tsx deleted file mode 100644 index 1a0405c..0000000 --- a/src/features/infoboxes/infobox.tsx +++ /dev/null @@ -1,79 +0,0 @@ -import Infobox from "features/infoboxes/Infobox.vue"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable, VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import { CSSProperties, MaybeRef, MaybeRefOrGetter } from "vue"; - -/** A symbol used to identify {@link Infobox} features. */ -export const InfoboxType = Symbol("Infobox"); - -/** - * An object that configures an {@link Infobox}. - */ -export interface InfoboxOptions extends VueFeatureOptions { - /** The background color of the Infobox. Defaults to the layer color. */ - color?: MaybeRefOrGetter<string>; - /** CSS to apply to the title of the infobox. */ - titleStyle?: MaybeRefOrGetter<CSSProperties>; - /** CSS to apply to the body of the infobox. */ - bodyStyle?: MaybeRefOrGetter<CSSProperties>; - /** A header to appear at the top of the display. */ - title: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - display: MaybeGetter<Renderable>; -} - -/** An object that represents a feature that displays information in a collapsible way. */ -export interface Infobox extends VueFeature { - /** The background color of the Infobox. */ - color?: MaybeRef<string>; - /** CSS to apply to the title of the infobox. */ - titleStyle?: MaybeRef<CSSProperties>; - /** CSS to apply to the body of the infobox. */ - bodyStyle?: MaybeRef<CSSProperties>; - /** A header to appear at the top of the display. */ - title: MaybeGetter<Renderable>; - /** The main text that appears in the display. */ - display: MaybeGetter<Renderable>; - /** Whether or not this infobox is collapsed. */ - collapsed: Persistent<boolean>; - /** A symbol that helps identify features of the same type. */ - type: typeof InfoboxType; -} - -/** - * Lazily creates an infobox with the given options. - * @param optionsFunc Infobox options. - */ -export function createInfobox<T extends InfoboxOptions>(optionsFunc: () => T) { - const collapsed = persistent<boolean>(false, false); - return createLazyProxy(() => { - const options = optionsFunc(); - const { color, titleStyle, bodyStyle, title, display, ...props } = options; - - const infobox = { - type: InfoboxType, - ...(props as Omit<typeof props, keyof VueFeature | keyof InfoboxOptions>), - ...vueFeatureMixin("infobox", options, () => ( - <Infobox - color={infobox.color} - titleStyle={infobox.titleStyle} - bodyStyle={infobox.bodyStyle} - collapsed={infobox.collapsed} - title={infobox.title} - display={infobox.display} - /> - )), - collapsed, - color: processGetter(color) ?? "--layer-color", - titleStyle: processGetter(titleStyle), - bodyStyle: processGetter(bodyStyle), - title, - display - } satisfies Infobox; - - return infobox; - }); -} diff --git a/src/features/links/Link.vue b/src/features/links/Link.vue deleted file mode 100644 index 7fa9603..0000000 --- a/src/features/links/Link.vue +++ /dev/null @@ -1,59 +0,0 @@ -<template> - <line - stroke-width="15px" - stroke="white" - v-bind="linkProps" - :x1="startPosition.x" - :y1="startPosition.y" - :x2="endPosition.x" - :y2="endPosition.y" - /> -</template> - -<script setup lang="ts"> -import type { Link } from "features/links/links"; -import type { FeatureNode } from "game/layers"; -import { kebabifyObject } from "util/vue"; -import { computed } from "vue"; - -const props = defineProps<{ - link: Link; - startNode: FeatureNode; - endNode: FeatureNode; - boundingRect: DOMRect | undefined; -}>(); - -const startPosition = computed(() => { - const rect = props.startNode.rect; - const boundingRect = props.boundingRect; - const position = boundingRect - ? { - x: rect.x + rect.width / 2 - boundingRect.x, - y: rect.y + rect.height / 2 - boundingRect.y - } - : { x: 0, y: 0 }; - if (props.link.offsetStart) { - position.x += props.link.offsetStart.x; - position.y += props.link.offsetStart.y; - } - return position; -}); - -const endPosition = computed(() => { - const rect = props.endNode.rect; - const boundingRect = props.boundingRect; - const position = boundingRect - ? { - x: rect.x + rect.width / 2 - boundingRect.x, - y: rect.y + rect.height / 2 - boundingRect.y - } - : { x: 0, y: 0 }; - if (props.link.offsetEnd) { - position.x += props.link.offsetEnd.x; - position.y += props.link.offsetEnd.y; - } - return position; -}); - -const linkProps = computed(() => kebabifyObject(props.link as unknown as Record<string, unknown>)); -</script> diff --git a/src/features/links/Links.vue b/src/features/links/Links.vue deleted file mode 100644 index 934a41c..0000000 --- a/src/features/links/Links.vue +++ /dev/null @@ -1,63 +0,0 @@ -<template> - <svg v-if="validLinks" v-bind="$attrs"> - <LinkVue - v-for="(link, index) in validLinks" - :key="index" - :link="link" - :boundingRect="boundingRect" - :startNode="nodes[link.startNode.id]!" - :endNode="nodes[link.endNode.id]!" - /> - </svg> - <div ref="resizeListener" class="resize-listener" /> -</template> - -<script setup lang="ts"> -import type { FeatureNode } from "game/layers"; -import { BoundsInjectionKey, NodesInjectionKey } from "game/layers"; -import { computed, inject, MaybeRef, onMounted, ref, shallowRef, unref, watch } from "vue"; -import LinkVue from "./Link.vue"; -import { Link } from "./links"; - -const props = defineProps<{ links: MaybeRef<Link[]> }>(); - -function updateBounds() { - boundingRect.value = resizeListener.value?.getBoundingClientRect(); -} - -const resizeObserver = new ResizeObserver(updateBounds); -const resizeListener = shallowRef<HTMLElement | null>(null); - -const nodes = inject(NodesInjectionKey, ref<Record<string, FeatureNode | undefined>>({})); -const outerBoundingRect = inject(BoundsInjectionKey, ref<DOMRect | undefined>(undefined)); -const boundingRect = ref<DOMRect | undefined>(resizeListener.value?.getBoundingClientRect()); -watch(outerBoundingRect, updateBounds); -onMounted(() => { - const resListener = resizeListener.value; - if (resListener != null) { - resizeObserver.observe(resListener); - } - updateBounds(); -}); - -const validLinks = computed(() => { - const n = nodes.value; - return ( - unref(props.links)?.filter(link => - n[link.startNode.id]?.rect && n[link.endNode.id]?.rect) ?? [] - ); -}); -</script> - -<style scoped> -.resize-listener, svg { - position: absolute; - top: 0; - left: 0; - z-index: -10; - pointer-events: none; - margin: 0; - width: 100%; - height: 100%; -} -</style> diff --git a/src/features/links/links.tsx b/src/features/links/links.tsx deleted file mode 100644 index ef6bdcb..0000000 --- a/src/features/links/links.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import type { Position } from "game/layers"; -import { processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import { unref, type MaybeRef, type MaybeRefOrGetter, type SVGAttributes } from "vue"; -import Links from "./Links.vue"; - -/** A symbol used to identify {@link Links} features. */ -export const LinksType = Symbol("Links"); - -/** Represents a link between two nodes. It will be displayed as an SVG line, and can take any appropriate properties for an SVG line element. */ -export interface Link extends /* @vue-ignore */ SVGAttributes { - startNode: { id: string }; - endNode: { id: string }; - offsetStart?: Position; - offsetEnd?: Position; -} - -/** An object that configures a {@link Links}. */ -export interface LinksOptions extends VueFeatureOptions { - /** The list of links to display. */ - links: MaybeRefOrGetter<Link[]>; -} - -/** An object that represents a list of links between nodes, which are the elements in the DOM for any renderable feature. */ -export interface Links extends VueFeature { - /** The list of links to display. */ - links: MaybeRef<Link[]>; - /** A symbol that helps identify features of the same type. */ - type: typeof LinksType; -} - -/** - * Lazily creates links with the given options. - * @param optionsFunc Links options. - */ -export function createLinks<T extends LinksOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.(); - const { links, style: _style, ...props } = options; - - const style = processGetter(_style); - options.style = () => ({ position: "static", ...(unref(style) ?? {}) }); - - const retLinks = { - type: LinksType, - ...(props as Omit<typeof props, keyof VueFeature | keyof LinksOptions>), - ...vueFeatureMixin("links", options, () => <Links links={retLinks.links} />), - links: processGetter(links) - } satisfies Links; - - return retLinks; - }); -} diff --git a/src/features/particles/Particles.vue b/src/features/particles/Particles.vue deleted file mode 100644 index 2dd5db3..0000000 --- a/src/features/particles/Particles.vue +++ /dev/null @@ -1,69 +0,0 @@ -<template> - <div - ref="resizeListener" - class="resize-listener" - /> -</template> - -<script setup lang="tsx"> -import { Application } from "@pixi/app"; -import { globalBus } from "game/events"; -import "lib/pixi"; -import { nextTick, onBeforeUnmount, onMounted, shallowRef } from "vue"; - -const emits = defineEmits<{ - (e: "containerResized", boundingRect: DOMRect): void; - (e: "hotReload"): void; - (e: "init", app: Application): void; -}>(); - -const app = shallowRef<null | Application>(null); - -const resizeObserver = new ResizeObserver(updateBounds); -const resizeListener = shallowRef<HTMLElement | null>(null); - -onMounted(() => { - const resListener = resizeListener.value; - if (resListener != null) { - resizeObserver.observe(resListener); - app.value = new Application({ - resizeTo: resListener, - backgroundAlpha: 0 - }); - resizeListener.value?.appendChild(app.value.view); - emits("init", app.value); - } - updateBounds(); - nextTick(() => emits("hotReload")); -}); -onBeforeUnmount(() => { - app.value?.destroy(); - app.value = null; -}); - -let isDirty = true; -function updateBounds() { - if (isDirty) { - isDirty = false; - nextTick(() => { - if (resizeListener.value != null) { - emits("containerResized", resizeListener.value.getBoundingClientRect()); - } - isDirty = true; - }); - } -} -globalBus.on("fontsLoaded", updateBounds); -</script> - -<style scoped> -.not-fullscreen, -.resize-listener { - position: absolute; - top: 0px; - left: 0; - right: -4px; - bottom: 5px; - pointer-events: none; -} -</style> diff --git a/src/features/particles/particles.tsx b/src/features/particles/particles.tsx deleted file mode 100644 index eaf33ec..0000000 --- a/src/features/particles/particles.tsx +++ /dev/null @@ -1,99 +0,0 @@ -import { Application } from "@pixi/app"; -import type { EmitterConfigV3 } from "@pixi/particle-emitter"; -import { Emitter, upgradeConfig } from "@pixi/particle-emitter"; -import { createLazyProxy } from "util/proxies"; -import { VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import { Ref, shallowRef, unref } from "vue"; -import Particles from "./Particles.vue"; -import { processGetter } from "util/computed"; - -/** A symbol used to identify {@link Particles} features. */ -export const ParticlesType = Symbol("Particles"); - -/** - * An object that configures {@link Particles}. - */ -export interface ParticlesOptions extends VueFeatureOptions { - /** A function that is called when the particles canvas is resized. */ - onContainerResized?: (boundingRect: DOMRect) => void; - /** A function that is called whenever the particles element is reloaded during development. For restarting particle effects. */ - onHotReload?: VoidFunction; -} - -/** - * An object that represents a feature that display particle effects on the screen. - * The config should typically be gotten by designing the effect using the [online particle effect editor](https://pixijs.io/pixi-particles-editor/) and passing it into the {@link upgradeConfig} from @pixi/particle-emitter. - */ -export interface Particles extends VueFeature { - /** A function that is called when the particles canvas is resized. */ - onContainerResized?: (boundingRect: DOMRect) => void; - /** A function that is called whenever the particles element is reloaded during development. For restarting particle effects. */ - onHotReload?: VoidFunction; - /** The Pixi.JS Application powering this particles canvas. */ - app: Ref<null | Application>; - /** - * A function to asynchronously add an emitter to the canvas. - * The returned emitter can then be positioned as appropriate and started. - * @see {@link Particles} - */ - addEmitter: (config: EmitterConfigV3) => Promise<Emitter>; - /** A symbol that helps identify features of the same type. */ - type: typeof ParticlesType; -} - -/** - * Lazily creates particles with the given options. - * @param optionsFunc Particles options. - */ -export function createParticles<T extends ParticlesOptions>(optionsFunc?: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { onContainerResized, onHotReload, style: _style, ...props } = options; - - const style = processGetter(_style); - options.style = () => ({ position: "static", ...(unref(style) ?? {}) }); - - let emittersToAdd: { - resolve: (value: Emitter | PromiseLike<Emitter>) => void; - config: EmitterConfigV3; - }[] = []; - - function onInit(app: Application) { - emittersToAdd.forEach(({ resolve, config }) => resolve(new Emitter(app.stage, config))); - emittersToAdd = []; - particles.app.value = app; - } - - const particles = { - type: ParticlesType, - ...(props as Omit<typeof props, keyof VueFeature | keyof ParticlesOptions>), - ...vueFeatureMixin("particles", options, () => ( - <Particles - onInit={onInit} - onContainerResized={particles.onContainerResized} - onHotReload={particles.onHotReload} - /> - )), - app: shallowRef<null | Application>(null), - onContainerResized, - onHotReload, - addEmitter: (config: EmitterConfigV3): Promise<Emitter> => { - if (particles.app.value != null) { - return Promise.resolve(new Emitter(particles.app.value.stage, config)); - } - return new Promise<Emitter>(resolve => { - emittersToAdd.push({ resolve, config }); - }); - } - } satisfies Particles; - - return particles; - }); -} - -declare global { - interface Window { - upgradeConfig: typeof upgradeConfig; - } -} -window.upgradeConfig = upgradeConfig; diff --git a/src/features/reset.ts b/src/features/reset.ts deleted file mode 100644 index 32efac6..0000000 --- a/src/features/reset.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { globalBus } from "game/events"; -import Formula from "game/formulas/formulas"; -import type { BaseLayer } from "game/layers"; -import { - DefaultValue, - NonPersistent, - Persistent, - persistent, - SkipPersistence -} from "game/persistence"; -import type { Unsubscribe } from "nanoevents"; -import Decimal from "util/bignum"; -import { processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { isRef, MaybeRef, MaybeRefOrGetter, unref } from "vue"; - -/** A symbol used to identify {@link Reset} features. */ -export const ResetType = Symbol("Reset"); - -/** - * An object that configures a {@link features/clickables/clickable.Clickable}. - */ -export interface ResetOptions { - /** List of things to reset. Can include objects which will be recursed over for persistent values. */ - thingsToReset: MaybeRefOrGetter<unknown[]>; - /** A function that is called when the reset is performed. */ - onReset?: VoidFunction; -} - -/** An object that represents a reset mechanic, which resets progress back to its initial state. */ -export interface Reset { - /** List of things to reset. Can include objects which will be recursed over for persistent values. */ - thingsToReset: MaybeRef<unknown[]>; - /** A function that is called when the reset is performed. */ - onReset?: VoidFunction; - /** Trigger the reset. */ - reset: VoidFunction; - /** A symbol that helps identify features of the same type. */ - type: typeof ResetType; -} - -/** - * Lazily creates a reset with the given options. - * @param optionsFunc Reset options. - */ -export function createReset<T extends ResetOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc(); - const { thingsToReset, onReset, ...props } = options; - - const reset = { - type: ResetType, - ...(props as Omit<typeof props, keyof ResetOptions>), - onReset, - thingsToReset: processGetter(thingsToReset), - reset: function () { - const handleObject = (obj: unknown) => { - if ( - obj != null && - typeof obj === "object" && - !(obj instanceof Decimal) && - !(obj instanceof Formula) - ) { - if (SkipPersistence in obj && obj[SkipPersistence] === true) { - return; - } - if (DefaultValue in obj) { - const persistent = obj as NonPersistent; - persistent.value = persistent[DefaultValue]; - } else if (!(obj instanceof Decimal) && !isRef(obj)) { - Object.values(obj).forEach(obj => - handleObject(obj as Record<string, unknown>) - ); - } - } - }; - unref(reset.thingsToReset).forEach(handleObject); - globalBus.emit("reset", reset); - onReset?.(); - } - } satisfies Reset; - - return reset; - }); -} - -const listeners: Record<string, Unsubscribe | undefined> = {}; -/** - * Track the time since the specified reset last occured. - * @param layer The layer the reset is attached to - * @param reset The reset mechanic to track the time since - */ -export function trackResetTime(layer: BaseLayer, reset: Reset): Persistent<Decimal> { - const resetTime = persistent<Decimal>(new Decimal(0)); - globalBus.on("addLayer", layerBeingAdded => { - if (layer.id === layerBeingAdded.id) { - listeners[layer.id]?.(); - listeners[layer.id] = layer.on("preUpdate", diff => { - resetTime.value = Decimal.add(resetTime.value, diff); - }); - } - }); - globalBus.on("reset", currentReset => { - if (currentReset === reset) { - resetTime.value = new Decimal(0); - } - }); - return resetTime; -} -globalBus.on("removeLayer", layer => { - // unsubscribe from preUpdate - listeners[layer.id]?.(); - listeners[layer.id] = undefined; -}); - -declare module "game/events" { - interface GlobalEvents { - reset: (reset: Reset) => void; - } -} diff --git a/src/features/resources/MainDisplay.vue b/src/features/resources/MainDisplay.vue deleted file mode 100644 index 7592208..0000000 --- a/src/features/resources/MainDisplay.vue +++ /dev/null @@ -1,50 +0,0 @@ -<template> - <Sticky> - <div - class="main-display-container" - :class="classes ?? {}" - :style="[{ height: `${(displayRef?.clientHeight ?? 0) + 20}px` }, style ?? {}]"> - <div class="main-display" ref="displayRef"> - <span v-if="showPrefix">You have </span> - <ResourceVue :resource="resource" :color="color || 'white'" /> - {{ resource.displayName }}<!-- remove whitespace --> - <span v-if="effectDisplay">, <Effect /></span> - </div> - </div> - </Sticky> -</template> - -<script setup lang="ts"> -import Sticky from "components/layout/Sticky.vue"; -import type { Resource } from "features/resources/resource"; -import ResourceVue from "features/resources/Resource.vue"; -import Decimal from "util/bignum"; -import { MaybeGetter } from "util/computed"; -import { Renderable } from "util/vue"; -import { computed, CSSProperties, ref, toValue } from "vue"; - -const props = defineProps<{ - resource: Resource; - color?: string; - classes?: Record<string, boolean>; - style?: CSSProperties; - effectDisplay?: MaybeGetter<Renderable>; -}>(); - -const displayRef = ref<Element | null>(null); - -const Effect = () => toValue(props.effectDisplay); - -const showPrefix = computed(() => { - return Decimal.lt(props.resource.value, "1e1000"); -}); -</script> - -<style> -.main-display-container { - vertical-align: middle; - margin-bottom: 20px; - display: flex; - transition-duration: 0s; -} -</style> diff --git a/src/features/resources/Resource.vue b/src/features/resources/Resource.vue deleted file mode 100644 index 928f2da..0000000 --- a/src/features/resources/Resource.vue +++ /dev/null @@ -1,18 +0,0 @@ -<template> - <h2 :style="{ color, 'text-shadow': '0px 0px 10px ' + color }"> - {{ amount }} - </h2> -</template> - -<script setup lang="ts"> -import type { Resource } from "features/resources/resource"; -import { displayResource } from "features/resources/resource"; -import { computed } from "vue"; - -const props = defineProps<{ - resource: Resource; - color: string; -}>(); - -const amount = computed(() => displayResource(props.resource)); -</script> diff --git a/src/features/resources/resource.ts b/src/features/resources/resource.ts deleted file mode 100644 index feb5f11..0000000 --- a/src/features/resources/resource.ts +++ /dev/null @@ -1,166 +0,0 @@ -import { globalBus } from "game/events"; -import type { Persistent, State } from "game/persistence"; -import { NonPersistent, persistent } from "game/persistence"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { format, formatWhole } from "util/bignum"; -import { loadingSave } from "util/save"; -import type { ComputedRef, MaybeRef, Ref } from "vue"; -import { computed, isRef, ref, unref, watch } from "vue"; - -/** An object that represents a named and quantifiable resource in the game. */ -export interface Resource<T = DecimalSource> extends Ref<T> { - /** The name of this resource. */ - displayName: string; - /** When displaying the value of this resource, how many significant digits to display. */ - precision: number; - /** Whether or not to display very small values using scientific notation, or rounding to 0. */ - small?: boolean; -} - -/** - * Creates a resource. - * @param defaultValue The initial value of the resource - * @param displayName The human readable name of this resource - * @param precision The number of significant digits to display by default - * @param small Whether or not to display very small values or round to 0, by default - */ -export function createResource<T extends State>( - defaultValue: T, - displayName?: string, - precision?: number, - small?: boolean | undefined -): Resource<T> & Persistent<T> & { [NonPersistent]: Resource<T> }; -export function createResource<T extends State>( - defaultValue: Ref<T>, - displayName?: string, - precision?: number, - small?: boolean | undefined -): Resource<T>; -export function createResource<T extends State>( - defaultValue: T | Ref<T>, - displayName = "points", - precision = 0, - small: boolean | undefined = undefined -) { - const resource: Partial<Resource<T>> = isRef(defaultValue) - ? defaultValue - : persistent(defaultValue); - resource.displayName = displayName; - resource.precision = precision; - resource.small = small; - if (!isRef(defaultValue)) { - const nonPersistentResource = (resource as Persistent<T>)[ - NonPersistent - ] as unknown as Resource<T>; - nonPersistentResource.displayName = displayName; - nonPersistentResource.precision = precision; - nonPersistentResource.small = small; - } - return resource as Resource<T>; -} - -/** Returns a reference to the highest amount of the resource ever owned, which is updated automatically. */ -export function trackBest(resource: Resource): Ref<DecimalSource> { - const best = persistent(resource.value); - watch(resource, amount => { - if (loadingSave.value) { - return; - } - if (Decimal.gt(amount, best.value)) { - best.value = amount; - } - }); - return best; -} - -/** Returns a reference to the total amount of the resource gained, updated automatically. "Refunds" count as gain. */ -export function trackTotal(resource: Resource): Ref<DecimalSource> { - const total = persistent(resource.value); - watch(resource, (amount, prevAmount) => { - if (loadingSave.value) { - return; - } - if (Decimal.gt(amount, prevAmount)) { - total.value = Decimal.add(total.value, Decimal.sub(amount, prevAmount)); - } - }); - return total; -} - -const tetra8 = new Decimal("10^^8"); -const e100 = new Decimal("1e100"); -/** Returns a reference to the amount of resource being gained in terms of orders of magnitude per second, calcualted over the last tick. Useful for situations where the gain rate is increasing very rapidly. */ -export function trackOOMPS( - resource: Resource, - pointGain?: ComputedRef<DecimalSource> -): Ref<string> { - const oomps = ref<DecimalSource>(0); - const oompsMag = ref(0); - const lastPoints = ref<DecimalSource>(0); - - globalBus.on("update", diff => { - oompsMag.value = 0; - if (Decimal.lte(resource.value, e100)) { - lastPoints.value = resource.value; - return; - } - - let curr = resource.value; - let prev = lastPoints.value; - lastPoints.value = curr; - if (Decimal.gt(curr, prev)) { - if (Decimal.gte(curr, tetra8)) { - curr = Decimal.slog(curr, 1e10); - prev = Decimal.slog(prev, 1e10); - oomps.value = curr.sub(prev).div(diff); - oompsMag.value = -1; - } else { - while ( - Decimal.div(curr, prev).log(10).div(diff).gte("100") && - oompsMag.value <= 5 && - Decimal.gt(prev, 0) - ) { - curr = Decimal.log10(curr); - prev = Decimal.log10(prev); - oomps.value = curr.sub(prev).div(diff); - oompsMag.value++; - } - } - } - }); - - const oompsString = computed(() => { - if (oompsMag.value === 0) { - return pointGain - ? format(pointGain.value, resource.precision, resource.small) + - " " + - resource.displayName + - "/s" - : ""; - } - return ( - format(oomps.value) + - " OOM" + - (oompsMag.value < 0 ? "^OOM" : "^" + oompsMag.value) + - "s/sec" - ); - }); - return oompsString; -} - -/** Utility for displaying a resource with the correct precision. */ -export function displayResource(resource: Resource, overrideAmount?: DecimalSource): string { - const amount = overrideAmount ?? resource.value; - if (Decimal.eq(resource.precision, 0)) { - return formatWhole(resource.small ? amount : Decimal.floor(amount)); - } - return format(amount, resource.precision, resource.small); -} - -/** Utility for unwrapping a resource that may or may not be inside a ref. */ -export function unwrapResource(resource: MaybeRef<Resource>): Resource { - if ("displayName" in resource) { - return resource; - } - return unref(resource); -} diff --git a/src/features/tabs/TabButton.vue b/src/features/tabs/TabButton.vue deleted file mode 100644 index cc513e2..0000000 --- a/src/features/tabs/TabButton.vue +++ /dev/null @@ -1,84 +0,0 @@ -<template> - <button @click="selectTab" class="tabButton" :style="glowColorStyle" :class="{ active }"> - <Component /> - </button> -</template> - -<script setup lang="ts"> -import themes from "data/themes"; -import { getNotifyStyle } from "game/notifications"; -import settings from "game/settings"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { computed, MaybeRef, unref } from "vue"; - -const props = defineProps<{ - display: MaybeGetter<Renderable>; - glowColor?: MaybeRef<string>; - active?: boolean; -}>(); - -const emit = defineEmits<{ - selectTab: []; -}>(); - -const Component = () => render(props.display); - -const glowColorStyle = computed(() => { - const color = unref(props.glowColor); - if (color == null || color === "") { - return {}; - } - if (floating.value) { - return getNotifyStyle(color); - } - return { boxShadow: `0px 9px 5px -6px ${color}` }; -}); - -const floating = computed(() => { - return themes[settings.theme].floatingTabs; -}); - -function selectTab() { - emit("selectTab"); -} -</script> - -<style scoped> -.tabButton { - background-color: transparent; - color: var(--foreground); - font-size: 20px; - cursor: pointer; - padding: 5px 20px; - margin: 5px; - border-radius: 5px; - border: 2px solid; - flex-shrink: 0; - border-color: var(--layer-color); -} - -.tabButton:hover { - transform: scale(1.1, 1.1); - text-shadow: 0 0 7px var(--foreground); -} - -:not(.floating) > .tabButton { - height: 50px; - margin: 0; - border-left: none; - border-right: none; - border-top: none; - border-bottom-width: 4px; - border-radius: 0; - transform: unset; -} - -:not(.floating) .tabButton:not(.active) { - border-bottom-color: transparent; -} - -.tabButton > * { - pointer-events: none; -} -</style> diff --git a/src/features/tabs/TabFamily.vue b/src/features/tabs/TabFamily.vue deleted file mode 100644 index 0ab772f..0000000 --- a/src/features/tabs/TabFamily.vue +++ /dev/null @@ -1,183 +0,0 @@ -<template> - <div class="tab-family-container" :class="tabClasses" :style="tabStyle"> - <Sticky - class="tab-buttons-container" - :class="unref(buttonContainerClasses)" - :style="unref(buttonContainerStyle)" - > - <div class="tab-buttons" :class="{ floating }"> - <TabButtons /> - </div> - </Sticky> - <Component v-if="unref(activeTab) != null" /> - </div> -</template> - -<script setup lang="ts"> -import Sticky from "components/layout/Sticky.vue"; -import themes from "data/themes"; -import { isType } from "features/feature"; -import settings from "game/settings"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import type { Component, CSSProperties, MaybeRef, Ref } from "vue"; -import { computed, unref } from "vue"; -import { Tab, TabType } from "./tab"; -import { TabButton } from "./tabFamily"; - -const props = defineProps<{ - activeTab: Ref<MaybeGetter<Renderable> | Tab | null>; - tabs: Record<string, TabButton>; - buttonContainerClasses?: MaybeRef<Record<string, boolean>>; - buttonContainerStyle?: MaybeRef<CSSProperties>; -}>(); - -const Component = () => { - const activeTab = unref(props.activeTab); - if (activeTab == null) { - return; - } - return render(activeTab); -}; - -const floating = computed(() => { - return themes[settings.theme].floatingTabs; -}); - -const TabButtons = () => Object.values(props.tabs).map(tab => render(tab)); - -const tabClasses = computed(() => { - const activeTab = unref(props.activeTab); - if (isType(activeTab, TabType)) { - return unref(activeTab.classes); - } -}); - -const tabStyle = computed(() => { - const activeTab = unref(props.activeTab); - if (isType(activeTab, TabType)) { - return unref(activeTab.style); - } -}); -</script> - -<style scoped> -.tab-family-container { - margin: calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px; - position: relative; - border: solid 4px; - border-color: var(--outline); -} - -.layer-tab > .tab-family-container:first-child { - margin: -4px -11px var(--feature-margin) -11px; -} - -.layer-tab > .tab-family-container:first-child:nth-last-child(3) { - border-bottom-style: none; - border-left-style: none; - border-right-style: none; - height: calc(100% + 50px); -} - -.modal-body > .tab-family-container:first-child { - margin: calc(10px + var(--feature-margin)) 10px 0 10px; - border: none; -} - -.tab-family-container > :nth-child(2) { - margin-top: 20px; -} - -.modal-body > .tab-family-container > :nth-child(2) { - /* TODO Why does it need this instead of 20px? */ - margin-top: 50px; -} - -.tab-family-container[data-v-f18896fc] > :last-child { - margin-bottom: 20px; -} - -.tab-buttons-container { - z-index: 4; -} - -.tab-buttons-container:not(.floating) { - border-bottom: solid 4px; - border-color: inherit; -} - -:not(.layer-tab):not(.modal-body) > .tab-family-container > .tab-buttons-container:not(.floating) { - width: calc(100% + 6px); - margin-left: -3px; -} - -.tab-buttons-container:not(.floating) .tab-buttons { - text-align: left; - margin-bottom: -4px; -} - -.tab-buttons-container.floating .tab-buttons { - justify-content: center; - margin-top: -25px; -} - -.tab-buttons { - margin-bottom: 24px; - display: flex; - flex-flow: wrap; - z-index: 4; -} - -.tab-buttons > * { - margin: 0; -} - -.layer-tab - > .tab-family-container:first-child:nth-last-child(3) - > .tab-buttons-container - > .tab-buttons { - padding-right: 60px; -} - -.tab-buttons:not(.floating) { - text-align: left; - border-bottom: inherit; - border-width: 4px; - box-sizing: border-box; - height: 50px; -} - -.modal-body .tab-buttons { - width: 100%; - margin-left: 0; - margin-right: 0; - padding-left: 0; -} - -.showGoBack - > .tab-family-container:first-child - > .tab-buttons-container:not(.floating) - .tab-buttons { - padding-left: 70px; -} - -:not(.showGoBack) - > .tab-family-container - > .tab-buttons-container:not(.floating):first-child - .tab-buttons { - padding-left: 0; -} - -.minimizable > .tab-buttons-container:not(.floating):first-child { - padding-right: 50px; -} - -.tab-buttons-container:not(.floating):first-child .tab-buttons { - margin-top: -50px; -} - -.tab-buttons-container + * { - margin-top: 20px; -} -</style> diff --git a/src/features/tabs/tab.ts b/src/features/tabs/tab.ts deleted file mode 100644 index 39392f7..0000000 --- a/src/features/tabs/tab.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { MaybeGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable, VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; - -/** A symbol used to identify {@link Tab} features. */ -export const TabType = Symbol("Tab"); - -/** - * An object that configures a {@link Tab}. - */ -export interface TabOptions extends VueFeatureOptions { - /** The display to use for this tab. */ - display: MaybeGetter<Renderable>; -} - -/** - * An object representing a tab of content in a tabbed interface. - * @see {@link features/tabs/tabFamily.TabFamily} - */ -export interface Tab extends VueFeature { - /** The display to use for this tab. */ - display: MaybeGetter<Renderable>; - /** A symbol that helps identify features of the same type. */ - type: typeof TabType; -} - -/** - * Lazily creates a tab with the given options. - * @param optionsFunc Tab options. - */ -export function createTab<T extends TabOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { display, ...props } = options; - - const tab = { - type: TabType, - ...(props as Omit<typeof props, keyof VueFeature | keyof TabOptions>), - ...vueFeatureMixin("tab", options, display), - display - } satisfies Tab; - - return tab; - }); -} diff --git a/src/features/tabs/tabFamily.tsx b/src/features/tabs/tabFamily.tsx deleted file mode 100644 index 88a9f4e..0000000 --- a/src/features/tabs/tabFamily.tsx +++ /dev/null @@ -1,147 +0,0 @@ -import { isVisible } from "features/feature"; -import { Tab } from "features/tabs/tab"; -import TabButton from "features/tabs/TabButton.vue"; -import TabFamily from "features/tabs/TabFamily.vue"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable, VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import type { CSSProperties, MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { computed, unref } from "vue"; - -/** A symbol used to identify {@link TabButton} features. */ -export const TabButtonType = Symbol("TabButton"); -/** A symbol used to identify {@link TabFamily} features. */ -export const TabFamilyType = Symbol("TabFamily"); - -/** - * An object that configures a {@link TabButton}. - */ -export interface TabButtonOptions extends VueFeatureOptions { - /** The tab to display when this button is clicked. */ - tab: Tab | MaybeGetter<Renderable>; - /** The label on this button. */ - display: MaybeGetter<Renderable>; - /** The color of the glow effect to display when this button is active. */ - glowColor?: MaybeRefOrGetter<string>; -} - -/** - * An object that represents a button that can be clicked to change tabs in a tabbed interface. - * @see {@link TabFamily} - */ -export interface TabButton extends VueFeature { - /** The tab to display when this button is clicked. */ - tab: Tab | MaybeGetter<Renderable>; - /** The label on this button. */ - display: MaybeGetter<Renderable>; - /** The color of the glow effect to display when this button is active. */ - glowColor?: MaybeRef<string>; - /** A symbol that helps identify features of the same type. */ - type: typeof TabButtonType; -} - -/** - * An object that configures a {@link TabFamily}. - */ -export interface TabFamilyOptions extends VueFeatureOptions { - /** A dictionary of CSS classes to apply to the list of buttons for changing tabs. */ - buttonContainerClasses?: MaybeRefOrGetter<Record<string, boolean>>; - /** CSS to apply to the list of buttons for changing tabs. */ - buttonContainerStyle?: MaybeRefOrGetter<CSSProperties>; -} - -/** - * An object that represents a tabbed interface. - * @see {@link TabFamily} - */ -export interface TabFamily extends VueFeature { - /** A dictionary of CSS classes to apply to the list of buttons for changing tabs. */ - buttonContainerClasses?: MaybeRef<Record<string, boolean>>; - /** CSS to apply to the list of buttons for changing tabs. */ - buttonContainerStyle?: MaybeRef<CSSProperties>; - /** All the tabs within this family. */ - tabs: Record<string, TabButton>; - /** The currently active tab, if any. */ - activeTab: Ref<Tab | MaybeGetter<Renderable> | null>; - /** The name of the tab that is currently active. */ - selected: Persistent<string>; - /** A symbol that helps identify features of the same type. */ - type: typeof TabFamilyType; -} - -/** - * Lazily creates a tab family with the given options. - * @param optionsFunc Tab family options. - */ -export function createTabFamily<T extends TabFamilyOptions>( - tabs: Record<string, () => TabButtonOptions>, - optionsFunc?: () => T -) { - if (Object.keys(tabs).length === 0) { - console.error("Cannot create tab family with 0 tabs"); - } - - const selected = persistent(Object.keys(tabs)[0], false); - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { buttonContainerClasses, buttonContainerStyle, ...props } = options; - - const tabFamily = { - type: TabFamilyType, - ...(props as Omit<typeof props, keyof VueFeature | keyof TabFamilyOptions>), - ...vueFeatureMixin("tabFamily", options, () => ( - <TabFamily - activeTab={tabFamily.activeTab} - tabs={tabFamily.tabs} - buttonContainerClasses={tabFamily.buttonContainerClasses} - buttonContainerStyle={tabFamily.buttonContainerStyle} - /> - )), - tabs: Object.keys(tabs).reduce<Record<string, TabButton>>((parsedTabs, tab) => { - const options = tabs[tab](); - const { tab: buttonTab, glowColor, display, ...props } = options; - - const tabButton = { - type: TabButtonType, - ...(props as Omit<typeof props, keyof VueFeature | keyof TabButtonOptions>), - ...vueFeatureMixin("tabButton", options, () => ( - <TabButton - display={tabButton.display} - glowColor={tabButton.glowColor} - active={unref(tabButton.tab) === unref(tabFamily.activeTab)} - onSelectTab={() => (tabFamily.selected.value = tab)} - /> - )), - tab: buttonTab, - glowColor: processGetter(glowColor), - display - } satisfies TabButton; - - parsedTabs[tab] = tabButton; - return parsedTabs; - }, {}), - buttonContainerClasses: processGetter(buttonContainerClasses), - buttonContainerStyle: processGetter(buttonContainerStyle), - selected, - activeTab: computed((): Tab | MaybeGetter<Renderable> | null => { - if ( - selected.value in tabFamily.tabs && - isVisible(tabFamily.tabs[selected.value].visibility ?? true) - ) { - return unref(tabFamily.tabs[selected.value].tab); - } - const firstTab = Object.values(tabFamily.tabs).find(tab => - isVisible(tab.visibility ?? true) - ); - if (firstTab != null) { - return unref(firstTab.tab); - } - return null; - }) - } satisfies TabFamily; - - return tabFamily; - }); -} diff --git a/src/features/trees/Tree.vue b/src/features/trees/Tree.vue deleted file mode 100644 index 7e255c7..0000000 --- a/src/features/trees/Tree.vue +++ /dev/null @@ -1,64 +0,0 @@ -<template> - <Nodes /> - <LeftNodes v-if="leftSideNodes" /> - <RightNodes v-if="rightSideNodes" /> - <Links v-if="branches" :links="unref(branches)" /> -</template> - -<script setup lang="tsx"> -import "components/common/table.css"; -import Links from "features/links/Links.vue"; -import type { Tree, TreeBranch, TreeNode } from "features/trees/tree"; -import { render } from "util/vue"; -import { MaybeRef, unref } from "vue"; - -const props = defineProps<{ - nodes: MaybeRef<TreeNode[][]>; - leftSideNodes?: MaybeRef<TreeNode[]>; - rightSideNodes?: MaybeRef<TreeNode[]>; - branches?: MaybeRef<TreeBranch[]>; -}>(); - -const Nodes = () => unref(props.nodes).map(nodes => - <span class="row tree-row" style="margin: 50px auto;"> - {nodes.map(node => render(node))} - </span>); - -const LeftNodes = () => props.leftSideNodes == null ? <></> : - <span class="left-side-nodes small"> - {unref(props.leftSideNodes).map(node => render(node))} - </span>; - -const RightNodes = () => props.rightSideNodes == null ? <></> : - <span class="side-nodes small"> - {unref(props.rightSideNodes).map(node => render(node))} - </span>; -</script> - -<style scoped> -.left-side-nodes { - position: absolute; - left: 15px; - top: 65px; -} - -.side-nodes { - position: absolute; - right: 15px; - top: 65px; -} - -.left-side-nodes :deep(.treeNode), -.side-nodes :deep(.treeNode) { - margin: 20px auto; -} - -.small :deep(.treeNode) { - height: 60px; - width: 60px; -} - -.small :deep(.treeNode) > *:first-child { - font-size: 30px; -} -</style> diff --git a/src/features/trees/TreeNode.vue b/src/features/trees/TreeNode.vue deleted file mode 100644 index c13a243..0000000 --- a/src/features/trees/TreeNode.vue +++ /dev/null @@ -1,65 +0,0 @@ -<template> - <button - :style="{ - backgroundColor: unref(color), - boxShadow: `-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${unref( - glowColor - )}` - }" - :class="{ - treeNode: true, - can: unref(canClick) - }" - @click="e => emits('click', e)" - @mousedown="start" - @mouseleave="stop" - @mouseup="stop" - @touchstart.passive="start" - @touchend.passive="stop" - @touchcancel.passive="stop" - > - <Component /> - </button> -</template> - -<script setup lang="tsx"> -import { MaybeGetter } from "util/computed"; -import { render, Renderable, setupHoldToClick } from "util/vue"; -import { MaybeRef, toRef, unref } from "vue"; - -const props = defineProps<{ - canClick?: MaybeRef<boolean>; - display?: MaybeGetter<Renderable>; - color?: MaybeRef<string>; - glowColor?: MaybeRef<string>; -}>(); - -const emits = defineEmits<{ - (e: "click", event?: MouseEvent | TouchEvent): void; - (e: "hold"): void; -}>(); - -const Component = () => props.display == null ? <></> : - render(props.display, el => <div>{el}</div>); - -const { start, stop } = setupHoldToClick(() => emits("hold")); -</script> - -<style scoped> -.treeNode { - height: 100px; - width: 100px; - border: 2px solid rgba(0, 0, 0, 0.125); - border-radius: 50%; - padding: 0; - margin: 0 10px 0 10px; - font-size: 40px; - color: rgba(0, 0, 0, 0.5); - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25); - display: flex; -} - -.treeNode > * { - pointer-events: none; -} -</style> diff --git a/src/features/trees/tree.tsx b/src/features/trees/tree.tsx deleted file mode 100644 index c517c3c..0000000 --- a/src/features/trees/tree.tsx +++ /dev/null @@ -1,284 +0,0 @@ -import { Link } from "features/links/links"; -import type { Reset } from "features/reset"; -import type { Resource } from "features/resources/resource"; -import { displayResource } from "features/resources/resource"; -import Tree from "features/trees/Tree.vue"; -import TreeNode from "features/trees/TreeNode.vue"; -import { noPersist } from "game/persistence"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { format, formatWhole } from "util/bignum"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable, VueFeature, vueFeatureMixin, VueFeatureOptions } from "util/vue"; -import type { MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { ref, shallowRef, unref } from "vue"; - -/** A symbol used to identify {@link TreeNode} features. */ -export const TreeNodeType = Symbol("TreeNode"); -/** A symbol used to identify {@link Tree} features. */ -export const TreeType = Symbol("Tree"); - -/** - * An object that configures a {@link TreeNode}. - */ -export interface TreeNodeOptions extends VueFeatureOptions { - /** Whether or not this tree node can be clicked. */ - canClick?: MaybeRefOrGetter<boolean>; - /** The background color for this node. */ - color?: MaybeRefOrGetter<string>; - /** The label to display on this tree node. */ - display?: MaybeGetter<Renderable>; - /** The color of the glow effect shown to notify the user there's something to do with this node. */ - glowColor?: MaybeRefOrGetter<string>; - /** A reset object attached to this node, used for propagating resets through the tree. */ - reset?: Reset; - /** A function that is called when the tree node is clicked. */ - onClick?: (e?: MouseEvent | TouchEvent) => void; - /** A function that is called when the tree node is held down. */ - onHold?: VoidFunction; -} - -/** - * The properties that are added onto a processed {@link TreeNodeOptions} to create an {@link TreeNode}. - */ -export interface TreeNode extends VueFeature { - /** Whether or not this tree node can be clicked. */ - canClick?: MaybeRef<boolean>; - /** The background color for this node. */ - color?: MaybeRef<string>; - /** The label to display on this tree node. */ - display?: MaybeGetter<Renderable>; - /** The color of the glow effect shown to notify the user there's something to do with this node. */ - glowColor?: MaybeRef<string>; - /** A reset object attached to this node, used for propagating resets through the tree. */ - reset?: Reset; - /** A function that is called when the tree node is clicked. */ - onClick?: (e?: MouseEvent | TouchEvent) => void; - /** A function that is called when the tree node is held down. */ - onHold?: VoidFunction; - /** A symbol that helps identify features of the same type. */ - type: typeof TreeNodeType; -} - -/** - * Lazily creates a tree node with the given options. - * @param optionsFunc Tree Node options. - */ -export function createTreeNode<T extends TreeNodeOptions>(optionsFunc?: () => T) { - return createLazyProxy(() => { - const options = optionsFunc?.() ?? ({} as T); - const { canClick, color, display, glowColor, onClick, onHold, ...props } = options; - - const treeNode = { - type: TreeNodeType, - ...(props as Omit<typeof props, keyof VueFeature | keyof TreeNodeOptions>), - ...vueFeatureMixin("treeNode", options, () => ( - <TreeNode - canClick={treeNode.canClick} - display={treeNode.display} - onClick={treeNode.onClick} - onHold={treeNode.onHold} - color={treeNode.color} - glowColor={treeNode.glowColor} - /> - )), - canClick: processGetter(canClick) ?? true, - color: processGetter(color), - display, - glowColor: processGetter(glowColor), - onClick: - onClick == null - ? undefined - : function (e) { - if (unref(treeNode.canClick) !== false) { - onClick.call(treeNode, e); - } - }, - onHold: - onHold == null - ? undefined - : function () { - if (unref(treeNode.canClick) !== false) { - onHold.call(treeNode); - } - } - } satisfies TreeNode; - - return treeNode; - }); -} - -/** Represents a branch between two nodes in a tree. */ -export interface TreeBranch extends Omit<Link, "startNode" | "endNode"> { - startNode: TreeNode; - endNode: TreeNode; -} - -/** - * An object that configures a {@link Tree}. - */ -export interface TreeOptions extends VueFeatureOptions { - /** The nodes within the tree, in a 2D array. */ - nodes: MaybeRefOrGetter<TreeNode[][]>; - /** Nodes to show on the left side of the tree. */ - leftSideNodes?: MaybeRefOrGetter<TreeNode[]>; - /** Nodes to show on the right side of the tree. */ - rightSideNodes?: MaybeRefOrGetter<TreeNode[]>; - /** The branches between nodes within this tree. */ - branches?: MaybeRefOrGetter<TreeBranch[]>; - /** How to propagate resets through the tree. */ - resetPropagation?: ResetPropagation; - /** A function that is called when a node within the tree is reset. */ - onReset?: (node: TreeNode) => void; -} - -export interface Tree extends VueFeature { - /** The nodes within the tree, in a 2D array. */ - nodes: MaybeRef<TreeNode[][]>; - /** Nodes to show on the left side of the tree. */ - leftSideNodes?: MaybeRef<TreeNode[]>; - /** Nodes to show on the right side of the tree. */ - rightSideNodes?: MaybeRef<TreeNode[]>; - /** The branches between nodes within this tree. */ - branches?: MaybeRef<TreeBranch[]>; - /** How to propagate resets through the tree. */ - resetPropagation?: ResetPropagation; - /** A function that is called when a node within the tree is reset. */ - onReset?: (node: TreeNode) => void; - /** The link objects for each of the branches of the tree. */ - links: MaybeRef<Link[]>; - /** Cause a reset on this node and propagate it through the tree according to {@link TreeOptions.resetPropagation}. */ - reset: (node: TreeNode) => void; - /** A flag that is true while the reset is still propagating through the tree. */ - isResetting: Ref<boolean>; - /** A reference to the node that caused the currently propagating reset. */ - resettingNode: Ref<TreeNode | null>; - /** A symbol that helps identify features of the same type. */ - type: typeof TreeType; -} - -/** - * Lazily creates a tree with the given options. - * @param optionsFunc Tree options. - */ -export function createTree<T extends TreeOptions>(optionsFunc: () => T) { - return createLazyProxy(() => { - const options = optionsFunc(); - const { - branches: _branches, - nodes, - leftSideNodes, - rightSideNodes, - resetPropagation, - onReset, - style: _style, - ...props - } = options; - - const style = processGetter(_style); - options.style = () => ({ position: "static", ...(unref(style) ?? {}) }); - - const branches = _branches == null ? undefined : processGetter(_branches); - - const tree = { - type: TreeType, - ...(props as Omit<typeof props, keyof VueFeature | keyof TreeOptions>), - ...vueFeatureMixin("tree", options, () => ( - <Tree - nodes={tree.nodes} - leftSideNodes={tree.leftSideNodes} - rightSideNodes={tree.rightSideNodes} - branches={tree.branches} - /> - )), - branches, - isResetting: ref(false), - resettingNode: shallowRef<TreeNode | null>(null), - nodes: processGetter(nodes), - leftSideNodes: processGetter(leftSideNodes), - rightSideNodes: processGetter(rightSideNodes), - links: branches == null ? [] : noPersist(branches), - resetPropagation, - onReset, - reset: function (node: TreeNode) { - tree.isResetting.value = true; - tree.resettingNode.value = node; - tree.resetPropagation?.(tree, node); - tree.onReset?.(node); - tree.isResetting.value = false; - tree.resettingNode.value = null; - } - } satisfies Tree; - - return tree; - }); -} - -/** A function that is used to propagate resets through a tree. */ -export type ResetPropagation = { - (tree: Tree, resettingNode: TreeNode): void; -}; - -/** Propagate resets down the tree by resetting every node in a lower row. */ -export const defaultResetPropagation = function (tree: Tree, resettingNode: TreeNode): void { - const nodes = unref(tree.nodes); - const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) - 1; - for (let x = row; x >= 0; x--) { - nodes[x].forEach(node => node.reset?.reset()); - } -}; - -/** Propagate resets down the tree by resetting every node in a lower row. */ -export const invertedResetPropagation = function (tree: Tree, resettingNode: TreeNode): void { - const nodes = unref(tree.nodes); - const row = nodes.findIndex(nodes => nodes.includes(resettingNode)) + 1; - for (let x = row; x < nodes.length; x++) { - nodes[x].forEach(node => node.reset?.reset()); - } -}; - -/** Propagate resets down the branches of the tree. */ -export const branchedResetPropagation = function (tree: Tree, resettingNode: TreeNode): void { - const links = unref(tree.branches); - if (links == null) return; - const reset: TreeNode[] = []; - let current = [resettingNode]; - while (current.length !== 0) { - const next: TreeNode[] = []; - for (const node of current) { - for (const link of links.filter(link => link.startNode === node)) { - if ([...reset, ...current].includes(link.endNode)) continue; - next.push(link.endNode); - link.endNode.reset?.reset(); - } - } - reset.push(...current); - current = next; - } -}; - -/** - * Utility for creating a tooltip for a tree node that displays a resource-based unlock requirement, and after unlock shows the amount of another resource. - * It sounds oddly specific, but comes up a lot. - */ -export function createResourceTooltip( - resource: Resource, - requiredResource: Resource | null = null, - requirement: MaybeRefOrGetter<DecimalSource> = 0 -): () => string { - const req = processGetter(requirement); - return () => { - if (requiredResource == null || Decimal.gte(resource.value, unref(req))) { - return displayResource(resource) + " " + resource.displayName; - } - return `Reach ${ - Decimal.eq(requiredResource.precision, 0) - ? formatWhole(unref(req)) - : format(unref(req), requiredResource.precision) - } ${requiredResource.displayName} to unlock (You have ${ - Decimal.eq(requiredResource.precision, 0) - ? formatWhole(requiredResource.value) - : format(requiredResource.value, requiredResource.precision) - })`; - }; -} diff --git a/src/game/boards/Board.vue b/src/game/boards/Board.vue deleted file mode 100644 index c11a084..0000000 --- a/src/game/boards/Board.vue +++ /dev/null @@ -1,101 +0,0 @@ -<template> - <panZoom - selector=".stage" - :options="{ initialZoom: 1, minZoom: 0.1, maxZoom: 10, zoomDoubleClickSpeed: 1 }" - ref="stage" - @init="onInit" - @mousemove="(e: MouseEvent) => emit('drag', e)" - @touchmove="(e: TouchEvent) => emit('drag', e)" - @mouseleave="(e: MouseEvent) => emit('mouseLeave', e)" - @mouseup="(e: MouseEvent) => emit('mouseUp', e)" - @touchend.passive="(e: TouchEvent) => emit('mouseUp', e)" - > - <div - class="event-listener" - @mousedown="(e: MouseEvent) => emit('mouseDown', e)" - @touchstart="(e: TouchEvent) => emit('mouseDown', e)" - /> - <div class="stage"> - <slot /> - </div> - </panZoom> -</template> - -<script setup lang="ts"> -import type { PanZoom } from "panzoom"; -import type { ComponentPublicInstance } from "vue"; -import { computed, ref } from "vue"; -// Required to make sure panzoom component gets registered: -import "./board"; - -defineExpose({ - panZoomInstance: computed(() => stage.value?.panZoomInstance) -}); -const emit = defineEmits<{ - (event: "drag", e: MouseEvent | TouchEvent): void; - (event: "mouseDown", e: MouseEvent | TouchEvent): void; - (event: "mouseUp", e: MouseEvent | TouchEvent): void; - (event: "mouseLeave", e: MouseEvent | TouchEvent): void; -}>(); - -const stage = ref<{ panZoomInstance: PanZoom } & ComponentPublicInstance<HTMLElement>>(); - -function onInit(panzoomInstance: PanZoom) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - panzoomInstance.setTransformOrigin(null); - panzoomInstance.moveTo(0, stage.value?.$el.clientHeight / 2); -} -</script> - -<style scoped> -.event-listener { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.stage { - transition-duration: 0s; - width: 100%; - height: 100%; - pointer-events: none; -} -</style> - -<style> -.vue-pan-zoom-item { - overflow: hidden; -} - -.vue-pan-zoom-scene { - width: 100%; - height: 100%; - cursor: grab; -} - -.vue-pan-zoom-scene:active { - cursor: grabbing; -} - -.stage > * { - pointer-events: initial; -} - -/* "Only" child (excluding resize listener) */ -.layer-tab > .vue-pan-zoom-item:first-child:nth-last-child(2) { - width: calc(100% + 20px); - height: calc(100% + 100px); - margin: -50px -10px; -} - -.board-node { - position: absolute; - top: 0; - left: 50%; - transition-duration: 0s; -} -</style> -game/boards/board diff --git a/src/game/boards/CircleProgress.vue b/src/game/boards/CircleProgress.vue deleted file mode 100644 index 6886fa0..0000000 --- a/src/game/boards/CircleProgress.vue +++ /dev/null @@ -1,29 +0,0 @@ -<template> - <circle - :r="r" - fill="transparent" - :stroke-dasharray="r * 2 * Math.PI" - :stroke-width="5" - :stroke-dashoffset="r * 2 * Math.PI - progress * r * 2 * Math.PI" - :stroke="stroke" - /> -</template> - -<script setup lang="ts"> -import type { SVGAttributes } from "vue"; - -interface CircleProgressProps extends /* @vue-ignore */ SVGAttributes { - r: number; - progress: number; - stroke: string; -} - -defineProps<CircleProgressProps>(); -</script> - -<style scoped> -circle { - transition-duration: 0.05s; - transform: rotate(-90deg); -} -</style> diff --git a/src/game/boards/Draggable.vue b/src/game/boards/Draggable.vue deleted file mode 100644 index 840b81a..0000000 --- a/src/game/boards/Draggable.vue +++ /dev/null @@ -1,27 +0,0 @@ -<template> - <div - class="board-node" - :style="`transform: translate(calc(${unref(position).x}px - 50%), ${unref(position).y}px);`" - @click.capture.stop="() => {}" - @mousedown="e => emits('mouseDown', e)" - @touchstart.passive="e => emits('mouseDown', e)" - @mouseup.capture="e => emits('mouseUp', e)" - @touchend.passive="e => emits('mouseUp', e)" - > - <slot /> - </div> -</template> - -<script setup lang="tsx"> -import { Ref, unref } from "vue"; -import { NodePosition } from "./board"; - -defineProps<{ - position: Ref<NodePosition>; -}>(); - -const emits = defineEmits<{ - (e: "mouseDown", event: MouseEvent | TouchEvent): void; - (e: "mouseUp", event: MouseEvent | TouchEvent): void; -}>(); -</script> diff --git a/src/game/boards/SVGNode.vue b/src/game/boards/SVGNode.vue deleted file mode 100644 index a0d1b14..0000000 --- a/src/game/boards/SVGNode.vue +++ /dev/null @@ -1,28 +0,0 @@ -<template> - <svg - @mousedown="e => emit('mouseDown', e)" - @touchstart.passive="e => emit('mouseDown', e)" - @mouseup="e => emit('mouseUp', e)" - @touchend.passive="e => emit('mouseUp', e)" - width="1" - height="1" - > - <slot /> - </svg> -</template> - -<script setup lang="ts"> -const emit = defineEmits<{ - (e: "mouseDown", event: MouseEvent | TouchEvent): void; - (e: "mouseUp", event: MouseEvent | TouchEvent): void; -}>(); -</script> - -<style scoped> -svg { - cursor: pointer; - transition-duration: 0s; - overflow: visible; - position: absolute; -} -</style> diff --git a/src/game/boards/SquareProgress.vue b/src/game/boards/SquareProgress.vue deleted file mode 100644 index 9db9917..0000000 --- a/src/game/boards/SquareProgress.vue +++ /dev/null @@ -1,30 +0,0 @@ -<template> - <rect - :width="size" - :height="size" - :transform="`translate(${-size / 2}, ${-size / 2})`" - fill="transparent" - :stroke-dasharray="size * 4" - :stroke-width="5" - :stroke-dashoffset="size * 4 - progress * size * 4" - :stroke="stroke" - /> -</template> - -<script setup lang="ts"> -import type { SVGAttributes } from "vue"; - -interface SquareProgressProps extends /* @vue-ignore */ SVGAttributes { - size: number; - progress: number; - stroke: string; -} - -defineProps<SquareProgressProps>(); -</script> - -<style scoped> -rect { - transition-duration: 0.05s; -} -</style> diff --git a/src/game/boards/board.tsx b/src/game/boards/board.tsx deleted file mode 100644 index bcdbc7b..0000000 --- a/src/game/boards/board.tsx +++ /dev/null @@ -1,475 +0,0 @@ -import { globalBus } from "game/events"; -import { DefaultValue, Persistent, persistent } from "game/persistence"; -import type { PanZoom } from "panzoom"; -import { Direction, isFunction } from "util/common"; -import { processGetter } from "util/computed"; -import { createLazyProxy, runAfterEvaluation } from "util/proxies"; -import { Renderable, VueFeature } from "util/vue"; -import type { ComponentPublicInstance, ComputedRef, MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { computed, ref, unref, watchEffect } from "vue"; -import panZoom from "vue-panzoom"; -import Board from "./Board.vue"; -import Draggable from "./Draggable.vue"; - -// Register panzoom so it can be used in Board.vue -globalBus.on("setupVue", app => panZoom.install(app)); - -/** A type representing the position of a node. */ -export type NodePosition = { x: number; y: number }; - -/** - * A type representing a MaybeRefOrGetter value for a node on the board. Used for node types to return different values based on the given node and the state of the board. - */ -export type NodeMaybeRefOrGetter<T, R, S extends unknown[] = []> = - | MaybeRefOrGetter<R> - | ((node: T, ...args: S) => R); - -/** - * Gets the value of a property for a specified node. - * @param property The property to find the value of - * @param node The node to get the property of - */ -export function unwrapNodeRef<T, R, S extends unknown[]>( - property: NodeMaybeRefOrGetter<T, R, S>, - node: T, - ...args: S -): R { - return isFunction<R, [T, ...S], MaybeRef<R>>(property) - ? property(node, ...args) - : unref(property); -} - -/** - * Create a computed ref that can assist in assigning new nodes an ID unique from all current nodes. - * @param nodes The list of current nodes with IDs as properties - * @returns A computed ref that will give the value of the next unique ID - */ -export function setupUniqueIds(nodes: MaybeRefOrGetter<{ id: number }[]>) { - const processedNodes = processGetter(nodes); - return computed(() => Math.max(-1, ...unref(processedNodes).map(node => node.id)) + 1); -} - -/** An object that configures a {@link DraggableNode}. */ -export interface DraggableNodeOptions<T> { - /** A ref to the specific instance of the Board vue component the node will be draggable on. Obtained by passing a suitable ref as the "ref" attribute to the Board component. */ - board: Ref<ComponentPublicInstance<typeof Board> | undefined>; - /** Getter function to go from the node (typically ID) to the position of said node. */ - getPosition: (node: T) => NodePosition; - /** Setter function to update the position of a node. */ - setPosition: (node: T, position: NodePosition) => void; - /** A list of nodes that the currently dragged node can be dropped upon. */ - receivingNodes?: NodeMaybeRefOrGetter<T, T[]>; - /** The maximum distance (in pixels, before zoom) away a node can be and still drop onto a receiving node. */ - dropAreaRadius?: NodeMaybeRefOrGetter<T, number>; - /** A callback for when a node gets dropped upon a receiving node. */ - onDrop?: (acceptingNode: T, draggingNode: T) => void; -} - -/** An object that represents a system for moving nodes on a board by dragging them. */ -export interface DraggableNode<T> { - /** A ref to the node currently being moved. */ - nodeBeingDragged: Ref<T | undefined>; - /** A ref to the node the node being dragged could be dropped upon if let go, if any. The node closest to the node being dragged if there are more than one within the drop area radius. */ - receivingNode: Ref<T | undefined>; - /** A ref to whether or not the node being dragged has actually been dragged away from its starting position. */ - hasDragged: Ref<boolean>; - /** The position of the node being dragged relative to where it started at the beginning of the drag. */ - dragDelta: Ref<NodePosition>; - /** The nodes that can receive the node currently being dragged. */ - receivingNodes: Ref<T[]>; - /** A function to call whenever a drag should start, that takes the mouse event that triggered it. Typically attached to each node's onMouseDown listener. */ - startDrag: (e: MouseEvent | TouchEvent, node: T) => void; - /** A function to call whenever a drag should end, typically attached to the Board's onMouseUp and onMouseLeave listeners. */ - endDrag: VoidFunction; - /** A function to call when the mouse moves during a drag, typically attached to the Board's onDrag listener. */ - drag: (e: MouseEvent | TouchEvent) => void; -} - -/** - * Sets up a system to allow nodes to be moved within a board by dragging and dropping. - * Also allows for dropping nodes on other nodes to trigger code. - * @param options Draggable node options. - * @returns A DraggableNode object. - */ -export function setupDraggableNode<T>(options: DraggableNodeOptions<T>): DraggableNode<T> { - const nodeBeingDragged = ref<T>(); - const receivingNode = ref<T>(); - const hasDragged = ref(false); - const dragDelta = ref({ x: 0, y: 0 }); - const receivingNodes = computed(() => - nodeBeingDragged.value == null - ? [] - : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - unwrapNodeRef(options.receivingNodes ?? [], nodeBeingDragged.value!) - ); - const dropAreaRadius = options.dropAreaRadius ?? 50; - - const mousePosition = ref<NodePosition>(); - const lastMousePosition = ref({ x: 0, y: 0 }); - - watchEffect(() => { - const node = nodeBeingDragged.value; - if (node == null) { - return null; - } - - const originalPosition = options.getPosition(node); - const position = { - x: originalPosition.x + dragDelta.value.x, - y: originalPosition.y + dragDelta.value.y - }; - let smallestDistance = Number.MAX_VALUE; - - receivingNode.value = unref(receivingNodes).reduce((smallest: T | undefined, curr: T) => { - if ((curr as T) === node) { - return smallest; - } - - const { x, y } = options.getPosition(curr); - const distanceSquared = Math.pow(position.x - x, 2) + Math.pow(position.y - y, 2); - const size = unwrapNodeRef(dropAreaRadius, curr); - if (distanceSquared > smallestDistance || distanceSquared > size * size) { - return smallest; - } - - smallestDistance = distanceSquared; - return curr; - }, undefined); - }); - - const result = { - nodeBeingDragged, - receivingNode, - hasDragged, - dragDelta, - receivingNodes, - startDrag: function (e: MouseEvent | TouchEvent, node: T) { - e.preventDefault(); - e.stopPropagation(); - - let clientX, clientY; - if ("touches" in e) { - if (e.touches.length === 1) { - clientX = e.touches[0].clientX; - clientY = e.touches[0].clientY; - } else { - return; - } - } else { - clientX = e.clientX; - clientY = e.clientY; - } - lastMousePosition.value = { - x: clientX, - y: clientY - }; - dragDelta.value = { x: 0, y: 0 }; - hasDragged.value = false; - - nodeBeingDragged.value = node; - }, - endDrag: function () { - if (nodeBeingDragged.value == null) { - return; - } - if (receivingNode.value == null) { - const { x, y } = options.getPosition(nodeBeingDragged.value); - const newX = x + Math.round(dragDelta.value.x / 25) * 25; - const newY = y + Math.round(dragDelta.value.y / 25) * 25; - options.setPosition(nodeBeingDragged.value, { x: newX, y: newY }); - } - - if (receivingNode.value != null) { - options.onDrop?.(receivingNode.value, nodeBeingDragged.value); - } - - nodeBeingDragged.value = undefined; - }, - drag: function (e: MouseEvent | TouchEvent) { - const panZoomInstance = options.board.value?.panZoomInstance as PanZoom | undefined; - if (panZoomInstance == null || nodeBeingDragged.value == null) { - return; - } - - const { x, y, scale } = panZoomInstance.getTransform(); - - let clientX, clientY; - if ("touches" in e) { - if (e.touches.length === 1) { - clientX = e.touches[0].clientX; - clientY = e.touches[0].clientY; - } else { - result.endDrag(); - mousePosition.value = undefined; - return; - } - } else { - clientX = e.clientX; - clientY = e.clientY; - } - - mousePosition.value = { - x: (clientX - x) / scale, - y: (clientY - y) / scale - }; - - dragDelta.value = { - x: dragDelta.value.x + (clientX - lastMousePosition.value.x) / scale, - y: dragDelta.value.y + (clientY - lastMousePosition.value.y) / scale - }; - lastMousePosition.value = { - x: clientX, - y: clientY - }; - - if (Math.abs(dragDelta.value.x) > 10 || Math.abs(dragDelta.value.y) > 10) { - hasDragged.value = true; - } - - e.preventDefault(); - e.stopPropagation(); - } - }; - return result; -} - -/** An object that configures how to make a vue feature draggable using {@link makeDraggable}. */ -export interface MakeDraggableOptions<T> { - /** The node ID to use for the vue feature. */ - id: T; - /** A reference to the current node being dragged, typically from {@link setupDraggableNode}. */ - nodeBeingDragged: Ref<T | undefined>; - /** A reference to whether or not the node being dragged has been moved away from its initial position. Typically from {@link setupDraggableNode}. */ - hasDragged: Ref<boolean>; - /** A reference to how far the node being dragged is from its initial position. Typically from {@link setupDraggableNode}. */ - dragDelta: Ref<NodePosition>; - /** A function to call when a drag is supposed to start. Typically from {@link setupDraggableNode}. */ - startDrag: (e: MouseEvent | TouchEvent, id: T) => void; - /** A function to call when a drag is supposed to end. Typically from {@link setupDraggableNode}. */ - endDrag: VoidFunction; - /** A callback that's called when the element is pressed down. Fires before drag starts, and returning `false` will prevent the drag from happening. */ - onMouseDown?: (e: MouseEvent | TouchEvent) => boolean | void; - /** A callback that's called when the mouse is lifted off the element. */ - onMouseUp?: (e: MouseEvent | TouchEvent) => boolean | void; - /** The initial position of the node on the board. Defaults to (0, 0). */ - initialPosition?: NodePosition; -} - -/** Contains all the data tied to making a vue feature draggable */ -export interface Draggable<T> extends MakeDraggableOptions<T> { - /** The current position of the node on the board. */ - position: Persistent<NodePosition>; - /** The current position, plus the current offset from being dragged. */ - computedPosition: ComputedRef<NodePosition>; -} - -/** - * Makes a vue feature draggable on a Board. - * @param element The vue feature to make draggable. - * @param optionsFunc The options to configure the dragging behavior. - */ -export function makeDraggable<T, S extends MakeDraggableOptions<T>>( - element: VueFeature, - optionsFunc: () => S -): asserts element is VueFeature & { draggable: Draggable<T> } { - const position = persistent<NodePosition>({ x: 0, y: 0 }); - const draggable = createLazyProxy(() => { - const options = optionsFunc(); - const { - id, - nodeBeingDragged, - hasDragged, - dragDelta, - startDrag, - endDrag, - onMouseDown, - onMouseUp, - initialPosition, - ...props - } = options; - - position[DefaultValue] = initialPosition ?? position[DefaultValue]; - - const draggable = { - ...(props as Omit<typeof props, keyof VueFeature | keyof MakeDraggableOptions<S>>), - id, - nodeBeingDragged, - hasDragged, - dragDelta, - startDrag, - endDrag, - onMouseDown(e: MouseEvent | TouchEvent) { - if (onMouseDown?.(e) === false) { - return; - } - - if (nodeBeingDragged.value == null) { - startDrag(e, id); - } - }, - onMouseUp(e: MouseEvent | TouchEvent) { - // The element we're mapping may have their own click listeners, so we need to stop - // the propagation regardless, and can't rely on them passing through to the board. - endDrag(); - if (!hasDragged.value) { - onMouseUp?.(e); - } - e.stopPropagation(); - }, - initialPosition, - position, - computedPosition: computed(() => { - if (nodeBeingDragged.value === id) { - return { - x: position.value.x + dragDelta.value.x, - y: position.value.y + dragDelta.value.y - }; - } - return position.value; - }) - } satisfies Draggable<T>; - - return draggable; - }); - - runAfterEvaluation(element, el => { - draggable.id; // Ensure draggable gets evaluated - (el as VueFeature & { draggable: Draggable<T> }).draggable = draggable; - element.wrappers.push(el => ( - <Draggable - onMouseDown={draggable.onMouseDown} - onMouseUp={draggable.onMouseUp} - position={draggable.computedPosition} - > - {el} - </Draggable> - )); - }); -} - -/** An object that configures how to setup a list of actions using {@link setupActions}. */ -export interface SetupActionsOptions<T extends NodePosition> { - /** The node to display actions upon, or undefined when the actions should be hidden. */ - node: MaybeRefOrGetter<T | undefined>; - /** Whether or not to currently display the actions. */ - shouldShowActions?: NodeMaybeRefOrGetter<T, boolean>; - /** The list of actions to display. Actions are arbitrary JSX elements. */ - actions: NodeMaybeRefOrGetter<T, ((position: NodePosition) => Renderable)[]>; - /** The distance from the node to place the actions. */ - distance: NodeMaybeRefOrGetter<T, number>; - /** The arc length to place between actions, in radians. */ - arcLength?: NodeMaybeRefOrGetter<T, number>; -} - -/** - * Sets up a system where a list of actions, which are arbitrary JSX elements, will get displayed around a node radially, under given conditions. The actions are radially centered around 3/2 PI (Down). - * @param options Setup actions options. - * @returns A JSX function to render the actions. - */ -export function setupActions<T extends NodePosition>(options: SetupActionsOptions<T>) { - const node = processGetter(options.node) as MaybeRef<T | undefined>; - return computed(() => { - const currNode = unref(node); - if (currNode == null) { - return ""; - } - - const actions = unwrapNodeRef(options.actions, currNode); - const shouldShow = unwrapNodeRef(options.shouldShowActions, currNode) ?? true; - if (!shouldShow) { - return <>{actions.map(f => f(currNode))}</>; - } - - const distance = unwrapNodeRef(options.distance, currNode); - const arcLength = unwrapNodeRef(options.arcLength, currNode) ?? Math.PI / 6; - const firstAngle = Math.PI / 2 - ((actions.length - 1) / 2) * arcLength; - return ( - <> - {actions.map((f, index) => - f({ - x: currNode.x + Math.cos(firstAngle + index * arcLength) * distance, - y: currNode.y + Math.sin(firstAngle + index * arcLength) * distance - }) - )} - </> - ); - }); -} - -/** - * Moves a node so that it is sufficiently far away from any other nodes, to prevent overlapping. - * @param nodeToPlace The node to find a spot for, with it's current/preffered position. - * @param nodes The list of nodes to make sure nodeToPlace is far enough away from. - * @param radius How far away nodeToPlace must be from any other nodes. - * @param direction The direction to push the nodeToPlace until it finds an available spot. - */ -export function placeInAvailableSpace<T extends NodePosition>( - nodeToPlace: T, - nodes: T[], - radius = 100, - direction = Direction.Right -) { - nodes = nodes - .filter(n => { - // Exclude self - if (n === nodeToPlace) { - return false; - } - - // Exclude nodes that aren't within the corridor we'll be moving within - if ( - (direction === Direction.Down || direction === Direction.Up) && - Math.abs(n.x - nodeToPlace.x) > radius - ) { - return false; - } - if ( - (direction === Direction.Left || direction === Direction.Right) && - Math.abs(n.y - nodeToPlace.y) > radius - ) { - return false; - } - - // Exclude nodes in the wrong direction - return !( - (direction === Direction.Right && n.x < nodeToPlace.x - radius) || - (direction === Direction.Left && n.x > nodeToPlace.x + radius) || - (direction === Direction.Up && n.y > nodeToPlace.y + radius) || - (direction === Direction.Down && n.y < nodeToPlace.y - radius) - ); - }) - .sort( - direction === Direction.Right - ? (a, b) => a.x - b.x - : direction === Direction.Left - ? (a, b) => b.x - a.x - : direction === Direction.Up - ? (a, b) => b.y - a.y - : (a, b) => a.y - b.y - ); - - for (let i = 0; i < nodes.length; i++) { - const nodeToCheck = nodes[i]; - const distance = - direction === Direction.Right || direction === Direction.Left - ? Math.abs(nodeToPlace.x - nodeToCheck.x) - : Math.abs(nodeToPlace.y - nodeToCheck.y); - - // If we're too close to this node, move further - // Keep in mind positions start at top right, so "down" means increasing Y - if (distance < radius) { - if (direction === Direction.Right) { - nodeToPlace.x = nodeToCheck.x + radius; - } else if (direction === Direction.Left) { - nodeToPlace.x = nodeToCheck.x - radius; - } else if (direction === Direction.Up) { - nodeToPlace.y = nodeToCheck.y - radius; - } else if (direction === Direction.Down) { - nodeToPlace.y = nodeToCheck.y + radius; - } - } else if (i > 0 && distance > radius) { - // If we're further from this node than the radius, then the nodes are past us and we can early exit - break; - } - } -} diff --git a/src/game/events.ts b/src/game/events.ts deleted file mode 100644 index f270ee1..0000000 --- a/src/game/events.ts +++ /dev/null @@ -1,65 +0,0 @@ -import type { Settings } from "game/settings"; -import { createNanoEvents } from "nanoevents"; -import type { App } from "vue"; -import type { Layer } from "./layers"; -import state from "./state"; - -/** All types of events able to be sent or emitted from the global event bus. */ -export interface GlobalEvents { - /** - * Sent whenever a layer is added. - * @param layer The layer being added. - * @param saveData The layer's save data object within player. - */ - addLayer: (layer: Layer, saveData: Record<string, unknown>) => void; - /** - * Sent whenever a layer is removed. - * @param layer The layer being removed. - */ - removeLayer: (layer: Layer) => void; - /** - * Sent every game tick. Runs the life cycle of the project. - * @param diff The delta time since last tick, in ms. - * @param trueDiff The delta time since last tick, in ms. Unaffected by time modifiers like {@link game/player.Player.devSpeed} or {@link game/player.Player.offlineTime}. Intended for things like updating animations. - */ - update: (diff: number, trueDiff: number) => void; - /** - * Sent when constructing the {@link Settings} object. - * Use it to add default values for custom properties to the object. - * @param settings The settings object being constructed. - */ - loadSettings: (settings: Partial<Settings>) => void; - /** - * Sent when the game has ended. - */ - gameWon: VoidFunction; - /** - * Sent when setting up the Vue Application instance. - * Use it to register global components or otherwise set up things that should affect Vue globally. - * @param vue The Vue App being constructed. - */ - setupVue: (vue: App) => void; - /** - * Sent whenever a save has finished loading. - * Happens when the page is opened and upon switching saves in the saves manager. - */ - onLoad: VoidFunction; - /** - * Using document.fonts.ready returns too early on firefox, so we use document.fonts.onloadingdone instead, which doesn't accept multiple listeners. - * This event fires when that callback is called. - */ - fontsLoaded: VoidFunction; -} - -/** A global event bus for hooking into {@link GlobalEvents}. */ -export const globalBus = createNanoEvents<GlobalEvents>(); - -if ("fonts" in document) { - // This line breaks tests - // JSDom doesn't add document.fonts, and Object.defineProperty doesn't seem to work on document - document.fonts.onloadingdone = () => globalBus.emit("fontsLoaded"); -} - -document.onmousemove = function () { - state.mouseActivity[state.mouseActivity.length - 1] = true; -}; diff --git a/src/game/formulas/formulas.ts b/src/game/formulas/formulas.ts deleted file mode 100644 index a857436..0000000 --- a/src/game/formulas/formulas.ts +++ /dev/null @@ -1,1590 +0,0 @@ -import { Resource } from "features/resources/resource"; -import { NonPersistent } from "game/persistence"; -import Decimal, { DecimalSource, format } from "util/bignum"; -import { processGetter } from "util/computed"; -import { MaybeRef, MaybeRefOrGetter, Ref, computed, ref, unref } from "vue"; -import * as ops from "./operations"; -import type { - EvaluateFunction, - FormulaOptions, - FormulaSource, - GeneralFormulaOptions, - GenericFormula, - GuardedFormulasToDecimals, - IntegrableFormula, - IntegrateFunction, - InternalFormulaProperties, - InvertFunction, - InvertibleFormula, - InvertibleIntegralFormula, - SubstitutionFunction, - SubstitutionStack -} from "./types"; - -export function hasVariable(value: FormulaSource): value is InvertibleFormula { - return value instanceof InternalFormula && value.hasVariable(); -} - -export function unrefFormulaSource(value: FormulaSource, variable?: DecimalSource) { - return value instanceof InternalFormula - ? value.evaluate(variable) - : (unref(value) as DecimalSource); -} - -function integrateVariable(this: GenericFormula) { - return Formula.pow(this, 2).div(2); -} - -function integrateVariableInner(this: GenericFormula) { - return this; -} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export interface InternalFormula<T extends [FormulaSource] | FormulaSource[]> { - invert?(value: DecimalSource): DecimalSource; - evaluateIntegral?(variable?: DecimalSource): DecimalSource; - getIntegralFormula?(stack?: SubstitutionStack): GenericFormula; - calculateConstantOfIntegration?(): Decimal; - invertIntegral?(value: DecimalSource): DecimalSource; -} - -// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging -export abstract class InternalFormula<T extends [FormulaSource] | FormulaSource[]> { - readonly inputs: T; - - protected readonly internalEvaluate: EvaluateFunction<T> | undefined; - protected readonly internalInvert: InvertFunction<T> | undefined; - protected readonly internalIntegrate: IntegrateFunction<T> | undefined; - protected readonly internalIntegrateInner: IntegrateFunction<T> | undefined; - protected readonly applySubstitution: SubstitutionFunction<T> | undefined; - protected readonly description: string | undefined; - protected readonly internalVariables: number; - - public readonly innermostVariable: MaybeRef<DecimalSource> | undefined; - - constructor(options: FormulaOptions<T>) { - let readonlyProperties; - if ("inputs" in options) { - options.inputs = options.inputs.map(input => - typeof input === "object" && NonPersistent in input ? input[NonPersistent] : input - ) as T | [FormulaSource]; - } - if ("variable" in options) { - if (typeof options.variable === "object" && NonPersistent in options.variable) { - options.variable = options.variable[NonPersistent] as Ref<DecimalSource>; - } - readonlyProperties = this.setupVariable(options); - } else if (!("evaluate" in options)) { - readonlyProperties = this.setupConstant(options); - } else { - readonlyProperties = this.setupFormula(options); - } - this.inputs = readonlyProperties.inputs; - this.internalVariables = readonlyProperties.internalVariables; - this.innermostVariable = readonlyProperties.innermostVariable; - this.internalEvaluate = readonlyProperties.internalEvaluate; - this.internalInvert = readonlyProperties.internalInvert; - this.internalIntegrate = readonlyProperties.internalIntegrate; - this.internalIntegrateInner = readonlyProperties.internalIntegrateInner; - this.applySubstitution = readonlyProperties.applySubstitution; - this.description = options.description; - } - - private setupVariable({ - variable - }: { - variable: MaybeRef<DecimalSource>; - }): InternalFormulaProperties<T> { - return { - inputs: [variable] as T, - internalVariables: 1, - innermostVariable: variable, - internalIntegrate: integrateVariable, - internalIntegrateInner: integrateVariableInner, - applySubstitution: ops.passthrough as unknown as SubstitutionFunction<T> - }; - } - - private setupConstant({ inputs }: { inputs: [FormulaSource] }): InternalFormulaProperties<T> { - if (inputs.length !== 1) { - console.error("Evaluate function is required if inputs is not length 1"); - } - return { - inputs: inputs as T, - internalVariables: 0 - }; - } - - private setupFormula(options: GeneralFormulaOptions<T>): InternalFormulaProperties<T> { - const { inputs, evaluate, invert, integrate, integrateInner, applySubstitution } = options; - const numVariables = inputs.reduce<number>( - (acc, input) => acc + (input instanceof InternalFormula ? input.internalVariables : 0), - 0 - ); - const variable = inputs.find( - input => input instanceof InternalFormula && input.hasVariable() - ) as GenericFormula | undefined; - - const innermostVariable = numVariables === 1 ? variable?.innermostVariable : undefined; - - const invertible = variable?.isInvertible() ?? false; - const integrable = variable?.isIntegrable() ?? false; - - return { - inputs, - internalEvaluate: evaluate, - internalInvert: invertible ? invert : undefined, - internalIntegrate: integrable ? integrate : undefined, - internalIntegrateInner: integrateInner, - applySubstitution, - innermostVariable, - internalVariables: numVariables - }; - } - - /** Type predicate that this formula can be inverted. */ - isInvertible(): this is InvertibleFormula { - return this.hasVariable() && (this.internalInvert != null || this.internalEvaluate == null); - } - - /** Type predicate that this formula can be integrated. */ - isIntegrable(): this is IntegrableFormula { - return this.hasVariable() && this.internalIntegrate != null; - } - - /** Type predicate that this formula has an integral function that can be inverted. */ - isIntegralInvertible(): this is InvertibleIntegralFormula { - if (!this.isIntegrable()) { - return false; - } - return this.getIntegralFormula().isInvertible(); - } - - /** Whether or not this formula has a singular variable inside it, which can be accessed via {@link innermostVariable}. */ - hasVariable(): boolean { - return this.internalVariables === 1; - } - - /** - * Evaluate the current result of the formula - * @param variable Optionally override the value of the variable while evaluating. Ignored if there is not variable - */ - evaluate(variable?: DecimalSource): DecimalSource { - return ( - this.internalEvaluate?.call( - this, - ...(this.inputs.map(input => - unrefFormulaSource(input, variable) - ) as GuardedFormulasToDecimals<T>) - ) ?? - (this.hasVariable() ? variable : null) ?? - unrefFormulaSource(this.inputs[0]) - ); - } - - /** - * Compares if two formulas are equivalent to each other. Note that function contexts can lead to false negatives. - * @param other The formula to compare to this one. - */ - equals(other: GenericFormula): boolean { - return ( - this.inputs.length === other.inputs.length && - this.inputs.every((input, i) => - input instanceof InternalFormula && other.inputs[i] instanceof InternalFormula - ? input.equals(other.inputs[i] as GenericFormula) - : !(input instanceof InternalFormula) && - !(other.inputs[i] instanceof InternalFormula) && - Decimal.eq(unref(input), unref(other.inputs[i] as DecimalSource)) - ) && - this.internalEvaluate === other.internalEvaluate && - this.internalInvert === other.internalInvert && - this.internalIntegrate === other.internalIntegrate && - this.internalVariables === other.internalVariables - ); - } - - /** - * Creates a formula that evaluates to a constant value. - * @param value The constant value for this formula. - */ - public static constant(value: MaybeRef<DecimalSource>): InvertibleIntegralFormula { - return new Formula({ inputs: [value] }); - } - - /** - * Creates a formula that is marked as the variable for an outer formula. Typically used for inverting and integrating. - * @param value The variable for this formula. - */ - public static variable(value: MaybeRef<DecimalSource>): InvertibleIntegralFormula { - return new Formula({ variable: value }); - } - - /** - * Stringifies the formula so it's more easy to read in the console - * @param formula The formula source to print, used for mapping inputs - */ - public static stringify(formula: FormulaSource): string { - if (formula instanceof InternalFormula) { - if (formula.description != null) { - return formula.description; - } - if (formula.internalEvaluate == null) { - return formula.hasVariable() ? "x" : format(formula.inputs[0] ?? 0); - } - return `${formula.internalEvaluate.name}(${formula.inputs - .map(Formula.stringify) - .join(", ")})`; - } - return format(unref(formula)); - } - - // TODO add integration support to step-wise functions - /** - * Creates a step-wise formula. After {@link start} the formula will have an additional modifier. - * This function assumes the incoming {@link value} will be continuous and monotonically increasing. - * @param value The value before applying the step - * @param start The value at which to start applying the step - * @param formulaModifier How this step should modify the formula. The incoming value will be the unmodified formula value _minus the start value_. So for example if an incoming formula evaluates to 200 and has a step that starts at 150, the formulaModifier would be given 50 as the parameter - */ - public static step( - value: FormulaSource, - start: MaybeRefOrGetter<DecimalSource>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula - ) { - const formula = formulaModifier(Formula.variable(0)); - const processedStart = processGetter(start); - function evalStep(lhs: DecimalSource) { - if (Decimal.lt(lhs, unref(processedStart))) { - return lhs; - } - return Decimal.add( - formula.evaluate(Decimal.sub(lhs, unref(processedStart))), - unref(processedStart) - ); - } - function invertStep(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs) && formula.isInvertible()) { - if (Decimal.gt(value, unref(processedStart))) { - value = Decimal.add( - formula.invert(Decimal.sub(value, unref(processedStart))), - unref(processedStart) - ); - } - return lhs.invert(value); - } - console.error("Could not invert due to no input being a variable"); - return 0; - } - return new Formula({ - inputs: [value], - evaluate: evalStep, - invert: formula.isInvertible() && formula.hasVariable() ? invertStep : undefined, - // Can't do anything more descriptive, due to formula's input always being a variable - description: "indeterminate" - }); - } - - /** - * Applies a modifier to a formula under a given condition. - * @param value The incoming formula value - * @param condition Whether or not to apply the modifier - * @param formulaModifier The modifier to apply to the incoming formula if the condition is true - * @param elseFormulaModifier An optional modifier to apply to the incoming formula if the condition is false - */ - public static if( - value: FormulaSource, - condition: MaybeRefOrGetter<boolean>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula, - elseFormulaModifier?: (value: InvertibleIntegralFormula) => GenericFormula - ) { - const lhsRef = ref<DecimalSource>(0); - const variable = Formula.variable(lhsRef); - const formula = formulaModifier(variable); - const elseFormula = elseFormulaModifier?.(variable); - const processedCondition = processGetter(condition); - function evalStep(lhs: DecimalSource) { - if (unref(processedCondition)) { - lhsRef.value = lhs; - return formula.evaluate(); - } else if (elseFormula) { - lhsRef.value = lhs; - return elseFormula.evaluate(); - } else { - return lhs; - } - } - function invertStep(value: DecimalSource, lhs: FormulaSource) { - if ( - !hasVariable(lhs) || - !formula.isInvertible() || - (elseFormula != null && !elseFormula.isInvertible()) - ) { - console.error("Could not invert due to no input being a variable"); - return 0; - } - if (unref(processedCondition)) { - return lhs.invert(formula.invert(value)); - } else if (elseFormula) { - return lhs.invert(elseFormula.invert(value)); - } else { - return lhs.invert(value); - } - } - return new Formula({ - inputs: [value], - evaluate: evalStep, - invert: formula.isInvertible() && formula.hasVariable() ? invertStep : undefined, - // Can't do anything more descriptive, due to formula's input always being a variable - description: "indeterminate" - }); - } - public static conditional( - value: FormulaSource, - condition: MaybeRefOrGetter<boolean>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula, - elseFormulaModifier?: (value: InvertibleIntegralFormula) => GenericFormula - ) { - return Formula.if(value, condition, formulaModifier, elseFormulaModifier); - } - - public static abs(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.abs }); - } - - public static neg<T extends GenericFormula>(value: T): T; - public static neg(value: FormulaSource): GenericFormula; - public static neg(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.neg, - invert: ops.invertNeg, - applySubstitution: ops.applySubstitutionNeg, - integrate: ops.integrateNeg - }); - } - public static negate = InternalFormula.neg; - public static negated = InternalFormula.neg; - - public static sign(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.sign }); - } - public static sgn = InternalFormula.sign; - - public static round(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.round, - invert: ops.invertPassthrough - }); - } - - public static floor(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.floor, - invert: ops.invertPassthrough - }); - } - - public static ceil(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.ceil, - invert: ops.invertPassthrough - }); - } - - public static trunc(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.trunc, - invert: ops.invertPassthrough - }); - } - - public static add<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static add<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static add( - value: FormulaSource, - other: FormulaSource - ): InternalFormula<[FormulaSource, FormulaSource]>; - public static add(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.add, - invert: ops.invertAdd, - integrate: ops.integrateAdd, - integrateInner: ops.integrateInnerAdd, - applySubstitution: ops.passthrough - }); - } - public static plus = InternalFormula.add; - - public static sub<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static sub<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static sub( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static sub(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.sub, - invert: ops.invertSub, - integrate: ops.integrateSub, - integrateInner: ops.integrateInnerSub, - applySubstitution: ops.passthrough - }); - } - public static subtract = InternalFormula.sub; - public static minus = InternalFormula.sub; - - public static mul<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static mul<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static mul( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static mul(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.mul, - invert: ops.invertMul, - integrate: ops.integrateMul, - applySubstitution: ops.applySubstitutionMul - }); - } - public static multiply = InternalFormula.mul; - public static times = InternalFormula.mul; - - public static div<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static div<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static div( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static div(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.div, - invert: ops.invertDiv, - integrate: ops.integrateDiv, - applySubstitution: ops.applySubstitutionDiv - }); - } - public static divide = InternalFormula.div; - public static divideBy = InternalFormula.div; - public static dividedBy = InternalFormula.div; - - public static recip<T extends GenericFormula>(value: T): T; - public static recip(value: FormulaSource): Formula<[FormulaSource]>; - public static recip(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.recip, - invert: ops.invertRecip, - integrate: ops.integrateRecip - }); - } - public static reciprocal = InternalFormula.recip; - public static reciprocate = InternalFormula.recip; - - // TODO these functions should ostensibly be integrable, and the integrals should be invertible - public static max = ops.createPassthroughBinaryFormula(Decimal.max); - public static min = ops.createPassthroughBinaryFormula(Decimal.min); - public static minabs = ops.createPassthroughBinaryFormula(Decimal.minabs); - public static maxabs = ops.createPassthroughBinaryFormula(Decimal.maxabs); - public static clampMin = ops.createPassthroughBinaryFormula(Decimal.clampMin); - public static clampMax = ops.createPassthroughBinaryFormula(Decimal.clampMax); - - public static clamp(value: FormulaSource, min: FormulaSource, max: FormulaSource) { - return new Formula({ - inputs: [value, min, max], - evaluate: Decimal.clamp, - invert: ops.invertPassthrough - }); - } - - public static pLog10(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.pLog10 }); - } - - public static absLog10(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.absLog10 }); - } - - public static log10<T extends GenericFormula>(value: T): T; - public static log10(value: FormulaSource): Formula<[FormulaSource]>; - public static log10(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.log10, - invert: ops.invertLog10, - integrate: ops.integrateLog10 - }); - } - - public static log<T extends GenericFormula>(value: T, base: FormulaSource): T; - public static log<T extends GenericFormula>(value: FormulaSource, base: T): T; - public static log( - value: FormulaSource, - base: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static log(value: FormulaSource, base: FormulaSource) { - return new Formula({ - inputs: [value, base], - evaluate: Decimal.log, - invert: ops.invertLog, - integrate: ops.integrateLog - }); - } - public static logarithm = InternalFormula.log; - - public static log2<T extends GenericFormula>(value: T): T; - public static log2(value: FormulaSource): Formula<[FormulaSource]>; - public static log2(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.log2, - invert: ops.invertLog2, - integrate: ops.integrateLog2 - }); - } - - public static ln<T extends GenericFormula>(value: T): T; - public static ln(value: FormulaSource): Formula<[FormulaSource]>; - public static ln(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.ln, - invert: ops.invertLn, - integrate: ops.integrateLn - }); - } - - public static pow<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static pow<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static pow( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static pow(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.pow, - invert: ops.invertPow, - integrate: ops.integratePow - }); - } - - public static pow10<T extends GenericFormula>(value: T): T; - public static pow10(value: FormulaSource): GenericFormula; - public static pow10(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.pow10, - invert: ops.invertPow10, - integrate: ops.integratePow10 - }); - } - - public static pow_base<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static pow_base<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static pow_base( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static pow_base(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.pow_base, - invert: ops.invertPowBase, - integrate: ops.integratePowBase - }); - } - - public static root<T extends GenericFormula>(value: T, other: FormulaSource): T; - public static root<T extends GenericFormula>(value: FormulaSource, other: T): T; - public static root( - value: FormulaSource, - other: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static root(value: FormulaSource, other: FormulaSource) { - return new Formula({ - inputs: [value, other], - evaluate: Decimal.root, - invert: ops.invertRoot, - integrate: ops.integrateRoot - }); - } - - public static factorial(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.factorial }); - } - - public static gamma(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.gamma }); - } - - public static lngamma(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.lngamma }); - } - - public static exp<T extends GenericFormula>(value: T): T; - public static exp(value: FormulaSource): Formula<[FormulaSource]>; - public static exp(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.exp, - invert: ops.invertExp, - integrate: ops.integrateExp - }); - } - - public static sqr<T extends GenericFormula>(value: T): T; - public static sqr(value: FormulaSource): Formula<[FormulaSource, FormulaSource]>; - public static sqr(value: FormulaSource) { - return Formula.pow(value, 2); - } - - public static sqrt<T extends GenericFormula>(value: T): T; - public static sqrt(value: FormulaSource): Formula<[FormulaSource, FormulaSource]>; - public static sqrt(value: FormulaSource) { - return Formula.root(value, 2); - } - - public static cube<T extends GenericFormula>(value: T): T; - public static cube(value: FormulaSource): Formula<[FormulaSource, FormulaSource]>; - public static cube(value: FormulaSource) { - return Formula.pow(value, 3); - } - - public static cbrt<T extends GenericFormula>(value: T): T; - public static cbrt(value: FormulaSource): Formula<[FormulaSource, FormulaSource]>; - public static cbrt(value: FormulaSource) { - return Formula.root(value, 3); - } - - public static tetrate<T extends GenericFormula>( - value: T, - height?: FormulaSource, - payload?: FormulaSource - ): InvertibleFormula; - public static tetrate( - value: FormulaSource, - height?: FormulaSource, - payload?: FormulaSource - ): Formula<[FormulaSource, FormulaSource, FormulaSource]>; - public static tetrate( - value: FormulaSource, - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return new Formula({ - inputs: [value, height, payload], - evaluate: ops.tetrate, - invert: ops.invertTetrate - }); - } - - public static iteratedexp<T extends GenericFormula>( - value: T, - height?: FormulaSource, - payload?: FormulaSource - ): InvertibleFormula; - public static iteratedexp( - value: FormulaSource, - height?: FormulaSource, - payload?: FormulaSource - ): Formula<[FormulaSource, FormulaSource, FormulaSource]>; - public static iteratedexp( - value: FormulaSource, - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return new Formula({ - inputs: [value, height, payload], - evaluate: ops.iteratedexp, - invert: ops.invertIteratedExp - }); - } - - public static iteratedlog( - value: FormulaSource, - base: FormulaSource = 10, - times: FormulaSource = 1 - ) { - return new Formula({ inputs: [value, base, times], evaluate: ops.iteratedLog }); - } - - public static slog<T extends GenericFormula>(value: T, base?: FormulaSource): InvertibleFormula; - public static slog( - value: FormulaSource, - base?: FormulaSource - ): Formula<[FormulaSource, FormulaSource]>; - public static slog(value: FormulaSource, base: FormulaSource = 10) { - return new Formula({ inputs: [value, base], evaluate: ops.slog, invert: ops.invertSlog }); - } - - public static layeradd10(value: FormulaSource, diff: FormulaSource) { - return new Formula({ inputs: [value, diff], evaluate: Decimal.layeradd10 }); - } - - public static layeradd<T extends GenericFormula>( - value: T, - diff: FormulaSource, - base?: FormulaSource - ): InvertibleFormula; - public static layeradd( - value: FormulaSource, - diff: FormulaSource, - base?: FormulaSource - ): Formula<[FormulaSource, FormulaSource, FormulaSource]>; - public static layeradd(value: FormulaSource, diff: FormulaSource, base: FormulaSource = 10) { - return new Formula({ - inputs: [value, diff, base], - evaluate: ops.layeradd, - invert: ops.invertLayeradd - }); - } - - public static lambertw<T extends GenericFormula>(value: T): InvertibleFormula; - public static lambertw(value: FormulaSource): Formula<[FormulaSource]>; - public static lambertw(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.lambertw, - invert: ops.invertLambertw - }); - } - - public static ssqrt<T extends GenericFormula>(value: T): InvertibleFormula; - public static ssqrt(value: FormulaSource): Formula<[FormulaSource]>; - public static ssqrt(value: FormulaSource) { - return new Formula({ inputs: [value], evaluate: Decimal.ssqrt, invert: ops.invertSsqrt }); - } - - public static pentate( - value: FormulaSource, - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return new Formula({ inputs: [value, height, payload], evaluate: ops.pentate }); - } - - public static sin<T extends GenericFormula>(value: T): T; - public static sin(value: FormulaSource): Formula<[FormulaSource]>; - public static sin(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.sin, - invert: ops.invertAsin, - integrate: ops.integrateSin - }); - } - - public static cos<T extends GenericFormula>(value: T): T; - public static cos(value: FormulaSource): Formula<[FormulaSource]>; - public static cos(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.cos, - invert: ops.invertAcos, - integrate: ops.integrateCos - }); - } - - public static tan<T extends GenericFormula>(value: T): T; - public static tan(value: FormulaSource): Formula<[FormulaSource]>; - public static tan(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.tan, - invert: ops.invertAtan, - integrate: ops.integrateTan - }); - } - - public static asin<T extends GenericFormula>(value: T): T; - public static asin(value: FormulaSource): Formula<[FormulaSource]>; - public static asin(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.asin, - invert: ops.invertSin, - integrate: ops.integrateAsin - }); - } - - public static acos<T extends GenericFormula>(value: T): T; - public static acos(value: FormulaSource): Formula<[FormulaSource]>; - public static acos(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.acos, - invert: ops.invertCos, - integrate: ops.integrateAcos - }); - } - - public static atan<T extends GenericFormula>(value: T): T; - public static atan(value: FormulaSource): Formula<[FormulaSource]>; - public static atan(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.atan, - invert: ops.invertTan, - integrate: ops.integrateAtan - }); - } - - public static sinh<T extends GenericFormula>(value: T): T; - public static sinh(value: FormulaSource): Formula<[FormulaSource]>; - public static sinh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.sinh, - invert: ops.invertAsinh, - integrate: ops.integrateSinh - }); - } - - public static cosh<T extends GenericFormula>(value: T): T; - public static cosh(value: FormulaSource): Formula<[FormulaSource]>; - public static cosh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.cosh, - invert: ops.invertAcosh, - integrate: ops.integrateCosh - }); - } - - public static tanh<T extends GenericFormula>(value: T): T; - public static tanh(value: FormulaSource): Formula<[FormulaSource]>; - public static tanh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.tanh, - invert: ops.invertAtanh, - integrate: ops.integrateTanh - }); - } - - public static asinh<T extends GenericFormula>(value: T): T; - public static asinh(value: FormulaSource): Formula<[FormulaSource]>; - public static asinh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.asinh, - invert: ops.invertSinh, - integrate: ops.integrateAsinh - }); - } - - public static acosh<T extends GenericFormula>(value: T): T; - public static acosh(value: FormulaSource): Formula<[FormulaSource]>; - public static acosh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.acosh, - invert: ops.invertCosh, - integrate: ops.integrateAcosh - }); - } - - public static atanh<T extends GenericFormula>(value: T): T; - public static atanh(value: FormulaSource): Formula<[FormulaSource]>; - public static atanh(value: FormulaSource) { - return new Formula({ - inputs: [value], - evaluate: Decimal.atanh, - invert: ops.invertTanh, - integrate: ops.integrateAtanh - }); - } - - public stringify() { - return Formula.stringify(this); - } - - public step( - start: MaybeRefOrGetter<DecimalSource>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula - ) { - return Formula.step(this, start, formulaModifier); - } - - public if( - condition: MaybeRefOrGetter<boolean>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula - ) { - return Formula.if(this, condition, formulaModifier); - } - public conditional( - condition: MaybeRefOrGetter<boolean>, - formulaModifier: (value: InvertibleIntegralFormula) => GenericFormula - ) { - return Formula.if(this, condition, formulaModifier); - } - - public abs() { - return Formula.abs(this); - } - - public neg<T extends GenericFormula>(this: T): T; - public neg(this: GenericFormula): GenericFormula; - public neg(this: GenericFormula) { - return Formula.neg(this); - } - public negate = this.neg; - public negated = this.neg; - - public sign() { - return Formula.sign(this); - } - public sgn = this.sign; - - public round() { - return Formula.round(this); - } - - public floor() { - return Formula.floor(this); - } - - public ceil() { - return Formula.ceil(this); - } - - public trunc() { - return Formula.trunc(this); - } - - public add<T extends GenericFormula>(this: T, value: FormulaSource): T; - public add<T extends GenericFormula>(this: GenericFormula, value: T): T; - public add(this: GenericFormula, value: FormulaSource): GenericFormula; - public add(this: GenericFormula, value: FormulaSource) { - return Formula.add(this, value); - } - public plus = this.add; - - public sub<T extends GenericFormula>(this: T, value: FormulaSource): T; - public sub<T extends GenericFormula>(this: GenericFormula, value: T): T; - public sub(this: GenericFormula, value: FormulaSource): GenericFormula; - public sub(value: FormulaSource) { - return Formula.sub(this, value); - } - public subtract = this.sub; - public minus = this.sub; - - public mul<T extends GenericFormula>(this: T, value: FormulaSource): T; - public mul<T extends GenericFormula>(this: GenericFormula, value: T): T; - public mul(this: GenericFormula, value: FormulaSource): GenericFormula; - public mul(value: FormulaSource) { - return Formula.mul(this, value); - } - public multiply = this.mul; - public times = this.mul; - - public div<T extends GenericFormula>(this: T, value: FormulaSource): T; - public div<T extends GenericFormula>(this: GenericFormula, value: T): T; - public div(this: GenericFormula, value: FormulaSource): GenericFormula; - public div(value: FormulaSource) { - return Formula.div(this, value); - } - public divide = this.div; - public divideBy = this.div; - public dividedBy = this.div; - - public recip<T extends GenericFormula>(this: T): T; - public recip(this: FormulaSource): GenericFormula; - public recip() { - return Formula.recip(this); - } - public reciprocal = this.recip; - public reciprocate = this.recip; - - public max(value: FormulaSource) { - return Formula.max(this, value); - } - - public min(value: FormulaSource) { - return Formula.min(this, value); - } - - public maxabs(value: FormulaSource) { - return Formula.maxabs(this, value); - } - - public minabs(value: FormulaSource) { - return Formula.minabs(this, value); - } - - public clamp(min: FormulaSource, max: FormulaSource) { - return Formula.clamp(this, min, max); - } - - public clampMin(value: FormulaSource) { - return Formula.clampMin(this, value); - } - - public clampMax(value: FormulaSource) { - return Formula.clampMax(this, value); - } - - public pLog10() { - return Formula.pLog10(this); - } - - public absLog10() { - return Formula.absLog10(this); - } - - public log10<T extends GenericFormula>(this: T): T; - public log10(this: FormulaSource): GenericFormula; - public log10() { - return Formula.log10(this); - } - - public log<T extends GenericFormula>(this: T, value: FormulaSource): T; - public log<T extends GenericFormula>(this: FormulaSource, value: T): T; - public log(this: FormulaSource, value: FormulaSource): GenericFormula; - public log(value: FormulaSource) { - return Formula.log(this, value); - } - public logarithm = this.log; - - public log2<T extends GenericFormula>(this: T): T; - public log2(this: FormulaSource): GenericFormula; - public log2() { - return Formula.log2(this); - } - - public ln<T extends GenericFormula>(this: T): T; - public ln(this: FormulaSource): GenericFormula; - public ln() { - return Formula.ln(this); - } - - public pow<T extends GenericFormula>(this: T, value: FormulaSource): T; - public pow<T extends GenericFormula>(this: FormulaSource, value: T): T; - public pow(this: FormulaSource, value: FormulaSource): GenericFormula; - public pow(value: FormulaSource) { - return Formula.pow(this, value); - } - - public pow10<T extends GenericFormula>(this: T): T; - public pow10(this: FormulaSource): GenericFormula; - public pow10() { - return Formula.pow10(this); - } - - public pow_base<T extends GenericFormula>(this: T, value: FormulaSource): T; - public pow_base<T extends GenericFormula>(this: FormulaSource, value: T): T; - public pow_base(this: FormulaSource, value: FormulaSource): GenericFormula; - public pow_base(value: FormulaSource) { - return Formula.pow_base(this, value); - } - - public root<T extends GenericFormula>(this: T, value: FormulaSource): T; - public root<T extends GenericFormula>(this: FormulaSource, value: T): T; - public root(this: FormulaSource, value: FormulaSource): GenericFormula; - public root(value: FormulaSource) { - return Formula.root(this, value); - } - - public factorial() { - return Formula.factorial(this); - } - - public gamma() { - return Formula.gamma(this); - } - public lngamma() { - return Formula.lngamma(this); - } - - public exp<T extends GenericFormula>(this: T): T; - public exp(this: FormulaSource): GenericFormula; - public exp(this: FormulaSource) { - return Formula.exp(this); - } - - public sqr<T extends GenericFormula>(this: T): T; - public sqr(this: FormulaSource): GenericFormula; - public sqr() { - return Formula.pow(this, 2); - } - - public sqrt<T extends GenericFormula>(this: T): T; - public sqrt(this: FormulaSource): GenericFormula; - public sqrt() { - return Formula.root(this, 2); - } - public cube<T extends GenericFormula>(this: T): T; - public cube(this: FormulaSource): GenericFormula; - public cube() { - return Formula.pow(this, 3); - } - - public cbrt<T extends GenericFormula>(this: T): T; - public cbrt(this: FormulaSource): GenericFormula; - public cbrt() { - return Formula.root(this, 3); - } - - public tetrate<T extends GenericFormula>( - this: T, - height?: FormulaSource, - payload?: FormulaSource - ): InvertibleFormula; - public tetrate( - this: FormulaSource, - height?: FormulaSource, - payload?: FormulaSource - ): GenericFormula; - public tetrate( - this: FormulaSource, - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return Formula.tetrate(this, height, payload); - } - - public iteratedexp<T extends GenericFormula>( - this: T, - height?: FormulaSource, - payload?: FormulaSource - ): InvertibleFormula; - public iteratedexp( - this: FormulaSource, - height?: FormulaSource, - payload?: FormulaSource - ): GenericFormula; - public iteratedexp( - this: FormulaSource, - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return Formula.iteratedexp(this, height, payload); - } - - public iteratedlog(base: FormulaSource = 10, times: FormulaSource = 1) { - return Formula.iteratedlog(this, base, times); - } - - public slog<T extends GenericFormula>(this: T, base?: FormulaSource): InvertibleFormula; - public slog(this: FormulaSource, base?: FormulaSource): GenericFormula; - public slog(this: FormulaSource, base: FormulaSource = 10) { - return Formula.slog(this, base); - } - - public layeradd10(diff: FormulaSource) { - return Formula.layeradd10(this, diff); - } - - public layeradd<T extends InvertibleFormula>( - this: T, - diff: FormulaSource, - base?: FormulaSource - ): InvertibleFormula; - public layeradd(this: FormulaSource, diff: FormulaSource, base?: FormulaSource): GenericFormula; - public layeradd(this: FormulaSource, diff: FormulaSource, base: FormulaSource) { - return Formula.layeradd(this, diff, base); - } - - public lambertw<T extends InvertibleFormula>(this: T): InvertibleFormula; - public lambertw(this: FormulaSource): GenericFormula; - public lambertw(this: FormulaSource) { - return Formula.lambertw(this); - } - - public ssqrt<T extends InvertibleFormula>(this: T): InvertibleFormula; - public ssqrt(this: FormulaSource): GenericFormula; - public ssqrt(this: FormulaSource) { - return Formula.ssqrt(this); - } - - public pentate( - height: FormulaSource = 2, - payload: FormulaSource = Decimal.fromComponents_noNormalize(1, 0, 1) - ) { - return Formula.pentate(this, height, payload); - } - - public sin<T extends GenericFormula>(this: T): T; - public sin(this: FormulaSource): GenericFormula; - public sin(this: FormulaSource) { - return Formula.sin(this); - } - - public cos<T extends GenericFormula>(this: T): T; - public cos(this: FormulaSource): GenericFormula; - public cos(this: FormulaSource) { - return Formula.cos(this); - } - - public tan<T extends GenericFormula>(this: T): T; - public tan(this: FormulaSource): GenericFormula; - public tan(this: FormulaSource) { - return Formula.tan(this); - } - - public asin<T extends GenericFormula>(this: T): T; - public asin(this: FormulaSource): GenericFormula; - public asin(this: FormulaSource) { - return Formula.asin(this); - } - - public acos<T extends GenericFormula>(this: T): T; - public acos(this: FormulaSource): GenericFormula; - public acos(this: FormulaSource) { - return Formula.acos(this); - } - - public atan<T extends GenericFormula>(this: T): T; - public atan(this: FormulaSource): GenericFormula; - public atan(this: FormulaSource) { - return Formula.atan(this); - } - - public sinh<T extends GenericFormula>(this: T): T; - public sinh(this: FormulaSource): GenericFormula; - public sinh(this: FormulaSource) { - return Formula.sinh(this); - } - - public cosh<T extends GenericFormula>(this: T): T; - public cosh(this: FormulaSource): GenericFormula; - public cosh(this: FormulaSource) { - return Formula.cosh(this); - } - - public tanh<T extends GenericFormula>(this: T): T; - public tanh(this: FormulaSource): GenericFormula; - public tanh(this: FormulaSource) { - return Formula.tanh(this); - } - - public asinh<T extends GenericFormula>(this: T): T; - public asinh(this: FormulaSource): GenericFormula; - public asinh(this: FormulaSource) { - return Formula.asinh(this); - } - - public acosh<T extends GenericFormula>(this: T): T; - public acosh(this: FormulaSource): GenericFormula; - public acosh(this: FormulaSource) { - return Formula.acosh(this); - } - - public atanh<T extends GenericFormula>(this: T): T; - public atanh(this: FormulaSource): GenericFormula; - public atanh(this: FormulaSource) { - return Formula.atanh(this); - } -} - -/** - * A class that can be used for cost/goal functions. It can be evaluated similar to a cost function, but also provides extra features for supported formulas. For example, a lot of math functions can be inverted. - * Typically, the use of these extra features is to support cost/goal functions that have multiple levels purchased/completed at once efficiently. - * @see {@link calculateMaxAffordable} - * @see {@link game/requirements.createCostRequirement} - */ -export default class Formula< - T extends [FormulaSource] | FormulaSource[] -> extends InternalFormula<T> { - private integralFormula: GenericFormula | undefined; - - /** - * Takes a potential result of the formula, and calculates what value the variable inside the formula would have to be for that result to occur. Only works if there's a single variable and if the formula is invertible. - * @param value The result of the formula - * @see {@link isInvertible} - */ - invert(value: DecimalSource): DecimalSource { - if (this.internalInvert && this.hasVariable()) { - return this.internalInvert.call(this, value, ...this.inputs); - } else if (this.inputs.length === 1 && this.hasVariable()) { - return value; - } - console.error("Cannot invert non-invertible formula"); - return 0; - } - - /** - * Evaluate the result of the indefinite integral (sans the constant of integration). Only works if there's a single variable and the formula is integrable. The formula can only have one "complex" operation (anything besides +,-,*,/). - * @param variable Optionally override the value of the variable while evaluating - * @see {@link isIntegrable} - */ - evaluateIntegral(variable?: DecimalSource): DecimalSource { - if (!this.isIntegrable()) { - console.error("Cannot evaluate integral of formula without integral"); - return 0; - } - return this.getIntegralFormula().evaluate(variable); - } - - /** - * Given the potential result of the formula's integral (and the constant of integration), calculate what value the variable inside the formula would have to be for that result to occur. Only works if there's a single variable and if the formula's integral is invertible. - * @param value The result of the integral. - * @see {@link isIntegralInvertible} - */ - invertIntegral(value: DecimalSource): DecimalSource { - if (!this.isIntegrable() || !this.getIntegralFormula().isInvertible()) { - console.error("Cannot invert integral of formula without invertible integral"); - return 0; - } - return (this.getIntegralFormula() as InvertibleFormula).invert(value); - } - - /** Calculates C for the implementation of the integral formula for this formula. */ - calculateConstantOfIntegration() { - // Calculate C based on the knowledge that at x=1, the integral should be the average between f(0) and f(1) - const integral = this.getIntegralFormula().evaluate(1); - const actualCost = Decimal.add(this.evaluate(0), this.evaluate(1)).div(2); - return Decimal.sub(actualCost, integral); - } - - /** - * Get a formula that will evaluate to the integral of this formula. May also be invertible. - * @param stack For nested formulas, a stack of operations that occur outside the complex operation. - */ - getIntegralFormula(stack?: SubstitutionStack): GenericFormula { - if (this.integralFormula != null && stack == null) { - return this.integralFormula; - } - if (stack == null) { - // "Outer" part of the formula - if (this.applySubstitution == null) { - // We're the complex operation of this formula - stack = []; - if (this.internalIntegrate == null) { - console.error("Cannot integrate formula with non-integrable operation"); - return Formula.constant(0); - } - let value = this.internalIntegrate.call(this, stack, ...this.inputs); - stack.forEach(func => (value = func(value))); - this.integralFormula = value; - } else { - // Continue digging into the formula - if (this.internalIntegrate) { - this.integralFormula = this.internalIntegrate.call( - this, - undefined, - ...this.inputs - ); - } else if ( - this.inputs.length === 1 && - this.internalEvaluate == null && - this.hasVariable() - ) { - this.integralFormula = this; - } else { - console.error("Cannot integrate formula without variable"); - return Formula.constant(0); - } - } - return this.integralFormula; - } else { - // "Inner" part of the formula - if (this.applySubstitution == null) { - console.error("Cannot have two complex operations in an integrable formula"); - return Formula.constant(0); - } - stack.push((variable: GenericFormula) => - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.applySubstitution!.call(this, variable, ...this.inputs) - ); - if (this.internalIntegrateInner) { - return this.internalIntegrateInner.call(this, stack, ...this.inputs); - } else if (this.internalIntegrate) { - return this.internalIntegrate.call(this, stack, ...this.inputs); - } else if ( - this.inputs.length === 1 && - this.internalEvaluate == null && - this.hasVariable() - ) { - return this; - } else { - console.error("Cannot integrate formula without variable"); - return Formula.constant(0); - } - } - } -} - -/** - * Utility for recursively searching through a formula for the cause of non-invertibility. - * @param formula The formula to search for a non-invertible formula within - */ -export function findNonInvertible(formula: GenericFormula): GenericFormula | null { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - if (formula.internalInvert == null && formula.internalEvaluate != null) { - return formula; - } - for (const input of formula.inputs) { - if (hasVariable(input)) { - return findNonInvertible(input); - } - } - return null; -} - -/** - * Utility for calculating the maximum amount of purchases possible with a given formula and resource. If {@link cumulativeCost} is changed to false, the calculation will be much faster with higher numbers. - * @param formula The formula to use for calculating buy max from - * @param resource The resource used when purchasing (is only read from) - * @param cumulativeCost Whether or not to count spent resources on each purchase or not. If true, costs will be approximated for performance, skewing towards fewer purchases - * @param directSum How many of the most expensive purchases should be manually summed for better accuracy. If unspecified uses 10 when spending resources and 0 when not - * @param maxBulkAmount Cap on how many can be purchased at once. If equal to 1 or lte to {@link directSum} then the formula does not need to be invertible. Defaults to Infinity. - */ -export function calculateMaxAffordable( - formula: GenericFormula, - resource: Resource, - cumulativeCost: MaybeRefOrGetter<boolean> = true, - directSum?: MaybeRefOrGetter<number>, - maxBulkAmount: MaybeRefOrGetter<DecimalSource> = Decimal.dInf -) { - const computedCumulativeCost = processGetter(cumulativeCost); - const computedDirectSum = processGetter(directSum); - const computedmaxBulkAmount = processGetter(maxBulkAmount); - return computed(() => { - const maxBulkAmount = unref(computedmaxBulkAmount); - if (Decimal.eq(maxBulkAmount, 1)) { - return Decimal.gte(resource.value, formula.evaluate()) ? Decimal.dOne : Decimal.dZero; - } - - const cumulativeCost = unref(computedCumulativeCost); - const directSum = unref(computedDirectSum) ?? (cumulativeCost ? 10 : 0); - let affordable: DecimalSource = 0; - if (Decimal.gt(maxBulkAmount, directSum)) { - if (!formula.isInvertible()) { - console.error( - "Cannot calculate max affordable of non-invertible formula with more maxBulkAmount than directSum" - ); - return 0; - } - if (cumulativeCost) { - if (!formula.isIntegralInvertible()) { - console.error( - "Cannot calculate max affordable of formula with non-invertible integral" - ); - return 0; - } - affordable = Decimal.floor( - formula.invertIntegral(Decimal.add(resource.value, formula.evaluateIntegral())) - ).sub(unref(formula.innermostVariable) ?? 0); - } else { - affordable = Decimal.floor(formula.invert(resource.value)); - } - } - affordable = Decimal.clampMax(affordable, maxBulkAmount); - if (directSum > 0) { - const preSumAffordable = affordable; - affordable = Decimal.sub(affordable, directSum).clampMin(0); - let summedCost; - if (cumulativeCost) { - summedCost = calculateCost(formula as InvertibleFormula, affordable, true, 0); - } else { - summedCost = formula.evaluate( - Decimal.add(unref(formula.innermostVariable) ?? 0, affordable) - ); - } - while ( - Decimal.lt(affordable, maxBulkAmount) && - Decimal.lt(affordable, Number.MAX_SAFE_INTEGER) && - Decimal.add(preSumAffordable, 1).gte(affordable) - ) { - const nextCost = formula.evaluate( - affordable.add(unref(formula.innermostVariable) ?? 0) - ); - if (Decimal.add(summedCost, nextCost).lte(resource.value)) { - affordable = affordable.add(1); - summedCost = Decimal.add(summedCost, nextCost); - } else { - break; - } - } - } - return affordable; - }); -} - -/** - * Utility for calculating the cost of a formula for a given amount of purchases. If {@link cumulativeCost} is changed to false, the calculation will be much faster with higher numbers. - * @param formula The formula to use for calculating buy max from - * @param amountToBuy The amount of purchases to calculate the cost for - * @param cumulativeCost Whether or not to count spent resources on each purchase or not. If true, costs will be approximated for performance, skewing towards higher cost - * @param directSum How many purchases to manually sum for improved accuracy. If not specified, defaults to 10 when cost is cumulative and 0 when not - */ -export function calculateCost( - formula: InvertibleFormula, - amountToBuy: DecimalSource, - cumulativeCost?: true, - directSum?: number -): DecimalSource; -export function calculateCost( - formula: InvertibleIntegralFormula, - amountToBuy: DecimalSource, - cumulativeCost: boolean, - directSum?: number -): DecimalSource; -export function calculateCost( - formula: InvertibleFormula, - amountToBuy: DecimalSource, - cumulativeCost = true, - directSum?: number -) { - // Single purchase - if (Decimal.eq(amountToBuy, 1)) { - return formula.evaluate(); - } - - const origValue = unref(formula.innermostVariable) ?? 0; - let newValue = Decimal.add(amountToBuy, origValue); - const targetValue = newValue; - directSum ??= cumulativeCost ? 10 : 0; - newValue = newValue.sub(directSum).clampMin(origValue); - let cost: DecimalSource = 0; - - // Indirect sum - if (Decimal.gt(amountToBuy, directSum)) { - if (!formula.isInvertible()) { - console.error("Cannot calculate cost with indirect sum of non-invertible formula"); - return 0; - } - if (cumulativeCost) { - if (!formula.isIntegrable()) { - console.error( - "Cannot calculate cost with cumulative cost of non-integrable formula" - ); - return 0; - } - cost = Decimal.sub(formula.evaluateIntegral(newValue), formula.evaluateIntegral()); - if (targetValue.gt(1e308)) { - // Too large of a number for directSum to make a difference, - // just get the cost and multiply by summed purchases - return Decimal.add( - cost, - Decimal.sub(targetValue, newValue).times(formula.evaluate(newValue)) - ); - } - } else { - cost = formula.evaluate(newValue); - newValue = newValue.add(1); - if (targetValue.gt(1e308)) { - // Too large of a number for directSum to make a difference, - // just get the cost and multiply by summed purchases - return Decimal.sub(targetValue, newValue).add(1).times(cost); - } - } - } - - // Direct sum - for (let i = newValue.toNumber(); i < targetValue.toNumber(); i++) { - cost = Decimal.add(cost, formula.evaluate(i)); - } - return cost; -} diff --git a/src/game/formulas/operations.ts b/src/game/formulas/operations.ts deleted file mode 100644 index 7210cfb..0000000 --- a/src/game/formulas/operations.ts +++ /dev/null @@ -1,940 +0,0 @@ -import Decimal, { DecimalSource } from "util/bignum"; -import Formula, { hasVariable, unrefFormulaSource } from "./formulas"; -import { - FormulaSource, - GenericFormula, - InvertFunction, - InvertibleFormula, - SubstitutionStack -} from "./types"; - -const ln10 = Decimal.ln(10); - -export function passthrough<T extends GenericFormula | DecimalSource>(value: T): T { - return value; -} - -export function invertPassthrough(value: DecimalSource, ...inputs: FormulaSource[]) { - const variable = inputs.find(input => hasVariable(input)) as InvertibleFormula | undefined; - if (variable == null) { - console.error("Could not invert due to no input being a variable"); - return 0; - } - return variable.invert(value); -} - -export function invertNeg(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.neg(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateNeg(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - return Formula.neg(lhs.getIntegralFormula(stack)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function applySubstitutionNeg(value: GenericFormula) { - return Formula.neg(value); -} - -export function invertAdd(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.sub(value, unrefFormulaSource(rhs))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.sub(value, unrefFormulaSource(lhs))); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAdd(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.times(rhs, lhs.innermostVariable ?? 0).add(x); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.times(lhs, rhs.innermostVariable ?? 0).add(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function integrateInnerAdd( - stack: SubstitutionStack, - lhs: FormulaSource, - rhs: FormulaSource -) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.add(x, rhs); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.add(x, lhs); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertSub(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.add(value, unrefFormulaSource(rhs))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.sub(unrefFormulaSource(lhs), value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateSub(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.sub(x, Formula.times(rhs, lhs.innermostVariable ?? 0)); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.times(lhs, rhs.innermostVariable ?? 0).sub(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function integrateInnerSub( - stack: SubstitutionStack, - lhs: FormulaSource, - rhs: FormulaSource -) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.sub(x, rhs); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.sub(x, lhs); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertMul(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.div(value, unrefFormulaSource(rhs))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.div(value, unrefFormulaSource(lhs))); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateMul(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.times(x, rhs); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.times(x, lhs); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function applySubstitutionMul( - value: GenericFormula, - lhs: FormulaSource, - rhs: FormulaSource -) { - if (hasVariable(lhs)) { - return Formula.div(value, rhs); - } else if (hasVariable(rhs)) { - return Formula.div(value, lhs); - } - console.error("Could not apply substitution due to no input being a variable"); - return Formula.constant(0); -} - -export function invertDiv(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.mul(value, unrefFormulaSource(rhs))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.div(unrefFormulaSource(lhs), value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateDiv(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.div(x, rhs); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.div(lhs, x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function applySubstitutionDiv( - value: GenericFormula, - lhs: FormulaSource, - rhs: FormulaSource -) { - if (hasVariable(lhs)) { - return Formula.mul(value, rhs); - } else if (hasVariable(rhs)) { - return Formula.mul(value, lhs); - } - console.error("Could not apply substitution due to no input being a variable"); - return Formula.constant(0); -} - -export function invertRecip(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.recip(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateRecip(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.ln(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertLog10(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.pow10(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -function internalIntegrateLog10(lhs: DecimalSource) { - return Decimal.ln(lhs).sub(1).times(lhs).div(ln10); -} - -function internalInvertIntegralLog10(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - const numerator = ln10.times(value); - return lhs.invert(numerator.div(numerator.div(Math.E).lambertw())); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateLog10(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - return new Formula({ - inputs: [lhs.getIntegralFormula(stack)], - evaluate: internalIntegrateLog10, - invert: internalInvertIntegralLog10 - }); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertLog(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.pow(unrefFormulaSource(rhs), value)); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.root(unrefFormulaSource(lhs), value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -function internalIntegrateLog(lhs: DecimalSource, rhs: DecimalSource) { - return Decimal.ln(lhs).sub(1).times(lhs).div(Decimal.ln(rhs)); -} - -function internalInvertIntegralLog(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - const numerator = Decimal.ln(unrefFormulaSource(rhs)).times(value); - return lhs.invert(numerator.div(numerator.div(Math.E).lambertw())); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateLog(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - return new Formula({ - inputs: [lhs.getIntegralFormula(stack), rhs], - evaluate: internalIntegrateLog, - invert: internalInvertIntegralLog - }); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertLog2(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.pow(2, value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -function internalIntegrateLog2(lhs: DecimalSource) { - return Decimal.ln(lhs).sub(1).times(lhs).div(Decimal.ln(2)); -} - -function internalInvertIntegralLog2(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - const numerator = Decimal.ln(2).times(value); - return lhs.invert(numerator.div(numerator.div(Math.E).lambertw())); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateLog2(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - return new Formula({ - inputs: [lhs.getIntegralFormula(stack)], - evaluate: internalIntegrateLog2, - invert: internalInvertIntegralLog2 - }); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertLn(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.exp(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -function internalIntegrateLn(lhs: DecimalSource) { - return Decimal.ln(lhs).sub(1).times(lhs); -} - -function internalInvertIntegralLn(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.div(value, Decimal.div(value, Math.E).lambertw())); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateLn(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - return new Formula({ - inputs: [lhs.getIntegralFormula(stack)], - evaluate: internalIntegrateLn, - invert: internalInvertIntegralLn - }); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertPow(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.root(value, unrefFormulaSource(rhs))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.ln(value).div(Decimal.ln(unrefFormulaSource(lhs)))); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integratePow(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - const pow = Formula.add(rhs, 1); - return Formula.pow(x, pow).div(pow); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - return Formula.pow(lhs, x).div(Formula.ln(lhs)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertPow10(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.root(value, 10)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integratePow10(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.pow10(x).div(Formula.ln(10)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertPowBase(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.ln(value).div(Decimal.ln(unrefFormulaSource(rhs)))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.root(unrefFormulaSource(lhs), value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integratePowBase(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.pow(rhs, x).div(Formula.ln(rhs)); - } else if (hasVariable(rhs)) { - if (!rhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = rhs.getIntegralFormula(stack); - const denominator = Formula.add(lhs, 1); - return Formula.pow(x, denominator).div(denominator); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertRoot(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.root(value, Decimal.recip(unrefFormulaSource(rhs)))); - } else if (hasVariable(rhs)) { - return rhs.invert(Decimal.ln(unrefFormulaSource(lhs)).div(Decimal.ln(value))); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateRoot(stack: SubstitutionStack, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.pow(x, Formula.recip(rhs).add(1)).times(rhs).div(Formula.add(rhs, 1)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertExp(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.ln(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateExp(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.exp(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function tetrate( - value: DecimalSource, - height: DecimalSource = 2, - payload: DecimalSource = Decimal.fromComponents_noNormalize(1, 0, 1) -) { - const heightNumber = Decimal.minabs(height, 1e308).toNumber(); - return Decimal.tetrate(value, heightNumber, payload); -} - -export function invertTetrate( - value: DecimalSource, - base: FormulaSource, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - height: FormulaSource, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - payload: FormulaSource -) { - if (hasVariable(base)) { - return base.invert(Decimal.ssqrt(value)); - } - // Other params can't be inverted ATM - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function iteratedexp( - value: DecimalSource, - height: DecimalSource = 2, - payload: DecimalSource = Decimal.fromComponents_noNormalize(1, 0, 1) -) { - const heightNumber = Decimal.minabs(height, 1e308).toNumber(); - return Decimal.iteratedexp(value, heightNumber, new Decimal(payload)); -} - -export function invertIteratedExp( - value: DecimalSource, - lhs: FormulaSource, - height: FormulaSource, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - payload: FormulaSource -) { - if (hasVariable(lhs)) { - return lhs.invert( - Decimal.iteratedlog( - value, - Math.E, - Decimal.minabs(1e308, unrefFormulaSource(height)).toNumber() - ) - ); - } - // Other params can't be inverted ATM - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function iteratedLog( - value: DecimalSource, - lhs: DecimalSource = 10, - times: DecimalSource = 2 -) { - const timesNumber = Decimal.minabs(times, 1e308).toNumber(); - return Decimal.iteratedlog(value, lhs, timesNumber); -} - -export function slog(value: DecimalSource, lhs: DecimalSource = 10) { - const baseNumber = Decimal.minabs(lhs, 1e308).toNumber(); - return Decimal.slog(value, baseNumber); -} - -export function invertSlog(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert( - Decimal.tetrate(value, Decimal.minabs(1e308, unrefFormulaSource(rhs)).toNumber()) - ); - } - // Other params can't be inverted ATM - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function layeradd(value: DecimalSource, diff: DecimalSource, base: DecimalSource) { - const diffNumber = Decimal.minabs(diff, 1e308).toNumber(); - return Decimal.layeradd(value, diffNumber, base); -} - -export function invertLayeradd( - value: DecimalSource, - lhs: FormulaSource, - diff: FormulaSource, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - base: FormulaSource -) { - if (hasVariable(lhs)) { - return lhs.invert( - Decimal.layeradd( - value, - Decimal.minabs(1e308, unrefFormulaSource(diff)).negate().toNumber() - ) - ); - } - // Other params can't be inverted ATM - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function invertLambertw(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.pow(Math.E, value).times(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function invertSsqrt(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.tetrate(value, 2)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function pentate(value: DecimalSource, height: DecimalSource, payload: DecimalSource) { - const heightNumber = Decimal.minabs(height, 1e308).toNumber(); - return Decimal.pentate(value, heightNumber, payload); -} - -export function invertSin(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.asin(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateSin(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.cos(x).neg(); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertCos(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.acos(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateCos(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.sin(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertTan(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.atan(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateTan(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.cos(x).ln().neg(); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAsin(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.sin(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAsin(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.asin(x) - .times(x) - .add(Formula.sqrt(Formula.sub(1, Formula.pow(x, 2)))); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAcos(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.cos(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAcos(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.acos(x) - .times(x) - .sub(Formula.sqrt(Formula.sub(1, Formula.pow(x, 2)))); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAtan(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.tan(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAtan(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.atan(x) - .times(x) - .sub(Formula.ln(Formula.pow(x, 2).add(1)).div(2)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertSinh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.asinh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateSinh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.cosh(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertCosh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.acosh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateCosh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.sinh(x); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertTanh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.atanh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateTanh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.cosh(x).ln(); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAsinh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.sinh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAsinh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.asinh(x).times(x).sub(Formula.pow(x, 2).add(1).sqrt()); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAcosh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.cosh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAcosh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.acosh(x) - .times(x) - .sub(Formula.add(x, 1).sqrt().times(Formula.sub(x, 1).sqrt())); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function invertAtanh(value: DecimalSource, lhs: FormulaSource) { - if (hasVariable(lhs)) { - return lhs.invert(Decimal.tanh(value)); - } - console.error("Could not invert due to no input being a variable"); - return 0; -} - -export function integrateAtanh(stack: SubstitutionStack, lhs: FormulaSource) { - if (hasVariable(lhs)) { - if (!lhs.isIntegrable()) { - console.error("Could not integrate due to variable not being integrable"); - return Formula.constant(0); - } - const x = lhs.getIntegralFormula(stack); - return Formula.atanh(x) - .times(x) - .add(Formula.sub(1, Formula.pow(x, 2)).ln().div(2)); - } - console.error("Could not integrate due to no input being a variable"); - return Formula.constant(0); -} - -export function createPassthroughBinaryFormula( - operation: (a: DecimalSource, b: DecimalSource) => DecimalSource -) { - return (value: FormulaSource, other: FormulaSource) => - new Formula({ - inputs: [value, other], - evaluate: operation, - invert: passthrough as InvertFunction<[FormulaSource, FormulaSource]> - }); -} diff --git a/src/game/formulas/types.d.ts b/src/game/formulas/types.d.ts deleted file mode 100644 index 3f98f55..0000000 --- a/src/game/formulas/types.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { InternalFormula } from "game/formulas/formulas"; -import { DecimalSource } from "util/bignum"; -import { MaybeRef } from "util/computed"; - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -type GenericFormula = InternalFormula<any>; -type FormulaSource = MaybeRef<DecimalSource> | GenericFormula; -type InvertibleFormula = GenericFormula & { - invert: NonNullable<GenericFormula["invert"]>; -}; -type IntegrableFormula = InvertibleFormula & { - evaluateIntegral: NonNullable<GenericFormula["evaluateIntegral"]>; - getIntegralFormula: NonNullable<GenericFormula["getIntegralFormula"]>; - calculateConstantOfIntegration: NonNullable<GenericFormula["calculateConstantOfIntegration"]>; -}; -type InvertibleIntegralFormula = IntegrableFormula & { - invertIntegral: NonNullable<GenericFormula["invertIntegral"]>; -}; - -type EvaluateFunction<T> = ( - this: InternalFormula<T>, - ...inputs: GuardedFormulasToDecimals<T> -) => DecimalSource; -type InvertFunction<T> = ( - this: InternalFormula<T>, - value: DecimalSource, - ...inputs: T -) => DecimalSource; -type IntegrateFunction<T> = ( - this: InternalFormula<T>, - stack: SubstitutionStack | undefined, - ...inputs: T -) => GenericFormula; -type SubstitutionFunction<T> = ( - this: InternalFormula<T>, - variable: GenericFormula, - ...inputs: T -) => GenericFormula; - -type VariableFormulaOptions = { - variable: MaybeRef<DecimalSource>; - description?: string; -}; -type ConstantFormulaOptions = { - inputs: [FormulaSource]; - description?: string; -}; -type GeneralFormulaOptions<T extends [FormulaSource] | FormulaSource[]> = { - inputs: T; - evaluate: EvaluateFunction<T>; - invert?: InvertFunction<T>; - integrate?: IntegrateFunction<T>; - integrateInner?: IntegrateFunction<T>; - applySubstitution?: SubstitutionFunction<T>; - description?: string; -}; -type FormulaOptions<T extends [FormulaSource] | FormulaSource[]> = - | VariableFormulaOptions - | ConstantFormulaOptions - | GeneralFormulaOptions<T>; - -type InternalFormulaProperties<T extends [FormulaSource] | FormulaSource[]> = { - inputs: T; - internalVariables: number; - internalEvaluate?: EvaluateFunction<T>; - internalInvert?: InvertFunction<T>; - internalIntegrate?: IntegrateFunction<T>; - internalIntegrateInner?: IntegrateFunction<T>; - applySubstitution?: SubstitutionFunction<T>; - innermostVariable?: MaybeRef<DecimalSource>; - description?: string; -}; - -type SubstitutionStack = ((value: GenericFormula) => GenericFormula)[] | undefined; - -// It's really hard to type mapped tuples, but these classes seem to manage -type FormulasToDecimals<T extends FormulaSource[]> = { - [K in keyof T]: DecimalSource; -}; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -type TupleGuard<T extends any[]> = T extends any[] ? FormulasToDecimals<T> : never; -type GuardedFormulasToDecimals<T extends FormulaSource[]> = TupleGuard<T>; diff --git a/src/game/gameLoop.ts b/src/game/gameLoop.ts deleted file mode 100644 index 46cc53b..0000000 --- a/src/game/gameLoop.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { hasWon } from "data/projEntry"; -import projInfo from "data/projInfo.json"; -import { globalBus } from "game/events"; -import settings from "game/settings"; -import Decimal from "util/bignum"; -import { loadingSave } from "util/save"; -import { watch } from "vue"; -import player from "./player"; -import state from "./state"; - -let intervalID: NodeJS.Timeout | null = null; - -function update() { - const now = Date.now(); - let diff = (now - player.time) / 1e3; - player.time = now; - const trueDiff = diff; - - state.lastTenTicks.push(trueDiff); - if (state.lastTenTicks.length > 10) { - state.lastTenTicks = state.lastTenTicks.slice(1); - } - - // Stop here if the game is paused on the win screen - if (hasWon?.value && !player.keepGoing) { - return; - } - // Stop here if the player had a NaN value - if (state.hasNaN) { - return; - } - - diff = Math.max(diff, 0); - - if (player.devSpeed === 0) { - return; - } - - loadingSave.value = false; - - // Add offline time if any - if (player.offlineTime != null) { - if (Decimal.gt(player.offlineTime, projInfo.offlineLimit * 3600)) { - player.offlineTime = projInfo.offlineLimit * 3600; - } - if (Decimal.gt(player.offlineTime, 0) && player.devSpeed !== 0) { - const offlineDiff = Math.max(player.offlineTime / 10, diff); - player.offlineTime = player.offlineTime - offlineDiff; - diff += offlineDiff; - } else if (player.devSpeed === 0) { - player.offlineTime += diff; - } - if (!player.offlineProd || Decimal.lt(player.offlineTime, 0)) { - player.offlineTime = null; - } - } - - // Cap at max tick length - diff = Math.min(diff, projInfo.maxTickLength); - - // Apply dev speed - if (player.devSpeed != null) { - diff *= player.devSpeed; - } - - if (!Number.isFinite(diff)) { - diff = 1e308; - } - - // Update - if (Decimal.eq(diff, 0)) { - return; - } - - player.timePlayed += diff; - if (!Number.isFinite(player.timePlayed)) { - player.timePlayed = 1e308; - } - globalBus.emit("update", diff, trueDiff); - - if (settings.unthrottled) { - requestAnimationFrame(update); - if (intervalID != null) { - clearInterval(intervalID); - intervalID = null; - } - } else if (intervalID == null) { - intervalID = setInterval(update, 50); - } -} - -/** Starts the game loop for the project, which updates the game in ticks. */ -export async function startGameLoop() { - if (settings.unthrottled) { - requestAnimationFrame(update); - } else { - intervalID = setInterval(update, 50); - } -} - -watch(hasWon, hasWon => { - if (hasWon) { - globalBus.emit("gameWon"); - } -}); - -setInterval( - () => { - state.mouseActivity = [...state.mouseActivity.slice(-7), false]; - }, - 1000 * 60 * 60 -); diff --git a/src/game/layers.tsx b/src/game/layers.tsx deleted file mode 100644 index 9e57529..0000000 --- a/src/game/layers.tsx +++ /dev/null @@ -1,401 +0,0 @@ -import Modal from "components/modals/Modal.vue"; -import { globalBus } from "game/events"; -import type { Persistent } from "game/persistence"; -import { persistent } from "game/persistence"; -import player from "game/player"; -import type { Emitter } from "nanoevents"; -import { createNanoEvents } from "nanoevents"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { Renderable } from "util/vue"; -import { - computed, - type CSSProperties, - InjectionKey, - MaybeRef, - MaybeRefOrGetter, - Ref, - ref, - shallowReactive, - unref -} from "vue"; -import { JSX } from "vue/jsx-runtime"; - -/** A feature's node in the DOM that has its size tracked. */ -export interface FeatureNode { - rect: DOMRect; - observer: MutationObserver; - element: HTMLElement; -} - -/** - * An injection key that a Context component will use to provide a function that registers a {@link FeatureNode} with the given id and HTML element. - */ -export const RegisterNodeInjectionKey: InjectionKey<(id: string, element: HTMLElement) => void> = - Symbol("RegisterNode"); -/** - * An injection key that a Context component will use to provide a function that unregisters a {@link FeatureNode} with the given id. - */ -export const UnregisterNodeInjectionKey: InjectionKey<(id: string) => void> = - Symbol("UnregisterNode"); -/** - * An injection key that a Context component will use to provide a ref to a map of all currently registered {@link FeatureNode}s. - */ -export const NodesInjectionKey: InjectionKey<Ref<Record<string, FeatureNode | undefined>>> = - Symbol("Nodes"); -/** - * An injection key that a Context component will use to provide a ref to a bounding rect of the Context. - */ -export const BoundsInjectionKey: InjectionKey<Ref<DOMRect | undefined>> = Symbol("Bounds"); - -/** All types of events able to be sent or emitted from a layer's emitter. */ -export interface LayerEvents { - /** - * Sent every game tick, before the update event. Intended for "generation" type actions. - * @param diff The delta time since last tick, in ms. - */ - preUpdate: (diff: number) => void; - /** - * Sent every game tick. Intended for "automation" type actions. - * @param diff The delta time since last tick, in ms. - */ - update: (diff: number) => void; - /** - * Sent every game tick, after the update event. Intended for checking state. - * @param diff The delta time since last tick, in ms. - */ - postUpdate: (diff: number) => void; -} - -/** - * A reference to all the current layers. - * It is shallow reactive so it will update when layers are added or removed, but not interfere with the existing refs within each layer. - */ -export const layers: Record<string, Readonly<Layer>> = shallowReactive({}); - -declare global { - /** Augment the window object so the layers can be accessed from the console. */ - interface Window { - layers: Record<string, Readonly<Layer> | undefined>; - } -} -window.layers = layers; - -declare module "@vue/runtime-dom" { - /** Augment CSS Properties to allow for setting the layer color CSS variable. */ - interface CSSProperties { - "--layer-color"?: string; - } -} - -/** An object representing the position of some entity. */ -export interface Position { - /** The X component of the entity's position. */ - x: number; - /** The Y component of the entity's position. */ - y: number; -} - -/** - * An object that configures a {@link Layer}. - * Even moreso than features, the developer is expected to include extra properties in this object. - * All {@link game/persistence.Persistent} refs must be included somewhere within the layer object. - */ -export interface LayerOptions { - /** The color of the layer, used to theme the entire layer's display. */ - color?: MaybeRefOrGetter<string>; - /** - * The layout of this layer's features. - * When the layer is open in {@link game/player.Player.tabs}, this is the content that is displayed. - */ - display: MaybeGetter<Renderable>; - /** An object of classes that should be applied to the display. */ - classes?: MaybeRefOrGetter<Record<string, boolean>>; - /** Styles that should be applied to the display. */ - style?: MaybeRefOrGetter<CSSProperties>; - /** - * The name of the layer, used on minimized tabs. - * Defaults to {@link BaseLayer.id}. - */ - name?: MaybeRefOrGetter<string>; - /** - * Whether or not the layer can be minimized. - * Defaults to true. - */ - minimizable?: MaybeRefOrGetter<boolean>; - /** - * The layout of this layer's features. - * When the layer is open in {@link game/player.Player.tabs}, but the tab is {@link Layer.minimized} this is the content that is displayed. - */ - minimizedDisplay?: MaybeGetter<Renderable>; - /** - * Whether or not to force the go back button to be hidden. - * If true, go back will be hidden regardless of allowGoBack value in the project settings. - */ - forceHideGoBack?: MaybeRefOrGetter<boolean>; - /** - * A CSS min-width value that is applied to the layer. - * Can be a number, in which case the unit is assumed to be px. - * Defaults to 600px. - */ - minWidth?: MaybeRefOrGetter<number | string>; -} - -/** The properties that are added onto a processed {@link LayerOptions} to create a {@link Layer} */ -export interface BaseLayer { - /** - * The ID of the layer. - * Populated from the {@link createLayer} parameters. - * Used for saving and tracking open tabs. - */ - id: string; - /** A persistent ref tracking if the tab is minimized or not. */ - minimized: Persistent<boolean>; - /** An emitter for sending {@link LayerEvents} events for this layer. */ - emitter: Emitter<LayerEvents>; - /** A function to register an event listener on {@link emitter}. */ - on: OmitThisParameter<Emitter<LayerEvents>["on"]>; - /** A function to emit a {@link LayerEvents} event to this layer. */ - emit: <K extends keyof LayerEvents>(...args: [K, ...Parameters<LayerEvents[K]>]) => void; - /** A map of {@link FeatureNode}s present in this layer's Context component. */ - nodes: Ref<Record<string, FeatureNode | undefined>>; -} - -/** An unit of game content. Displayed to the user as a tab or modal. */ -export interface Layer extends BaseLayer { - /** The color of the layer, used to theme the entire layer's display. */ - color?: MaybeRef<string>; - /** - * The layout of this layer's features. - * When the layer is open in {@link game/player.Player.tabs}, this is the content that is displayed. - */ - display: MaybeGetter<Renderable>; - /** An object of classes that should be applied to the display. */ - classes?: MaybeRef<Record<string, boolean>>; - /** Styles that should be applied to the display. */ - style?: MaybeRef<CSSProperties>; - /** - * The name of the layer, used on minimized tabs. - * Defaults to {@link BaseLayer.id}. - */ - name?: MaybeRef<string>; - /** - * Whether or not the layer can be minimized. - * Defaults to true. - */ - minimizable?: MaybeRef<boolean>; - /** - * The layout of this layer's features. - * When the layer is open in {@link game/player.Player.tabs}, but the tab is {@link Layer.minimized} this is the content that is displayed. - */ - minimizedDisplay?: MaybeGetter<Renderable>; - /** - * Whether or not to force the go back button to be hidden. - * If true, go back will be hidden regardless of allowGoBack value in the project settings. - */ - forceHideGoBack?: MaybeRef<boolean>; - /** - * A CSS min-width value that is applied to the layer. - * Can be a number, in which case the unit is assumed to be px. - * Defaults to 600px. - */ - minWidth?: MaybeRef<number | string>; -} - -/** - * When creating layers, this object a map of layer ID to a set of any created persistent refs in order to check they're all included in the final layer object. - */ -export const persistentRefs: Record<string, Set<Persistent>> = {}; -/** - * When creating layers, this array stores the layers currently being created, as a stack. - */ -export const addingLayers: string[] = []; -/** - * Lazily creates a layer with the given options. - * @param id The ID this layer will have. See {@link BaseLayer.id}. - * @param optionsFunc Layer options. - */ -export function createLayer<T extends LayerOptions>( - id: string, - optionsFunc: (layer: BaseLayer) => T & ThisType<Layer & Omit<T, keyof Layer>> -) { - return createLazyProxy(() => { - const emitter = createNanoEvents<LayerEvents>(); - addingLayers.push(id); - persistentRefs[id] = new Set(); - - const baseLayer = { - id, - emitter, - ...emitter, - nodes: ref({}), - minimized: persistent(false, false) - } satisfies BaseLayer; - - const options = optionsFunc(baseLayer); - const { - color, - display, - classes, - style: _style, - name, - forceHideGoBack, - minWidth, - minimizable, - minimizedDisplay, - ...props - } = options; - if ( - addingLayers[addingLayers.length - 1] == null || - addingLayers[addingLayers.length - 1] !== id - ) { - throw new Error( - `Adding layers stack in invalid state. This should not happen\nStack: ${addingLayers}\nTrying to pop ${id}` - ); - } - addingLayers.pop(); - - const style = processGetter(_style); - - const layer = { - ...baseLayer, - ...(props as Omit<typeof props, keyof LayerOptions>), - color: processGetter(color), - display, - classes: processGetter(classes), - style: computed((): CSSProperties => { - let width = unref(layer.minWidth); - if (typeof width === "number" || !Number.isNaN(parseInt(width))) { - width = width + "px"; - } - return { - ...unref(style), - ...(baseLayer.minimized.value - ? { - flexGrow: "0", - flexShrink: "0", - width: "60px", - minWidth: "", - flexBasis: "", - margin: "0" - } - : { - flexGrow: "", - flexShrink: "", - width: "", - minWidth: width, - flexBasis: width, - margin: "" - }) - }; - }), - name: processGetter(name) ?? id, - forceHideGoBack: processGetter(forceHideGoBack), - minWidth: processGetter(minWidth) ?? 600, - minimizable: processGetter(minimizable) ?? true, - minimizedDisplay - } satisfies Layer; - - return layer; - }); -} - -/** - * Enables a layer object, so it will be updated every tick. - * Note that accessing a layer/its properties does NOT require it to be enabled. - * For dynamic layers you can call this function and {@link removeLayer} as necessary. Just make sure {@link data/projEntry.getInitialLayers} will provide an accurate list of layers based on the player data object. - * For static layers just make {@link data/projEntry.getInitialLayers} return all the layers. - * @param layer The layer to add. - * @param player The player data object, which will have a data object for this layer. - */ -export function addLayer( - layer: Layer, - player: { layers?: Record<string, Record<string, unknown>> } -): void { - console.info("Adding layer", layer.id); - if (layers[layer.id] != null) { - console.error( - "Attempted to add layer with same ID as existing layer", - layer.id, - layers[layer.id] - ); - return; - } - - player.layers ??= {}; - if (player.layers[layer.id] == null) { - player.layers[layer.id] = {}; - } - layers[layer.id] = layer; - - globalBus.emit("addLayer", layer, player.layers[layer.id]); -} - -/** - * Convenience method for getting a layer by its ID with correct typing. - * @param layerID The ID of the layer to get. - */ -export function getLayer<T extends Layer>(layerID: string): T { - return layers[layerID] as T; -} - -/** - * Disables a layer, so it will no longer be updated every tick. - * Note that accessing a layer/its properties does NOT require it to be enabled. - * @param layer The layer to remove. - */ -export function removeLayer(layer: Layer): void { - console.info("Removing layer", layer.id); - globalBus.emit("removeLayer", layer); - - delete layers[layer.id]; -} - -/** - * Convenience method for removing and immediately re-adding a layer. - * This is useful for layers with dynamic content, to ensure persistent refs are correctly configured. - * @param layer Layer to remove and then re-add - */ -export function reloadLayer(layer: Layer): void { - removeLayer(layer); - - // Re-create layer - addLayer(layer, player); -} - -/** - * Utility function for creating a modal that display's a {@link LayerOptions.display}. - * Returns the modal itself, which can be rendered anywhere you need, as well as a function to open the modal. - * @param layer The layer to display in the modal. - */ -export function setupLayerModal(layer: Layer): { - openModal: VoidFunction; - modal: () => JSX.Element; -} { - const showModal = ref(false); - return { - openModal: () => (showModal.value = true), - modal: () => ( - <Modal - modelValue={showModal.value} - onUpdate:modelValue={value => (showModal.value = value)} - v-slots={{ - header: () => <h2>{unref(layer.name)}</h2>, - body: typeof layer.display ? layer.display : () => layer.display - }} - /> - ) - }; -} - -globalBus.on("update", function updateLayers(diff) { - Object.values(layers).forEach(layer => { - layer?.emit("preUpdate", diff); - }); - Object.values(layers).forEach(layer => { - layer?.emit("update", diff); - }); - Object.values(layers).forEach(layer => { - layer?.emit("postUpdate", diff); - }); -}); diff --git a/src/game/modifiers.tsx b/src/game/modifiers.tsx deleted file mode 100644 index ec2a8d7..0000000 --- a/src/game/modifiers.tsx +++ /dev/null @@ -1,363 +0,0 @@ -import "components/common/modifiers.css"; -import settings from "game/settings"; -import type { DecimalSource } from "util/bignum"; -import Decimal, { formatSmall } from "util/bignum"; -import type { RequiredKeys, WithRequired } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { render, Renderable } from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, unref } from "vue"; -import Formula from "./formulas/formulas"; -import { FormulaSource, GenericFormula } from "./formulas/types"; - -/** - * An object that can be used to apply or unapply some modification to a number. - * Being reversible requires the operation being invertible, but some features may rely on that. - * Descriptions can be optionally included for displaying them to the player. - * The built-in modifier creators are designed to display the modifiers using {@link createModifierSection}. - */ -export interface Modifier { - /** Applies some operation on the input and returns the result. */ - apply: (gain: DecimalSource) => DecimalSource; - /** Reverses the operation applied by the apply property. Required by some features. */ - invert?: (gain: DecimalSource) => DecimalSource; - /** Get a formula for this modifier. Required by some features. */ - getFormula?: (gain: FormulaSource) => GenericFormula; - /** - * Whether or not this modifier should be considered enabled. - * Typically for use with modifiers passed into {@link createSequentialModifier}. - */ - enabled?: MaybeRef<boolean>; - /** - * A description of this modifier. - * @see {@link createModifierSection}. - */ - description?: MaybeGetter<Renderable>; -} - -/** Utility type that represents the output of all modifiers that represent a single operation. */ -export type OperationModifier<T> = WithRequired< - Modifier, - "invert" | "getFormula" | Extract<RequiredKeys<T>, keyof Modifier> ->; - -/** An object that configures an additive modifier via {@link createAdditiveModifier}. */ -export interface AdditiveModifierOptions { - /** The amount to add to the input value. */ - addend: MaybeRefOrGetter<DecimalSource>; - /** Description of what this modifier is doing. */ - description?: MaybeGetter<Renderable>; - /** A MaybeRefOrGetter that will be processed and passed directly into the returned modifier. */ - enabled?: MaybeRefOrGetter<boolean>; - /** Determines if numbers larger or smaller than 0 should be displayed as red. */ - smallerIsBetter?: boolean; -} - -/** - * Create a modifier that adds some value to the input value. - * @param optionsFunc Additive modifier options. - */ -export function createAdditiveModifier<T extends AdditiveModifierOptions, S = OperationModifier<T>>( - optionsFunc: () => T -) { - return createLazyProxy(() => { - const { addend, description, enabled, smallerIsBetter } = optionsFunc(); - - const processedAddend = processGetter(addend); - const processedEnabled = enabled == null ? undefined : processGetter(enabled); - return { - apply: (gain: DecimalSource) => Decimal.add(gain, unref(processedAddend)), - invert: (gain: DecimalSource) => Decimal.sub(gain, unref(processedAddend)), - getFormula: (gain: FormulaSource) => Formula.add(gain, processedAddend), - enabled: processedEnabled, - description: - description == null - ? undefined - : () => ( - <div class="modifier-container"> - <span class="modifier-description">{render(description)}</span> - <span - class="modifier-amount" - style={ - ( - smallerIsBetter === true - ? Decimal.gt(unref(processedAddend), 0) - : Decimal.lt(unref(processedAddend), 0) - ) - ? "color: var(--danger)" - : "" - } - > - {Decimal.gte(unref(processedAddend), 0) ? "+" : ""} - {formatSmall(unref(processedAddend))} - </span> - </div> - ) - }; - }) as S; -} - -/** An object that configures an multiplicative modifier via {@link createMultiplicativeModifier}. */ -export interface MultiplicativeModifierOptions { - /** The amount to multiply the input value by. */ - multiplier: MaybeRefOrGetter<DecimalSource>; - /** Description of what this modifier is doing. */ - description?: MaybeGetter<Renderable> | undefined; - /** A MaybeRefOrGetter that will be processed and passed directly into the returned modifier. */ - enabled?: MaybeRefOrGetter<boolean> | undefined; - /** Determines if numbers larger or smaller than 1 should be displayed as red. */ - smallerIsBetter?: boolean; -} - -/** - * Create a modifier that multiplies the input value by some value. - * @param optionsFunc Multiplicative modifier options. - */ -export function createMultiplicativeModifier< - T extends MultiplicativeModifierOptions, - S = OperationModifier<T> ->(optionsFunc: () => T) { - return createLazyProxy(() => { - const { multiplier, description, enabled, smallerIsBetter } = optionsFunc(); - - const processedMultiplier = processGetter(multiplier); - const processedEnabled = enabled == null ? undefined : processGetter(enabled); - return { - apply: (gain: DecimalSource) => Decimal.times(gain, unref(processedMultiplier)), - invert: (gain: DecimalSource) => Decimal.div(gain, unref(processedMultiplier)), - getFormula: (gain: FormulaSource) => Formula.times(gain, processedMultiplier), - enabled: processedEnabled, - description: - description == null - ? undefined - : () => ( - <div class="modifier-container"> - <span class="modifier-description">{render(description)}</span> - <span - class="modifier-amount" - style={ - ( - smallerIsBetter === true - ? Decimal.gt(unref(processedMultiplier), 1) - : Decimal.lt(unref(processedMultiplier), 1) - ) - ? "color: var(--danger)" - : "" - } - > - ×{formatSmall(unref(processedMultiplier))} - </span> - </div> - ) - }; - }) as S; -} - -/** An object that configures an exponential modifier via {@link createExponentialModifier}. */ -export interface ExponentialModifierOptions { - /** The amount to raise the input value to the power of. */ - exponent: MaybeRefOrGetter<DecimalSource>; - /** Description of what this modifier is doing. */ - description?: MaybeGetter<Renderable> | undefined; - /** A MaybeRefOrGetter that will be processed and passed directly into the returned modifier. */ - enabled?: MaybeRefOrGetter<boolean> | undefined; - /** Add 1 before calculating, then remove it afterwards. This prevents low numbers from becoming lower. */ - supportLowNumbers?: boolean; - /** Determines if numbers larger or smaller than 1 should be displayed as red. */ - smallerIsBetter?: boolean; -} - -/** - * Create a modifier that raises the input value to the power of some value. - * @param optionsFunc Exponential modifier options. - */ -export function createExponentialModifier< - T extends ExponentialModifierOptions, - S = OperationModifier<T> ->(optionsFunc: () => T) { - return createLazyProxy(() => { - const { exponent, description, enabled, supportLowNumbers, smallerIsBetter } = - optionsFunc(); - - const processedExponent = processGetter(exponent); - const processedEnabled = enabled == null ? undefined : processGetter(enabled); - return { - apply: (gain: DecimalSource) => { - let result = gain; - if (supportLowNumbers) { - result = Decimal.add(result, 1); - } - result = Decimal.pow(result, unref(processedExponent)); - if (supportLowNumbers) { - result = Decimal.sub(result, 1); - } - return result; - }, - invert: (gain: DecimalSource) => { - let result = gain; - if (supportLowNumbers) { - result = Decimal.add(result, 1); - } - result = Decimal.root(result, unref(processedExponent)); - if (supportLowNumbers) { - result = Decimal.sub(result, 1); - } - return result; - }, - getFormula: (gain: FormulaSource) => - supportLowNumbers - ? Formula.add(gain, 1).pow(processedExponent).sub(1) - : Formula.pow(gain, processedExponent), - enabled: processedEnabled, - description: - description == null - ? undefined - : () => ( - <div class="modifier-container"> - <span class="modifier-description"> - {render(description)} - {supportLowNumbers ? " (+1 effective)" : null} - </span> - <span - class="modifier-amount" - style={ - ( - smallerIsBetter === true - ? Decimal.gt(unref(processedExponent), 1) - : Decimal.lt(unref(processedExponent), 1) - ) - ? "color: var(--danger)" - : "" - } - > - ^{formatSmall(unref(processedExponent))} - </span> - </div> - ) - }; - }) as S; -} - -/** - * Takes an array of modifiers and applies and reverses them in order. - * Modifiers that are not enabled will not be applied nor reversed. - * Also joins their descriptions together. - * @param modifiersFunc The modifiers to perform sequentially. - * @see {@link createModifierSection}. - */ -export function createSequentialModifier< - T extends Modifier, - S = WithRequired<Modifier, Extract<RequiredKeys<T>, keyof Modifier>> ->(modifiersFunc: () => T[]) { - return createLazyProxy(() => { - const modifiers = modifiersFunc(); - - return { - apply: (gain: DecimalSource) => - modifiers - .filter(m => unref(m.enabled) !== false) - .reduce((gain, modifier) => modifier.apply(gain), gain), - invert: modifiers.every(m => m.invert != null) - ? (gain: DecimalSource) => - modifiers - .filter(m => unref(m.enabled) !== false) - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - .reduceRight((gain, modifier) => modifier.invert!(gain), gain) - : undefined, - getFormula: modifiers.every(m => m.getFormula != null) - ? (gain: FormulaSource) => - modifiers.reduce((acc, curr) => { - if (curr.enabled == null || curr.enabled === true) { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return curr.getFormula!(acc); - } - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return Formula.if(acc, curr.enabled, acc => curr.getFormula!(acc)); - }, gain) - : undefined, - enabled: modifiers.some(m => m.enabled != null) - ? computed(() => modifiers.filter(m => unref(m.enabled) !== false).length > 0) - : undefined, - description: modifiers.some(m => m.description != null) - ? () => - ( - modifiers - .filter(m => unref(m.enabled) !== false) - .map(m => unref(m.description)) - .filter(d => d) as MaybeGetter<Renderable>[] - ).map(m => render(m)) - : undefined - }; - }) as S; -} - -/** An object that configures a modifier section via {@link createModifierSection}. */ -export interface ModifierSectionOptions { - /** The header for the section. */ - title: string; - /** Smaller text that appears in the header after the title. */ - subtitle?: string; - /** The modifier to render. */ - modifier: WithRequired<Modifier, "description">; - /** The base value that'll be passed into the modifier. Defaults to 1. */ - base?: DecimalSource; - /** The unit of the value being modified, if any. */ - unit?: string; - /** The label to use for the base value. Defaults to "Base". */ - baseText?: MaybeGetter<Renderable>; - /** Determines if numbers larger or smaller than the base should be displayed as red. */ - smallerIsBetter?: boolean; -} - -/** - * Create a JSX element that displays a modifier. - * Intended to be used with the output from {@link createSequentialModifier}. - * @param options Modifier section options. - */ -export function createModifierSection({ - title, - subtitle, - modifier, - base, - unit, - baseText, - smallerIsBetter -}: ModifierSectionOptions) { - const total = modifier.apply(base ?? 1); - return ( - <div style={{ "--unit": settings.alignUnits && unit != null ? "'" + unit + "'" : "" }}> - <h3> - {title} - {subtitle == null ? null : <span class="subtitle"> ({subtitle})</span>} - </h3> - <br /> - <div class="modifier-container"> - <span class="modifier-description">{render(baseText ?? "Base")}</span> - <span class="modifier-amount"> - {formatSmall(base ?? 1)} - {unit} - </span> - </div> - {render(modifier.description)} - <hr /> - <div class="modifier-container"> - <span class="modifier-description">Total</span> - <span - class="modifier-amount" - style={ - ( - smallerIsBetter === true - ? Decimal.gt(total, base ?? 1) - : Decimal.lt(total, base ?? 1) - ) - ? "color: var(--danger)" - : "" - } - > - {formatSmall(total)} - {unit} - </span> - </div> - </div> - ); -} diff --git a/src/game/notifications.ts b/src/game/notifications.ts deleted file mode 100644 index f130b40..0000000 --- a/src/game/notifications.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { globalBus } from "game/events"; -import { processGetter } from "util/computed"; -import { trackHover, VueFeature } from "util/vue"; -import { CSSProperties, nextTick, Ref, ref, watch } from "vue"; -import Toast from "vue-toastification"; -import "vue-toastification/dist/index.css"; - -globalBus.on("setupVue", vue => vue.use(Toast)); - -/** - * Gives a [CSSProperties](https://vuejs.org/api/utility-types.html#cssproperties) object that makes an object glow, to bring focus to it. - * Default values are for a "soft" white notif effect. - * @param color The color of the glow effect. - * @param strength The strength of the glow effect - affects its spread. - */ -export function getNotifyStyle(color = "white", strength = "8px") { - return { - transform: "scale(1.05, 1.05)", - borderColor: "rgba(0, 0, 0, 0.125)", - boxShadow: `-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${strength} ${color}`, - zIndex: 1 - } satisfies CSSProperties; -} - -/** Utility function to call {@link getNotifyStyle} with "high importance" parameters. */ -export function getHighNotifyStyle() { - return getNotifyStyle("red", "20px"); -} - -/** - * Create a boolean ref that will automatically be set based on the given condition, but also dismissed when hovering over a given element, typically the element where acting upon the notification would take place. - * @param element The element that will dismiss the notification on hover. - * @param shouldNotify A function or ref that determines if the notif should be active currently or not. - */ -export function createDismissableNotify( - element: VueFeature, - shouldNotify: Ref<boolean> | (() => boolean) -): Ref<boolean> { - const processedShouldNotify = processGetter(shouldNotify) as Ref<boolean>; - const notifying = ref(false); - nextTick(() => { - notifying.value = processedShouldNotify.value; - - watch(trackHover(element), hovering => { - if (!hovering) { - notifying.value = false; - } - }); - watch(processedShouldNotify, shouldNotify => { - notifying.value = shouldNotify; - }); - }); - return notifying; -} diff --git a/src/game/persistence.ts b/src/game/persistence.ts deleted file mode 100644 index e74d79a..0000000 --- a/src/game/persistence.ts +++ /dev/null @@ -1,373 +0,0 @@ -import { globalBus } from "game/events"; -import type { Layer } from "game/layers"; -import { addingLayers, persistentRefs } from "game/layers"; -import type { DecimalSource } from "util/bignum"; -import Decimal from "util/bignum"; -import { ProxyState } from "util/proxies"; -import type { Ref, WritableComputedRef } from "vue"; -import { computed, isReactive, isRef, ref } from "vue"; -import Formula from "./formulas/formulas"; -import player from "./player"; -import state from "./state"; - -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[PersistentState]} - */ -export const PersistentState = Symbol("PersistentState"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[DefaultValue]} - */ -export const DefaultValue = Symbol("DefaultValue"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[StackTrace]} - */ -export const StackTrace = Symbol("StackTrace"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[Deleted]} - */ -export const Deleted = Symbol("Deleted"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[NonPersistent]} - */ -export const NonPersistent = Symbol("NonPersistent"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[SaveDataPath]} - */ -export const SaveDataPath = Symbol("SaveDataPath"); -/** - * A symbol used in {@link Persistent} objects. - * @see {@link Persistent[CheckNaN]} - */ -export const CheckNaN = Symbol("CheckNaN"); - -/** - * A symbol used to flag objects that should not be checked for persistent values. - */ -export const SkipPersistence = Symbol("SkipPersistence"); - -/** - * This is a union of things that should be safely stringifiable without needing special processes or knowing what to load them in as. - * - Decimals aren't allowed because we'd need to know to parse them back. - * - DecimalSources are allowed because the string is a valid value for them - */ -export type State = - | string - | number - | boolean - | DecimalSource - | null - | undefined - | { [key: string]: State } - | { [key: number]: State }; - -/** - * A [Ref](https://vuejs.org/api/reactivity-core.html#ref) that has been augmented with properties to allow it to be saved and loaded within the player save data object. - */ -export type Persistent<T extends State = State> = Ref<T> & { - value: T; - /** A flag that this is a persistent property. Typically a circular reference. */ - [PersistentState]: Ref<T>; - /** The value the ref should be set to in a fresh save, or when updating an old save to the current version. */ - [DefaultValue]: T; - /** The stack trace of where the persistent ref was created. This is used for debugging purposes when a persistent ref is created but not placed in its layer object. */ - [StackTrace]: string; - /** - * This is a flag that can be set once the option func is evaluated, to mark that a persistent ref should _not_ be saved to the player save data object. - * @see {@link deletePersistent} for marking a persistent ref as deleted. - */ - [Deleted]: boolean; - /** - * A non-persistent ref that just reads and writes ot the persistent ref. Used for passing to other features without duplicating the persistent ref in the constructed save data object. - */ - [NonPersistent]: NonPersistent<T>; - /** - * The path this persistent appears in within the save data object. Predominantly used to ensure it's only placed in there one time. - */ - [SaveDataPath]: string[] | undefined; - /** - * Whether or not to NaN-check this ref. Should only be true on values expected to always be DecimalSources. - */ - [CheckNaN]: boolean; -}; - -export type NonPersistent<T extends State = State> = WritableComputedRef<T> & { [DefaultValue]: T }; - -function getStackTrace() { - return ( - new Error().stack - ?.split("\n") - .slice(3, 5) - .map(line => line.trim()) - .join("\n") ?? "" - ); -} - -function checkNaNAndWrite<T extends State>(persistent: Persistent<T>, value: T) { - // Decimal is smart enough to return false on things that aren't supposed to be numbers - if (Decimal.isNaN(value as DecimalSource)) { - if (!state.hasNaN) { - player.autosave = false; - state.hasNaN = true; - state.NaNPath = persistent[SaveDataPath]; - state.NaNPersistent = persistent as Persistent<DecimalSource>; - } - console.error(`Attempted to save NaN value to ${persistent[SaveDataPath]?.join(".")}`); - } - persistent[PersistentState].value = value; -} - -/** - * Create a persistent ref, which can be saved and loaded. - * All (non-deleted) persistent refs must be included somewhere within the layer object returned by that layer's options func. - * @param defaultValue The value the persistent ref should start at on fresh saves or when reset. - * @param checkNaN Whether or not to check this ref for being NaN on set. Only use on refs that should always be DecimalSources. - */ -export function persistent<T extends State>( - defaultValue: T | Ref<T>, - checkNaN = true -): Persistent<T> { - const persistentState: Ref<T> = isRef(defaultValue) - ? defaultValue - : (ref<T>(defaultValue) as Ref<T>); - - if (isRef(defaultValue)) { - defaultValue = defaultValue.value; - } - - const nonPersistent = computed({ - get() { - return persistentState.value; - }, - set(value) { - if (checkNaN) { - checkNaNAndWrite(persistent, value); - } else { - persistent[PersistentState].value = value; - } - } - }) as NonPersistent<T>; - nonPersistent[DefaultValue] = defaultValue; - - // We're trying to mock a vue ref, which means the type expects a private [RefSymbol] property that we can't access, but the actual implementation of isRef just checks for `__v_isRef` - const persistent = { - get value() { - return persistentState.value as T; - }, - set value(value: T) { - if (checkNaN) { - checkNaNAndWrite(persistent, value); - } else { - persistent[PersistentState].value = value; - } - }, - __v_isRef: true, - [PersistentState]: persistentState, - [DefaultValue]: defaultValue, - [StackTrace]: getStackTrace(), - [Deleted]: false, - [NonPersistent]: nonPersistent, - [SaveDataPath]: undefined - } as unknown as Persistent<T>; - - if (addingLayers.length === 0) { - console.warn( - "Creating a persistent ref outside of a layer. This is not officially supported", - persistent, - "\nCreated at:\n" + persistent[StackTrace] - ); - } else { - persistentRefs[addingLayers[addingLayers.length - 1]].add(persistent); - } - - return persistent; -} - -/** - * Type guard for whether an arbitrary value is a persistent ref - * @param value The value that may or may not be a persistent ref - */ -export function isPersistent(value: unknown): value is Persistent { - return value != null && typeof value === "object" && PersistentState in value; -} - -/** - * Unwraps the non-persistent ref inside of persistent refs, to be passed to other features without duplicating values in the save data object. - * @param persistent The persistent ref to unwrap, or an object to ignore all persistent refs within - */ -export function noPersist<T extends Persistent<S>, S extends State>( - persistent: T -): T[typeof NonPersistent]; -export function noPersist<T extends object>(persistent: T): T; -export function noPersist<T extends Persistent<S>, S extends State>(persistent: T | object) { - // Check for proxy state so if it's a lazy proxy we don't evaluate it's function - // Lazy proxies are not persistent refs themselves, so we know we want to wrap them - return !(ProxyState in persistent) && NonPersistent in persistent - ? persistent[NonPersistent] - : new Proxy(persistent, { - get(target, p) { - if (p === PersistentState) { - return undefined; - } - if (p === SkipPersistence) { - return true; - } - return target[p as keyof typeof target]; - }, - set(target, key, value) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (target as Record<PropertyKey, any>)[key] = value; - return true; - }, - has(target, key) { - if (key === PersistentState) { - return false; - } - if (key === SkipPersistence) { - return true; - } - return Reflect.has(target, key); - } - }); -} - -/** - * Mark a {@link Persistent} as deleted, so it won't be saved and loaded. - * Since persistent refs must be created during a layer's options func, features can not create persistent refs after evaluating their own options funcs. - * As a result, it must create any persistent refs it _might_ need. - * This function can then be called after the options func is evaluated to mark the persistent ref to not be saved or loaded. - */ -export function deletePersistent(persistent: Persistent) { - if (addingLayers.length === 0) { - console.warn("Deleting a persistent ref outside of a layer. Ignoring...", persistent); - } else { - persistentRefs[addingLayers[addingLayers.length - 1]].delete(persistent); - } - persistent[Deleted] = true; -} - -globalBus.on("addLayer", (layer: Layer, saveData: Record<string, unknown>) => { - const features: { type: typeof Symbol }[] = []; - const handleObject = (obj: Record<string, unknown>, path: string[] = []): boolean => { - let foundPersistent = false; - Object.keys(obj).forEach(key => { - let value = obj[key]; - if (value != null && typeof value === "object") { - if (SkipPersistence in value && value[SkipPersistence] === true) { - return; - } - if (ProxyState in value) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - value = (value as any)[ProxyState] as object; - } - if (isPersistent(value)) { - foundPersistent = true; - if (value[Deleted]) { - console.warn( - "Deleted persistent ref present in returned object. Ignoring...", - value, - "\nCreated at:\n" + value[StackTrace] - ); - return; - } - persistentRefs[layer.id].delete(value); - - // Handle SaveDataPath - const newPath = [layer.id, ...path, key]; - if ( - value[SaveDataPath] != null && - JSON.stringify(newPath) !== JSON.stringify(value[SaveDataPath]) - ) { - console.error( - `Persistent ref is being saved to \`${newPath.join( - "." - )}\` when it's already present at \`${value[SaveDataPath].join( - "." - )}\`.`, - "This can cause unexpected behavior when loading saves between updates." - ); - } - value[SaveDataPath] = newPath; - - // Construct save path if it doesn't exist - const persistentState = path.reduce<Record<string, unknown>>((acc, curr) => { - if (!(curr in acc)) { - acc[curr] = {}; - } - return acc[curr] as Record<string, unknown>; - }, saveData); - - // Cache currently saved value - const savedValue = persistentState[key]; - // Add ref to save data - persistentState[key] = value[PersistentState]; - // Load previously saved value - if (isReactive(persistentState)) { - if (savedValue != null) { - persistentState[key] = savedValue; - } else { - persistentState[key] = value[DefaultValue]; - } - } else { - if (savedValue != null) { - (persistentState[key] as Ref<unknown>).value = savedValue; - } else { - (persistentState[key] as Ref<unknown>).value = value[DefaultValue]; - } - } - } else if ( - !(value instanceof Decimal) && - !(value instanceof Formula) && - !isRef(value) && - // eslint-disable-next-line @typescript-eslint/no-explicit-any - !features.includes(value as { type: typeof Symbol }) - ) { - if (typeof (value as { type: typeof Symbol }).type === "symbol") { - features.push(value as { type: typeof Symbol }); - } - - // Continue traversing - const foundPersistentInChild = handleObject(value as Record<string, unknown>, [ - ...path, - key - ]); - - // Show warning for persistent values inside arrays - // TODO handle arrays better - if (foundPersistentInChild) { - if (Array.isArray(value) && !Array.isArray(obj)) { - console.warn( - "Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.", - ProxyState in obj - ? (obj as Record<PropertyKey, unknown>)[ProxyState] - : obj, - key - ); - } else { - foundPersistent = true; - } - } - } - } - }); - return foundPersistent; - }; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - handleObject((layer as any)[ProxyState]); - persistentRefs[layer.id].forEach(persistent => { - if (persistent[Deleted]) { - return; - } - console.error( - `Created persistent ref in "${layer.id}" without registering it to the layer!`, - "Make sure to include everything persistent in the returned object.\n\nCreated at:\n" + - persistent[StackTrace] - ); - }); - persistentRefs[layer.id].clear(); -}); diff --git a/src/game/player.ts b/src/game/player.ts deleted file mode 100644 index e447656..0000000 --- a/src/game/player.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type { Ref } from "vue"; -import { reactive, unref } from "vue"; - -/** The player save data object. */ -export interface Player { - /** The ID of this save. */ - id: string; - /** A multiplier for time passing. Set to 0 when the game is paused. */ - devSpeed: number | null; - /** The display name of this save. */ - name: string; - /** The open tabs. */ - tabs: Array<string>; - /** The current time this save was last opened at, in ms since the unix epoch. */ - time: number; - /** Whether or not to automatically save every couple of seconds and on tab close. */ - autosave: boolean; - /** Whether or not to apply offline time when loading this save. */ - offlineProd: boolean; - /** How much offline time has been accumulated and not yet processed. */ - offlineTime: number | null; - /** How long, in ms, this game has been played. */ - timePlayed: number; - /** Whether or not to continue playing after {@link data/projEntry.hasWon} is true. */ - keepGoing: boolean; - /** The ID of this project, to make sure saves aren't imported into the wrong project. */ - modID: string; - /** The version of the project this save was created by. Used for upgrading saves for new versions. */ - modVersion: string; - /** A dictionary of layer save data. */ - layers: Record<string, LayerData<unknown>>; -} - -/** A layer's save data. Automatically unwraps refs. */ -export type LayerData<T> = { - [P in keyof T]?: T[P] extends (infer U)[] - ? Record<string, LayerData<U>> - : T[P] extends Record<string, never> - ? never - : T[P] extends Ref<infer S> - ? S - : T[P] extends object - ? LayerData<T[P]> - : T[P]; -}; - -const player = reactive<Player>({ - id: "", - devSpeed: null, - name: "", - tabs: [], - time: -1, - autosave: true, - offlineProd: true, - offlineTime: null, - timePlayed: 0, - keepGoing: false, - modID: "", - modVersion: "", - layers: {} -}); - -export default window.player = player; - -/** Convert a player save data object into a JSON string. Unwraps refs. */ -export function stringifySave(player: Player): string { - // Convert undefineds into nulls for proper parsing - return JSON.stringify(player, (key, value) => unref(value) ?? null); -} - -declare global { - /** Augment the window object so the player can be accessed from the console. */ - interface Window { - player: Player; - } -} diff --git a/src/game/requirements.tsx b/src/game/requirements.tsx deleted file mode 100644 index eda7d2f..0000000 --- a/src/game/requirements.tsx +++ /dev/null @@ -1,385 +0,0 @@ -import { isVisible, Visibility } from "features/feature"; -import { displayResource, Resource } from "features/resources/resource"; -import Decimal, { DecimalSource } from "util/bignum"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy } from "util/proxies"; -import { joinJSX, Renderable } from "util/vue"; -import { computed, MaybeRef, MaybeRefOrGetter, unref } from "vue"; -import Formula, { calculateCost, calculateMaxAffordable } from "./formulas/formulas"; -import type { GenericFormula, InvertibleIntegralFormula } from "./formulas/types"; -import { DefaultValue, Persistent } from "./persistence"; - -/** - * An object that can be used to describe a requirement to perform some purchase or other action. - * @see {@link createCostRequirement} - */ -export interface Requirement { - /** - * The display for this specific requirement. This is used for displays multiple requirements condensed. Required if {@link visibility} can be {@link Visibility.Visible}. - */ - partialDisplay?: (amount?: DecimalSource) => Renderable; - /** - * The display for this specific requirement. Required if {@link visibility} can be {@link Visibility.Visible}. - */ - display?: (amount?: DecimalSource) => Renderable; - /** - * Whether or not this requirement should be displayed in Vue Features. {@link displayRequirements} will respect this property. - */ - visibility: MaybeRef<Visibility | boolean>; - /** - * Whether or not this requirement has been met. - */ - requirementMet: MaybeRef<DecimalSource | boolean>; - /** - * Whether or not this requirement will need to affect the game state when whatever is using this requirement gets triggered. - */ - requiresPay: MaybeRef<boolean>; - /** - * Whether or not this requirement can have multiple levels of requirements that can be met at once. Requirement is assumed to not have multiple levels if this property not present. - */ - canMaximize?: MaybeRef<boolean>; - /** - * Perform any effects to the game state that should happen when the requirement gets triggered. - * @param amount The amount of levels of requirements to pay for. - */ - pay?: (amount?: DecimalSource) => void; -} - -/** - * Utility type for accepting 1 or more {@link Requirement}s. - */ -export type Requirements = Requirement | Requirement[]; - -/** An object that configures a {@link Requirement} based on a resource cost. */ -export interface CostRequirementOptions { - /** - * The resource that will be checked for meeting the {@link cost}. - */ - resource: Resource; - /** - * The amount of {@link resource} that must be met for this requirement. You can pass a formula, in which case maximizing will work out of the box (assuming its invertible and, for more accurate calculations, its integral is invertible). If you don't pass a formula then you can still support maximizing by passing a custom {@link pay} function. - */ - cost: MaybeRefOrGetter<DecimalSource> | GenericFormula; - /** - * Pass-through to {@link Requirement.visibility}. - */ - visibility?: MaybeRefOrGetter<Visibility.Visible | Visibility.None | boolean>; - /** - * Pass-through to {@link Requirement["requiresPay"]}. If not set to false, the default {@link pay} function will remove {@link cost} from {@link resource}. - */ - requiresPay?: MaybeRefOrGetter<boolean>; - /** - * When calculating multiple levels to be handled at once, whether it should consider resources used for each level as spent. Setting this to false causes calculations to be faster with larger numbers and supports more math functions. - * @see {Formula} - */ - cumulativeCost?: MaybeRefOrGetter<boolean>; - /** - * Upper limit on levels that can be performed at once. Defaults to 1. - */ - maxBulkAmount?: MaybeRefOrGetter<DecimalSource>; - /** - * When calculating requirement for multiple levels, how many should be directly summed for increase accuracy. High numbers can cause lag. Defaults to 10 if cumulative cost, 0 otherwise. - */ - directSum?: MaybeRefOrGetter<number>; - /** - * Pass-through to {@link Requirement.pay}. May be required for maximizing support. - * @see {@link cost} for restrictions on maximizing support. - */ - pay?: (amount?: DecimalSource) => void; -} - -export interface CostRequirement extends Requirement { - /** - * The resource that will be checked for meeting the {@link cost}. - */ - resource: Resource; - /** - * The amount of {@link resource} that must be met for this requirement. You can pass a formula, in which case maximizing will work out of the box (assuming its invertible and, for more accurate calculations, its integral is invertible). If you don't pass a formula then you can still support maximizing by passing a custom {@link pay} function. - */ - cost: MaybeRef<DecimalSource> | GenericFormula; - /** - * When calculating multiple levels to be handled at once, whether it should consider resources used for each level as spent. Setting this to false causes calculations to be faster with larger numbers and supports more math functions. - * @see {Formula} - */ - cumulativeCost: MaybeRef<boolean>; - /** - * Upper limit on levels that can be performed at once. Defaults to 1. - */ - maxBulkAmount?: MaybeRef<DecimalSource>; - /** - * When calculating requirement for multiple levels, how many should be directly summed for increase accuracy. High numbers can cause lag. Defaults to 10 if cumulative cost, 0 otherwise. - */ - directSum?: MaybeRef<number>; - /** - * Pass-through to {@link Requirement.pay}. May be required for maximizing support. - * @see {@link cost} for restrictions on maximizing support. - */ - pay?: (amount?: DecimalSource) => void; -} - -/** - * Lazily creates a requirement with the given options, that is based on meeting an amount of a resource. - * @param optionsFunc Cost requirement options. - */ -export function createCostRequirement<T extends CostRequirementOptions>(optionsFunc: () => T) { - return createLazyProxy(feature => { - const options = optionsFunc.call(feature); - const { - visibility, - cost, - resource, - requiresPay, - cumulativeCost, - maxBulkAmount, - directSum, - pay - } = options; - - const requirement = { - resource, - visibility: processGetter(visibility) ?? Visibility.Visible, - cost: processGetter(cost), - requiresPay: processGetter(requiresPay) ?? true, - cumulativeCost: processGetter(cumulativeCost) ?? true, - maxBulkAmount: processGetter(maxBulkAmount) ?? 1, - directSum: processGetter(directSum), - partialDisplay: (amount?: DecimalSource) => ( - <span - style={ - Decimal.gt(unref(requirement.requirementMet), 0) - ? "" - : "color: var(--danger)" - } - > - {displayResource( - resource, - requirement.cost instanceof Formula - ? calculateCost( - requirement.cost as InvertibleIntegralFormula, - amount ?? 1, - unref(requirement.cumulativeCost), - unref(requirement.directSum) - ) - : unref(requirement.cost as MaybeRef<DecimalSource>) - )}{" "} - {resource.displayName} - </span> - ), - display: (amount?: DecimalSource) => ( - <div> - {unref(requirement.requiresPay as MaybeRef<boolean>) ? "Costs: " : "Requires: "} - {displayResource( - resource, - requirement.cost instanceof Formula - ? calculateCost( - requirement.cost as InvertibleIntegralFormula, - amount ?? 1, - unref(requirement.cumulativeCost), - unref(requirement.directSum) - ) - : unref(requirement.cost as MaybeRef<DecimalSource>) - )}{" "} - {resource.displayName} - </div> - ), - canMaximize: computed(() => { - if (!(requirement.cost instanceof Formula)) { - return false; - } - const maxBulkAmount = unref(requirement.maxBulkAmount); - if (Decimal.lte(maxBulkAmount, 1)) { - return false; - } - const cumulativeCost = unref(requirement.cumulativeCost); - const directSum = unref(requirement.directSum) ?? (cumulativeCost ? 10 : 0); - if (Decimal.lte(maxBulkAmount, directSum)) { - return true; - } - if (!requirement.cost.isInvertible()) { - return false; - } - if (cumulativeCost === true && !requirement.cost.isIntegrable()) { - return false; - } - return true; - }), - requirementMet: - cost instanceof Formula - ? calculateMaxAffordable( - cost, - resource, - cumulativeCost ?? true, - directSum, - maxBulkAmount - ) - : computed( - (): DecimalSource => - Decimal.gte( - resource.value, - unref(requirement.cost as MaybeRef<DecimalSource>) - ) - ? 1 - : 0 - ), - pay: - pay ?? - function (amount?: DecimalSource) { - const cost = - requirement.cost instanceof Formula - ? calculateCost( - requirement.cost, - amount ?? 1, - unref(requirement.cumulativeCost), - unref(requirement.directSum) - ) - : unref(requirement.cost as MaybeRef<DecimalSource>); - resource.value = Decimal.sub(resource.value, cost).max(0); - } - } satisfies CostRequirement; - - return requirement; - }); -} - -/** - * Utility function for creating a requirement that a specified vue feature is visible - * @param visibility The visibility ref to check - */ -export function createVisibilityRequirement( - visibility: MaybeRef<Visibility | boolean> -): Requirement { - return createLazyProxy(() => ({ - requirementMet: computed(() => isVisible(visibility)), - visibility: Visibility.None, - requiresPay: false - })); -} - -/** - * Creates a requirement based on a true/false value - * @param requirement The boolean requirement to use - * @param display How to display this requirement to the user - */ -export function createBooleanRequirement( - requirement: MaybeRefOrGetter<boolean>, - display?: MaybeGetter<Renderable> -): Requirement { - return createLazyProxy(() => { - const partialDisplay = - display == null ? undefined : typeof display === "function" ? display : () => display; - return { - requirementMet: processGetter(requirement), - partialDisplay, - display: display == null ? undefined : () => <>Req: {partialDisplay}</>, - visibility: display == null ? Visibility.None : Visibility.Visible, - requiresPay: false - }; - }); -} - -/** - * Utility for checking if 1+ requirements are all met - * @param requirements The 1+ requirements to check - */ -export function requirementsMet(requirements: Requirements): boolean { - if (Array.isArray(requirements)) { - return requirements.every(requirementsMet); - } - const reqsMet = unref(requirements.requirementMet); - return typeof reqsMet === "boolean" ? reqsMet : Decimal.gt(reqsMet, 0); -} - -/** - * Calculates the maximum number of levels that could be acquired with the current requirement states. True/false requirements will be counted as Infinity or 0. - * @param requirements The 1+ requirements to check - */ -export function maxRequirementsMet(requirements: Requirements): DecimalSource { - if (Array.isArray(requirements)) { - return requirements.map(maxRequirementsMet).reduce(Decimal.min); - } - const reqsMet = unref(requirements.requirementMet); - if (typeof reqsMet === "boolean") { - return reqsMet ? Decimal.dInf : 0; - } else if (Decimal.gt(reqsMet, 1) && unref(requirements.canMaximize) !== true) { - return 1; - } - return reqsMet; -} - -/** - * Utility function for display 1+ requirements compactly. - * @param requirements The 1+ requirements to display - * @param amount The amount of levels earned to be displayed - */ -export function displayRequirements(requirements: Requirements, amount: DecimalSource = 1) { - if (Array.isArray(requirements)) { - requirements = requirements.filter(r => isVisible(r.visibility ?? true)); - if (requirements.length === 1) { - requirements = requirements[0]; - } - } - if (Array.isArray(requirements)) { - requirements = requirements.filter(r => "partialDisplay" in r); - const withCosts = requirements.filter(r => unref(r.requiresPay)); - const withoutCosts = requirements.filter(r => !unref(r.requiresPay)); - return ( - <> - {withCosts.length > 0 ? ( - <div> - Costs:{" "} - {joinJSX( - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - withCosts.map(r => r.partialDisplay!(amount)), - <>, </> - )} - </div> - ) : null} - {withoutCosts.length > 0 ? ( - <div> - Requires:{" "} - {joinJSX( - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - withoutCosts.map(r => r.partialDisplay!(amount)), - <>, </> - )} - </div> - ) : null} - </> - ); - } - return requirements.display?.() ?? <></>; -} - -/** - * Utility function for paying the costs for 1+ requirements - * @param requirements The 1+ requirements to pay - * @param amount How many levels to pay for - */ -export function payRequirements(requirements: Requirements, amount: DecimalSource = 1) { - if (Array.isArray(requirements)) { - requirements.filter(r => unref(r.requiresPay)).forEach(r => r.pay?.(amount)); - } else if (unref(requirements.requiresPay)) { - requirements.pay?.(amount); - } -} - -export function payByDivision(this: CostRequirement, amount?: DecimalSource) { - const cost = - this.cost instanceof Formula - ? calculateCost( - this.cost, - amount ?? 1, - unref(this.cumulativeCost as MaybeRef<boolean> | undefined) ?? true - ) - : unref(this.cost as MaybeRef<DecimalSource>); - this.resource.value = Decimal.div(this.resource.value, cost); -} - -export function payByReset(overrideDefaultValue?: DecimalSource) { - return function (this: CostRequirement) { - this.resource.value = - overrideDefaultValue ?? - (this.resource as Resource & Persistent<DecimalSource>)[DefaultValue] ?? - 0; - }; -} diff --git a/src/game/settings.ts b/src/game/settings.ts deleted file mode 100644 index 6c94271..0000000 --- a/src/game/settings.ts +++ /dev/null @@ -1,122 +0,0 @@ -import projInfo from "data/projInfo.json"; -import { Themes } from "data/themes"; -import { globalBus } from "game/events"; -import LZString from "lz-string"; -import { MaybeGetter } from "util/computed"; -import { decodeSave, hardReset } from "util/save"; -import { Renderable } from "util/vue"; -import { reactive, watch } from "vue"; - -/** The player's settings object. */ -export interface Settings { - /** The ID of the active save. */ - active: string; - /** The IDs of all created saves. */ - saves: string[]; - /** Whether or not to show the current ticks per second in the lower left corner of the page. */ - showTPS: boolean; - /** The current theme to display the game in. */ - theme: Themes; - /** Whether or not to cap the project at 20 ticks per second. */ - unthrottled: boolean; - /** Whether to align modifiers to the unit. */ - alignUnits: boolean; - /** Whether or not to show a video game health warning after playing excessively. */ - showHealthWarning: boolean; -} - -const state = reactive<Partial<Settings>>({ - active: "", - saves: [], - showTPS: true, - theme: Themes.Nordic, - unthrottled: false, - alignUnits: false, - showHealthWarning: true -}); - -watch( - state, - state => { - const stringifiedSettings = LZString.compressToUTF16(JSON.stringify(state)); - localStorage.setItem(projInfo.id, stringifiedSettings); - }, - { deep: true } -); - -declare global { - /** - * Augment the window object so the settings, and hard resetting the settings, can be accessed from the console. - */ - interface Window { - settings: Settings; - hardResetSettings: VoidFunction; - } -} -/** - * The player settings object. Stores data that persists across all saves. - * Automatically saved to localStorage whenever changed. - */ -export default window.settings = state as Settings; -/** A function that erases all player settings, including all saves. */ -export const hardResetSettings = (window.hardResetSettings = () => { - // Only partial because of any properties that are only added during the loadSettings event. - const settings: Partial<Settings> = { - active: "", - saves: [], - showTPS: true, - theme: Themes.Nordic, - unthrottled: false, - alignUnits: false, - showHealthWarning: true - }; - globalBus.emit("loadSettings", settings); - Object.assign(state, settings); - hardReset(); -}); - -/** - * Loads the player settings from localStorage. - * Calls the {@link game/events.GlobalEvents.loadSettings} event for custom properties to be included. - * Custom properties should be added by the file they relate to, so they won't be included if the file is tree shaken away. - * Custom properties should also register the field to modify said setting using {@link registerSettingField}. - */ -export function loadSettings(): void { - try { - let item: string | null = localStorage.getItem(projInfo.id); - if (item != null && item !== "") { - item = decodeSave(item); - if (item == null) { - console.warn("Unable to determine settings encoding", item); - return; - } - const settings = JSON.parse(item); - if (typeof settings === "object") { - Object.assign(state, settings); - } - } - globalBus.emit("loadSettings", state); - // eslint-disable-next-line no-empty - } catch {} -} - -/** A list of fields to append to the settings modal. */ -export const settingFields: MaybeGetter<Renderable>[] = reactive([]); -/** Register a field to be displayed in the settings modal. */ -export function registerSettingField(component: MaybeGetter<Renderable>) { - settingFields.push(component); -} - -/** A list of components to show in the info modal. */ -export const infoComponents: MaybeGetter<Renderable>[] = reactive([]); -/** Register a component to be displayed in the info modal. */ -export function registerInfoComponent(component: MaybeGetter<Renderable>) { - infoComponents.push(component); -} - -/** A list of components to add to the root of the page. */ -export const gameComponents: MaybeGetter<Renderable>[] = reactive([]); -/** Register a component to be displayed at the root of the page. */ -export function registerGameComponent(component: MaybeGetter<Renderable>) { - gameComponents.push(component); -} diff --git a/src/game/state.ts b/src/game/state.ts deleted file mode 100644 index 95c17bb..0000000 --- a/src/game/state.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type { DecimalSource } from "util/bignum"; -import { reactive, shallowReactive } from "vue"; -import type { Persistent } from "./persistence"; - -/** An object of global data that is not persistent. */ -export interface Transient { - /** A list of the duration, in ms, of the last 10 game ticks. Used for calculating TPS. */ - lastTenTicks: number[]; - /** A list of bools represnting which of the last few hours had mouse activity. */ - mouseActivity: boolean[]; - /** Whether or not a NaN value has been detected and undealt with. */ - hasNaN: boolean; - /** The location within the player save data object of the NaN value. */ - NaNPath?: string[]; - /** The ref that was being set to NaN. */ - NaNPersistent?: Persistent<DecimalSource>; - /** List of errors that have occurred, to show the user. */ - errors: Error[]; -} - -declare global { - /** Augment the window object so the transient state can be accessed from the console. */ - interface Window { - state: Transient; - } -} -/** The global transient state object. */ -export default window.state = shallowReactive<Transient>({ - lastTenTicks: [], - mouseActivity: [false], - hasNaN: false, - NaNPath: [], - errors: reactive([]) -}); diff --git a/src/lib/break_eternity.ts b/src/lib/break_eternity.ts deleted file mode 100644 index ec0203b..0000000 --- a/src/lib/break_eternity.ts +++ /dev/null @@ -1,2991 +0,0 @@ -/* eslint-disable @typescript-eslint/no-this-alias */ -/* eslint-disable @typescript-eslint/no-loss-of-precision */ -import { LRUCache } from "../lib/lru-cache"; - -export type CompareResult = -1 | 0 | 1; - -const MAX_SIGNIFICANT_DIGITS = 17; //Maximum number of digits of precision to assume in Number - -const EXP_LIMIT = 9e15; //If we're ABOVE this value, increase a layer. (9e15 is close to the largest integer that can fit in a Number.) - -const LAYER_DOWN: number = Math.log10(9e15); - -const FIRST_NEG_LAYER = 1 / 9e15; //At layer 0, smaller non-zero numbers than this become layer 1 numbers with negative mag. After that the pattern continues as normal. - -const NUMBER_EXP_MAX = 308; //The largest exponent that can appear in a Number, though not all mantissas are valid here. - -const NUMBER_EXP_MIN = -324; //The smallest exponent that can appear in a Number, though not all mantissas are valid here. - -const MAX_ES_IN_A_ROW = 5; //For default toString behaviour, when to swap from eee... to (e^n) syntax. - -const DEFAULT_FROM_STRING_CACHE_SIZE = (1 << 10) - 1; // The default size of the LRU cache used to cache Decimal.fromString. - -const IGNORE_COMMAS = true; -const COMMAS_ARE_DECIMAL_POINTS = false; - -const powerOf10 = (function () { - // We need this lookup table because Math.pow(10, exponent) - // when exponent's absolute value is large is slightly inaccurate. - // You can fix it with the power of math... or just make a lookup table. - // Faster AND simpler - const powersOf10: number[] = []; - - for (let i = NUMBER_EXP_MIN + 1; i <= NUMBER_EXP_MAX; i++) { - powersOf10.push(Number("1e" + i)); - } - - const indexOf0InPowersOf10 = 323; - return function (power: number) { - return powersOf10[power + indexOf0InPowersOf10]; - }; -})(); - -//tetration/slog to real height stuff -//background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22 -const critical_headers = [2, Math.E, 3, 4, 5, 6, 7, 8, 9, 10]; -const critical_tetr_values = [ - [ - // Base 2 (using http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html ) - 1, 1.0891180521811202527, 1.1789767925673958433, 1.2701455431742086633, - 1.3632090180450091941, 1.4587818160364217007, 1.5575237916251418333, 1.6601571006859253673, - 1.7674858188369780435, 1.8804192098842727359, 2 - ], - [ - // Base E (using http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html ) - 1, //0.0 - 1.1121114330934078681, //0.1 - 1.2310389249316089299, //0.2 - 1.3583836963111376089, //0.3 - 1.4960519303993531879, //0.4 - 1.646354233751194581, //0.5 - 1.8121385357018724464, //0.6 - 1.9969713246183068478, //0.7 - 2.205389554552754433, //0.8 - 2.4432574483385252544, //0.9 - Math.E //1.0 - ], - [ - // Base 3 - 1, 1.1187738849693603, 1.2464963939368214, 1.38527004705667, 1.5376664685821402, - 1.7068895236551784, 1.897001227148399, 2.1132403089001035, 2.362480153784171, - 2.6539010333870774, 3 - ], - [ - // Base 4 - 1, 1.1367350847096405, 1.2889510672956703, 1.4606478703324786, 1.6570295196661111, - 1.8850062585672889, 2.1539465047453485, 2.476829779693097, 2.872061932789197, - 3.3664204535587183, 4 - ], - [ - // Base 5 - 1, 1.1494592900767588, 1.319708228183931, 1.5166291280087583, 1.748171114438024, - 2.0253263297298045, 2.3636668498288547, 2.7858359149579424, 3.3257226212448145, - 4.035730287722532, 5 - ], - [ - // Base 6 - 1, 1.159225940787673, 1.343712473580932, 1.5611293155111927, 1.8221199554561318, - 2.14183924486326, 2.542468319282638, 3.0574682501653316, 3.7390572020926873, - 4.6719550537360774, 6 - ], - [ - // Base 7 - 1, 1.1670905356972596, 1.3632807444991446, 1.5979222279405536, 1.8842640123816674, - 2.2416069644878687, 2.69893426559423, 3.3012632110403577, 4.121250340630164, - 5.281493033448316, 7 - ], - [ - // Base 8 - 1, 1.1736630594087796, 1.379783782386201, 1.6292821855668218, 1.9378971836180754, - 2.3289975651071977, 2.8384347394720835, 3.5232708454565906, 4.478242031114584, - 5.868592169644505, 8 - ], - [ - // Base 9 - 1, 1.1793017514670474, 1.394054150657457, 1.65664127441059, 1.985170999970283, - 2.4069682290577457, 2.9647310119960752, 3.7278665320924946, 4.814462547283592, - 6.436522247411611, 9 - ], - [ - // Base 10 (using http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html ) - 1, 1.1840100246247336579, 1.4061375836156954169, 1.6802272208863963918, - 2.026757028388618927, 2.477005606344964758, 3.0805252717554819987, 3.9191964192627283911, - 5.135152840833186423, 6.9899611795347148455, 10 - ] -]; -const critical_slog_values = [ - [ - // Base 2 - -1, -0.9194161097107025, -0.8335625019330468, -0.7425599821143978, -0.6466611521029437, - -0.5462617907227869, -0.4419033816638769, -0.3342645487554494, -0.224140440909962, - -0.11241087890006762, 0 - ], - [ - // Base E - -1, //0.0 - -0.90603157029014, //0.1 - -0.80786507256596, //0.2 - -0.7064666939634, //0.3 - -0.60294836853664, //0.4 - -0.49849837513117, //0.5 - -0.39430303318768, //0.6 - -0.29147201034755, //0.7 - -0.19097820800866, //0.8 - -0.09361896280296, //0.9 - 0 //1.0 - ], - [ - // Base 3 - -1, -0.9021579584316141, -0.8005762598234203, -0.6964780623319391, -0.5911906810998454, - -0.486050182576545, -0.3823089430815083, -0.28106046722897615, -0.1831906535795894, - -0.08935809204418144, 0 - ], - [ - // Base 4 - -1, -0.8917227442365535, -0.781258746326964, -0.6705130326902455, -0.5612813129406509, - -0.4551067709033134, -0.35319256652135966, -0.2563741554088552, -0.1651412821106526, - -0.0796919581982668, 0 - ], - [ - // Base 5 - -1, -0.8843387974366064, -0.7678744063886243, -0.6529563724510552, -0.5415870994657841, - -0.4352842206588936, -0.33504449124791424, -0.24138853420685147, -0.15445285440944467, - -0.07409659641336663, 0 - ], - [ - // Base 6 - -1, -0.8786709358426346, -0.7577735191184886, -0.6399546189952064, -0.527284921869926, - -0.4211627631006314, -0.3223479611761232, -0.23107655627789858, -0.1472057700818259, - -0.07035171210706326, 0 - ], - [ - // Base 7 - -1, -0.8740862815291583, -0.7497032990976209, -0.6297119746181752, -0.5161838335958787, - -0.41036238255751956, -0.31277212146489963, -0.2233976621705518, -0.1418697367979619, - -0.06762117662323441, 0 - ], - [ - // Base 8 - -1, -0.8702632331800649, -0.7430366914122081, -0.6213373075161548, -0.5072025698095242, - -0.40171437727184167, -0.30517930701410456, -0.21736343968190863, -0.137710238299109, - -0.06550774483471955, 0 - ], - [ - // Base 9 - -1, -0.8670016295947213, -0.7373984232432306, -0.6143173985094293, -0.49973884395492807, - -0.394584953527678, -0.2989649949848695, -0.21245647317021688, -0.13434688362382652, - -0.0638072667348083, 0 - ], - [ - // Base 10 - -1, -0.8641642839543857, -0.732534623168535, -0.6083127477059322, -0.4934049257184696, - -0.3885773075899922, -0.29376029055315767, -0.2083678561173622, -0.13155653399373268, - -0.062401588652553186, 0 - ] -]; - -let D = function D(value: DecimalSource): Readonly<Decimal> { - return Decimal.fromValue_noAlloc(value); -}; - -let FC = function (sign: number, layer: number, mag: number) { - return Decimal.fromComponents(sign, layer, mag); -}; - -let FC_NN = function FC_NN(sign: number, layer: number, mag: number) { - return Decimal.fromComponents_noNormalize(sign, layer, mag); -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -let ME = function ME(mantissa: number, exponent: number) { - return Decimal.fromMantissaExponent(mantissa, exponent); -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -let ME_NN = function ME_NN(mantissa: number, exponent: number) { - return Decimal.fromMantissaExponent_noNormalize(mantissa, exponent); -}; - -const decimalPlaces = function decimalPlaces(value: number, places: number): number { - const len = places + 1; - const numDigits = Math.ceil(Math.log10(Math.abs(value))); - const rounded = - Math.round(value * Math.pow(10, len - numDigits)) * Math.pow(10, numDigits - len); - return parseFloat(rounded.toFixed(Math.max(len - numDigits, 0))); -}; - -const f_maglog10 = function (n: number) { - return Math.sign(n) * Math.log10(Math.abs(n)); -}; - -//from HyperCalc source code -const f_gamma = function (n: number) { - if (!isFinite(n)) { - return n; - } - if (n < -50) { - if (n === Math.trunc(n)) { - return Number.NEGATIVE_INFINITY; - } - return 0; - } - - let scal1 = 1; - while (n < 10) { - scal1 = scal1 * n; - ++n; - } - - n -= 1; - let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI) - l = l + (n + 0.5) * Math.log(n); - l = l - n; - const n2 = n * n; - let np = n; - l = l + 1 / (12 * np); - np = np * n2; - l = l + 1 / (360 * np); - np = np * n2; - l = l + 1 / (1260 * np); - np = np * n2; - l = l + 1 / (1680 * np); - np = np * n2; - l = l + 1 / (1188 * np); - np = np * n2; - l = l + 691 / (360360 * np); - np = np * n2; - l = l + 7 / (1092 * np); - np = np * n2; - l = l + 3617 / (122400 * np); - - return Math.exp(l) / scal1; -}; - -const _twopi = 6.2831853071795864769252842; // 2*pi -const _EXPN1 = 0.36787944117144232159553; // exp(-1) -const OMEGA = 0.56714329040978387299997; // W(1, 0) -//from https://math.stackexchange.com/a/465183 -// The evaluation can become inaccurate very close to the branch point -const f_lambertw = function (z: number, tol = 1e-10): number { - let w; - let wn; - - if (!Number.isFinite(z)) { - return z; - } - if (z === 0) { - return z; - } - if (z === 1) { - return OMEGA; - } - - if (z < 10) { - w = 0; - } else { - w = Math.log(z) - Math.log(Math.log(z)); - } - - for (let i = 0; i < 100; ++i) { - wn = (z * Math.exp(-w) + w * w) / (w + 1); - if (Math.abs(wn - w) < tol * Math.abs(wn)) { - return wn; - } else { - w = wn; - } - } - - throw Error(`Iteration failed to converge: ${z.toString()}`); - //return Number.NaN; -}; - -//from https://github.com/scipy/scipy/blob/8dba340293fe20e62e173bdf2c10ae208286692f/scipy/special/lambertw.pxd -// The evaluation can become inaccurate very close to the branch point -// at ``-1/e``. In some corner cases, `lambertw` might currently -// fail to converge, or can end up on the wrong branch. -function d_lambertw(z: Decimal, tol = 1e-10): Decimal { - let w; - let ew, wewz, wn; - - if (!Number.isFinite(z.mag)) { - return z; - } - if (z.eq(Decimal.dZero)) { - return z; - } - if (z.eq(Decimal.dOne)) { - //Split out this case because the asymptotic series blows up - return Decimal.fromNumber(OMEGA); - } - - //Get an initial guess for Halley's method - w = Decimal.ln(z); - - //Halley's method; see 5.9 in [1] - - for (let i = 0; i < 100; ++i) { - ew = w.neg().exp(); - wewz = w.sub(z.mul(ew)); - wn = w.sub(wewz.div(w.add(1).sub(w.add(2).mul(wewz).div(Decimal.mul(2, w).add(2))))); - if (Decimal.abs(wn.sub(w)).lt(Decimal.abs(wn).mul(tol))) { - return wn; - } else { - w = wn; - } - } - - throw Error(`Iteration failed to converge: ${z.toString()}`); - //return Decimal.dNaN; -} - -export type DecimalSource = Decimal | number | string; - -/** - * The Decimal's value is simply mantissa * 10^exponent. - */ -export default class Decimal { - public static dZero: Decimal; - public static dOne: Decimal; - public static dNegOne: Decimal; - public static dTwo: Decimal; - public static dTen: Decimal; - public static dNaN: Decimal; - public static dInf: Decimal; - public static dNegInf: Decimal; - public static dNumberMax: Decimal; - public static dNumberMin: Decimal; - - private static fromStringCache = new LRUCache<string, Decimal>(DEFAULT_FROM_STRING_CACHE_SIZE); - - public sign = 0; - public mag = 0; - public layer = 0; - - constructor(value?: DecimalSource) { - if (value instanceof Decimal) { - this.fromDecimal(value); - } else if (typeof value === "number") { - this.fromNumber(value); - } else if (typeof value === "string") { - this.fromString(value); - } - } - - get m(): number { - if (this.sign === 0) { - return 0; - } else if (this.layer === 0) { - const exp = Math.floor(Math.log10(this.mag)); - //handle special case 5e-324 - let man; - if (this.mag === 5e-324) { - man = 5; - } else { - man = this.mag / powerOf10(exp); - } - return this.sign * man; - } else if (this.layer === 1) { - const residue = this.mag - Math.floor(this.mag); - return this.sign * Math.pow(10, residue); - } else { - //mantissa stops being relevant past 1e9e15 / ee15.954 - return this.sign; - } - } - - set m(value: number) { - if (this.layer <= 2) { - this.fromMantissaExponent(value, this.e); - } else { - //don't even pretend mantissa is meaningful - this.sign = Math.sign(value); - if (this.sign === 0) { - this.layer = 0; - this.exponent = 0; - } - } - } - - get e(): number { - if (this.sign === 0) { - return 0; - } else if (this.layer === 0) { - return Math.floor(Math.log10(this.mag)); - } else if (this.layer === 1) { - return Math.floor(this.mag); - } else if (this.layer === 2) { - return Math.floor(Math.sign(this.mag) * Math.pow(10, Math.abs(this.mag))); - } else { - return this.mag * Number.POSITIVE_INFINITY; - } - } - set e(value: number) { - this.fromMantissaExponent(this.m, value); - } - - get s(): number { - return this.sign; - } - set s(value: number) { - if (value === 0) { - this.sign = 0; - this.layer = 0; - this.mag = 0; - } else { - this.sign = value; - } - } - - // Object.defineProperty(Decimal.prototype, "mantissa", { - get mantissa(): number { - return this.m; - } - - set mantissa(value: number) { - this.m = value; - } - - get exponent(): number { - return this.e; - } - set exponent(value: number) { - this.e = value; - } - - public static fromComponents(sign: number, layer: number, mag: number): Decimal { - return new Decimal().fromComponents(sign, layer, mag); - } - - public static fromComponents_noNormalize(sign: number, layer: number, mag: number): Decimal { - return new Decimal().fromComponents_noNormalize(sign, layer, mag); - } - - public static fromMantissaExponent(mantissa: number, exponent: number): Decimal { - return new Decimal().fromMantissaExponent(mantissa, exponent); - } - - public static fromMantissaExponent_noNormalize(mantissa: number, exponent: number): Decimal { - return new Decimal().fromMantissaExponent_noNormalize(mantissa, exponent); - } - - public static fromDecimal(value: Decimal): Decimal { - return new Decimal().fromDecimal(value); - } - - public static fromNumber(value: number): Decimal { - return new Decimal().fromNumber(value); - } - - public static fromString(value: string): Decimal { - return new Decimal().fromString(value); - } - - public static fromValue(value: DecimalSource): Decimal { - return new Decimal().fromValue(value); - } - - /** - * Converts a DecimalSource to a Decimal, without constructing a new Decimal - * if the provided value is already a Decimal. - * - * As the return value could be the provided value itself, this function - * returns a read-only Decimal to prevent accidental mutations of the value. - * Use `new Decimal(value)` to explicitly create a writeable copy if mutation - * is required. - */ - public static fromValue_noAlloc(value: DecimalSource): Readonly<Decimal> { - if (value instanceof Decimal) { - return value; - } else if (typeof value === "string") { - const cached = Decimal.fromStringCache.get(value); - if (cached !== undefined) { - return cached; - } - return Decimal.fromString(value); - } else if (typeof value === "number") { - return Decimal.fromNumber(value); - } else { - // This should never happen... but some users like Prestige Tree Rewritten - // pass undefined values in as DecimalSources, so we should handle this - // case to not break them. - return Decimal.dZero; - } - } - - public static abs(value: DecimalSource): Decimal { - return D(value).abs(); - } - - public static neg(value: DecimalSource): Decimal { - return D(value).neg(); - } - - public static negate(value: DecimalSource): Decimal { - return D(value).neg(); - } - - public static negated(value: DecimalSource): Decimal { - return D(value).neg(); - } - - public static sign(value: DecimalSource): number { - return D(value).sign; - } - - public static sgn(value: DecimalSource): number { - return D(value).sign; - } - - public static round(value: DecimalSource): Decimal { - return D(value).round(); - } - - public static floor(value: DecimalSource): Decimal { - return D(value).floor(); - } - - public static ceil(value: DecimalSource): Decimal { - return D(value).ceil(); - } - - public static trunc(value: DecimalSource): Decimal { - return D(value).trunc(); - } - - public static add(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).add(other); - } - - public static plus(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).add(other); - } - - public static sub(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).sub(other); - } - - public static subtract(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).sub(other); - } - - public static minus(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).sub(other); - } - - public static mul(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).mul(other); - } - - public static multiply(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).mul(other); - } - - public static times(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).mul(other); - } - - public static div(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).div(other); - } - - public static divide(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).div(other); - } - - public static recip(value: DecimalSource): Decimal { - return D(value).recip(); - } - - public static reciprocal(value: DecimalSource): Decimal { - return D(value).recip(); - } - - public static reciprocate(value: DecimalSource): Decimal { - return D(value).reciprocate(); - } - - public static cmp(value: DecimalSource, other: DecimalSource): CompareResult { - return D(value).cmp(other); - } - - public static cmpabs(value: DecimalSource, other: DecimalSource): CompareResult { - return D(value).cmpabs(other); - } - - public static compare(value: DecimalSource, other: DecimalSource): CompareResult { - return D(value).cmp(other); - } - - public static isNaN(value: DecimalSource): boolean { - value = D(value); - return isNaN(value.sign) || isNaN(value.layer) || isNaN(value.mag); - } - - public static isFinite(value: DecimalSource): boolean { - value = D(value); - return isFinite(value.sign) && isFinite(value.layer) && isFinite(value.mag); - } - - public static eq(value: DecimalSource, other: DecimalSource): boolean { - return D(value).eq(other); - } - - public static equals(value: DecimalSource, other: DecimalSource): boolean { - return D(value).eq(other); - } - - public static neq(value: DecimalSource, other: DecimalSource): boolean { - return D(value).neq(other); - } - - public static notEquals(value: DecimalSource, other: DecimalSource): boolean { - return D(value).notEquals(other); - } - - public static lt(value: DecimalSource, other: DecimalSource): boolean { - return D(value).lt(other); - } - - public static lte(value: DecimalSource, other: DecimalSource): boolean { - return D(value).lte(other); - } - - public static gt(value: DecimalSource, other: DecimalSource): boolean { - return D(value).gt(other); - } - - public static gte(value: DecimalSource, other: DecimalSource): boolean { - return D(value).gte(other); - } - - public static max(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).max(other); - } - - public static min(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).min(other); - } - - public static minabs(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).minabs(other); - } - - public static maxabs(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).maxabs(other); - } - - public static clamp(value: DecimalSource, min: DecimalSource, max: DecimalSource): Decimal { - return D(value).clamp(min, max); - } - - public static clampMin(value: DecimalSource, min: DecimalSource): Decimal { - return D(value).clampMin(min); - } - - public static clampMax(value: DecimalSource, max: DecimalSource): Decimal { - return D(value).clampMax(max); - } - - public static cmp_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): CompareResult { - return D(value).cmp_tolerance(other, tolerance); - } - - public static compare_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): CompareResult { - return D(value).cmp_tolerance(other, tolerance); - } - - public static eq_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance?: number - ): boolean { - return D(value).eq_tolerance(other, tolerance); - } - - public static equals_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance?: number - ): boolean { - return D(value).eq_tolerance(other, tolerance); - } - - public static neq_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).neq_tolerance(other, tolerance); - } - - public static notEquals_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).notEquals_tolerance(other, tolerance); - } - - public static lt_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).lt_tolerance(other, tolerance); - } - - public static lte_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).lte_tolerance(other, tolerance); - } - - public static gt_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).gt_tolerance(other, tolerance); - } - - public static gte_tolerance( - value: DecimalSource, - other: DecimalSource, - tolerance: number - ): boolean { - return D(value).gte_tolerance(other, tolerance); - } - - public static pLog10(value: DecimalSource): Decimal { - return D(value).pLog10(); - } - - public static absLog10(value: DecimalSource): Decimal { - return D(value).absLog10(); - } - - public static log10(value: DecimalSource): Decimal { - return D(value).log10(); - } - - public static log(value: DecimalSource, base: DecimalSource): Decimal { - return D(value).log(base); - } - - public static log2(value: DecimalSource): Decimal { - return D(value).log2(); - } - - public static ln(value: DecimalSource): Decimal { - return D(value).ln(); - } - - public static logarithm(value: DecimalSource, base: DecimalSource): Decimal { - return D(value).logarithm(base); - } - - public static pow(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).pow(other); - } - - public static pow10(value: DecimalSource): Decimal { - return D(value).pow10(); - } - - public static pow_base(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).pow_base(other); - } - - public static root(value: DecimalSource, other: DecimalSource): Decimal { - return D(value).root(other); - } - - public static factorial(value: DecimalSource, _other?: never): Decimal { - return D(value).factorial(); - } - - public static gamma(value: DecimalSource, _other?: never): Decimal { - return D(value).gamma(); - } - - public static lngamma(value: DecimalSource, _other?: never): Decimal { - return D(value).lngamma(); - } - - public static exp(value: DecimalSource): Decimal { - return D(value).exp(); - } - - public static sqr(value: DecimalSource): Decimal { - return D(value).sqr(); - } - - public static sqrt(value: DecimalSource): Decimal { - return D(value).sqrt(); - } - - public static cube(value: DecimalSource): Decimal { - return D(value).cube(); - } - - public static cbrt(value: DecimalSource): Decimal { - return D(value).cbrt(); - } - - public static tetrate( - value: DecimalSource, - height = 2, - payload: DecimalSource = FC_NN(1, 0, 1) - ): Decimal { - return D(value).tetrate(height, payload); - } - - public static iteratedexp(value: DecimalSource, height = 2, payload = FC_NN(1, 0, 1)): Decimal { - return D(value).iteratedexp(height, payload); - } - - public static iteratedlog(value: DecimalSource, base: DecimalSource = 10, times = 1): Decimal { - return D(value).iteratedlog(base, times); - } - - public static layeradd10(value: DecimalSource, diff: DecimalSource): Decimal { - return D(value).layeradd10(diff); - } - - public static layeradd(value: DecimalSource, diff: number, base: DecimalSource = 10): Decimal { - return D(value).layeradd(diff, base); - } - - public static slog(value: DecimalSource, base = 10): Decimal { - return D(value).slog(base); - } - - public static lambertw(value: DecimalSource): Decimal { - return D(value).lambertw(); - } - - public static ssqrt(value: DecimalSource): Decimal { - return D(value).ssqrt(); - } - - public static pentate( - value: DecimalSource, - height = 2, - payload: DecimalSource = FC_NN(1, 0, 1) - ): Decimal { - return D(value).pentate(height, payload); - } - - public static sin(value: DecimalSource): Decimal { - return D(value).sin(); - } - - public static cos(value: DecimalSource): Decimal { - return D(value).cos(); - } - - public static tan(value: DecimalSource): Decimal { - return D(value).tan(); - } - - public static asin(value: DecimalSource): Decimal { - return D(value).asin(); - } - - public static acos(value: DecimalSource): Decimal { - return D(value).acos(); - } - - public static atan(value: DecimalSource): Decimal { - return D(value).atan(); - } - - public static sinh(value: DecimalSource): Decimal { - return D(value).sinh(); - } - - public static cosh(value: DecimalSource): Decimal { - return D(value).cosh(); - } - - public static tanh(value: DecimalSource): Decimal { - return D(value).tanh(); - } - - public static asinh(value: DecimalSource): Decimal { - return D(value).asinh(); - } - - public static acosh(value: DecimalSource): Decimal { - return D(value).acosh(); - } - - public static atanh(value: DecimalSource): Decimal { - return D(value).atanh(); - } - - /** - * If you're willing to spend 'resourcesAvailable' and want to buy something - * with exponentially increasing cost each purchase (start at priceStart, - * multiply by priceRatio, already own currentOwned), how much of it can you buy? - * Adapted from Trimps source code. - */ - - public static affordGeometricSeries( - resourcesAvailable: DecimalSource, - priceStart: DecimalSource, - priceRatio: DecimalSource, - currentOwned: DecimalSource - ): Decimal { - return this.affordGeometricSeries_core( - D(resourcesAvailable), - D(priceStart), - D(priceRatio), - currentOwned - ); - } - /** - * How much resource would it cost to buy (numItems) items if you already have currentOwned, - * the initial price is priceStart and it multiplies by priceRatio each purchase? - */ - - public static sumGeometricSeries( - numItems: DecimalSource, - priceStart: DecimalSource, - priceRatio: DecimalSource, - currentOwned: DecimalSource - ): Decimal { - return this.sumGeometricSeries_core(numItems, D(priceStart), D(priceRatio), currentOwned); - } - /** - * If you're willing to spend 'resourcesAvailable' and want to buy something with additively - * increasing cost each purchase (start at priceStart, add by priceAdd, already own currentOwned), - * how much of it can you buy? - */ - - public static affordArithmeticSeries( - resourcesAvailable: DecimalSource, - priceStart: DecimalSource, - priceAdd: DecimalSource, - currentOwned: DecimalSource - ): Decimal { - return this.affordArithmeticSeries_core( - D(resourcesAvailable), - D(priceStart), - D(priceAdd), - D(currentOwned) - ); - } - /** - * How much resource would it cost to buy (numItems) items if you already have currentOwned, - * the initial price is priceStart and it adds priceAdd each purchase? - * Adapted from http://www.mathwords.com/a/arithmetic_series.htm - */ - - public static sumArithmeticSeries( - numItems: DecimalSource, - priceStart: DecimalSource, - priceAdd: DecimalSource, - currentOwned: DecimalSource - ): Decimal { - return this.sumArithmeticSeries_core( - D(numItems), - D(priceStart), - D(priceAdd), - D(currentOwned) - ); - } - /** - * When comparing two purchases that cost (resource) and increase your resource/sec by (deltaRpS), - * the lowest efficiency score is the better one to purchase. - * From Frozen Cookies: - * http://cookieclicker.wikia.com/wiki/Frozen_Cookies_(JavaScript_Add-on)#Efficiency.3F_What.27s_that.3F - */ - - public static efficiencyOfPurchase( - cost: DecimalSource, - currentRpS: DecimalSource, - deltaRpS: DecimalSource - ): Decimal { - return this.efficiencyOfPurchase_core(D(cost), D(currentRpS), D(deltaRpS)); - } - - public static randomDecimalForTesting(maxLayers: number): Decimal { - // NOTE: This doesn't follow any kind of sane random distribution, so use this for testing purposes only. - //5% of the time, return 0 - if (Math.random() * 20 < 1) { - return FC_NN(0, 0, 0); - } - - const randomsign = Math.random() > 0.5 ? 1 : -1; - - //5% of the time, return 1 or -1 - if (Math.random() * 20 < 1) { - return FC_NN(randomsign, 0, 1); - } - - //pick a random layer - const layer = Math.floor(Math.random() * (maxLayers + 1)); - - let randomexp = layer === 0 ? Math.random() * 616 - 308 : Math.random() * 16; - //10% of the time, make it a simple power of 10 - if (Math.random() > 0.9) { - randomexp = Math.trunc(randomexp); - } - let randommag = Math.pow(10, randomexp); - //10% of the time, trunc mag - if (Math.random() > 0.9) { - randommag = Math.trunc(randommag); - } - return FC(randomsign, layer, randommag); - } - - public static affordGeometricSeries_core( - resourcesAvailable: Decimal, - priceStart: Decimal, - priceRatio: Decimal, - currentOwned: DecimalSource - ): Decimal { - const actualStart = priceStart.mul(priceRatio.pow(currentOwned)); - return Decimal.floor( - resourcesAvailable - .div(actualStart) - .mul(priceRatio.sub(1)) - .add(1) - .log10() - .div(priceRatio.log10()) - ); - } - - public static sumGeometricSeries_core( - numItems: DecimalSource, - priceStart: Decimal, - priceRatio: Decimal, - currentOwned: DecimalSource - ): Decimal { - return priceStart - .mul(priceRatio.pow(currentOwned)) - .mul(Decimal.sub(1, priceRatio.pow(numItems))) - .div(Decimal.sub(1, priceRatio)); - } - - public static affordArithmeticSeries_core( - resourcesAvailable: Decimal, - priceStart: Decimal, - priceAdd: Decimal, - currentOwned: Decimal - ): Decimal { - // n = (-(a-d/2) + sqrt((a-d/2)^2+2dS))/d - // where a is actualStart, d is priceAdd and S is resourcesAvailable - // then floor it and you're done! - const actualStart = priceStart.add(currentOwned.mul(priceAdd)); - const b = actualStart.sub(priceAdd.div(2)); - const b2 = b.pow(2); - return b - .neg() - .add(b2.add(priceAdd.mul(resourcesAvailable).mul(2)).sqrt()) - .div(priceAdd) - .floor(); - } - - public static sumArithmeticSeries_core( - numItems: Decimal, - priceStart: Decimal, - priceAdd: Decimal, - currentOwned: Decimal - ): Decimal { - const actualStart = priceStart.add(currentOwned.mul(priceAdd)); // (n/2)*(2*a+(n-1)*d) - - return numItems.div(2).mul(actualStart.mul(2).plus(numItems.sub(1).mul(priceAdd))); - } - - public static efficiencyOfPurchase_core( - cost: Decimal, - currentRpS: Decimal, - deltaRpS: Decimal - ): Decimal { - return cost.div(currentRpS).add(cost.div(deltaRpS)); - } - - public normalize(): this { - /* - PSEUDOCODE: - Whenever we are partially 0 (sign is 0 or mag and layer is 0), make it fully 0. - Whenever we are at or hit layer 0, extract sign from negative mag. - If layer === 0 and mag < FIRST_NEG_LAYER (1/9e15), shift to 'first negative layer' (add layer, log10 mag). - While abs(mag) > EXP_LIMIT (9e15), layer += 1, mag = maglog10(mag). - While abs(mag) < LAYER_DOWN (15.954) and layer > 0, layer -= 1, mag = pow(10, mag). - - When we're done, all of the following should be true OR one of the numbers is not IsFinite OR layer is not IsInteger (error state): - Any 0 is totally zero (0, 0, 0). - Anything layer 0 has mag 0 OR mag > 1/9e15 and < 9e15. - Anything layer 1 or higher has abs(mag) >= 15.954 and < 9e15. - We will assume in calculations that all Decimals are either erroneous or satisfy these criteria. (Otherwise: Garbage in, garbage out.) - */ - if (this.sign === 0 || (this.mag === 0 && this.layer === 0)) { - this.sign = 0; - this.mag = 0; - this.layer = 0; - return this; - } - - if (this.layer === 0 && this.mag < 0) { - //extract sign from negative mag at layer 0 - this.mag = -this.mag; - this.sign = -this.sign; - } - - //Handle shifting from layer 0 to negative layers. - if (this.layer === 0 && this.mag < FIRST_NEG_LAYER) { - this.layer += 1; - this.mag = Math.log10(this.mag); - return this; - } - - let absmag = Math.abs(this.mag); - let signmag = Math.sign(this.mag); - - if (absmag >= EXP_LIMIT) { - this.layer += 1; - this.mag = signmag * Math.log10(absmag); - return this; - } else { - while (absmag < LAYER_DOWN && this.layer > 0) { - this.layer -= 1; - if (this.layer === 0) { - this.mag = Math.pow(10, this.mag); - } else { - this.mag = signmag * Math.pow(10, absmag); - absmag = Math.abs(this.mag); - signmag = Math.sign(this.mag); - } - } - if (this.layer === 0) { - if (this.mag < 0) { - //extract sign from negative mag at layer 0 - this.mag = -this.mag; - this.sign = -this.sign; - } else if (this.mag === 0) { - //excessive rounding can give us all zeroes - this.sign = 0; - } - } - } - - return this; - } - - public fromComponents(sign: number, layer: number, mag: number): this { - this.sign = sign; - this.layer = layer; - this.mag = mag; - - this.normalize(); - return this; - } - - public fromComponents_noNormalize(sign: number, layer: number, mag: number): this { - this.sign = sign; - this.layer = layer; - this.mag = mag; - return this; - } - - public fromMantissaExponent(mantissa: number, exponent: number): this { - this.layer = 1; - this.sign = Math.sign(mantissa); - mantissa = Math.abs(mantissa); - this.mag = exponent + Math.log10(mantissa); - - this.normalize(); - return this; - } - - public fromMantissaExponent_noNormalize(mantissa: number, exponent: number): this { - //The idea of 'normalizing' a break_infinity.js style Decimal doesn't really apply. So just do the same thing. - this.fromMantissaExponent(mantissa, exponent); - return this; - } - - public fromDecimal(value: Decimal): this { - this.sign = value.sign; - this.layer = value.layer; - this.mag = value.mag; - return this; - } - - public fromNumber(value: number): this { - this.mag = Math.abs(value); - this.sign = Math.sign(value); - this.layer = 0; - this.normalize(); - return this; - } - - public fromString(value: string): Decimal { - const originalValue = value; - const cached = Decimal.fromStringCache.get(originalValue); - if (cached !== undefined) { - return this.fromDecimal(cached); - } - if (IGNORE_COMMAS) { - value = value.replace(",", ""); - } else if (COMMAS_ARE_DECIMAL_POINTS) { - value = value.replace(",", "."); - } - - //Handle x^^^y format. - const pentationparts = value.split("^^^"); - if (pentationparts.length === 2) { - const base = parseFloat(pentationparts[0]); - const height = parseFloat(pentationparts[1]); - const heightparts = pentationparts[1].split(";"); - let payload = 1; - if (heightparts.length === 2) { - payload = parseFloat(heightparts[1]); - if (!isFinite(payload)) { - payload = 1; - } - } - if (isFinite(base) && isFinite(height)) { - const result = Decimal.pentate(base, height, payload); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - //Handle x^^y format. - const tetrationparts = value.split("^^"); - if (tetrationparts.length === 2) { - const base = parseFloat(tetrationparts[0]); - const height = parseFloat(tetrationparts[1]); - const heightparts = tetrationparts[1].split(";"); - let payload = 1; - if (heightparts.length === 2) { - payload = parseFloat(heightparts[1]); - if (!isFinite(payload)) { - payload = 1; - } - } - if (isFinite(base) && isFinite(height)) { - const result = Decimal.tetrate(base, height, payload); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - //Handle x^y format. - const powparts = value.split("^"); - if (powparts.length === 2) { - const base = parseFloat(powparts[0]); - const exponent = parseFloat(powparts[1]); - if (isFinite(base) && isFinite(exponent)) { - const result = Decimal.pow(base, exponent); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - //Handle various cases involving it being a Big Number. - value = value.trim().toLowerCase(); - - //handle X PT Y format. - let base; - let height; - let ptparts = value.split("pt"); - if (ptparts.length === 2) { - base = 10; - height = parseFloat(ptparts[0]); - ptparts[1] = ptparts[1].replace("(", ""); - ptparts[1] = ptparts[1].replace(")", ""); - let payload = parseFloat(ptparts[1]); - if (!isFinite(payload)) { - payload = 1; - } - if (isFinite(base) && isFinite(height)) { - const result = Decimal.tetrate(base, height, payload); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - //handle XpY format (it's the same thing just with p). - ptparts = value.split("p"); - if (ptparts.length === 2) { - base = 10; - height = parseFloat(ptparts[0]); - ptparts[1] = ptparts[1].replace("(", ""); - ptparts[1] = ptparts[1].replace(")", ""); - let payload = parseFloat(ptparts[1]); - if (!isFinite(payload)) { - payload = 1; - } - if (isFinite(base) && isFinite(height)) { - const result = Decimal.tetrate(base, height, payload); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - const parts = value.split("e"); - const ecount = parts.length - 1; - - //Handle numbers that are exactly floats (0 or 1 es). - if (ecount === 0) { - const numberAttempt = parseFloat(value); - if (isFinite(numberAttempt)) { - this.fromNumber(numberAttempt); - if (Decimal.fromStringCache.size >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } else if (ecount === 1) { - //Very small numbers ("2e-3000" and so on) may look like valid floats but round to 0. - const numberAttempt = parseFloat(value); - if (isFinite(numberAttempt) && numberAttempt !== 0) { - this.fromNumber(numberAttempt); - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - - //Handle new (e^N)X format. - const newparts = value.split("e^"); - if (newparts.length === 2) { - this.sign = 1; - if (newparts[0].charAt(0) == "-") { - this.sign = -1; - } - let layerstring = ""; - for (let i = 0; i < newparts[1].length; ++i) { - const chrcode = newparts[1].charCodeAt(i); - if ((chrcode >= 43 && chrcode <= 57) || chrcode === 101) { - //is "0" to "9" or "+" or "-" or "." or "e" (or "," or "/") - layerstring += newparts[1].charAt(i); - } //we found the end of the layer count - else { - this.layer = parseFloat(layerstring); - this.mag = parseFloat(newparts[1].substr(i + 1)); - this.normalize(); - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - } - } - - if (ecount < 1) { - this.sign = 0; - this.layer = 0; - this.mag = 0; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - const mantissa = parseFloat(parts[0]); - if (mantissa === 0) { - this.sign = 0; - this.layer = 0; - this.mag = 0; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - let exponent = parseFloat(parts[parts.length - 1]); - //handle numbers like AeBeC and AeeeeBeC - if (ecount >= 2) { - const me = parseFloat(parts[parts.length - 2]); - if (isFinite(me)) { - exponent *= Math.sign(me); - exponent += f_maglog10(me); - } - } - - //Handle numbers written like eee... (N es) X - if (!isFinite(mantissa)) { - this.sign = parts[0] === "-" ? -1 : 1; - this.layer = ecount; - this.mag = exponent; - } - //Handle numbers written like XeY - else if (ecount === 1) { - this.sign = Math.sign(mantissa); - this.layer = 1; - //Example: 2e10 is equal to 10^log10(2e10) which is equal to 10^(10+log10(2)) - this.mag = exponent + Math.log10(Math.abs(mantissa)); - } - //Handle numbers written like Xeee... (N es) Y - else { - this.sign = Math.sign(mantissa); - this.layer = ecount; - if (ecount === 2) { - const result = Decimal.mul(FC(1, 2, exponent), D(mantissa)); - this.sign = result.sign; - this.layer = result.layer; - this.mag = result.mag; - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } else { - //at eee and above, mantissa is too small to be recognizable! - this.mag = exponent; - } - } - - this.normalize(); - if (Decimal.fromStringCache.maxSize >= 1) { - Decimal.fromStringCache.set(originalValue, Decimal.fromDecimal(this)); - } - return this; - } - - public fromValue(value: DecimalSource): Decimal { - if (value instanceof Decimal) { - return this.fromDecimal(value); - } - - if (typeof value === "number") { - return this.fromNumber(value); - } - - if (typeof value === "string") { - return this.fromString(value); - } - - this.sign = 0; - this.layer = 0; - this.mag = 0; - return this; - } - - public toNumber(): number { - if (!Number.isFinite(this.layer)) { - return Number.NaN; - } - if (this.layer === 0) { - return this.sign * this.mag; - } else if (this.layer === 1) { - return this.sign * Math.pow(10, this.mag); - } //overflow for any normalized Decimal - else { - return this.mag > 0 - ? this.sign > 0 - ? Number.POSITIVE_INFINITY - : Number.NEGATIVE_INFINITY - : 0; - } - } - - public mantissaWithDecimalPlaces(places: number): number { - // https://stackoverflow.com/a/37425022 - if (isNaN(this.m)) { - return Number.NaN; - } - - if (this.m === 0) { - return 0; - } - - return decimalPlaces(this.m, places); - } - - public magnitudeWithDecimalPlaces(places: number): number { - // https://stackoverflow.com/a/37425022 - if (isNaN(this.mag)) { - return Number.NaN; - } - - if (this.mag === 0) { - return 0; - } - - return decimalPlaces(this.mag, places); - } - - public toString(): string { - if (isNaN(this.layer) || isNaN(this.sign) || isNaN(this.mag)) { - return "NaN"; - } - if (this.mag === Number.POSITIVE_INFINITY || this.layer === Number.POSITIVE_INFINITY) { - return this.sign === 1 ? "Infinity" : "-Infinity"; - } - - if (this.layer === 0) { - if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) { - return (this.sign * this.mag).toString(); - } - return this.m + "e" + this.e; - } else if (this.layer === 1) { - return this.m + "e" + this.e; - } else { - //layer 2+ - if (this.layer <= MAX_ES_IN_A_ROW) { - return (this.sign === -1 ? "-" : "") + "e".repeat(this.layer) + this.mag; - } else { - return (this.sign === -1 ? "-" : "") + "(e^" + this.layer + ")" + this.mag; - } - } - } - - public toExponential(places: number): string { - if (this.layer === 0) { - return (this.sign * this.mag).toExponential(places); - } - return this.toStringWithDecimalPlaces(places); - } - - public toFixed(places: number): string { - if (this.layer === 0) { - return (this.sign * this.mag).toFixed(places); - } - return this.toStringWithDecimalPlaces(places); - } - - public toPrecision(places: number): string { - if (this.e <= -7) { - return this.toExponential(places - 1); - } - - if (places > this.e) { - return this.toFixed(places - this.exponent - 1); - } - - return this.toExponential(places - 1); - } - - public valueOf(): string { - return this.toString(); - } - - public toJSON(): string { - return this.toString(); - } - - public toStringWithDecimalPlaces(places: number): string { - if (this.layer === 0) { - if ((this.mag < 1e21 && this.mag > 1e-7) || this.mag === 0) { - return (this.sign * this.mag).toFixed(places); - } - return decimalPlaces(this.m, places) + "e" + decimalPlaces(this.e, places); - } else if (this.layer === 1) { - return decimalPlaces(this.m, places) + "e" + decimalPlaces(this.e, places); - } else { - //layer 2+ - if (this.layer <= MAX_ES_IN_A_ROW) { - return ( - (this.sign === -1 ? "-" : "") + - "e".repeat(this.layer) + - decimalPlaces(this.mag, places) - ); - } else { - return ( - (this.sign === -1 ? "-" : "") + - "(e^" + - this.layer + - ")" + - decimalPlaces(this.mag, places) - ); - } - } - } - - public abs(): Decimal { - return FC_NN(this.sign === 0 ? 0 : 1, this.layer, this.mag); - } - - public neg(): Decimal { - return FC_NN(-this.sign, this.layer, this.mag); - } - - public negate(): Decimal { - return this.neg(); - } - - public negated(): Decimal { - return this.neg(); - } - - // public sign () { - // return this.sign; - // } - - public sgn(): number { - return this.sign; - } - - public round(): this | Decimal { - if (this.mag < 0) { - return Decimal.dZero; - } - if (this.layer === 0) { - return FC(this.sign, 0, Math.round(this.mag)); - } - return this; - } - - public floor(): this | Decimal { - if (this.mag < 0) { - return Decimal.dZero; - } - if (this.layer === 0) { - return FC(this.sign, 0, Math.floor(this.mag)); - } - return this; - } - - public ceil(): this | Decimal { - if (this.mag < 0) { - return Decimal.dZero; - } - if (this.layer === 0) { - return FC(this.sign, 0, Math.ceil(this.mag)); - } - return this; - } - - public trunc(): this | Decimal { - if (this.mag < 0) { - return Decimal.dZero; - } - if (this.layer === 0) { - return FC(this.sign, 0, Math.trunc(this.mag)); - } - return this; - } - - public add(value: DecimalSource): this | Decimal { - const decimal = D(value); - - //inf/nan check - if (!Number.isFinite(this.layer)) { - return this; - } - if (!Number.isFinite(decimal.layer)) { - return decimal; - } - - //Special case - if one of the numbers is 0, return the other number. - if (this.sign === 0) { - return decimal; - } - if (decimal.sign === 0) { - return this; - } - - //Special case - Adding a number to its negation produces 0, no matter how large. - if ( - this.sign === -decimal.sign && - this.layer === decimal.layer && - this.mag === decimal.mag - ) { - return FC_NN(0, 0, 0); - } - - let a; - let b; - - //Special case: If one of the numbers is layer 2 or higher, just take the bigger number. - if (this.layer >= 2 || decimal.layer >= 2) { - return this.maxabs(decimal); - } - - if (Decimal.cmpabs(this, decimal) > 0) { - a = this; - b = decimal; - } else { - a = decimal; - b = this; - } - - if (a.layer === 0 && b.layer === 0) { - return Decimal.fromNumber(a.sign * a.mag + b.sign * b.mag); - } - - const layera = a.layer * Math.sign(a.mag); - const layerb = b.layer * Math.sign(b.mag); - - //If one of the numbers is 2+ layers higher than the other, just take the bigger number. - if (layera - layerb >= 2) { - return a; - } - - if (layera === 0 && layerb === -1) { - if (Math.abs(b.mag - Math.log10(a.mag)) > MAX_SIGNIFICANT_DIGITS) { - return a; - } else { - const magdiff = Math.pow(10, Math.log10(a.mag) - b.mag); - const mantissa = b.sign + a.sign * magdiff; - return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa))); - } - } - - if (layera === 1 && layerb === 0) { - if (Math.abs(a.mag - Math.log10(b.mag)) > MAX_SIGNIFICANT_DIGITS) { - return a; - } else { - const magdiff = Math.pow(10, a.mag - Math.log10(b.mag)); - const mantissa = b.sign + a.sign * magdiff; - return FC( - Math.sign(mantissa), - 1, - Math.log10(b.mag) + Math.log10(Math.abs(mantissa)) - ); - } - } - - if (Math.abs(a.mag - b.mag) > MAX_SIGNIFICANT_DIGITS) { - return a; - } else { - const magdiff = Math.pow(10, a.mag - b.mag); - const mantissa = b.sign + a.sign * magdiff; - return FC(Math.sign(mantissa), 1, b.mag + Math.log10(Math.abs(mantissa))); - } - - throw Error("Bad arguments to add: " + this + ", " + value); - } - - public plus(value: DecimalSource): Decimal { - return this.add(value); - } - - public sub(value: DecimalSource): Decimal { - return this.add(D(value).neg()); - } - - public subtract(value: DecimalSource): Decimal { - return this.sub(value); - } - - public minus(value: DecimalSource): Decimal { - return this.sub(value); - } - - public mul(value: DecimalSource): Decimal { - const decimal = D(value); - - //inf/nan check - if (!Number.isFinite(this.layer)) { - return this; - } - if (!Number.isFinite(decimal.layer)) { - return decimal; - } - - //Special case - if one of the numbers is 0, return 0. - if (this.sign === 0 || decimal.sign === 0) { - return FC_NN(0, 0, 0); - } - - //Special case - Multiplying a number by its own reciprocal yields +/- 1, no matter how large. - if (this.layer === decimal.layer && this.mag === -decimal.mag) { - return FC_NN(this.sign * decimal.sign, 0, 1); - } - - let a; - let b; - - //Which number is bigger in terms of its multiplicative distance from 1? - if ( - this.layer > decimal.layer || - (this.layer == decimal.layer && Math.abs(this.mag) > Math.abs(decimal.mag)) - ) { - a = this; - b = decimal; - } else { - a = decimal; - b = this; - } - - if (a.layer === 0 && b.layer === 0) { - return Decimal.fromNumber(a.sign * b.sign * a.mag * b.mag); - } - - //Special case: If one of the numbers is layer 3 or higher or one of the numbers is 2+ layers bigger than the other, just take the bigger number. - if (a.layer >= 3 || a.layer - b.layer >= 2) { - return FC(a.sign * b.sign, a.layer, a.mag); - } - - if (a.layer === 1 && b.layer === 0) { - return FC(a.sign * b.sign, 1, a.mag + Math.log10(b.mag)); - } - - if (a.layer === 1 && b.layer === 1) { - return FC(a.sign * b.sign, 1, a.mag + b.mag); - } - - if (a.layer === 2 && b.layer === 1) { - const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add( - FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag)) - ); - return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag); - } - - if (a.layer === 2 && b.layer === 2) { - const newmag = FC(Math.sign(a.mag), a.layer - 1, Math.abs(a.mag)).add( - FC(Math.sign(b.mag), b.layer - 1, Math.abs(b.mag)) - ); - return FC(a.sign * b.sign, newmag.layer + 1, newmag.sign * newmag.mag); - } - - throw Error("Bad arguments to mul: " + this + ", " + value); - } - - public multiply(value: DecimalSource): Decimal { - return this.mul(value); - } - - public times(value: DecimalSource): Decimal { - return this.mul(value); - } - - public div(value: DecimalSource): Decimal { - const decimal = D(value); - return this.mul(decimal.recip()); - } - - public divide(value: DecimalSource): Decimal { - return this.div(value); - } - - public divideBy(value: DecimalSource): Decimal { - return this.div(value); - } - - public dividedBy(value: DecimalSource): Decimal { - return this.div(value); - } - - public recip(): Decimal { - if (this.mag === 0) { - return Decimal.dNaN; - } else if (this.layer === 0) { - return FC(this.sign, 0, 1 / this.mag); - } else { - return FC(this.sign, this.layer, -this.mag); - } - } - - public reciprocal(): Decimal { - return this.recip(); - } - - public reciprocate(): Decimal { - return this.recip(); - } - - /** - * -1 for less than value, 0 for equals value, 1 for greater than value - */ - public cmp(value: DecimalSource): CompareResult { - const decimal = D(value); - if (this.sign > decimal.sign) { - return 1; - } - if (this.sign < decimal.sign) { - return -1; - } - return (this.sign * this.cmpabs(value)) as CompareResult; - } - - public cmpabs(value: DecimalSource): CompareResult { - const decimal = D(value); - const layera = this.mag > 0 ? this.layer : -this.layer; - const layerb = decimal.mag > 0 ? decimal.layer : -decimal.layer; - if (layera > layerb) { - return 1; - } - if (layera < layerb) { - return -1; - } - if (this.mag > decimal.mag) { - return 1; - } - if (this.mag < decimal.mag) { - return -1; - } - return 0; - } - - public compare(value: DecimalSource): CompareResult { - return this.cmp(value); - } - - public isNan(): boolean { - return isNaN(this.sign) || isNaN(this.layer) || isNaN(this.mag); - } - - public isFinite(): boolean { - return isFinite(this.sign) && isFinite(this.layer) && isFinite(this.mag); - } - - public eq(value: DecimalSource): boolean { - const decimal = D(value); - return ( - this.sign === decimal.sign && this.layer === decimal.layer && this.mag === decimal.mag - ); - } - - public equals(value: DecimalSource): boolean { - return this.eq(value); - } - - public neq(value: DecimalSource): boolean { - return !this.eq(value); - } - - public notEquals(value: DecimalSource): boolean { - return this.neq(value); - } - - public lt(value: DecimalSource): boolean { - return this.cmp(value) === -1; - } - - public lte(value: DecimalSource): boolean { - return !this.gt(value); - } - - public gt(value: DecimalSource): boolean { - return this.cmp(value) === 1; - } - - public gte(value: DecimalSource): boolean { - return !this.lt(value); - } - - public max(value: DecimalSource): Decimal { - const decimal = D(value); - return this.lt(decimal) ? decimal : this; - } - - public min(value: DecimalSource): Decimal { - const decimal = D(value); - return this.gt(decimal) ? decimal : this; - } - - public maxabs(value: DecimalSource): Decimal { - const decimal = D(value); - return this.cmpabs(decimal) < 0 ? decimal : this; - } - - public minabs(value: DecimalSource): Decimal { - const decimal = D(value); - return this.cmpabs(decimal) > 0 ? decimal : this; - } - - public clamp(min: DecimalSource, max: DecimalSource): Decimal { - return this.max(min).min(max); - } - - public clampMin(min: DecimalSource): Decimal { - return this.max(min); - } - - public clampMax(max: DecimalSource): Decimal { - return this.min(max); - } - - public cmp_tolerance(value: DecimalSource, tolerance: number): CompareResult { - const decimal = D(value); - return this.eq_tolerance(decimal, tolerance) ? 0 : this.cmp(decimal); - } - - public compare_tolerance(value: DecimalSource, tolerance: number): CompareResult { - return this.cmp_tolerance(value, tolerance); - } - - /** - * Tolerance is a relative tolerance, multiplied by the greater of the magnitudes of the two arguments. - * For example, if you put in 1e-9, then any number closer to the - * larger number than (larger number)*1e-9 will be considered equal. - */ - public eq_tolerance(value: DecimalSource, tolerance?: number): boolean { - const decimal = D(value); // https://stackoverflow.com/a/33024979 - if (tolerance == null) { - tolerance = 1e-7; - } - //Numbers that are too far away are never close. - if (this.sign !== decimal.sign) { - return false; - } - if (Math.abs(this.layer - decimal.layer) > 1) { - return false; - } - // return abs(a-b) <= tolerance * max(abs(a), abs(b)) - let magA = this.mag; - let magB = decimal.mag; - if (this.layer > decimal.layer) { - magB = f_maglog10(magB); - } - if (this.layer < decimal.layer) { - magA = f_maglog10(magA); - } - return Math.abs(magA - magB) <= tolerance * Math.max(Math.abs(magA), Math.abs(magB)); - } - - public equals_tolerance(value: DecimalSource, tolerance: number): boolean { - return this.eq_tolerance(value, tolerance); - } - - public neq_tolerance(value: DecimalSource, tolerance: number): boolean { - return !this.eq_tolerance(value, tolerance); - } - - public notEquals_tolerance(value: DecimalSource, tolerance: number): boolean { - return this.neq_tolerance(value, tolerance); - } - - public lt_tolerance(value: DecimalSource, tolerance: number): boolean { - const decimal = D(value); - return !this.eq_tolerance(decimal, tolerance) && this.lt(decimal); - } - - public lte_tolerance(value: DecimalSource, tolerance: number): boolean { - const decimal = D(value); - return this.eq_tolerance(decimal, tolerance) || this.lt(decimal); - } - - public gt_tolerance(value: DecimalSource, tolerance: number): boolean { - const decimal = D(value); - return !this.eq_tolerance(decimal, tolerance) && this.gt(decimal); - } - - public gte_tolerance(value: DecimalSource, tolerance: number): boolean { - const decimal = D(value); - return this.eq_tolerance(decimal, tolerance) || this.gt(decimal); - } - - public pLog10(): Decimal { - if (this.lt(Decimal.dZero)) { - return Decimal.dZero; - } - return this.log10(); - } - - public absLog10(): Decimal { - if (this.sign === 0) { - return Decimal.dNaN; - } else if (this.layer > 0) { - return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag)); - } else { - return FC(1, 0, Math.log10(this.mag)); - } - } - - public log10(): Decimal { - if (this.sign <= 0) { - return Decimal.dNaN; - } else if (this.layer > 0) { - return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag)); - } else { - return FC(this.sign, 0, Math.log10(this.mag)); - } - } - - public log(base: DecimalSource): Decimal { - base = D(base); - if (this.sign <= 0) { - return Decimal.dNaN; - } - if (base.sign <= 0) { - return Decimal.dNaN; - } - if (base.sign === 1 && base.layer === 0 && base.mag === 1) { - return Decimal.dNaN; - } else if (this.layer === 0 && base.layer === 0) { - return FC(this.sign, 0, Math.log(this.mag) / Math.log(base.mag)); - } - - return Decimal.div(this.log10(), base.log10()); - } - - public log2(): Decimal { - if (this.sign <= 0) { - return Decimal.dNaN; - } else if (this.layer === 0) { - return FC(this.sign, 0, Math.log2(this.mag)); - } else if (this.layer === 1) { - return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 3.321928094887362); //log2(10) - } else if (this.layer === 2) { - return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.5213902276543247); //-log10(log10(2)) - } else { - return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag)); - } - } - - public ln(): Decimal { - if (this.sign <= 0) { - return Decimal.dNaN; - } else if (this.layer === 0) { - return FC(this.sign, 0, Math.log(this.mag)); - } else if (this.layer === 1) { - return FC(Math.sign(this.mag), 0, Math.abs(this.mag) * 2.302585092994046); //ln(10) - } else if (this.layer === 2) { - return FC(Math.sign(this.mag), 1, Math.abs(this.mag) + 0.36221568869946325); //log10(log10(e)) - } else { - return FC(Math.sign(this.mag), this.layer - 1, Math.abs(this.mag)); - } - } - - public logarithm(base: DecimalSource): Decimal { - return this.log(base); - } - - public pow(value: DecimalSource): Decimal { - const decimal = D(value); - const a = this; - const b = decimal; - - //special case: if a is 0, then return 0 (UNLESS b is 0, then return 1) - if (a.sign === 0) { - return b.eq(0) ? FC_NN(1, 0, 1) : a; - } - //special case: if a is 1, then return 1 - if (a.sign === 1 && a.layer === 0 && a.mag === 1) { - return a; - } - //special case: if b is 0, then return 1 - if (b.sign === 0) { - return FC_NN(1, 0, 1); - } - //special case: if b is 1, then return a - if (b.sign === 1 && b.layer === 0 && b.mag === 1) { - return a; - } - - const result = a.absLog10().mul(b).pow10(); - - if (this.sign === -1) { - if (Math.abs(b.toNumber() % 2) % 2 === 1) { - return result.neg(); - } else if (Math.abs(b.toNumber() % 2) % 2 === 0) { - return result; - } - return Decimal.dNaN; - } - - return result; - } - - public pow10(): Decimal { - /* - There are four cases we need to consider: - 1) positive sign, positive mag (e15, ee15): +1 layer (e.g. 10^15 becomes e15, 10^e15 becomes ee15) - 2) negative sign, positive mag (-e15, -ee15): +1 layer but sign and mag sign are flipped (e.g. 10^-15 becomes e-15, 10^-e15 becomes ee-15) - 3) positive sign, negative mag (e-15, ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1 - 4) negative sign, negative mag (-e-15, -ee-15): layer 0 case would have been handled in the Math.pow check, so just return 1 - */ - - if (!Number.isFinite(this.layer) || !Number.isFinite(this.mag)) { - return Decimal.dNaN; - } - - let a: Decimal = this; - - //handle layer 0 case - if no precision is lost just use Math.pow, else promote one layer - if (a.layer === 0) { - const newmag = Math.pow(10, a.sign * a.mag); - if (Number.isFinite(newmag) && Math.abs(newmag) >= 0.1) { - return FC(1, 0, newmag); - } else { - if (a.sign === 0) { - return Decimal.dOne; - } else { - a = FC_NN(a.sign, a.layer + 1, Math.log10(a.mag)); - } - } - } - - //handle all 4 layer 1+ cases individually - if (a.sign > 0 && a.mag >= 0) { - return FC(a.sign, a.layer + 1, a.mag); - } - if (a.sign < 0 && a.mag >= 0) { - return FC(-a.sign, a.layer + 1, -a.mag); - } - //both the negative mag cases are identical: one +/- rounding error - return Decimal.dOne; - } - - public pow_base(value: DecimalSource): Decimal { - return D(value).pow(this); - } - - public root(value: DecimalSource): Decimal { - const decimal = D(value); - return this.pow(decimal.recip()); - } - - public factorial(): Decimal { - if (this.mag < 0) { - return this.add(1).gamma(); - } else if (this.layer === 0) { - return this.add(1).gamma(); - } else if (this.layer === 1) { - return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1))); - } else { - return Decimal.exp(this); - } - } - - //from HyperCalc source code - public gamma(): Decimal { - if (this.mag < 0) { - return this.recip(); - } else if (this.layer === 0) { - if (this.lt(FC_NN(1, 0, 24))) { - return Decimal.fromNumber(f_gamma(this.sign * this.mag)); - } - - const t = this.mag - 1; - let l = 0.9189385332046727; //0.5*Math.log(2*Math.PI) - l = l + (t + 0.5) * Math.log(t); - l = l - t; - const n2 = t * t; - let np = t; - let lm = 12 * np; - let adj = 1 / lm; - let l2 = l + adj; - if (l2 === l) { - return Decimal.exp(l); - } - - l = l2; - np = np * n2; - lm = 360 * np; - adj = 1 / lm; - l2 = l - adj; - if (l2 === l) { - return Decimal.exp(l); - } - - l = l2; - np = np * n2; - lm = 1260 * np; - let lt = 1 / lm; - l = l + lt; - np = np * n2; - lm = 1680 * np; - lt = 1 / lm; - l = l - lt; - return Decimal.exp(l); - } else if (this.layer === 1) { - return Decimal.exp(Decimal.mul(this, Decimal.ln(this).sub(1))); - } else { - return Decimal.exp(this); - } - } - - public lngamma(): Decimal { - return this.gamma().ln(); - } - - public exp(): Decimal { - if (this.mag < 0) { - return Decimal.dOne; - } - if (this.layer === 0 && this.mag <= 709.7) { - return Decimal.fromNumber(Math.exp(this.sign * this.mag)); - } else if (this.layer === 0) { - return FC(1, 1, this.sign * Math.log10(Math.E) * this.mag); - } else if (this.layer === 1) { - return FC(1, 2, this.sign * (Math.log10(0.4342944819032518) + this.mag)); - } else { - return FC(1, this.layer + 1, this.sign * this.mag); - } - } - - public sqr(): Decimal { - return this.pow(2); - } - - public sqrt(): Decimal { - if (this.layer === 0) { - return Decimal.fromNumber(Math.sqrt(this.sign * this.mag)); - } else if (this.layer === 1) { - return FC(1, 2, Math.log10(this.mag) - 0.3010299956639812); - } else { - const result = Decimal.div(FC_NN(this.sign, this.layer - 1, this.mag), FC_NN(1, 0, 2)); - result.layer += 1; - result.normalize(); - return result; - } - } - - public cube(): Decimal { - return this.pow(3); - } - - public cbrt(): Decimal { - return this.pow(1 / 3); - } - - //Tetration/tetrate: The result of exponentiating 'this' to 'this' 'height' times in a row. https://en.wikipedia.org/wiki/Tetration - //If payload != 1, then this is 'iterated exponentiation', the result of exping (payload) to base (this) (height) times. https://andydude.github.io/tetration/archives/tetration2/ident.html - //Works with negative and positive real heights. - public tetrate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal { - //x^^1 == x - if (height === 1) { - return Decimal.pow(this, payload); - } - //x^^0 == 1 - if (height === 0) { - return new Decimal(payload); - } - //1^^x == 1 - if (this.eq(Decimal.dOne)) { - return Decimal.dOne; - } - //-1^^x == -1 - if (this.eq(-1)) { - return Decimal.pow(this, payload); - } - - if (height === Number.POSITIVE_INFINITY) { - const this_num = this.toNumber(); - //within the convergence range? - if (this_num <= 1.44466786100976613366 && this_num >= 0.06598803584531253708) { - //hotfix for the very edge of the number range not being handled properly - if (this_num > 1.444667861009099) { - return Decimal.fromNumber(Math.E); - } - //Formula for infinite height power tower. - const negln = Decimal.ln(this).neg(); - return negln.lambertw().div(negln); - } else if (this_num > 1.44466786100976613366) { - //explodes to infinity - // TODO: replace this with Decimal.dInf - return Decimal.fromNumber(Number.POSITIVE_INFINITY); - } else { - //0.06598803584531253708 > this_num >= 0: never converges - //this_num < 0: quickly becomes a complex number - return Decimal.dNaN; - } - } - - //0^^x oscillates if we define 0^0 == 1 (which in javascript land we do), since then 0^^1 is 0, 0^^2 is 1, 0^^3 is 0, etc. payload is ignored - //using the linear approximation for height (TODO: don't know a better way to calculate it ATM, but it wouldn't surprise me if it's just NaN) - if (this.eq(Decimal.dZero)) { - let result = Math.abs((height + 1) % 2); - if (result > 1) { - result = 2 - result; - } - return Decimal.fromNumber(result); - } - - if (height < 0) { - return Decimal.iteratedlog(payload, this, -height); - } - - payload = D(payload); - const oldheight = height; - height = Math.trunc(height); - const fracheight = oldheight - height; - - if (this.gt(Decimal.dZero) && this.lte(1.44466786100976613366)) { - //similar to 0^^n, flip-flops between two values, converging slowly (or if it's below 0.06598803584531253708, never. so once again, the fractional part at the end will be a linear approximation (TODO: again pending knowledge of how to approximate better, although tbh I think it should in reality just be NaN) - height = Math.min(10000, height); - for (let i = 0; i < height; ++i) { - const old_payload: Decimal = payload; - payload = this.pow(payload); - //stop early if we converge - if (old_payload.eq(payload)) { - return payload; - } - } - if (fracheight != 0) { - const next_payload = this.pow(payload); - return payload.mul(1 - fracheight).add(next_payload.mul(fracheight)); - } - return payload; - } - //TODO: base < 0, but it's hard for me to reason about (probably all non-integer heights are NaN automatically?) - - if (fracheight !== 0) { - if (payload.eq(Decimal.dOne)) { - //TODO: for bases above 10, revert to old linear approximation until I can think of something better - if (this.gt(10)) { - payload = this.pow(fracheight); - } else { - payload = Decimal.fromNumber( - Decimal.tetrate_critical(this.toNumber(), fracheight) - ); - //TODO: until the critical section grid can handle numbers below 2, scale them to the base - //TODO: maybe once the critical section grid has very large bases, this math can be appropriate for them too? I'll think about it - if (this.lt(2)) { - payload = payload.sub(1).mul(this.minus(1)).plus(1); - } - } - } else { - if (this.eq(10)) { - payload = payload.layeradd10(fracheight); - } else { - payload = payload.layeradd(fracheight, this); - } - } - } - - for (let i = 0; i < height; ++i) { - payload = this.pow(payload); - //bail if we're NaN - if (!isFinite(payload.layer) || !isFinite(payload.mag)) { - return payload.normalize(); - } - //shortcut - if (payload.layer - this.layer > 3) { - return FC_NN(payload.sign, payload.layer + (height - i - 1), payload.mag); - } - //give up after 10000 iterations if nothing is happening - if (i > 10000) { - return payload; - } - } - return payload; - } - - //iteratedexp/iterated exponentiation: - all cases handled in tetrate, so just call it - public iteratedexp(height = 2, payload = FC_NN(1, 0, 1)): Decimal { - return this.tetrate(height, payload); - } - - //iterated log/repeated log: The result of applying log(base) 'times' times in a row. Approximately equal to subtracting (times) from the number's slog representation. Equivalent to tetrating to a negative height. - //Works with negative and positive real heights. - public iteratedlog(base: DecimalSource = 10, times = 1): Decimal { - if (times < 0) { - return Decimal.tetrate(base, -times, this); - } - - base = D(base); - let result = Decimal.fromDecimal(this); - const fulltimes = times; - times = Math.trunc(times); - const fraction = fulltimes - times; - if (result.layer - base.layer > 3) { - const layerloss = Math.min(times, result.layer - base.layer - 3); - times -= layerloss; - result.layer -= layerloss; - } - - for (let i = 0; i < times; ++i) { - result = result.log(base); - //bail if we're NaN - if (!isFinite(result.layer) || !isFinite(result.mag)) { - return result.normalize(); - } - //give up after 10000 iterations if nothing is happening - if (i > 10000) { - return result; - } - } - - //handle fractional part - if (fraction > 0 && fraction < 1) { - if (base.eq(10)) { - result = result.layeradd10(-fraction); - } else { - result = result.layeradd(-fraction, base); - } - } - - return result; - } - - //Super-logarithm, one of tetration's inverses, tells you what size power tower you'd have to tetrate base to to get number. By definition, will never be higher than 1.8e308 in break_eternity.js, since a power tower 1.8e308 numbers tall is the largest representable number. - // https://en.wikipedia.org/wiki/Super-logarithm - // NEW: Accept a number of iterations, and use binary search to, after making an initial guess, hone in on the true value, assuming tetration as the ground truth. - public slog(base: DecimalSource = 10, iterations = 100): Decimal { - let step_size = 0.001; - let has_changed_directions_once = false; - let previously_rose = false; - let result = this.slog_internal(base).toNumber(); - for (let i = 1; i < iterations; ++i) { - const new_decimal = new Decimal(base).tetrate(result); - const currently_rose = new_decimal.gt(this); - if (i > 1) { - if (previously_rose != currently_rose) { - has_changed_directions_once = true; - } - } - previously_rose = currently_rose; - if (has_changed_directions_once) { - step_size /= 2; - } else { - step_size *= 2; - } - step_size = Math.abs(step_size) * (currently_rose ? -1 : 1); - result += step_size; - if (step_size === 0) { - break; - } - } - return Decimal.fromNumber(result); - } - - public slog_internal(base: DecimalSource = 10): Decimal { - base = D(base); - - //special cases: - //slog base 0 or lower is NaN - if (base.lte(Decimal.dZero)) { - return Decimal.dNaN; - } - //slog base 1 is NaN - if (base.eq(Decimal.dOne)) { - return Decimal.dNaN; - } - //need to handle these small, wobbling bases specially - if (base.lt(Decimal.dOne)) { - if (this.eq(Decimal.dOne)) { - return Decimal.dZero; - } - if (this.eq(Decimal.dZero)) { - return Decimal.dNegOne; - } - //0 < this < 1: ambiguous (happens multiple times) - //this < 0: impossible (as far as I can tell) - //this > 1: partially complex (http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html base 0.25 for proof) - return Decimal.dNaN; - } - //slog_n(0) is -1 - if (this.mag < 0 || this.eq(Decimal.dZero)) { - return Decimal.dNegOne; - } - - let result = 0; - let copy = Decimal.fromDecimal(this); - if (copy.layer - base.layer > 3) { - const layerloss = copy.layer - base.layer - 3; - result += layerloss; - copy.layer -= layerloss; - } - - for (let i = 0; i < 100; ++i) { - if (copy.lt(Decimal.dZero)) { - copy = Decimal.pow(base, copy); - result -= 1; - } else if (copy.lte(Decimal.dOne)) { - return Decimal.fromNumber( - result + Decimal.slog_critical(base.toNumber(), copy.toNumber()) - ); - } else { - result += 1; - copy = Decimal.log(copy, base); - } - } - return Decimal.fromNumber(result); - } - - //background info and tables of values for critical functions taken here: https://github.com/Patashu/break_eternity.js/issues/22 - public static slog_critical(base: number, height: number): number { - //TODO: for bases above 10, revert to old linear approximation until I can think of something better - if (base > 10) { - return height - 1; - } - return Decimal.critical_section(base, height, critical_slog_values); - } - - public static tetrate_critical(base: number, height: number): number { - return Decimal.critical_section(base, height, critical_tetr_values); - } - - public static critical_section(base: number, height: number, grid: number[][]): number { - //this part is simple at least, since it's just 0.1 to 0.9 - height *= 10; - if (height < 0) { - height = 0; - } - if (height > 10) { - height = 10; - } - //have to do this complicated song and dance since one of the critical_headers is Math.E, and in the future I'd like 1.5 as well - if (base < 2) { - base = 2; - } - if (base > 10) { - base = 10; - } - let lower = 0; - let upper = 0; - //basically, if we're between bases, we interpolate each bases' relevant values together - //then we interpolate based on what the fractional height is. - //accuracy could be improved by doing a non-linear interpolation (maybe), by adding more bases and heights (definitely) but this is AFAIK the best you can get without running some pari.gp or mathematica program to calculate exact values - //however, do note http://myweb.astate.edu/wpaulsen/tetcalc/tetcalc.html can do it for arbitrary heights but not for arbitrary bases (2, e, 10 present) - for (let i = 0; i < critical_headers.length; ++i) { - if (critical_headers[i] == base) { - // exact match - lower = grid[i][Math.floor(height)]; - upper = grid[i][Math.ceil(height)]; - break; - } else if (critical_headers[i] < base && critical_headers[i + 1] > base) { - // interpolate between this and the next - const basefrac = - (base - critical_headers[i]) / (critical_headers[i + 1] - critical_headers[i]); - lower = - grid[i][Math.floor(height)] * (1 - basefrac) + - grid[i + 1][Math.floor(height)] * basefrac; - upper = - grid[i][Math.ceil(height)] * (1 - basefrac) + - grid[i + 1][Math.ceil(height)] * basefrac; - break; - } - } - const frac = height - Math.floor(height); - //improvement - you get more accuracy (especially around 0.9-1.0) by doing log, then frac, then powing the result - //(we could pre-log the lookup table, but then fractional bases would get Weird) - //also, use old linear for slog (values 0 or less in critical section). maybe something else is better but haven't thought about what yet - if (lower <= 0 || upper <= 0) { - return lower * (1 - frac) + upper * frac; - } else { - return Math.pow( - base, - (Math.log(lower) / Math.log(base)) * (1 - frac) + - (Math.log(upper) / Math.log(base)) * frac - ); - } - } - - //Function for adding/removing layers from a Decimal, even fractional layers (e.g. its slog10 representation). - //Moved this over to use the same critical section as tetrate/slog. - public layeradd10(diff: DecimalSource): Decimal { - diff = Decimal.fromValue_noAlloc(diff).toNumber(); - const result = Decimal.fromDecimal(this); - if (diff >= 1) { - //bug fix: if result is very smol (mag < 0, layer > 0) turn it into 0 first - if (result.mag < 0 && result.layer > 0) { - result.sign = 0; - result.mag = 0; - result.layer = 0; - } else if (result.sign === -1 && result.layer == 0) { - //bug fix - for stuff like -3.layeradd10(1) we need to move the sign to the mag - result.sign = 1; - result.mag = -result.mag; - } - const layeradd = Math.trunc(diff); - diff -= layeradd; - result.layer += layeradd; - } - if (diff <= -1) { - const layeradd = Math.trunc(diff); - diff -= layeradd; - result.layer += layeradd; - if (result.layer < 0) { - for (let i = 0; i < 100; ++i) { - result.layer++; - result.mag = Math.log10(result.mag); - if (!isFinite(result.mag)) { - //another bugfix: if we hit -Infinity mag, then we should return negative infinity, not 0. 0.layeradd10(-1) h its this - if (result.sign === 0) { - result.sign = 1; - } - //also this, for 0.layeradd10(-2) - if (result.layer < 0) { - result.layer = 0; - } - return result.normalize(); - } - if (result.layer >= 0) { - break; - } - } - } - } - - while (result.layer < 0) { - result.layer++; - result.mag = Math.log10(result.mag); - } - //bugfix: before we normalize: if we started with 0, we now need to manually fix a layer ourselves! - if (result.sign === 0) { - result.sign = 1; - if (result.mag === 0 && result.layer >= 1) { - result.layer -= 1; - result.mag = 1; - } - } - result.normalize(); - - //layeradd10: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 10 and iterated log base 10. Also equivalent to adding a fractional amount to the number's layer in its break_eternity.js representation. - if (diff !== 0) { - return result.layeradd(diff, 10); //safe, only calls positive height 1 payload tetration, slog and log - } - - return result; - } - - //layeradd: like adding 'diff' to the number's slog(base) representation. Very similar to tetrate base 'base' and iterated log base 'base'. - public layeradd(diff: number, base: DecimalSource): Decimal { - const slogthis = this.slog(base).toNumber(); - const slogdest = slogthis + diff; - if (slogdest >= 0) { - return Decimal.tetrate(base, slogdest); - } else if (!Number.isFinite(slogdest)) { - return Decimal.dNaN; - } else if (slogdest >= -1) { - return Decimal.log(Decimal.tetrate(base, slogdest + 1), base); - } else { - return Decimal.log(Decimal.log(Decimal.tetrate(base, slogdest + 2), base), base); - } - } - - //The Lambert W function, also called the omega function or product logarithm, is the solution W(x) === x*e^x. - // https://en.wikipedia.org/wiki/Lambert_W_function - //Some special values, for testing: https://en.wikipedia.org/wiki/Lambert_W_function#Special_values - public lambertw(): Decimal { - if (this.lt(-0.3678794411710499)) { - throw Error("lambertw is unimplemented for results less than -1, sorry!"); - } else if (this.mag < 0) { - return Decimal.fromNumber(f_lambertw(this.toNumber())); - } else if (this.layer === 0) { - return Decimal.fromNumber(f_lambertw(this.sign * this.mag)); - } else if (this.layer === 1) { - return d_lambertw(this); - } else if (this.layer === 2) { - return d_lambertw(this); - } - if (this.layer >= 3) { - return FC_NN(this.sign, this.layer - 1, this.mag); - } - - throw new Error("Unhandled behavior in lambertw()"); - } - - //The super square-root function - what number, tetrated to height 2, equals this? - //Other sroots are possible to calculate probably through guess and check methods, this one is easy though. - // https://en.wikipedia.org/wiki/Tetration#Super-root - public ssqrt(): Decimal { - if (this.sign == 1 && this.layer >= 3) { - return FC_NN(this.sign, this.layer - 1, this.mag); - } - const lnx = this.ln(); - return lnx.div(lnx.lambertw()); - } - - //Pentation/pentate: The result of tetrating 'height' times in a row. An absurdly strong operator - Decimal.pentate(2, 4.28) and Decimal.pentate(10, 2.37) are already too huge for break_eternity.js! - // https://en.wikipedia.org/wiki/Pentation - public pentate(height = 2, payload: DecimalSource = FC_NN(1, 0, 1)): Decimal { - payload = D(payload); - const oldheight = height; - height = Math.trunc(height); - const fracheight = oldheight - height; - - //I have no idea if this is a meaningful approximation for pentation to continuous heights, but it is monotonic and continuous. - if (fracheight !== 0) { - if (payload.eq(Decimal.dOne)) { - ++height; - payload = Decimal.fromNumber(fracheight); - } else { - if (this.eq(10)) { - payload = payload.layeradd10(fracheight); - } else { - payload = payload.layeradd(fracheight, this); - } - } - } - - for (let i = 0; i < height; ++i) { - payload = this.tetrate(payload.toNumber()); - //bail if we're NaN - if (!isFinite(payload.layer) || !isFinite(payload.mag)) { - return payload.normalize(); - } - //give up after 10 iterations if nothing is happening - if (i > 10) { - return payload; - } - } - - return payload; - } - - // trig functions! - public sin(): this | Decimal { - if (this.mag < 0) { - return this; - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.sin(this.sign * this.mag)); - } - return FC_NN(0, 0, 0); - } - - public cos(): Decimal { - if (this.mag < 0) { - return Decimal.dOne; - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.cos(this.sign * this.mag)); - } - return FC_NN(0, 0, 0); - } - - public tan(): this | Decimal { - if (this.mag < 0) { - return this; - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.tan(this.sign * this.mag)); - } - return FC_NN(0, 0, 0); - } - - public asin(): this | Decimal { - if (this.mag < 0) { - return this; - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.asin(this.sign * this.mag)); - } - return FC_NN(Number.NaN, Number.NaN, Number.NaN); - } - - public acos(): Decimal { - if (this.mag < 0) { - return Decimal.fromNumber(Math.acos(this.toNumber())); - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.acos(this.sign * this.mag)); - } - return FC_NN(Number.NaN, Number.NaN, Number.NaN); - } - - public atan(): this | Decimal { - if (this.mag < 0) { - return this; - } - if (this.layer === 0) { - return Decimal.fromNumber(Math.atan(this.sign * this.mag)); - } - return Decimal.fromNumber(Math.atan(this.sign * 1.8e308)); - } - - public sinh(): Decimal { - return this.exp().sub(this.negate().exp()).div(2); - } - - public cosh(): Decimal { - return this.exp().add(this.negate().exp()).div(2); - } - - public tanh(): Decimal { - return this.sinh().div(this.cosh()); - } - - public asinh(): Decimal { - return Decimal.ln(this.add(this.sqr().add(1).sqrt())); - } - - public acosh(): Decimal { - return Decimal.ln(this.add(this.sqr().sub(1).sqrt())); - } - - public atanh(): Decimal { - if (this.abs().gte(1)) { - return FC_NN(Number.NaN, Number.NaN, Number.NaN); - } - - return Decimal.ln(this.add(1).div(Decimal.fromNumber(1).sub(this))).div(2); - } - - /** - * Joke function from Realm Grinder - */ - public ascensionPenalty(ascensions: DecimalSource): Decimal { - if (ascensions === 0) { - return this; - } - - return this.root(Decimal.pow(10, ascensions)); - } - - /** - * Joke function from Cookie Clicker. It's 'egg' - */ - public egg(): Decimal { - return this.add(9); - } - - public lessThanOrEqualTo(other: DecimalSource): boolean { - return this.cmp(other) < 1; - } - - public lessThan(other: DecimalSource): boolean { - return this.cmp(other) < 0; - } - - public greaterThanOrEqualTo(other: DecimalSource): boolean { - return this.cmp(other) > -1; - } - - public greaterThan(other: DecimalSource): boolean { - return this.cmp(other) > 0; - } - - // return Decimal; -} - -// Assign these after the Decimal is assigned because vitest had issues otherwise -// If we can figure out why, we can make these readonly properties instead -Decimal.dZero = FC_NN(0, 0, 0); -Decimal.dOne = FC_NN(1, 0, 1); -Decimal.dNegOne = FC_NN(-1, 0, 1); -Decimal.dTwo = FC_NN(1, 0, 2); -Decimal.dTen = FC_NN(1, 0, 10); -Decimal.dNaN = FC_NN(Number.NaN, Number.NaN, Number.NaN); -Decimal.dInf = FC_NN(1, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY); -Decimal.dNegInf = FC_NN(-1, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY); -Decimal.dNumberMax = FC(1, 0, Number.MAX_VALUE); -Decimal.dNumberMin = FC(1, 0, Number.MIN_VALUE); - -// return Decimal; - -// Optimise Decimal aliases. -// We can't do this optimisation before Decimal is assigned. -D = Decimal.fromValue_noAlloc; -FC = Decimal.fromComponents; -FC_NN = Decimal.fromComponents_noNormalize; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -ME = Decimal.fromMantissaExponent; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -ME_NN = Decimal.fromMantissaExponent_noNormalize; diff --git a/src/lib/collapseTransition.d.ts b/src/lib/collapseTransition.d.ts deleted file mode 100644 index ff06672..0000000 --- a/src/lib/collapseTransition.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module '@ivanv/vue-collapse-transition/src/CollapseTransition.vue'; diff --git a/src/lib/lru-cache.ts b/src/lib/lru-cache.ts deleted file mode 100644 index 35363ef..0000000 --- a/src/lib/lru-cache.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** -* A LRU cache intended for caching pure functions. -*/ -export class LRUCache<K, V> { - private map = new Map<K, ListNode<K, V>>(); - // Invariant: Exactly one of the below is true before and after calling a - // LRUCache method: - // - first and last are both undefined, and map.size() is 0. - // - first and last are the same object, and map.size() is 1. - // - first and last are different objects, and map.size() is greater than 1. - private first: ListNode<K, V> | undefined = undefined; - private last: ListNode<K, V> | undefined = undefined; - maxSize: number; - - /** - * @param maxSize The maximum size for this cache. We recommend setting this - * to be one less than a power of 2, as most hashtables - including V8's - * Object hashtable (https://crsrc.org/c/v8/src/objects/ordered-hash-table.cc) - * - uses powers of two for hashtable sizes. It can't exactly be a power of - * two, as a .set() call could temporarily set the size of the map to be - * maxSize + 1. - */ - constructor(maxSize: number) { - this.maxSize = maxSize; - } - - get size(): number { - return this.map.size; - } - - /** - * Gets the specified key from the cache, or undefined if it is not in the - * cache. - * @param key The key to get. - * @returns The cached value, or undefined if key is not in the cache. - */ - get(key: K): V | undefined { - const node = this.map.get(key); - if (node === undefined) { - return undefined; - } - // It is guaranteed that there is at least one item in the cache. - // Therefore, first and last are guaranteed to be a ListNode... - // but if there is only one item, they might be the same. - - // Update the order of the list to make this node the first node in the - // list. - // This isn't needed if this node is already the first node in the list. - if (node !== this.first) { - // As this node is DIFFERENT from the first node, it is guaranteed that - // there are at least two items in the cache. - // However, this node could possibly be the last item. - if (node === this.last) { - // This node IS the last node. - this.last = node.prev; - // From the invariants, there must be at least two items in the cache, - // so node - which is the original "last node" - must have a defined - // previous node. Therefore, this.last - set above - must be defined - // here. - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.last!.next = undefined; - } else { - // This node is somewhere in the middle of the list, so there must be at - // least THREE items in the list, and this node's prev and next must be - // defined here. - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - node.prev!.next = node.next; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - node.next!.prev = node.prev; - } - node.next = this.first; - // From the invariants, there must be at least two items in the cache, so - // this.first must be a valid ListNode. - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.first!.prev = node; - this.first = node; - } - return node.value; - } - - /** - * Sets an entry in the cache. - * - * @param key The key of the entry. - * @param value The value of the entry. - * @throws Error, if the map already contains the key. - */ - set(key: K, value: V): void { - // Ensure that this.maxSize >= 1. - if (this.maxSize < 1) { - return; - } - if (this.map.has(key)) { - throw new Error("Cannot update existing keys in the cache"); - } - const node = new ListNode(key, value); - // Move node to the front of the list. - if (this.first === undefined) { - // If the first is undefined, the last is undefined too. - // Therefore, this cache has no items in it. - this.first = node; - this.last = node; - } else { - // This cache has at least one item in it. - node.next = this.first; - this.first.prev = node; - this.first = node; - } - this.map.set(key, node); - - while (this.map.size > this.maxSize) { - // We are guaranteed that this.maxSize >= 1, - // so this.map.size is guaranteed to be >= 2, - // so this.first and this.last must be different valid ListNodes, - // and this.last.prev must also be a valid ListNode (possibly this.first). - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const last = this.last!; - this.map.delete(last.key); - this.last = last.prev; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.last!.next = undefined; - } - } -} - -/** -* A node in a doubly linked list. -*/ -class ListNode<K, V> { - key: K; - value: V; - next: ListNode<K, V> | undefined = undefined; - prev: ListNode<K, V> | undefined = undefined; - - constructor(key: K, value: V) { - this.key = key; - this.value = value; - } -} \ No newline at end of file diff --git a/src/lib/pixi.ts b/src/lib/pixi.ts deleted file mode 100644 index ad62daa..0000000 --- a/src/lib/pixi.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { BatchRenderer, extensions } from "@pixi/core"; -import { TickerPlugin } from "@pixi/ticker"; - -extensions.add(TickerPlugin, BatchRenderer); diff --git a/src/lib/pwa-register.d.ts b/src/lib/pwa-register.d.ts deleted file mode 100644 index ac20d3c..0000000 --- a/src/lib/pwa-register.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -declare module 'virtual:pwa-register/vue' { - import type { Ref } from 'vue' - - export interface RegisterSWOptions { - immediate?: boolean - onNeedRefresh?: () => void - onOfflineReady?: () => void - onRegistered?: (registration: ServiceWorkerRegistration | undefined) => void - onRegisterError?: (error: any) => void - } - - export function useRegisterSW(options?: RegisterSWOptions): { - needRefresh: Ref<boolean> - offlineReady: Ref<boolean> - updateServiceWorker: (reloadPage?: boolean) => Promise<void> - } - } \ No newline at end of file diff --git a/src/lib/vue-panzoom.d.ts b/src/lib/vue-panzoom.d.ts deleted file mode 100644 index ec2db3e..0000000 --- a/src/lib/vue-panzoom.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'vue-panzoom'; diff --git a/src/lib/vue-textarea-autosize.d.ts b/src/lib/vue-textarea-autosize.d.ts deleted file mode 100644 index 95c04d9..0000000 --- a/src/lib/vue-textarea-autosize.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'vue-textarea-autosize'; diff --git a/src/main.css b/src/main.css deleted file mode 100644 index 7734dd7..0000000 --- a/src/main.css +++ /dev/null @@ -1,86 +0,0 @@ -:root { - color-scheme: dark; -} - -* { - transition-duration: 0.5s; - font-family: "Roboto Mono", monospace; - font-weight: bold; - margin: auto; - text-size-adjust: none; -} - -*:focus { - outline: none; -} - -body { - overflow: hidden; - transition: none; - text-align: center; -} - -html, body, #app { - min-height: 100%; - height: 100%; -} - -h1, h2, h3, b, input { - display: inline; -} - -button { - color: black; -} - -a, -.button, -.link { - display: block; - color: var(--link); - background: none; - border: none; - cursor: pointer; - text-decoration: none; -} - -a:hover, -.button:hover, -.link:hover { - text-shadow: 5px 0 10px var(--link), - -3px 0 12px var(--link); -} - -.button:disabled { - opacity: .5; - cursor: not-allowed; -} -.button:disabled:hover { - text-shadow: none; -} - -ul { - list-style-type: none; -} - -.Vue-Toastification__toast { - margin: unset; -} - -:disabled { - pointer-events: none; -} - -.material-icons { - font-family: 'Material Icons'; - font-weight: normal; - font-style: normal; - font-size: 24px; - display: inline-block; - line-height: 1; - text-transform: none; - letter-spacing: normal; - word-wrap: normal; - white-space: nowrap; - direction: ltr; -} diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index e502bb8..0000000 --- a/src/main.ts +++ /dev/null @@ -1,84 +0,0 @@ -import "@fontsource/material-icons"; -import App from "App.vue"; -import projInfo from "data/projInfo.json"; -import "game/notifications"; -import state from "game/state"; -import "util/galaxy"; -import { load } from "util/save"; -import { useRegisterSW } from "virtual:pwa-register/vue"; -import type { App as VueApp } from "vue"; -import { createApp, nextTick } from "vue"; -import { useToast } from "vue-toastification"; -import { globalBus } from "game/events"; -import { startGameLoop } from "game/gameLoop"; - -declare global { - /** - * Augment the window object so the vue app and project info can be accessed from the console. - */ - interface Window { - vue: VueApp; - projInfo: typeof projInfo; - } -} - -const error = console.error; -console.error = function (...args) { - if (import.meta.env.DEV) { - state.errors.push(new Error(args[0], { cause: args[1] })); - } - error(...args); -}; - -window.onerror = function (event, source, lineno, colno, err) { - state.errors.push(err instanceof Error ? err : new Error(JSON.stringify(err))); - error(err); - return true; -}; -window.onunhandledrejection = function (event) { - state.errors.push( - event.reason instanceof Error ? event.reason : new Error(JSON.stringify(event.reason)) - ); - error(event.reason); -}; - -document.title = projInfo.title; -window.projInfo = projInfo; -if (projInfo.id === "") { - console.error( - "Project ID is empty!", - "Please select a unique ID for this project in /src/data/projInfo.json" - ); -} - -requestAnimationFrame(async () => { - console.log( - "%cMade in Profectus%c\nLearn more at www.moddingtree.com", - "font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;", - "padding: 4px;" - ); - await load(); - - // Create Vue - const vue = (window.vue = createApp(App)); - vue.config.errorHandler = function (err, instance, info) { - console.error(err, info, instance); - }; - globalBus.emit("setupVue", vue); - vue.mount("#app"); - - // Setup PWA update prompt - nextTick(() => { - const toast = useToast(); - useRegisterSW({ - immediate: true, - onOfflineReady() { - toast.info("App ready to work offline"); - }, - onRegisterError: console.warn, - onRegistered: console.info - }); - }); - - startGameLoop(); -}); diff --git a/src/mixins/bonusAmount.ts b/src/mixins/bonusAmount.ts deleted file mode 100644 index 5ed7c7d..0000000 --- a/src/mixins/bonusAmount.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Decimal, { DecimalSource } from "util/bignum"; -import { processGetter } from "util/computed"; -import { MaybeRefOrGetter, Ref, computed, unref } from "vue"; - -/** Allows the addition of "bonus levels" to a feature, with an accompanying "total amount". */ -export function bonusAmountMixin( - baseAmount: Ref<DecimalSource>, - bonusAmount: MaybeRefOrGetter<DecimalSource> -) { - const processedBonusAmount = processGetter(bonusAmount); - return { - bonusAmount: processedBonusAmount, - totalAmount: computed(() => Decimal.add(unref(baseAmount), unref(processedBonusAmount))) - }; -} diff --git a/src/util/bignum.ts b/src/util/bignum.ts deleted file mode 100644 index d8e3252..0000000 --- a/src/util/bignum.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Import Decimal and numberUtils from a different file to globally change which big num library gets used -// This way switching out big number libraries just needs to happen here, not every file that needs big numbers -import type { DecimalSource as RawDecimalSource } from "lib/break_eternity"; -import Decimal, * as numberUtils from "util/break_eternity"; - -export const { - exponentialFormat, - commaFormat, - regularFormat, - format, - formatWhole, - formatTime, - toPlaces, - formatSmall, - invertOOM -} = numberUtils; - -export type DecimalSource = RawDecimalSource; - -declare global { - /** Augment the window object so the big num functions can be accessed from the console. */ - interface Window { - Decimal: typeof Decimal; - exponentialFormat: (num: DecimalSource, precision: number, mantissa: boolean) => string; - commaFormat: (num: DecimalSource, precision: number) => string; - regularFormat: (num: DecimalSource, precision: number) => string; - format: (num: DecimalSource, precision?: number, small?: boolean) => string; - formatWhole: (num: DecimalSource) => string; - formatTime: (s: number) => string; - toPlaces: (x: DecimalSource, precision: number, maxAccepted: DecimalSource) => string; - formatSmall: (x: DecimalSource, precision?: number) => string; - invertOOM: (x: DecimalSource) => Decimal; - } -} -window.Decimal = Decimal; -window.exponentialFormat = exponentialFormat; -window.commaFormat = commaFormat; -window.regularFormat = regularFormat; -window.format = format; -window.formatWhole = formatWhole; -window.formatTime = formatTime; -window.toPlaces = toPlaces; -window.formatSmall = formatSmall; -window.invertOOM = invertOOM; - -export default Decimal; diff --git a/src/util/break_eternity.ts b/src/util/break_eternity.ts deleted file mode 100644 index 75cfc4d..0000000 --- a/src/util/break_eternity.ts +++ /dev/null @@ -1,196 +0,0 @@ -import projInfo from "data/projInfo.json"; -import type { DecimalSource } from "lib/break_eternity"; -import Decimal from "lib/break_eternity"; - -export default Decimal; - -const decimalOne = new Decimal(1); - -export function exponentialFormat(num: DecimalSource, precision: number, mantissa = true): string { - let e = Decimal.log10(num).floor(); - let m = Decimal.div(num, Decimal.pow(10, e)); - if (m.toStringWithDecimalPlaces(precision) === "10") { - m = decimalOne; - e = e.add(1); - } - const eString = e.gte(1e9) - ? format(e, Math.max(Math.max(precision, 3), projInfo.defaultDecimalsShown)) - : e.gte(10000) - ? commaFormat(e, 0) - : e.toStringWithDecimalPlaces(0); - if (mantissa) { - return m.toStringWithDecimalPlaces(precision) + "e" + eString; - } else { - return "e" + eString; - } -} - -export function commaFormat(num: DecimalSource, precision: number): string { - if (num == null) { - return "NaN"; - } - num = new Decimal(num); - if (num.mag < 0.001) { - return (0).toFixed(precision); - } - const init = num.toStringWithDecimalPlaces(precision); - const portions = init.split("."); - portions[0] = portions[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"); - if (portions.length === 1) return portions[0]; - return portions[0] + "." + portions[1]; -} - -export function regularFormat(num: DecimalSource, precision: number): string { - if (num == null) { - return "NaN"; - } - num = new Decimal(num); - if (num.mag < 0.0001) { - return (0).toFixed(precision); - } - if (num.mag < 0.1 && precision !== 0) { - precision = Math.max( - Math.max(precision, num.log10().negate().ceil().toNumber()), - projInfo.defaultDecimalsShown - ); - } - return num.toStringWithDecimalPlaces(precision); -} - -const eeee1000 = new Decimal("eeee1000"); -const e100000 = new Decimal("e100000"); -const e1000 = new Decimal("e1000"); -const e9 = new Decimal(1e9); -const e6 = new Decimal(1e6); -const e3 = new Decimal(1e3); -const nearOne = new Decimal(0.98); -const thousandth = new Decimal(0.001); -const zero = new Decimal(0); -export function format(num: DecimalSource, precision?: number, small?: boolean): string { - if (precision == null) precision = projInfo.defaultDecimalsShown; - small = small ?? projInfo.defaultShowSmall; - num = new Decimal(num); - if (isNaN(num.sign) || isNaN(num.layer) || isNaN(num.mag)) { - return "NaN"; - } - if (num.sign < 0) { - return "-" + format(num.neg(), precision); - } - if (num.mag === Number.POSITIVE_INFINITY) { - return "Infinity"; - } - if (num.gte(eeee1000)) { - const slog = num.slog(); - if (slog.gte(e6)) { - return "F" + format(slog.floor()); - } else { - return ( - Decimal.pow(10, slog.sub(slog.floor())).toStringWithDecimalPlaces(3) + - "F" + - commaFormat(slog.floor(), 0) - ); - } - } else if (num.gte(e100000)) { - return exponentialFormat(num, 0, false); - } else if (num.gte(e1000)) { - return exponentialFormat(num, 0); - } else if (num.gte(e9)) { - return exponentialFormat(num, precision); - } else if (num.gte(e3)) { - return commaFormat(num, 0); - } else if (num.gte(thousandth) || !small) { - return regularFormat(num, precision); - } else if (num.eq(zero)) { - return (0).toFixed(precision); - } - - num = invertOOM(num); - if (num.lt(e1000)) { - const val = exponentialFormat(num, precision); - return val.replace(/([^(?:e|F)]*)$/, "-$1"); - } else { - return format(num, precision) + "⁻¹"; - } -} - -export function formatWhole(num: DecimalSource): string { - num = new Decimal(num); - if (num.sign < 0) { - return "-" + formatWhole(num.neg()); - } - if (num.gte(e9)) { - return format(num); - } - if (num.lte(nearOne) && !num.eq(zero)) { - return format(num); - } - return format(num, 0); -} - -export function formatTime(seconds: DecimalSource): string { - if (Decimal.lt(seconds, 0)) { - return "-" + formatTime(Decimal.neg(seconds)); - } - if (Decimal.gt(seconds, 2 ** 51)) { - // integer precision limit - return format(Decimal.div(seconds, 31536000)) + "y"; - } - seconds = new Decimal(seconds).toNumber(); - if (seconds < 60) { - return format(seconds) + "s"; - } else if (seconds < 3600) { - return formatWhole(Math.floor(seconds / 60)) + "m " + format(seconds % 60) + "s"; - } else if (seconds < 86400) { - return ( - formatWhole(Math.floor(seconds / 3600)) + - "h " + - formatWhole(Math.floor(seconds / 60) % 60) + - "m " + - formatWhole(seconds % 60) + - "s" - ); - } else if (seconds < 31536000) { - return ( - formatWhole(Math.floor(seconds / 84600) % 365) + - "d " + - formatWhole(Math.floor(seconds / 3600) % 24) + - "h " + - formatWhole(Math.floor(seconds / 60) % 60) + - "m" - ); - } else { - return ( - formatWhole(Math.floor(seconds / 31536000)) + - "y " + - formatWhole(Math.floor(seconds / 84600) % 365) + - "d " + - formatWhole(Math.floor(seconds / 3600) % 24) + - "h" - ); - } -} - -export function toPlaces(x: DecimalSource, precision: number, maxAccepted: DecimalSource): string { - x = new Decimal(x); - let result = x.toStringWithDecimalPlaces(precision); - if (new Decimal(result).gte(maxAccepted)) { - result = Decimal.sub(maxAccepted, Math.pow(0.1, precision)).toStringWithDecimalPlaces( - precision - ); - } - return result; -} - -// Will also display very small numbers -export function formatSmall(x: DecimalSource, precision?: number): string { - return format(x, precision, true); -} - -export function invertOOM(x: DecimalSource): Decimal { - let e = Decimal.log10(x).ceil(); - const m = Decimal.div(x, Decimal.pow(10, e)); - e = e.neg(); - x = new Decimal(10).pow(e).times(m); - - return x; -} diff --git a/src/util/common.ts b/src/util/common.ts deleted file mode 100644 index ede303a..0000000 --- a/src/util/common.ts +++ /dev/null @@ -1,40 +0,0 @@ -export type RequiredKeys<T> = { - [K in keyof T]-?: NonNullable<unknown> extends Pick<T, K> ? never : K; -}[keyof T]; -export type OptionalKeys<T> = { - [K in keyof T]-?: NonNullable<unknown> extends Pick<T, K> ? K : never; -}[keyof T]; - -export type OmitOptional<T> = Pick<T, RequiredKeys<T>>; -export type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] }; - -export type ArrayElements<T extends ReadonlyArray<unknown>> = - T extends ReadonlyArray<infer S> ? S : never; - -// Reference: -// https://stackoverflow.com/questions/7225407/convert-camelcasetext-to-sentence-case-text -export function camelToTitle(camel: string): string { - let title = camel.replace(/([A-Z])/g, " $1"); - title = title.charAt(0).toUpperCase() + title.slice(1); - return title; -} - -export function camelToKebab(camel: string) { - // Split off first character so function works on upper camel (pascal) case - return (camel[0] + camel.slice(1).replace(/[A-Z]/g, c => `-${c}`)).toLowerCase(); -} - -export function isFunction<T, S extends ReadonlyArray<unknown>, R>( - functionOrValue: ((...args: S) => T) | R -): functionOrValue is (...args: S) => T { - return typeof functionOrValue === "function"; -} - -export enum Direction { - Up = "Up", - Down = "Down", - Left = "Left", - Right = "Right", - // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values - Default = "Up" -} diff --git a/src/util/computed.ts b/src/util/computed.ts deleted file mode 100644 index 29f0c8f..0000000 --- a/src/util/computed.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { isFunction } from "util/common"; -import type { ComputedRef } from "vue"; -import { computed } from "vue"; - -export type MaybeGetter<T> = T | (() => T); - -export function processGetter<T>(obj: T): T extends () => infer S ? ComputedRef<S> : T { - if (isFunction(obj) && obj.length === 0) { - return computed(obj) as ReturnType<typeof processGetter<T>>; - } - return obj as ReturnType<typeof processGetter<T>>; -} diff --git a/src/util/galaxy.ts b/src/util/galaxy.ts deleted file mode 100644 index 64790f9..0000000 --- a/src/util/galaxy.ts +++ /dev/null @@ -1,185 +0,0 @@ -import player, { Player, stringifySave } from "game/player"; -import settings from "game/settings"; -import LZString from "lz-string"; -import { GalaxyApi, initGalaxy } from "unofficial-galaxy-sdk"; -import { ref } from "vue"; -import { decodeSave, LoadablePlayerData, loadSave, save, setupInitialStore } from "./save"; - -export const galaxy = ref<GalaxyApi>(); -export const conflictingSaves = ref< - { id: string; local: LoadablePlayerData; cloud: LoadablePlayerData; slot: number }[] ->([]); -export const syncedSaves = ref<string[]>([]); - -export function sync() { - if (galaxy.value?.loggedIn !== true) { - return; - } - if (conflictingSaves.value.length > 0) { - // Pause syncing while resolving conflicted saves - return; - } - galaxy.value - .getSaveList() - .then(syncSaves) - .then(list => { - syncedSaves.value = list.map(s => s.content.id); - }) - .catch(console.error); -} - -// Setup Galaxy API -initGalaxy({ - supportsSaving: true, - supportsSaveManager: true, - onLoggedInChanged -}) - .then(g => { - galaxy.value = g; - onLoggedInChanged(g); - }) - .catch(console.error); - -function onLoggedInChanged(g: GalaxyApi) { - if (g.loggedIn !== true) { - return; - } - if (conflictingSaves.value.length > 0) { - // Pause syncing while resolving conflicted saves - return; - } - - g.getSaveList() - .then(list => { - const saves = syncSaves(list); - syncedSaves.value = saves.map(s => s.content.id); - - // If our current save has under 2 minutes of playtime, load the cloud save with the most recent time. - if (player.timePlayed < 120 * 1000 && saves.length > 0) { - const longestSave = saves.reduce((acc, curr) => - acc.content.time < curr.content.time ? curr : acc - ); - loadSave(longestSave.content); - } - }) - .catch(console.error); - - setInterval(sync, 60 * 1000); -} - -function syncSaves( - list: Record< - number, - { - label: string; - content: string; - } - > -) { - const savesToUpload = new Set(settings.saves.slice()); - const availableSlots = new Set(new Array(11).fill(0).map((_, i) => i)); - const saves = ( - Object.keys(list) - .map(slot => { - const { label, content } = list[parseInt(slot)]; - try { - return { - slot: parseInt(slot), - label, - content: JSON.parse(decodeSave(content) ?? "") - }; - } catch (e) { - return null; - } - }) - .filter( - n => - n != null && - typeof n.content.id === "string" && - typeof n.content.time === "number" && - typeof n.content.timePlayed === "number" - ) as { - slot: number; - label?: string; - content: Partial<Player> & { id: string; time: number; timePlayed: number }; - }[] - ).filter(cloudSave => { - if (cloudSave.label != null) { - cloudSave.content.name = cloudSave.label; - } - availableSlots.delete(cloudSave.slot); - const localSaveId = settings.saves.find(id => id === cloudSave.content.id); - if (localSaveId == null) { - settings.saves.push(cloudSave.content.id); - save(setupInitialStore(cloudSave.content)); - } else { - savesToUpload.delete(localSaveId); - try { - const localSave = JSON.parse( - decodeSave(localStorage.getItem(localSaveId) ?? "") ?? "" - ) as Partial<Player> | null; - if (localSave == null) { - return false; - } - localSave.id = localSaveId; - localSave.time = localSave.time ?? 0; - localSave.timePlayed = localSave.timePlayed ?? 0; - - const timePlayedDiff = Math.abs( - localSave.timePlayed - cloudSave.content.timePlayed - ); - const timeDiff = Math.abs(localSave.time - cloudSave.content.time); - // If their last played time and total time played are both within 2 minutes, just use the newer save (very unlikely to be coincidence) - // Otherwise, ask the player - if (timePlayedDiff < 120 * 1000 && timeDiff < 120 * 1000) { - if (localSave.time < cloudSave.content.time) { - save(setupInitialStore(cloudSave.content)); - if (settings.active === localSaveId) { - loadSave(cloudSave.content); - } - } else { - galaxy.value - ?.save( - cloudSave.slot, - LZString.compressToUTF16( - stringifySave(setupInitialStore(localSave)) - ), - localSave.name ?? cloudSave.label - ) - .catch(console.error); - // Update cloud save content for the return value - cloudSave.content = localSave as Player; - } - } else { - conflictingSaves.value.push({ - id: localSaveId, - cloud: cloudSave.content, - local: localSave as LoadablePlayerData, - slot: cloudSave.slot - }); - } - } catch (e) { - return false; - } - } - return true; - }); - - savesToUpload.forEach(id => { - try { - if (availableSlots.size > 0) { - const localSave = localStorage.getItem(id) ?? ""; - const parsedLocalSave = JSON.parse(decodeSave(localSave) ?? ""); - const slot = availableSlots.values().next().value; - if (slot == null) return; - galaxy.value - ?.save(slot, localSave, parsedLocalSave.name) - .then(() => syncedSaves.value.push(parsedLocalSave.id)) - .catch(console.error); - availableSlots.delete(slot); - } - } catch (e) {} - }); - - return saves; -} diff --git a/src/util/proxies.ts b/src/util/proxies.ts deleted file mode 100644 index 4bd2ced..0000000 --- a/src/util/proxies.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { NonPersistent } from "game/persistence"; - -export const ProxyState = Symbol("ProxyState"); -export const AfterEvaluation = Symbol("AfterEvaluation"); - -/** - * Makes a lazily evaluated object through the use of a Proxy - * @param objectFunc Function that constructs the object to be proxies - * @param baseObject An optional base object to pass to objectFunc, which all return properties will be assigned onto - * @returns A proxy for the object created by objectFunc - */ -export function createLazyProxy<T extends object, S extends T>( - objectFunc: (this: S, baseObject: S) => T, - baseObject: S = {} as S -): T & S { - const obj: S & Partial<T> = baseObject; - let calculated = false; - let calculating = false; - const toBeEvaluated: ((proxy: S & T) => void)[] = []; - function calculateObj(): T { - if (!calculated) { - if (calculating) { - throw new Error("Cyclical dependency detected. Cannot evaluate lazy proxy."); - } - calculating = true; - Object.assign(obj, objectFunc.call(obj, obj)); - calculated = true; - toBeEvaluated.forEach(cb => cb(obj)); - } - return obj as S & T; - } - - function runAfterEvaluation(cb: (proxy: S & T) => void) { - if (calculated) { - cb(obj); - } else { - toBeEvaluated.push(cb); - } - } - - return new Proxy(obj, { - get(target, key) { - if (key === ProxyState) { - return calculateObj(); - } - if (key === AfterEvaluation) { - return runAfterEvaluation; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const val = (calculateObj() as any)[key]; - if (val != null && typeof val === "object" && NonPersistent in val) { - return val[NonPersistent]; - } - return val; - }, - set(target, key, value) { - // TODO give warning about this? It should only be done with caution - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (calculateObj() as any)[key] = value; - return true; - }, - has(target, key) { - if (key === ProxyState || key === AfterEvaluation) { - return true; - } - return Reflect.has(calculateObj(), key); - }, - ownKeys() { - return Reflect.ownKeys(calculateObj()); - }, - getOwnPropertyDescriptor(target, key) { - if (!calculated) { - Object.assign(obj, objectFunc.call(obj, obj)); - calculated = true; - } - return Object.getOwnPropertyDescriptor(target, key); - } - }) as S & T; -} - -/** - * Registers a callback to be called on a lazily evaluated proxy once its been evaluated. - * @param maybeProxy A value that may be a lazily evaluated proxy - * @param callback The callback to call once the proxy has been evaluated (or immediately, if the object is not a proxy) - */ -export function runAfterEvaluation<T extends object>(maybeProxy: T, callback: (object: T) => void) { - if (AfterEvaluation in maybeProxy) { - (maybeProxy[AfterEvaluation] as (callback: (object: T) => void) => void)(callback); - } else { - callback(maybeProxy); - } -} diff --git a/src/util/save.ts b/src/util/save.ts deleted file mode 100644 index 10fd5b5..0000000 --- a/src/util/save.ts +++ /dev/null @@ -1,206 +0,0 @@ -import { fixOldSave, getInitialLayers } from "data/projEntry"; -import projInfo from "data/projInfo.json"; -import { globalBus } from "game/events"; -import { addLayer, layers, removeLayer } from "game/layers"; -import type { Player } from "game/player"; -import player, { stringifySave } from "game/player"; -import settings, { loadSettings } from "game/settings"; -import LZString from "lz-string"; -import { ref, shallowReactive } from "vue"; - -export type LoadablePlayerData = Omit<Partial<Player>, "id"> & { id: string; error?: unknown }; - -export function setupInitialStore(player: Partial<Player> = {}): Player { - return Object.assign( - { - id: `${projInfo.id}-0`, - name: "Default Save", - tabs: projInfo.initialTabs.slice(), - time: Date.now(), - autosave: true, - offlineProd: true, - offlineTime: 0, - timePlayed: 0, - keepGoing: false, - modID: projInfo.id, - modVersion: projInfo.versionNumber, - layers: {} - }, - player - ) as Player; -} - -export function save(playerData?: Player): string { - const stringifiedSave = LZString.compressToUTF16(stringifySave(playerData ?? player)); - localStorage.setItem((playerData ?? player).id, stringifiedSave); - return stringifiedSave; -} - -export async function load(): Promise<void> { - // Load global settings - loadSettings(); - - try { - let save = localStorage.getItem(settings.active); - if (save == null) { - await loadSave(newSave()); - return; - } - save = decodeSave(save); - if (save == null) { - throw "Unable to determine save encoding"; - } - const player = JSON.parse(save); - if (player.modID !== projInfo.id) { - await loadSave(newSave()); - return; - } - player.id = settings.active; - await loadSave(player); - } catch (e) { - console.error("Failed to load save. Falling back to new save.\n", e); - await loadSave(newSave()); - } -} - -export function decodeSave(save: string) { - if (save[0] === "{") { - // plaintext. No processing needed - } else if (save[0] === "e") { - // Assumed to be base64, which starts with e - save = decodeURIComponent(escape(atob(save))); - } else if (save[0] === "ᯡ") { - // Assumed to be lz, which starts with ᯡ - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - save = LZString.decompressFromUTF16(save)!; - } else { - console.warn("Unable to determine preset encoding", save); - return null; - } - return save; -} - -export function newSave(): Player { - const id = getUniqueID(); - const player = setupInitialStore({ id }); - save(player); - - settings.saves.push(id); - - return player; -} - -export function getUniqueID(): string { - let id, - i = 0; - do { - id = `${projInfo.id}-${i++}`; - } while (localStorage.getItem(id) != null); - return id; -} - -export const loadingSave = ref(false); - -export async function loadSave(playerObj: Partial<Player>): Promise<void> { - console.info("Loading save", playerObj); - loadingSave.value = true; - - for (const layer in layers) { - const l = layers[layer]; - if (l != null) { - removeLayer(l); - } - } - getInitialLayers(playerObj).forEach(layer => addLayer(layer, playerObj)); - - playerObj = setupInitialStore(playerObj); - if ( - playerObj.offlineProd && - playerObj.time != null && - playerObj.time && - playerObj.devSpeed !== 0 - ) { - if (playerObj.offlineTime == null) playerObj.offlineTime = 0; - playerObj.offlineTime += Math.min( - playerObj.offlineTime + (Date.now() - playerObj.time) / 1000, - projInfo.offlineLimit * 3600 - ); - } - playerObj.time = Date.now(); - if (playerObj.modVersion !== projInfo.versionNumber) { - fixOldSave(playerObj.modVersion, playerObj); - playerObj.modVersion = projInfo.versionNumber; - } - - Object.assign(player, playerObj); - settings.active = player.id; - - globalBus.emit("onLoad"); -} - -const cachedSaves = shallowReactive<Record<string, LoadablePlayerData | undefined>>({}); -export function getCachedSave(id: string) { - if (cachedSaves[id] == null) { - let save = localStorage.getItem(id); - if (save == null) { - cachedSaves[id] = { error: `Save doesn't exist in localStorage`, id }; - } else if (save === "dW5kZWZpbmVk") { - cachedSaves[id] = { error: `Save is undefined`, id }; - } else { - try { - save = decodeSave(save); - if (save == null) { - console.warn("Unable to determine preset encoding", save); - cachedSaves[id] = { error: "Unable to determine preset encoding", id }; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return cachedSaves[id]!; - } - cachedSaves[id] = { ...JSON.parse(save), id }; - } catch (error) { - cachedSaves[id] = { error, id }; - console.warn(`Failed to load info about save with id ${id}:\n${error}\n${save}`); - } - } - } - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return cachedSaves[id]!; -} -export function clearCachedSaves() { - Object.keys(cachedSaves).forEach(key => delete cachedSaves[key]); -} -export function clearCachedSave(id: string) { - cachedSaves[id] = undefined; -} - -setInterval(() => { - if (player.autosave) { - save(); - } -}, 1000); -window.onbeforeunload = () => { - if (player.autosave) { - save(); - } -}; - -declare global { - /** - * Augment the window object so the save, hard reset, and deleteLowerSaves functions can be accessed from the console. - */ - interface Window { - save: VoidFunction; - hardReset: VoidFunction; - deleteLowerSaves: VoidFunction; - } -} -window.save = save; -export const hardReset = (window.hardReset = async () => { - await loadSave(newSave()); -}); -export const deleteLowerSaves = (window.deleteLowerSaves = () => { - const index = Object.values(settings.saves).indexOf(player.id) + 1; - Object.values(settings.saves) - .slice(index) - .forEach(id => localStorage.removeItem(id)); - settings.saves = settings.saves.slice(0, index); -}); diff --git a/src/util/vue.tsx b/src/util/vue.tsx deleted file mode 100644 index 21296cf..0000000 --- a/src/util/vue.tsx +++ /dev/null @@ -1,187 +0,0 @@ -/* eslint-disable vue/multi-word-component-names */ -// ^ I have no idea why that's necessary; the rule is disabled, and this file isn't a vue component? -// I'm _guessing_ it's related to us using DefineComponent, but I figured that eslint rule should -// only apply to SFCs -import Col from "components/layout/Column.vue"; -import Row from "components/layout/Row.vue"; -import { getUniqueID, Visibility } from "features/feature"; -import VueFeatureComponent from "features/VueFeature.vue"; -import { MaybeGetter, processGetter } from "util/computed"; -import type { CSSProperties, MaybeRef, MaybeRefOrGetter, Ref } from "vue"; -import { isRef, onUnmounted, ref, toValue } from "vue"; -import { JSX } from "vue/jsx-runtime"; -import { camelToKebab } from "./common"; - -export const VueFeature = Symbol("VueFeature"); - -export type Renderable = JSX.Element | string; -export type Wrapper = (el: () => Renderable) => Renderable; - -export interface VueFeatureOptions { - /** Whether this feature should be visible. */ - visibility?: MaybeRefOrGetter<Visibility | boolean>; - /** Dictionary of CSS classes to apply to this feature. */ - classes?: MaybeRefOrGetter<Record<string, boolean>>; - /** CSS to apply to this feature. */ - style?: MaybeRefOrGetter<CSSProperties>; -} - -export interface VueFeature { - /** An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates. */ - id: string; - /** Whether this feature should be visible. */ - visibility?: MaybeRef<Visibility | boolean>; - /** Dictionary of CSS classes to apply to this feature. */ - classes?: MaybeRef<Record<string, boolean>>; - /** CSS to apply to this feature. */ - style?: MaybeRef<CSSProperties>; - /** The components to render inside the vue feature */ - components: MaybeGetter<Renderable>[]; - /** The components to render wrapped around the vue feature */ - wrappers: Wrapper[]; - /** Used to identify Vue Features */ - [VueFeature]: true; -} - -export function vueFeatureMixin( - featureName: string, - options: VueFeatureOptions, - component?: MaybeGetter<Renderable> -) { - return { - id: getUniqueID(featureName), - visibility: processGetter(options.visibility), - classes: processGetter(options.classes), - style: processGetter(options.style), - components: component == null ? [] : [component], - wrappers: [] as Wrapper[], - [VueFeature]: true - } satisfies VueFeature; -} - -export function render(object: VueFeature, wrapper?: (el: Renderable) => Renderable): JSX.Element; -export function render<T extends Renderable>( - object: MaybeGetter<Renderable>, - wrapper?: (el: Renderable) => T -): T; -export function render( - object: VueFeature | MaybeGetter<Renderable>, - wrapper?: (el: Renderable) => Renderable -): Renderable; -export function render( - object: VueFeature | MaybeGetter<Renderable>, - wrapper?: (el: Renderable) => Renderable -) { - if (typeof object === "object" && VueFeature in object) { - const { id, visibility, style, classes, components, wrappers } = object; - return ( - <VueFeatureComponent - id={id} - visibility={visibility} - style={style} - classes={classes} - components={components} - wrappers={wrappers} - /> - ); - } - - object = toValue(object); - return wrapper?.(object) ?? object; -} - -export function renderRow(...objects: (VueFeature | MaybeGetter<Renderable>)[]): JSX.Element { - return <Row>{objects.map(obj => render(obj))}</Row>; -} - -export function renderCol(...objects: (VueFeature | MaybeGetter<Renderable>)[]): JSX.Element { - return <Col>{objects.map(obj => render(obj))}</Col>; -} - -export function joinJSX( - objects: (VueFeature | MaybeGetter<Renderable>)[], - joiner: JSX.Element -): JSX.Element { - return objects.reduce<JSX.Element>( - (acc, curr) => ( - <> - {acc} - {joiner} - {render(curr)} - </> - ), - <></> - ); -} - -export function isJSXElement(element: unknown): element is JSX.Element { - return ( - element != null && typeof element === "object" && "type" in element && "children" in element - ); -} - -export function setupHoldToClick(callback: (e?: MouseEvent | TouchEvent) => void): { - start: (e: MouseEvent | TouchEvent) => void; - stop: VoidFunction; - handleHolding: VoidFunction; -} { - const interval = ref<NodeJS.Timeout | null>(null); - const event = ref<MouseEvent | TouchEvent | undefined>(undefined); - - function start(e: MouseEvent | TouchEvent) { - if (interval.value == null) { - interval.value = setInterval(handleHolding, 250); - } - event.value = e; - } - function stop() { - if (interval.value != null) { - clearInterval(interval.value); - interval.value = null; - } - } - function handleHolding() { - callback(event.value); - } - - onUnmounted(stop); - - return { start, stop, handleHolding }; -} - -export function setRefValue<T>(ref: Ref<T | Ref<T>>, value: T) { - if (isRef(ref.value)) { - ref.value.value = value; - } else { - ref.value = value; - } -} - -export type PropTypes = - | typeof Boolean - | typeof String - | typeof Number - | typeof Function - | typeof Object - | typeof Array; - -export function trackHover(element: VueFeature): Ref<boolean> { - const isHovered = ref(false); - - (element as unknown as { onPointerenter: VoidFunction }).onPointerenter = () => - (isHovered.value = true); - (element as unknown as { onPointerleave: VoidFunction }).onPointerleave = () => - (isHovered.value = true); - - return isHovered; -} - -export function kebabifyObject(object: Record<string, unknown>) { - return Object.keys(object).reduce( - (acc, curr) => { - acc[camelToKebab(curr)] = object[curr]; - return acc; - }, - {} as Record<string, unknown> - ); -} diff --git a/src/wrappers/marks/MarkNode.vue b/src/wrappers/marks/MarkNode.vue deleted file mode 100644 index 98f5218..0000000 --- a/src/wrappers/marks/MarkNode.vue +++ /dev/null @@ -1,62 +0,0 @@ -<template> - <div v-if="unref(mark) === true" class="mark star"></div> - <img v-else-if="unref(mark) !== false" class="mark" :src="unref(mark) as string" /> - <slot /> -</template> - -<script setup lang="ts"> -import { MaybeRef, unref } from 'vue'; - -defineProps<{ mark: MaybeRef<boolean | string> }>(); -</script> - -<style scoped> -.mark { - position: absolute; - left: -25px; - top: -10px; - width: 30px; - height: 30px; - z-index: 1; - pointer-events: none; - margin-left: 0.9em; - margin-right: 0.9em; - margin-bottom: 1.2em; - border-right: 0.3em solid transparent; - border-bottom: 0.7em solid transparent; - border-left: 0.3em solid transparent; - font-size: 10px; -} - -.star { - left: -10px; - width: 0; - height: 0; - margin-left: 0.9em; - margin-right: 0.9em; - margin-bottom: 1.2em; - border-right: 0.3em solid transparent; - border-bottom: 0.7em solid #ffcc00; - border-left: 0.3em solid transparent; - font-size: 10px; - pointer-events: none; -} - -.star::before, -.star::after { - content: ""; - width: 0; - height: 0; - position: absolute; - top: 0.6em; - left: -1em; - border-right: 1em solid transparent; - border-bottom: 0.7em solid #ffcc00; - border-left: 1em solid transparent; - transform: rotate(-35deg); -} - -.star::after { - transform: rotate(35deg); -} -</style> diff --git a/src/wrappers/marks/mark.tsx b/src/wrappers/marks/mark.tsx deleted file mode 100644 index 969c768..0000000 --- a/src/wrappers/marks/mark.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { processGetter } from "util/computed"; -import { createLazyProxy, runAfterEvaluation } from "util/proxies"; -import type { VueFeature } from "util/vue"; -import { MaybeRef, MaybeRefOrGetter, unref } from "vue"; -import MarkNode from "./MarkNode.vue"; - -/** - * An object that configures a {@link Mark}. - */ -export interface MarkOptions { - /** Whether or not to display a star or custom string. None if falsy value */ - mark: MaybeRefOrGetter<string | boolean>; -} - -/** An object that represents a tooltip that appears when hovering over an element. */ -export interface Mark { - mark: MaybeRef<string | boolean>; -} - -/** - * Creates a mark to the top left of the given element with the given options. - * @param element The renderable feature to display the tooltip on. - * @param optionsFunc Mark options. - */ -export function addMark( - element: VueFeature, - optionsFunc: () => MarkOptions -): asserts element is VueFeature & { mark: Mark } { - const mark = createLazyProxy(() => { - const options = optionsFunc(); - const { mark, ...props } = options; - - return { - ...(props as Omit<typeof props, keyof MarkOptions>), - mark: processGetter(mark) - } satisfies Mark; - }); - - runAfterEvaluation(element, el => { - mark.mark; // Ensure mark gets evaluated - (element as VueFeature & { mark: Mark }).mark = mark; - el.wrappers.push(el => - Boolean(unref(mark.mark)) ? <MarkNode mark={mark.mark}>{el}</MarkNode> : <>{el}</> - ); - }); -} diff --git a/src/wrappers/tooltips/Tooltip.vue b/src/wrappers/tooltips/Tooltip.vue deleted file mode 100644 index 37f1020..0000000 --- a/src/wrappers/tooltips/Tooltip.vue +++ /dev/null @@ -1,188 +0,0 @@ -<template> - <div - class="tooltip-container" - :class="{ shown: isShown }" - @mouseenter="isHovered = true" - @mouseleave="isHovered = false" - @click.capture="togglePinned" - > - <slot /> - <transition name="fade"> - <div - v-if="isShown" - class="tooltip" - :class="{ - top: unref(direction) === Direction.Up, - left: unref(direction) === Direction.Left, - right: unref(direction) === Direction.Right, - bottom: unref(direction) === Direction.Down, - ...unref(classes) - }" - :style="[ - { - '--xoffset': unref(xoffset) || '0px', - '--yoffset': unref(yoffset) || '0px' - }, - unref(style) ?? {} - ]" - > - <span v-if="showPin" class="material-icons pinned">push_pin</span> - <Component /> - </div> - </transition> - </div> -</template> - -<script setup lang="tsx"> -import themes from "data/themes"; -import settings from "game/settings"; -import { Direction } from "util/common"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import type { Component, CSSProperties, MaybeRef, Ref } from "vue"; -import { computed, ref, unref } from "vue"; - -const props = defineProps<{ - pinned?: Ref<boolean>; - display: MaybeGetter<Renderable>; - style?: MaybeRef<CSSProperties>; - classes?: MaybeRef<Record<string, boolean>>; - direction: MaybeRef<Direction>; - xoffset?: MaybeRef<string>; - yoffset?: MaybeRef<string>; -}>(); - -const isHovered = ref(false); -const isShown = computed(() => props.pinned?.value === true || isHovered.value); - -const Component = () => render(props.display); - -function togglePinned(e: MouseEvent) { - const isPinned = props.pinned; - if (e.shiftKey && isPinned != null) { - isPinned.value = !isPinned.value; - e.stopPropagation(); - e.preventDefault(); - } -} - -const showPin = computed(() => props.pinned?.value === true && themes[settings.theme].showPin); -</script> - -<style scoped> -.tooltip-container { - position: relative; - --xoffset: 0px; - --yoffset: 0px; - text-shadow: none !important; -} - -.tooltip, -.tooltip::after { - pointer-events: none; - position: absolute; -} - -.tooltip { - text-align: center; - width: 150px; - font-size: 14px; - line-height: 1.2; - bottom: calc(100% + var(--yoffset)); - left: calc(50% + var(--xoffset)); - margin-bottom: 5px; - transform: translateX(-50%); - padding: 7px; - border-radius: 3px; - background-color: var(--tooltip-background); - color: var(--points); - z-index: 100 !important; - word-break: break-word; -} - -.tooltip :deep(hr) { - margin: var(--feature-margin) 0; -} - -.shown { - z-index: 10; -} - -.fade-enter-from, -.fade-leave-to { - opacity: 0; -} - -.tooltip::after { - content: " "; - position: absolute; - top: 100%; - bottom: 100%; - left: calc(50% - var(--xoffset)); - width: 0; - margin-left: -5px; - border-width: 5px; - border-style: solid; - border-color: var(--tooltip-background) transparent transparent transparent; -} - -.tooltip.left, -.side-nodes .tooltip:not(.right):not(.bottom):not(.top) { - bottom: calc(50% + var(--yoffset)); - left: unset; - right: calc(100% + var(--xoffset)); - margin-bottom: unset; - margin-right: 5px; - transform: translateY(50%); -} - -.tooltip.left::after, -.side-nodes .tooltip:not(.right):not(.bottom):not(.top)::after { - top: calc(50% + var(--yoffset)); - bottom: unset; - left: 100%; - right: 100%; - margin-left: unset; - margin-top: -5px; - border-color: transparent transparent transparent var(--tooltip-background); -} - -.tooltip.right { - bottom: calc(50% + var(--yoffset)); - left: calc(100% + var(--xoffset)); - margin-bottom: unset; - margin-left: 5px; - transform: translateY(50%); -} - -.tooltip.right::after { - top: calc(50% + var(--yoffset)); - left: 0; - right: 100%; - margin-left: -10px; - margin-top: -5px; - border-color: transparent var(--tooltip-background) transparent transparent; -} - -.tooltip.bottom { - top: calc(100% + var(--yoffset)); - bottom: unset; - left: calc(50% + var(--xoffset)); - margin-bottom: unset; - margin-top: 5px; - transform: translateX(-50%); -} - -.tooltip.bottom::after { - top: 0; - margin-top: -10px; - border-color: transparent transparent var(--tooltip-background) transparent; -} - -.pinned { - position: absolute; - right: -5px; - top: -5px; - transform: rotateZ(45deg); -} -</style> diff --git a/src/wrappers/tooltips/tooltip.tsx b/src/wrappers/tooltips/tooltip.tsx deleted file mode 100644 index d7ece95..0000000 --- a/src/wrappers/tooltips/tooltip.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import { isVisible } from "features/feature"; -import { deletePersistent, persistent } from "game/persistence"; -import { Direction } from "util/common"; -import { MaybeGetter, processGetter } from "util/computed"; -import { createLazyProxy, runAfterEvaluation } from "util/proxies"; -import { Renderable, vueFeatureMixin, type VueFeature, type VueFeatureOptions } from "util/vue"; -import { MaybeRef, MaybeRefOrGetter, type Ref } from "vue"; -import Tooltip from "wrappers/tooltips/Tooltip.vue"; - -declare module "@vue/runtime-dom" { - interface CSSProperties { - "--xoffset"?: string; - "--yoffset"?: string; - } -} - -/** - * An object that configures a {@link Tooltip}. - */ -export interface TooltipOptions extends VueFeatureOptions { - /** Whether or not this tooltip can be pinned, meaning it'll stay visible even when not hovered. */ - pinnable?: boolean; - /** The text to display inside the tooltip. */ - display: MaybeGetter<Renderable>; - /** The direction in which to display the tooltip */ - direction?: MaybeRefOrGetter<Direction>; - /** The x offset of the tooltip, in px. */ - xoffset?: MaybeRefOrGetter<string>; - /** The y offset of the tooltip, in px. */ - yoffset?: MaybeRefOrGetter<string>; -} - -/** An object that represents a tooltip that appears when hovering over an element. */ -export interface Tooltip extends VueFeature { - /** Whether or not this tooltip can be pinned, meaning it'll stay visible even when not hovered. */ - pinnable?: boolean; - /** The text to display inside the tooltip. */ - display: MaybeGetter<Renderable>; - /** The direction in which to display the tooltip */ - direction?: MaybeRef<Direction>; - /** The x offset of the tooltip, in px. */ - xoffset?: MaybeRef<string>; - /** The y offset of the tooltip, in px. */ - yoffset?: MaybeRef<string>; - /** Whether or not this tooltip is currently pinned. Undefined if {@link pinnable} is false. */ - pinned?: Ref<boolean>; -} - -/** - * Creates a tooltip on the given element with the given options. - * @param element The renderable feature to display the tooltip on. - * @param optionsFunc Tooltip options. - */ -export function addTooltip( - element: VueFeature, - optionsFunc: () => TooltipOptions -): asserts element is VueFeature & { tooltip: Tooltip } { - const pinned = persistent<boolean>(false, false); - const tooltip = createLazyProxy(() => { - const options = optionsFunc(); - const { pinnable, display, direction, xoffset, yoffset, ...props } = options; - - if (pinnable === false) { - deletePersistent(pinned); - } - - const tooltip = { - ...(props as Omit<typeof props, keyof VueFeature | keyof TooltipOptions>), - ...vueFeatureMixin("tooltip", options), - pinnable: pinnable ?? true, - pinned: pinnable === false ? undefined : pinned, - display, - direction: processGetter(direction ?? Direction.Up), - xoffset: processGetter(xoffset), - yoffset: processGetter(yoffset) - } satisfies Tooltip; - - return tooltip; - }); - - runAfterEvaluation(element, el => { - tooltip.id; // Ensure tooltip gets evaluated - (el as VueFeature & { tooltip: Tooltip }).tooltip = tooltip; - el.wrappers.push(el => - isVisible(tooltip.visibility ?? true) ? ( - <Tooltip - pinned={tooltip.pinned} - display={tooltip.display} - classes={tooltip.classes} - style={tooltip.style} - direction={tooltip.direction} - xoffset={tooltip.xoffset} - yoffset={tooltip.yoffset} - > - {el} - </Tooltip> - ) : ( - <>{el}</> - ) - ); - }); -} diff --git a/tests/features/conversions.test.ts b/tests/features/conversions.test.ts deleted file mode 100644 index fd808ed..0000000 --- a/tests/features/conversions.test.ts +++ /dev/null @@ -1,518 +0,0 @@ -import { - Conversion, - createCumulativeConversion, - createIndependentConversion, - setupPassiveGeneration -} from "features/conversion"; -import { createResource, Resource } from "features/resources/resource"; -import { InvertibleIntegralFormula } from "game/formulas/types"; -import { createLayer, Layer } from "game/layers"; -import Decimal from "util/bignum"; -import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest"; -import { ref, unref } from "vue"; -import "../utils"; - -describe("Creating conversion", () => { - let baseResource: Resource; - let gainResource: Resource; - let formula: (x: InvertibleIntegralFormula) => InvertibleIntegralFormula; - beforeEach(() => { - baseResource = createResource(ref(40)); - gainResource = createResource(ref(1)); - formula = x => x.div(10).sqrt(); - }); - afterEach(() => { - vi.restoreAllMocks(); - }); - - describe("Cumulative conversion", () => { - describe("Calculates currentGain correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.currentGain)).compare_tolerance(100); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.currentGain)).compare_tolerance(99); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.currentGain)).compare_tolerance(100); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.currentGain)).compare_tolerance(0); - }); - }); - describe("Calculates actualGain correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.actualGain)).compare_tolerance(100); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.actualGain)).compare_tolerance(99); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.actualGain)).compare_tolerance(100); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.actualGain)).compare_tolerance(0); - }); - }); - describe("Calculates currentAt correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.currentAt)).compare_tolerance( - Decimal.pow(100, 2).times(10) - ); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.currentAt)).compare_tolerance(Decimal.pow(99, 2).times(10)); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.currentAt)).compare_tolerance( - Decimal.pow(100, 2).times(10) - ); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.currentAt)).compare_tolerance(0); - }); - }); - describe("Calculates nextAt correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(101, 2).times(10)); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(100, 2).times(10)); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(101, 2).times(10)); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.dTen); - }); - }); - test("Converts correctly", () => { - const conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - conversion.convert(); - expect(baseResource.value).compare_tolerance(0); - expect(gainResource.value).compare_tolerance(3); - }); - describe("Obeys buy max", () => { - test("buyMax = false", () => { - const conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: false - })); - expect(unref(conversion.actualGain)).compare_tolerance(1); - }); - test("buyMax = true", () => { - const conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - expect(unref(conversion.actualGain)).compare_tolerance(2); - }); - }); - test("Spends correctly", () => { - const conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - conversion.convert(); - expect(baseResource.value).compare_tolerance(0); - }); - test("Calls onConvert", () => { - const onConvert = vi.fn(); - const conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula, - onConvert - })); - conversion.convert(); - expect(onConvert).toHaveBeenCalled(); - }); - }); - - describe("Independent conversion", () => { - describe("Calculates currentGain correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.currentGain)).compare_tolerance(100); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.currentGain)).compare_tolerance(99); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.currentGain)).compare_tolerance(100); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.currentGain)).compare_tolerance(1); - }); - }); - describe("Calculates actualGain correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.actualGain)).compare_tolerance(99); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.actualGain)).compare_tolerance(98); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.actualGain)).compare_tolerance(99); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.actualGain)).compare_tolerance(0); - }); - }); - describe("Calculates currentAt correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.currentAt)).compare_tolerance( - Decimal.pow(100, 2).times(10) - ); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.currentAt)).compare_tolerance(Decimal.pow(99, 2).times(10)); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.currentAt)).compare_tolerance( - Decimal.pow(100, 2).times(10) - ); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.currentAt)).compare_tolerance(Decimal.pow(1, 2).times(10)); - }); - }); - describe("Calculates nextAt correctly", () => { - let conversion: Conversion; - beforeEach(() => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - }); - test("Exactly enough", () => { - baseResource.value = Decimal.pow(100, 2).times(10); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(101, 2).times(10)); - }); - test("Just under", () => { - baseResource.value = Decimal.pow(100, 2).times(10).sub(1); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(100, 2).times(10)); - }); - test("Just over", () => { - baseResource.value = Decimal.pow(100, 2).times(10).add(1); - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(101, 2).times(10)); - }); - test("Zero", () => { - baseResource.value = Decimal.dZero; - expect(unref(conversion.nextAt)).compare_tolerance(Decimal.pow(2, 2).times(10)); - }); - }); - test("Converts correctly", () => { - const conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula - })); - conversion.convert(); - expect(baseResource.value).compare_tolerance(0); - expect(gainResource.value).compare_tolerance(2); - }); - describe("Obeys buy max", () => { - test("buyMax = false", () => { - const conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: false - })); - baseResource.value = 90; - expect(unref(conversion.actualGain)).compare_tolerance(1); - }); - test("buyMax = true", () => { - const conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - buyMax: true - })); - baseResource.value = 90; - expect(unref(conversion.actualGain)).compare_tolerance(2); - }); - }); - test("Spends correctly", () => { - const conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula - })); - conversion.convert(); - expect(baseResource.value).compare_tolerance(0); - }); - test("Calls onConvert", () => { - const onConvert = vi.fn(); - const conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - onConvert - })); - conversion.convert(); - expect(onConvert).toHaveBeenCalled(); - }); - }); - describe("Custom conversion", () => { - describe("Custom cumulative", () => { - let conversion: Conversion; - const convert = vi.fn(); - const spend = vi.fn(); - const onConvert = vi.fn(); - beforeAll(() => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula, - currentGain() { - return 10; - }, - actualGain() { - return 5; - }, - currentAt() { - return 100; - }, - nextAt() { - return 1000; - }, - convert, - spend, - onConvert - })); - }); - afterEach(() => { - vi.resetAllMocks(); - }); - test("Calculates currentGain correctly", () => { - expect(unref(conversion.currentGain)).compare_tolerance(10); - }); - test("Calculates actualGain correctly", () => { - expect(unref(conversion.actualGain)).compare_tolerance(5); - }); - test("Calculates currentAt correctly", () => { - expect(unref(conversion.currentAt)).compare_tolerance(100); - }); - test("Calculates nextAt correctly", () => { - expect(unref(conversion.nextAt)).compare_tolerance(1000); - }); - test("Calls convert", () => { - conversion.convert(); - expect(convert).toHaveBeenCalled(); - }); - test("Calls spend and onConvert", () => { - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula, - spend, - onConvert - })); - conversion.convert(); - expect(spend).toHaveBeenCalled(); - expect(spend).toHaveBeenCalledWith(expect.compare_tolerance(2)); - expect(onConvert).toHaveBeenCalled(); - expect(onConvert).toHaveBeenCalledWith(expect.compare_tolerance(2)); - }); - }); - describe("Custom independent", () => { - let conversion: Conversion; - const convert = vi.fn(); - const spend = vi.fn(); - const onConvert = vi.fn(); - beforeAll(() => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - currentGain() { - return 10; - }, - actualGain() { - return 5; - }, - currentAt() { - return 100; - }, - nextAt() { - return 1000; - }, - convert, - spend, - onConvert - })); - }); - afterEach(() => { - vi.resetAllMocks(); - }); - test("Calculates currentGain correctly", () => { - expect(unref(conversion.currentGain)).compare_tolerance(10); - }); - test("Calculates actualGain correctly", () => { - expect(unref(conversion.actualGain)).compare_tolerance(5); - }); - test("Calculates currentAt correctly", () => { - expect(unref(conversion.currentAt)).compare_tolerance(100); - }); - test("Calculates nextAt correctly", () => { - expect(unref(conversion.nextAt)).compare_tolerance(1000); - }); - test("Calls convert", () => { - conversion.convert(); - expect(convert).toHaveBeenCalled(); - }); - test("Calls spend and onConvert", () => { - conversion = createIndependentConversion(() => ({ - baseResource, - gainResource, - formula, - spend, - onConvert - })); - conversion.convert(); - expect(spend).toHaveBeenCalled(); - expect(spend).toHaveBeenCalledWith(expect.compare_tolerance(1)); - expect(onConvert).toHaveBeenCalled(); - expect(onConvert).toHaveBeenCalledWith(expect.compare_tolerance(1)); - }); - }); - }); -}); - -describe("Passive generation", () => { - let baseResource: Resource; - let gainResource: Resource; - let formula: (x: InvertibleIntegralFormula) => InvertibleIntegralFormula; - let conversion: Conversion; - let layer: Layer; - beforeEach(() => { - baseResource = createResource(ref(10)); - gainResource = createResource(ref(1)); - formula = x => x.div(10).sqrt(); - conversion = createCumulativeConversion(() => ({ - baseResource, - gainResource, - formula - })); - layer = createLayer("dummy", () => ({ display: "" })); - }); - test("Rate is 0", () => { - setupPassiveGeneration(layer, conversion, 0); - layer.emit("preUpdate", 1); - expect(gainResource.value).compare_tolerance(1); - }); - test("Rate is 1", () => { - setupPassiveGeneration(layer, conversion); - layer.emit("preUpdate", 1); - expect(gainResource.value).compare_tolerance(2); - }); - test("Rate is 100", () => { - setupPassiveGeneration(layer, conversion, () => 100); - layer.emit("preUpdate", 1); - expect(gainResource.value).compare_tolerance(101); - }); - test("Obeys cap", () => { - setupPassiveGeneration(layer, conversion, 100, () => 100); - layer.emit("preUpdate", 1); - expect(gainResource.value).compare_tolerance(100); - }); -}); diff --git a/tests/features/hotkey.test.ts b/tests/features/hotkey.test.ts deleted file mode 100644 index 65e1ac4..0000000 --- a/tests/features/hotkey.test.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { createHotkey, hotkeys } from "features/hotkey"; -import { afterEach, describe, expect, test } from "vitest"; -import { Ref, ref } from "vue"; -import "../utils"; - -function createSuccessHotkey(key: string, triggered: Ref<boolean>) { - hotkeys[key] = createHotkey(() => ({ - description: "", - key: key, - onPress: () => (triggered.value = true) - })); -} - -function createFailHotkey(key: string) { - hotkeys[key] = createHotkey(() => ({ - description: "Fail test", - key, - onPress: () => expect(true).toBe(false) - })); -} - -function mockKeypress(key: string, shiftKey = false, ctrlKey = false) { - const event = new KeyboardEvent("keydown", { key, shiftKey, ctrlKey }); - expect(document.dispatchEvent(event)).toBe(true); - return event; -} - -function testHotkey(pass: string, fail: string, key: string, shiftKey = false, ctrlKey = false) { - const triggered = ref(false); - createSuccessHotkey(pass, triggered); - createFailHotkey(fail); - mockKeypress(key, shiftKey, ctrlKey); - expect(triggered.value).toBe(true); -} - -describe("Hotkeys fire correctly", () => { - afterEach(() => { - Object.keys(hotkeys).forEach(key => delete hotkeys[key]); - }); - - test("Lower case letters", () => testHotkey("a", "A", "a")); - - test.each([["A"], ["shift+a"], ["shift+A"]])("Upper case letters using %s as key", key => { - testHotkey(key, "a", "A", true); - }); - - describe.each([ - [0, ")"], - [1, "!"], - [2, "@"], - [3, "#"], - [4, "$"], - [5, "%"], - [6, "^"], - [7, "&"], - [8, "*"], - [9, "("] - ])("Handle number %i and it's 'capital', %s", (number, symbol) => { - test("Triggering number", () => - testHotkey(number.toString(), symbol, number.toString(), true)); - test.each([symbol, `shift+${number}`, `shift+${symbol}`])( - "Triggering symbol using %s as key", - key => testHotkey(key, number.toString(), symbol, true) - ); - }); - - test("Ctrl modifier", () => testHotkey("ctrl+a", "a", "a", false, true)); - - test.each(["shift+ctrl+a", "ctrl+shift+a", "shift+ctrl+A", "ctrl+shift+A"])( - "Shift and Ctrl modifiers using %s as key", - key => { - const triggered = ref(false); - createSuccessHotkey(key, triggered); - createFailHotkey("a"); - createFailHotkey("A"); - createFailHotkey("shift+A"); - createFailHotkey("shift+a"); - createFailHotkey("ctrl+a"); - createFailHotkey("ctrl+A"); - mockKeypress("a", true, true); - expect(triggered.value).toBe(true); - } - ); - - test.each(["shift+ctrl+1", "ctrl+shift+1", "shift+ctrl+!", "ctrl+shift+!"])( - "Shift and Ctrl modifiers using %s as key", - key => { - const triggered = ref(false); - createSuccessHotkey(key, triggered); - createFailHotkey("1"); - createFailHotkey("!"); - createFailHotkey("shift+1"); - createFailHotkey("shift+!"); - createFailHotkey("ctrl+1"); - createFailHotkey("ctrl+!"); - mockKeypress("!", true, true); - expect(triggered.value).toBe(true); - } - ); -}); diff --git a/tests/features/tree.test.ts b/tests/features/tree.test.ts deleted file mode 100644 index 2415a38..0000000 --- a/tests/features/tree.test.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { createReset, Reset } from "features/reset"; -import { - branchedResetPropagation, - createTree, - createTreeNode, - defaultResetPropagation, - invertedResetPropagation -} from "features/trees/tree"; -import { beforeAll, beforeEach, describe, expect, test } from "vitest"; -import { Ref, ref } from "vue"; -import "../utils"; - -describe("Reset propagation", () => { - let shouldReset: Ref<boolean>, shouldNotReset: Ref<boolean>; - let goodReset: Reset, badReset: Reset; - beforeAll(() => { - shouldReset = ref(false); - shouldNotReset = ref(false); - goodReset = createReset(() => ({ - thingsToReset: [], - onReset() { - shouldReset.value = true; - } - })); - badReset = createReset(() => ({ - thingsToReset: [], - onReset() { - shouldNotReset.value = true; - } - })); - }); - beforeEach(() => { - shouldReset.value = false; - shouldNotReset.value = false; - }); - test("No resets", () => { - expect(() => { - const a = createTreeNode(() => ({})); - const b = createTreeNode(() => ({})); - const c = createTreeNode(() => ({})); - const tree = createTree(() => ({ - nodes: [[a], [b], [c]] - })); - tree.reset(a); - }).not.toThrowError(); - }); - - test("Do not propagate resets", () => { - const a = createTreeNode(() => ({ reset: badReset })); - const b = createTreeNode(() => ({ reset: badReset })); - const c = createTreeNode(() => ({ reset: badReset })); - const tree = createTree(() => ({ - nodes: [[a], [b], [c]] - })); - tree.reset(b); - expect(shouldNotReset.value).toBe(false); - }); - - test("Default propagation", () => { - const a = createTreeNode(() => ({ reset: goodReset })); - const b = createTreeNode(() => ({})); - const c = createTreeNode(() => ({ reset: badReset })); - const tree = createTree(() => ({ - nodes: [[a], [b], [c]], - resetPropagation: defaultResetPropagation - })); - tree.reset(b); - expect(shouldReset.value).toBe(true); - expect(shouldNotReset.value).toBe(false); - }); - - test("Inverted propagation", () => { - const a = createTreeNode(() => ({ reset: badReset })); - const b = createTreeNode(() => ({})); - const c = createTreeNode(() => ({ reset: goodReset })); - const tree = createTree(() => ({ - nodes: [[a], [b], [c]], - resetPropagation: invertedResetPropagation - })); - tree.reset(b); - expect(shouldReset.value).toBe(true); - expect(shouldNotReset.value).toBe(false); - }); - - test("Branched propagation", () => { - const a = createTreeNode(() => ({ reset: badReset })); - const b = createTreeNode(() => ({})); - const c = createTreeNode(() => ({ reset: goodReset })); - const tree = createTree(() => ({ - nodes: [[a, b, c]], - resetPropagation: branchedResetPropagation, - branches: [{ startNode: b, endNode: c }] - })); - tree.reset(b); - expect(shouldReset.value).toBe(true); - expect(shouldNotReset.value).toBe(false); - }); - - test("Branched propagation not bi-directional", () => { - const a = createTreeNode(() => ({ reset: badReset })); - const b = createTreeNode(() => ({})); - const c = createTreeNode(() => ({ reset: badReset })); - const tree = createTree(() => ({ - nodes: [[a, b, c]], - resetPropagation: branchedResetPropagation, - branches: [{ startNode: c, endNode: b }] - })); - tree.reset(b); - expect(shouldNotReset.value).toBe(false); - }); -}); diff --git a/tests/game/__snapshots__/modifiers.test.ts.snap b/tests/game/__snapshots__/modifiers.test.ts.snap deleted file mode 100644 index b2257dd..0000000 --- a/tests/game/__snapshots__/modifiers.test.ts.snap +++ /dev/null @@ -1,11927 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Additive Modifiers > applies description correctly > with description 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Additive Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > No optional values 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With base 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "10.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "15.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With base 2`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Based on", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With baseText 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Based on", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With everything 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": " (", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "Subtitle", - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": ")", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "subtitle", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Based on", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "10.00", - "/s", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "15.00", - "/s", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = false 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "-4.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = false 2`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = false 3`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = true 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "-4.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = true 2`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With smallerIsBetter > smallerIsBetter = true 3`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With subtitle 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": " (", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "Subtitle", - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": ")", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "subtitle", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - undefined, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Create modifier sections > With unit 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "h3", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "br", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Base", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "1.00", - "/s", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "Test Desc", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": null, - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 1, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "hr", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "Total", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "6.00", - "/s", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "style": { - "--unit": "", - }, - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies description correctly > with description 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Exponential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies description correctly > with description 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > negative value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > positive value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Multiplicative Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > zero value 1`] = ` -{ - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", -} -`; - -exports[`Sequential Modifiers > applies description correctly > with both 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies description correctly > with description 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with both > negative value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with both > positive value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with both > zero value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > negative value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > positive value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > with smallerIsBetter true > zero value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > negative value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "", - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "-5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > positive value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "5.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; - -exports[`Sequential Modifiers > applies smallerIsBetter correctly > without smallerIsBetter false > zero value 1`] = ` -[ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "+", - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "×", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - "test", - null, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-description", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": [ - { - "__v_isVNode": true, - "__v_skip": true, - "anchor": null, - "appContext": null, - "children": "^", - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": null, - "ref": null, - "scopeId": null, - "shapeFlag": 8, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": Symbol(v-txt), - }, - "0.00", - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-amount", - "style": "color: var(--danger)", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "span", - }, - ], - "component": null, - "ctx": null, - "dirs": null, - "dynamicChildren": null, - "dynamicProps": null, - "el": null, - "key": null, - "patchFlag": 0, - "props": { - "class": "modifier-container", - }, - "ref": null, - "scopeId": null, - "shapeFlag": 17, - "slotScopeIds": null, - "ssContent": null, - "ssFallback": null, - "staticCount": 0, - "suspense": null, - "target": null, - "targetAnchor": null, - "targetStart": null, - "transition": null, - "type": "div", - }, -] -`; diff --git a/tests/game/board.test.ts b/tests/game/board.test.ts deleted file mode 100644 index 0b1bcbb..0000000 --- a/tests/game/board.test.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { - NodePosition, - placeInAvailableSpace, - setupUniqueIds, - unwrapNodeRef -} from "game/boards/board"; -import { Direction } from "util/common"; -import { beforeEach, describe, expect, test } from "vitest"; -import { Ref, ref } from "vue"; -import "../utils"; - -describe("Unwraps node refs", () => { - test("Static value", () => expect(unwrapNodeRef(100, {})).toBe(100)); - test("Ref value", () => expect(unwrapNodeRef(ref(100), {})).toBe(100)); - test("0 param function value", () => expect(unwrapNodeRef(() => 100, {})).toBe(100)); - test("1 param function value", () => { - const actualNode = { foo: "bar" }; - expect( - unwrapNodeRef(function (node) { - if (node === actualNode) { - return true; - } - return false; - }, actualNode) - ).toBe(true); - }); -}); - -describe("Set up unique IDs", () => { - let nodes: Ref<{ id: number }[]>, nextId: Ref<number>; - beforeEach(() => { - nodes = ref([]); - nextId = setupUniqueIds(nodes); - }); - test("Starts at 0", () => expect(nextId?.value).toBe(0)); - test("Calculates initial value properly", () => { - nodes.value = [{ id: 0 }, { id: 1 }, { id: 2 }]; - expect(nextId.value).toBe(3); - }); - test("Non consecutive IDs", () => { - nodes.value = [{ id: -5 }, { id: 0 }, { id: 200 }]; - expect(nextId.value).toBe(201); - }); - test("After modification", () => { - nodes.value = [{ id: 0 }, { id: 1 }, { id: 2 }]; - nodes.value.push({ id: nextId.value }); - expect(nextId.value).toBe(4); - }); -}); - -describe("Place in available space", () => { - let nodes: Ref<NodePosition[]>, node: NodePosition; - beforeEach(() => { - nodes = ref([]); - node = { x: 10, y: 20 }; - }); - test("No nodes", () => { - placeInAvailableSpace(node, nodes.value); - expect(node).toMatchObject({ x: 10, y: 20 }); - }); - test("Moves node", () => { - nodes.value = [{ x: 10, y: 20 }]; - placeInAvailableSpace(node, nodes.value); - expect(node).not.toMatchObject({ x: 10, y: 20 }); - }); - describe("Respects radius", () => { - test("Positions radius away", () => { - nodes.value = [{ x: 10, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 32); - expect(node).toMatchObject({ x: 42, y: 20 }); - }); - test("Ignores node already radius away", () => { - nodes.value = [{ x: 42, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 32); - expect(node).toMatchObject({ x: 10, y: 20 }); - }); - test("Doesn't ignore node just under radius away", () => { - nodes.value = [{ x: 41, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 32); - expect(node).not.toMatchObject({ x: 10, y: 20 }); - }); - }); - describe("Respects direction", () => { - test("Goes left", () => { - nodes.value = [{ x: 10, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 10, Direction.Left); - expect(node).toMatchObject({ x: 0, y: 20 }); - }); - test("Goes up", () => { - nodes.value = [{ x: 10, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 10, Direction.Up); - expect(node).toMatchObject({ x: 10, y: 10 }); - }); - test("Goes down", () => { - nodes.value = [{ x: 10, y: 20 }]; - placeInAvailableSpace(node, nodes.value, 10, Direction.Down); - expect(node).toMatchObject({ x: 10, y: 30 }); - }); - }); - test("Finds hole", () => { - nodes.value = [ - { x: 10, y: 20 }, - { x: 30, y: 20 } - ]; - placeInAvailableSpace(node, nodes.value, 10); - expect(node).toMatchObject({ x: 20, y: 20 }); - }); -}); diff --git a/tests/game/formulas.test.ts b/tests/game/formulas.test.ts deleted file mode 100644 index ce62504..0000000 --- a/tests/game/formulas.test.ts +++ /dev/null @@ -1,1291 +0,0 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ -import { createResource, Resource } from "features/resources/resource"; -import Formula, { - calculateCost, - calculateMaxAffordable, - unrefFormulaSource -} from "game/formulas/formulas"; -import type { GenericFormula, IntegrableFormula, InvertibleFormula } from "game/formulas/types"; -import Decimal, { DecimalSource } from "util/bignum"; -import { beforeAll, describe, expect, test } from "vitest"; -import { ref } from "vue"; -import "../utils"; -import { InvertibleIntegralFormula } from "game/formulas/types"; - -type FormulaFunctions = keyof GenericFormula & keyof typeof Formula & keyof typeof Decimal; - -const testValues = [-2, "0", new Decimal(10.5)] as const; - -const invertibleZeroParamFunctionNames = [ - "round", - "floor", - "ceil", - "trunc", - "neg", - "recip", - "log10", - "log2", - "ln", - "pow10", - "exp", - "sqr", - "sqrt", - "cube", - "cbrt", - "lambertw", - "ssqrt", - "sin", - "cos", - "tan", - "asin", - "acos", - "atan", - "sinh", - "cosh", - "tanh", - "asinh", - "acosh", - "atanh", - "slog", - "tetrate", - "iteratedexp" -] as const; -const nonInvertibleZeroParamFunctionNames = [ - "abs", - "sign", - "pLog10", - "absLog10", - "factorial", - "gamma", - "lngamma" -] as const; -const integrableZeroParamFunctionNames = [ - "neg", - "recip", - "log10", - "log2", - "ln", - "pow10", - "exp", - "sqr", - "sqrt", - "cube", - "cbrt", - "sin", - "cos", - "tan", - "asin", - "acos", - "atan", - "sinh", - "cosh", - "tanh", - "asinh", - "acosh", - "atanh" -] as const; -const nonIntegrableZeroParamFunctionNames = [ - ...nonInvertibleZeroParamFunctionNames, - "round", - "floor", - "ceil", - "trunc", - "lambertw", - "ssqrt" -] as const; -const invertibleIntegralZeroPramFunctionNames = [ - "recip", - "log10", - "log2", - "ln", - "pow10", - "sqr", - "sqrt", - "cube", - "cbrt", - "neg", - "exp", - "sin", - "cos", - "tan", - "sinh", - "cosh", - "tanh" -] as const; -const nonInvertibleIntegralZeroPramFunctionNames = [ - ...nonIntegrableZeroParamFunctionNames, - "asin", - "acos", - "atan", - "asinh", - "acosh", - "atanh" -] as const; - -const invertibleOneParamFunctionNames = [ - "add", - "sub", - "mul", - "div", - "log", - "pow", - "root", - "layeradd" -] as const; -const nonInvertibleOneParamFunctionNames = ["layeradd10"] as const; -const integrableOneParamFunctionNames = ["add", "sub", "mul", "div", "log", "pow", "root"] as const; -const nonIntegrableOneParamFunctionNames = [...nonInvertibleOneParamFunctionNames, "slog"] as const; -const invertibleIntegralOneParamFunctionNames = integrableOneParamFunctionNames; -const nonInvertibleIntegralOneParamFunctionNames = nonIntegrableOneParamFunctionNames; - -const nonInvertibleTwoParamFunctionNames = ["iteratedlog", "pentate"] as const; -const nonIntegrableTwoParamFunctionNames = nonInvertibleTwoParamFunctionNames; -const nonInvertibleIntegralTwoParamFunctionNames = nonIntegrableTwoParamFunctionNames; - -describe("Formula Equality Checking", () => { - describe("Equality Checks", () => { - test("Equals", () => expect(Formula.add(1, 1).equals(Formula.add(1, 1))).toBe(true)); - test("Not Equals due to inputs", () => - expect(Formula.add(1, 1).equals(Formula.add(1, 0))).toBe(false)); - test("Not Equals due to functions", () => - expect(Formula.add(1, 1).equals(Formula.sub(1, 1))).toBe(false)); - test("Not Equals due to hasVariable", () => - expect(Formula.constant(1).equals(Formula.variable(1))).toBe(false)); - }); - - describe("Formula aliases", () => { - function testAliases<T extends FormulaFunctions>( - aliases: T[], - args: Parameters<(typeof Formula)[T]> - ) { - describe(aliases[0], () => { - let formula: GenericFormula; - beforeAll(() => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - formula = Formula[aliases[0]](...args); - }); - - aliases.slice(1).forEach(alias => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - test(alias, () => expect(Formula[alias](...args).equals(formula)).toBe(true)); - }); - }); - } - testAliases(["neg", "negate", "negated"], [1]); - testAliases(["recip", "reciprocal", "reciprocate"], [1]); - testAliases(["sign", "sgn"], [1]); - testAliases(["add", "plus"], [1, 1]); - testAliases(["sub", "subtract", "minus"], [1, 1]); - testAliases(["mul", "multiply", "times"], [1, 1]); - testAliases(["div", "divide"], [1, 1]); - testAliases(["log", "logarithm"], [1, 1]); - }); - - describe("Instance vs Static methods", () => { - let formula: GenericFormula; - beforeAll(() => { - formula = Formula.constant(10); - }); - [...invertibleZeroParamFunctionNames, ...nonInvertibleZeroParamFunctionNames].forEach( - name => { - test(name, () => { - const instanceFormula = formula[name](); - const staticFormula = Formula[name](formula); - expect(instanceFormula.equals(staticFormula)).toBe(true); - }); - } - ); - - [...invertibleOneParamFunctionNames, ...nonInvertibleOneParamFunctionNames].forEach( - name => { - test(name, () => { - const instanceFormula = formula[name](10); - const staticFormula = Formula[name](formula, 10); - expect(instanceFormula.equals(staticFormula)).toBe(true); - }); - } - ); - }); -}); - -describe("Creating Formulas", () => { - describe("Constants", () => { - function testConstant( - desc: string, - formulaFunc: () => InvertibleFormula, - expectedValue: DecimalSource = 10 - ) { - describe(desc, () => { - let formula: GenericFormula; - beforeAll(() => { - formula = formulaFunc(); - }); - test("Is not invertible", () => expect(formula.isInvertible()).toBe(false)); - test("Is not integrable", () => expect(formula.isIntegrable()).toBe(false)); - test("Integral is not invertible", () => - expect(formula.isIntegralInvertible()).toBe(false)); - test("Is not marked as having a variable", () => - expect(formula.hasVariable()).toBe(false)); - test("Evaluates correctly", () => - expect(formula.evaluate()).compare_tolerance(expectedValue)); - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - /* @ts-ignore */ - test("Invert errors", () => expect(() => formula.invert(25)).toLogError()); - test("Integrate errors", () => - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - /* @ts-ignore */ - expect(() => formula.evaluateIntegral()).toLogError()); - test("Invert integral errors", () => - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - /* @ts-ignore */ - expect(() => formula.invertIntegral(25)).toLogError()); - }); - } - testConstant("number", () => Formula.constant(10)); - testConstant("string", () => Formula.constant("10")); - testConstant("decimal", () => Formula.constant(new Decimal("1e400")), "1e400"); - testConstant("ref", () => Formula.constant(ref(10))); - }); - - function checkFormula<T extends FormulaFunctions>( - functionName: T, - args: Readonly<Parameters<(typeof Formula)[T]>> - ) { - let formula: GenericFormula; - beforeAll(() => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - formula = Formula[functionName](...args); - }); - // None of these formulas have variables, so they should all behave the same - test("Is not marked as having a variable", () => expect(formula.hasVariable()).toBe(false)); - test("Is not invertible", () => expect(formula.isInvertible()).toBe(false)); - test(`Formula errors if trying to invert`, () => - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - /* @ts-ignore */ - expect(() => formula.invert(10)).toLogError()); - test("Is not integrable", () => expect(formula.isIntegrable()).toBe(false)); - test("Has a non-invertible integral", () => - expect(formula.isIntegralInvertible()).toBe(false)); - } - - // Utility function that will test all the different - // It's a lot of tests, but I'd rather be exhaustive - function testFormulaCall<T extends FormulaFunctions>( - functionName: T, - args: Readonly<Parameters<(typeof Formula)[T]>> - ) { - if ((functionName === "slog" || functionName === "layeradd") && args[0] === -1) { - // These cases in particular take a long time, so skip them - // We still have plenty of coverage - return; - } - let testName = functionName + "("; - for (let i = 0; i < args.length; i++) { - if (i !== 0) { - testName += ", "; - } - testName += args[i]; - } - testName += ") evaluates correctly"; - test(testName, () => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - const formula = Formula[functionName](...args); - - try { - const expectedEvaluation = Decimal[functionName]( - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - ...args.map(i => unrefFormulaSource(i)) - ); - if (expectedEvaluation != null) { - expect(formula.evaluate()).compare_tolerance(expectedEvaluation); - } - } catch { - // If this is an invalid Decimal operation, then ignore this test case - } - }); - } - - describe("0-param", () => { - [...invertibleZeroParamFunctionNames, ...nonInvertibleZeroParamFunctionNames].forEach( - names => - describe(names, () => { - checkFormula(names, [0] as const); - testValues.forEach(i => testFormulaCall(names, [i] as const)); - }) - ); - }); - describe("1-param", () => { - ( - [ - ...invertibleOneParamFunctionNames, - ...nonInvertibleOneParamFunctionNames, - "max", - "min", - "maxabs", - "minabs", - "clampMin", - "clampMax" - ] as const - ).forEach(names => - describe(names, () => { - checkFormula(names, [0, 0] as const); - testValues.forEach(i => - testValues.forEach(j => testFormulaCall(names, [i, j] as const)) - ); - }) - ); - }); - describe("2-param", () => { - ([...nonInvertibleTwoParamFunctionNames, "clamp"] as const).forEach(names => - describe(names, () => { - checkFormula(names, [0, 0, 0] as const); - testValues.forEach(i => - testValues.forEach(j => - testValues.forEach(k => testFormulaCall(names, [i, j, k] as const)) - ) - ); - }) - ); - }); -}); - -describe("Variables", () => { - let variable: GenericFormula; - let constant: GenericFormula; - beforeAll(() => { - variable = Formula.variable(10); - constant = Formula.constant(10); - }); - - test("Created variable is marked as a variable", () => - expect(variable.hasVariable()).toBe(true)); - test("evaluate() returns variable's value", () => - expect(variable.evaluate()).compare_tolerance(10)); - test("evaluate(variable) overrides variable value", () => - expect(variable.add(10).evaluate(20)).compare_tolerance(30)); - - test("Nested variable is marked as having a variable", () => - expect(variable.add(10).div(3).pow(2).hasVariable()).toBe(true)); - test("Nested non-variable is marked as not having a variable", () => - expect(constant.add(10).div(3).pow(2).hasVariable()).toBe(false)); -}); - -describe("Inverting", () => { - let variable: IntegrableFormula; - let constant: GenericFormula; - beforeAll(() => { - variable = Formula.variable(10); - constant = Formula.constant(10); - }); - - test("variable.invert() is pass-through", () => - expect(variable.invert(100)).compare_tolerance(100)); - - describe("Invertible Formulas correctly calculate when they contain a variable", () => { - function checkFormula(formula: GenericFormula, expectedBool = true) { - expect(formula.isInvertible()).toBe(expectedBool); - expect(formula.hasVariable()).toBe(expectedBool); - } - invertibleZeroParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as invertible and having a variable`, () => - checkFormula(Formula[name](variable))); - }); - }); - invertibleOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as invertible and having a variable`, () => - checkFormula(Formula[name](variable, constant))); - test(`${name}(const, var) is marked as invertible and having a variable`, () => - checkFormula(Formula[name](constant, variable))); - test(`${name}(var, var) is marked as not invertible and not having a variable`, () => - checkFormula(Formula[name](variable, variable), false)); - }); - }); - }); - - describe("Non-invertible formulas marked as such", () => { - function checkFormula(formula: GenericFormula) { - expect(formula.isInvertible()).toBe(false); - expect(formula.isIntegrable()).toBe(false); - expect(formula.isIntegralInvertible()).toBe(false); - } - nonInvertibleZeroParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as not invertible`, () => - checkFormula(Formula[name](variable))); - }); - }); - nonInvertibleOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as not invertible`, () => - checkFormula(Formula[name](variable, constant))); - test(`${name}(const, var) is marked as not invertible`, () => - checkFormula(Formula[name](constant, variable))); - test(`${name}(var, var) is marked as not invertible`, () => - checkFormula(Formula[name](variable, variable))); - }); - }); - nonInvertibleTwoParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const, const) is marked as not invertible`, () => - checkFormula(Formula[name](variable, constant, constant))); - test(`${name}(const, var, const) is marked as not invertible`, () => - checkFormula(Formula[name](constant, variable, constant))); - test(`${name}(const, const, var) is marked as not invertible`, () => - checkFormula(Formula[name](constant, constant, variable))); - test(`${name}(var, var, const) is marked as not invertible`, () => - checkFormula(Formula[name](variable, variable, constant))); - test(`${name}(var, const, var) is marked as not invertible`, () => - checkFormula(Formula[name](variable, constant, variable))); - test(`${name}(const, var, var) is marked as not invertible`, () => - checkFormula(Formula[name](constant, variable, variable))); - test(`${name}(var, var, var) is marked as not invertible`, () => - checkFormula(Formula[name](variable, variable, variable))); - }); - }); - }); - - describe("Inverting calculates the value of the variable", () => { - let variable: IntegrableFormula; - let constant: IntegrableFormula; - beforeAll(() => { - variable = Formula.variable(2); - constant = Formula.constant(3); - }); - invertibleOneParamFunctionNames.forEach(name => - describe(name, () => { - test(`${name}(var, const).invert()`, () => { - const formula = Formula[name](variable, constant); - const result = formula.evaluate(); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - expect(formula.invert!(result)).compare_tolerance(2); - }); - if (name !== "layeradd") { - test(`${name}(const, var).invert()`, () => { - const formula = Formula[name](constant, variable); - const result = formula.evaluate(); - expect(formula.invert(result)).compare_tolerance(2); - }); - } - }) - ); - }); - - describe("Inverting pass-throughs", () => { - test("max", () => expect(Formula.max(variable, constant).invert(10)).compare_tolerance(10)); - test("min", () => expect(Formula.min(variable, constant).invert(10)).compare_tolerance(10)); - test("minabs", () => - expect(Formula.minabs(variable, constant).invert(10)).compare_tolerance(10)); - test("maxabs", () => - expect(Formula.maxabs(variable, constant).invert(10)).compare_tolerance(10)); - test("clampMax", () => - expect(Formula.clampMax(variable, constant).invert(10)).compare_tolerance(10)); - test("clampMin", () => - expect(Formula.clampMin(variable, constant).invert(10)).compare_tolerance(10)); - test("clamp", () => - expect(Formula.clamp(variable, constant, constant).invert(10)).compare_tolerance(10)); - }); - - test("Inverting nested formulas", () => { - const formula = Formula.add(variable, constant).times(constant).floor(); - expect(formula.invert(100)).compare_tolerance(0); - }); - - describe("Inverting with non-invertible sections", () => { - test("Non-invertible constant", () => { - const formula = Formula.add(variable, constant.sign()); - expect(formula.isInvertible()).toBe(true); - expect(() => formula.invert(10)).not.toLogError(); - }); - test("Non-invertible variable", () => { - const formula = Formula.add(variable.sign(), constant); - expect(formula.isInvertible()).toBe(false); - expect(() => formula.invert(10)).toLogError(); - }); - }); -}); - -describe("Integrating", () => { - let variable: IntegrableFormula; - let constant: IntegrableFormula; - beforeAll(() => { - variable = Formula.variable(ref(10)); - constant = Formula.constant(10); - }); - - test("variable.evaluateIntegral() calculates correctly", () => - expect(variable.evaluateIntegral()).compare_tolerance(Decimal.pow(10, 2).div(2))); - test("variable.evaluateIntegral(variable) overrides variable value", () => - expect(variable.evaluateIntegral(20)).compare_tolerance(Decimal.pow(20, 2).div(2))); - - describe("Integrable functions marked as such", () => { - function checkFormula(formula: IntegrableFormula) { - expect(formula.isIntegrable()).toBe(true); - expect(() => formula.evaluateIntegral()).to.not.throw(); - } - integrableZeroParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as integrable`, () => - checkFormula(Formula[name](variable))); - }); - }); - integrableOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as integrable`, () => - checkFormula(Formula[name](variable, constant))); - if (name !== "log" && name !== "root") { - test(`${name}(const, var) is marked as integrable`, () => - checkFormula(Formula[name](constant, variable))); - } - test(`${name}(var, var) is marked as not integrable`, () => - expect(Formula[name](variable, variable).isIntegrable()).toBe(false)); - }); - }); - }); - - describe("Non-Integrable functions marked as such", () => { - function checkFormula(formula: GenericFormula) { - expect(formula.isIntegrable()).toBe(false); - } - nonIntegrableZeroParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as not integrable`, () => - checkFormula(Formula[name](variable))); - }); - }); - nonIntegrableOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as not integrable`, () => - checkFormula(Formula[name](variable, constant))); - test(`${name}(const, var) is marked as not integrable`, () => - checkFormula(Formula[name](constant, variable))); - test(`${name}(var, var) is marked as not integrable`, () => - checkFormula(Formula[name](variable, variable))); - }); - }); - nonIntegrableTwoParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const, const) is marked as not integrable`, () => - checkFormula(Formula[name](variable, constant, constant))); - test(`${name}(const, var, const) is marked as not integrable`, () => - checkFormula(Formula[name](constant, variable, constant))); - test(`${name}(const, const, var) is marked as not integrable`, () => - checkFormula(Formula[name](constant, constant, variable))); - test(`${name}(var, var, const) is marked as not integrable`, () => - checkFormula(Formula[name](variable, variable, constant))); - test(`${name}(var, const, var) is marked as not integrable`, () => - checkFormula(Formula[name](variable, constant, variable))); - test(`${name}(const, var, var) is marked as not integrable`, () => - checkFormula(Formula[name](constant, variable, variable))); - test(`${name}(var, var, var) is marked as not integrable`, () => - checkFormula(Formula[name](variable, variable, variable))); - }); - }); - }); - - // TODO I think these tests will require writing at least one known example for every function - describe.todo("Integrable formulas integrate correctly"); - - test("Integrating nested formulas", () => { - const formula = Formula.add(variable, constant).times(constant).pow(2).times(30).add(10); - const actualCost = new Array(10) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(i)), new Decimal(0)); - // Check if the calculated cost is within 10% of the actual cost, - // because this is an approximation - expect( - Decimal.sub( - actualCost, - Decimal.add(formula.evaluateIntegral(), formula.calculateConstantOfIntegration()) - ) - .abs() - .div(actualCost) - .toNumber() - ).toBeLessThan(0.1); - }); - - test("Integrating nested formulas with overidden variable", () => { - const formula = Formula.add(variable, constant).times(constant).pow(2).times(30).add(10); - const actualCost = new Array(20) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(i)), new Decimal(0)); - // Check if the calculated cost is within 10% of the actual cost, - // because this is an approximation - expect( - Decimal.sub( - actualCost, - Decimal.add(formula.evaluateIntegral(20), formula.calculateConstantOfIntegration()) - ) - .abs() - .div(actualCost) - .toNumber() - ).toBeLessThan(0.1); - }); - - test("Integrating nested complex formulas", () => { - const formula = Formula.pow(1.05, variable).times(100).pow(0.5); - expect(() => formula.evaluateIntegral()).toLogError(); - }); - - describe("Integrating with non-integrable sections", () => { - test("Non-integrable constant", () => { - const formula = Formula.add(variable, constant.ceil()); - expect(formula.isIntegrable()).toBe(true); - expect(() => formula.evaluateIntegral()).not.toLogError(); - }); - test("Non-integrable variable", () => { - const formula = Formula.add(variable.ceil(), constant); - expect(formula.isIntegrable()).toBe(false); - expect(() => formula.evaluateIntegral()).toLogError(); - }); - }); -}); - -describe("Inverting integrals", () => { - let variable: InvertibleIntegralFormula; - let constant: InvertibleIntegralFormula; - beforeAll(() => { - variable = Formula.variable(10); - constant = Formula.constant(10); - }); - - test("variable.invertIntegral() calculates correctly", () => - expect(variable.invertIntegral(20)).compare_tolerance( - Decimal.sqrt(20).times(Decimal.sqrt(2)) - )); - - describe("Invertible Integral functions marked as such", () => { - function checkFormula(formula: InvertibleIntegralFormula) { - expect(formula.isIntegralInvertible()).toBe(true); - expect(() => formula.invertIntegral(10)).not.toLogError(); - } - invertibleIntegralZeroPramFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as having an invertible integral`, () => - checkFormula(Formula[name](variable))); - }); - }); - invertibleIntegralOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as having an invertible integral`, () => - checkFormula(Formula[name](variable, constant))); - if (name !== "log" && name !== "root") { - test(`${name}(const, var) is marked as having an invertible integral`, () => - checkFormula(Formula[name](constant, variable))); - } - test(`${name}(var, var) is marked as not having an invertible integral`, () => { - const formula = Formula[name](variable, variable); - expect(formula.isIntegralInvertible()).toBe(false); - expect(() => formula.invertIntegral(10)).toLogError(); - }); - }); - }); - }); - - describe("Non-Invertible integral functions marked as such", () => { - function checkFormula(formula: GenericFormula) { - expect(formula.isIntegralInvertible()).toBe(false); - } - nonInvertibleIntegralZeroPramFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable))); - }); - }); - nonInvertibleIntegralOneParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, constant))); - test(`${name}(const, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](constant, variable))); - test(`${name}(var, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, variable))); - }); - }); - nonInvertibleIntegralTwoParamFunctionNames.forEach(name => { - describe(name, () => { - test(`${name}(var, const, const) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, constant, constant))); - test(`${name}(const, var, const) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](constant, variable, constant))); - test(`${name}(const, const, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](constant, constant, variable))); - test(`${name}(var, var, const) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, variable, constant))); - test(`${name}(var, const, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, constant, variable))); - test(`${name}(const, var, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](constant, variable, variable))); - test(`${name}(var, var, var) is marked as not having an invertible integral`, () => - checkFormula(Formula[name](variable, variable, variable))); - }); - }); - }); - - // TODO I think these tests will require writing at least one known example for every function - describe.todo("Invertible Integral formulas invert correctly"); - - test("Inverting integral of nested formulas", () => { - const formula = Formula.add(variable, constant).times(constant).pow(2).times(30); - expect(formula.invertIntegral(formula.evaluateIntegral())).compare_tolerance(10); - }); - - test("Inverting integral of nested complex formulas", () => { - const formula = Formula.pow(1.05, variable).times(100).pow(0.5); - expect(() => formula.invertIntegral(100)).toLogError(); - }); -}); - -describe("Step-wise", () => { - let variable: GenericFormula; - let constant: GenericFormula; - beforeAll(() => { - variable = Formula.variable(10); - constant = Formula.constant(10); - }); - - test("Formula without variable is marked as such", () => { - expect(Formula.step(constant, 10, value => Formula.sqrt(value)).isInvertible()).toBe(false); - expect(Formula.step(constant, 10, value => Formula.sqrt(value)).hasVariable()).toBe(false); - }); - - test("Formula with variable is marked as such", () => { - expect(Formula.step(variable, 10, value => Formula.sqrt(value)).isInvertible()).toBe(true); - expect(Formula.step(variable, 10, value => Formula.sqrt(value)).hasVariable()).toBe(true); - }); - - test("Non-invertible formula modifier marks formula as such", () => { - expect(Formula.step(constant, 10, value => Formula.abs(value)).isInvertible()).toBe(false); - expect(Formula.step(constant, 10, value => Formula.abs(value)).hasVariable()).toBe(false); - }); - - test("Formula never marked integrable", () => { - expect(Formula.step(constant, 10, value => Formula.add(value, 10)).isIntegrable()).toBe( - false - ); - expect(() => - Formula.step(constant, 10, value => Formula.add(value, 10)).evaluateIntegral() - ).toLogError(); - }); - - test("Formula never marked as having an invertible integral", () => { - expect( - Formula.step(constant, 10, value => Formula.add(value, 10)).isIntegralInvertible() - ).toBe(false); - expect(() => - Formula.step(constant, 10, value => Formula.add(value, 10)).invertIntegral(10) - ).toLogError(); - }); - - test("Formula modifiers with variables mark formula as non-invertible", () => { - expect( - Formula.step(constant, 10, value => Formula.add(value, variable)).isInvertible() - ).toBe(false); - expect( - Formula.step(constant, 10, value => Formula.add(value, variable)).hasVariable() - ).toBe(false); - }); - - describe("Pass-through underneath start", () => { - test("Evaluates correctly", () => - expect( - Formula.step(constant, 20, value => Formula.sqrt(value)).evaluate() - ).compare_tolerance(10)); - test("Inverts correctly with variable in input", () => - expect( - Formula.step(variable, 20, value => Formula.sqrt(value)).invert(10) - ).compare_tolerance(10)); - }); - - describe("Pass-through at boundary", () => { - test("Evaluates correctly", () => - expect( - Formula.step(constant, 10, value => Formula.sqrt(value)).evaluate() - ).compare_tolerance(10)); - test("Inverts correctly with variable in input", () => - expect( - Formula.step(variable, 10, value => Formula.sqrt(value)).invert(10) - ).compare_tolerance(10)); - }); - - describe("Evaluates correctly beyond start", () => { - test("Evaluates correctly", () => - expect( - Formula.step(variable, 8, value => Formula.add(value, 2)).evaluate() - ).compare_tolerance(12)); - test("Inverts correctly", () => - expect( - Formula.step(variable, 8, value => Formula.add(value, 2)).invert(12) - ).compare_tolerance(10)); - }); - - describe("Evaluates correctly when nested", () => { - test("Evaluates correctly", () => - expect( - Formula.add(variable, constant) - .step(10, value => Formula.mul(value, 2)) - .sub(10) - .evaluate() - ).compare_tolerance(20)); - test("Inverts correctly", () => - expect( - Formula.add(variable, constant) - .step(10, value => Formula.mul(value, 2)) - .sub(10) - .invert(30) - ).compare_tolerance(15)); - }); -}); - -describe("Conditionals", () => { - let variable: GenericFormula; - let constant: GenericFormula; - beforeAll(() => { - variable = Formula.variable(10); - constant = Formula.constant(10); - }); - - test("Formula without variable is marked as such", () => { - expect(Formula.if(constant, true, value => Formula.sqrt(value)).isInvertible()).toBe(false); - expect(Formula.if(constant, true, value => Formula.sqrt(value)).hasVariable()).toBe(false); - }); - - test("Formula with variable is marked as such", () => { - expect(Formula.if(variable, true, value => Formula.sqrt(value)).isInvertible()).toBe(true); - expect(Formula.if(variable, true, value => Formula.sqrt(value)).hasVariable()).toBe(true); - }); - - test("Non-invertible formula modifier marks formula as such", () => { - expect(Formula.if(constant, true, value => Formula.abs(value)).isInvertible()).toBe(false); - expect(Formula.if(constant, true, value => Formula.abs(value)).hasVariable()).toBe(false); - }); - - test("Formula never marked integrable", () => { - expect(Formula.if(constant, true, value => Formula.add(value, 10)).isIntegrable()).toBe( - false - ); - expect(() => - Formula.if(constant, true, value => Formula.add(value, 10)).evaluateIntegral() - ).toLogError(); - }); - - test("Formula never marked as having an invertible integral", () => { - expect( - Formula.if(constant, true, value => Formula.add(value, 10)).isIntegralInvertible() - ).toBe(false); - expect(() => - Formula.if(constant, true, value => Formula.add(value, 10)).invertIntegral(10) - ).toLogError(); - }); - - test("Formula modifiers with variables mark formula as non-invertible", () => { - expect( - Formula.if(constant, true, value => Formula.add(value, variable)).isInvertible() - ).toBe(false); - expect( - Formula.if(constant, true, value => Formula.add(value, variable)).hasVariable() - ).toBe(false); - }); - - describe("Pass-through with condition false", () => { - test("Evaluates correctly", () => - expect( - Formula.if(constant, false, value => Formula.sqrt(value)).evaluate() - ).compare_tolerance(10)); - test("Inverts correctly with variable in input", () => - expect( - Formula.if(variable, false, value => Formula.sqrt(value)).invert(10) - ).compare_tolerance(10)); - }); - describe("Evaluates correctly with condition false and else statement", () => { - test("Evaluates correctly", () => - expect( - Formula.if( - constant, - false, - value => Formula.sqrt(value), - value => value.times(2) - ).evaluate() - ).compare_tolerance(20)); - test("Inverts correctly with variable in input", () => - expect( - Formula.if( - variable, - false, - value => Formula.sqrt(value), - value => value.times(2) - ).invert(20) - ).compare_tolerance(10)); - }); - - describe("Evaluates correctly with condition true", () => { - test("Evaluates correctly", () => - expect( - Formula.if(variable, true, value => Formula.add(value, 2)).evaluate() - ).compare_tolerance(12)); - test("Inverts correctly", () => - expect( - Formula.if(variable, true, value => Formula.add(value, 2)).invert(12) - ).compare_tolerance(10)); - }); - - describe("Evaluates correctly when nested", () => { - test("Evaluates correctly", () => - expect( - Formula.add(variable, constant) - .if(true, value => Formula.add(value, 2)) - .div(2) - .evaluate() - ).compare_tolerance(11)); - test("Inverts correctly", () => - expect( - Formula.add(variable, constant) - .if(true, value => Formula.add(value, 2)) - .div(2) - .invert(12) - ).compare_tolerance(12)); - }); -}); - -describe("Custom Formulas", () => { - let variable: InvertibleIntegralFormula; - beforeAll(() => { - variable = Formula.variable(1); - }); - - describe("Formula with evaluate", () => { - test("Zero input evaluates correctly", () => - expect(new Formula({ inputs: [], evaluate: () => 10 }).evaluate()).compare_tolerance( - 10 - )); - test("One input evaluates correctly", () => - expect( - new Formula({ inputs: [1], evaluate: value => value }).evaluate() - ).compare_tolerance(1)); - test("Two inputs evaluates correctly", () => - expect( - new Formula({ inputs: [1, 2], evaluate: (v1, v2) => v1 }).evaluate() - ).compare_tolerance(1)); - }); - - describe("Formula with invert", () => { - test("Zero input does not invert", () => - expect(() => - new Formula({ - inputs: [], - evaluate: () => 6, - invert: value => value - }).invert(10) - ).toLogError()); - test("One input inverts correctly", () => - expect( - new Formula({ - inputs: [variable], - evaluate: () => 10, - invert: (value, v1) => v1.evaluate() - }).invert(10) - ).compare_tolerance(1)); - test("Two inputs inverts correctly", () => - expect( - new Formula({ - inputs: [variable, 2], - evaluate: () => 10, - invert: (value, v1, v2) => v2 - }).invert(10) - ).compare_tolerance(2)); - }); - - describe("Formula with integrate", () => { - test("Zero input cannot integrate", () => - expect(() => - new Formula({ - inputs: [], - evaluate: () => 0, - integrate: stack => variable - }).evaluateIntegral() - ).toLogError()); - test("One input integrates correctly", () => - expect( - new Formula({ - inputs: [variable], - evaluate: v1 => Decimal.add(v1, 10), - integrate: (stack, v1) => Formula.add(v1, 10) - }).evaluateIntegral() - ).compare_tolerance(11)); - test("Two inputs integrates correctly", () => - expect( - new Formula({ - inputs: [variable, 10], - evaluate: (v1, v2) => Decimal.add(v1, v2), - integrate: (stack, v1, v2) => Formula.add(v1, v2) - }).evaluateIntegral() - ).compare_tolerance(11)); - }); - - describe("Formula with invertIntegral", () => { - test("Zero input does not invert integral", () => - expect(() => - new Formula({ - inputs: [], - evaluate: () => 0, - integrate: stack => variable - }).invertIntegral(20) - ).toLogError()); - test("One input inverts integral correctly", () => - expect( - new Formula({ - inputs: [variable], - evaluate: v1 => Decimal.add(v1, 10), - integrate: (stack, v1) => Formula.add(v1, 10) - }).invertIntegral(20) - ).compare_tolerance(10)); - test("Two inputs inverts integral correctly", () => - expect( - new Formula({ - inputs: [variable, 10], - evaluate: (v1, v2) => Decimal.add(v1, v2), - integrate: (stack, v1, v2) => Formula.add(v1, v2) - }).invertIntegral(20) - ).compare_tolerance(10)); - }); - - describe("Formula as input", () => { - let customFormula: InvertibleIntegralFormula; - beforeAll(() => { - customFormula = new Formula({ - inputs: [variable], - evaluate: v1 => v1, - invert: value => value, - integrate: (stack, v1) => v1.getIntegralFormula(stack) - }); - }); - test("Evaluate correctly", () => - expect(customFormula.add(10).evaluate()).compare_tolerance(11)); - test("Invert correctly", () => - expect(customFormula.add(10).invert(20)).compare_tolerance(10)); - test("Integrate correctly", () => - expect(customFormula.add(10).evaluateIntegral(10)).compare_tolerance(20)); - }); -}); - -describe("Buy Max", () => { - let resource: Resource; - beforeAll(() => { - resource = createResource(ref(100000)); - }); - describe("Without cumulative cost", () => { - test("Errors on calculating max affordable of non-invertible formula", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.abs(variable); - const maxAffordable = calculateMaxAffordable(formula, resource, false); - expect(() => maxAffordable.value).toLogError(); - }); - test("Errors on calculating cost of non-invertible formula", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.abs(variable); - expect(() => calculateCost(formula, 5, false, 0)).toLogError(); - }); - test("Calculates max affordable and cost correctly", () => { - const variable = Formula.variable(0); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource, false); - expect(maxAffordable.value).compare_tolerance(141); - expect(calculateCost(formula, maxAffordable.value, false)).compare_tolerance( - Decimal.pow(1.05, 141).times(100) - ); - }); - test("Calculates max affordable and cost correctly with direct sum", () => { - const variable = Formula.variable(0); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource, false, 4); - expect(maxAffordable.value).compare_tolerance(141 - 4); - - const actualCost = new Array(4) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(133 + i)), new Decimal(0)); - const calculatedCost = calculateCost(formula, maxAffordable.value, false, 4); - expect(calculatedCost).compare_tolerance(actualCost); - }); - }); - describe("With cumulative cost", () => { - test("Errors on calculating max affordable of non-invertible formula", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.abs(variable); - const maxAffordable = calculateMaxAffordable(formula, resource, true); - expect(() => maxAffordable.value).toLogError(); - }); - test("Errors on calculating cost of non-invertible formula", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.abs(variable); - expect(() => calculateCost(formula, 5, true, 0)).toLogError(); - }); - test("Estimates max affordable and cost correctly with 0 purchases", () => { - const purchases = ref(0); - const variable = Formula.variable(purchases); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource, true, 0); - let actualAffordable = 0; - let summedCost = Decimal.dZero; - while (true) { - const nextCost = formula.evaluate(actualAffordable); - if (Decimal.add(summedCost, nextCost).lte(resource.value)) { - actualAffordable++; - summedCost = Decimal.add(summedCost, nextCost); - } else { - break; - } - } - expect(maxAffordable.value).compare_tolerance(actualAffordable); - - const actualCost = new Array(actualAffordable) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(i)), new Decimal(0)); - const calculatedCost = calculateCost(formula, maxAffordable.value); - // Check if the calculated cost is within 10% of the actual cost, - // because this is an approximation - expect( - Decimal.sub(actualCost, calculatedCost).abs().div(actualCost).toNumber() - ).toBeLessThan(0.1); - }); - test("Estimates max affordable and cost with 1 purchase", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource, true, 0); - let actualAffordable = 0; - let summedCost = Decimal.dZero; - while (true) { - const nextCost = formula.evaluate(Decimal.add(actualAffordable, 1)); - if (Decimal.add(summedCost, nextCost).lte(resource.value)) { - actualAffordable++; - summedCost = Decimal.add(summedCost, nextCost); - } else { - break; - } - } - expect(maxAffordable.value).compare_tolerance(actualAffordable); - - const actualCost = new Array(actualAffordable) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(i + 1)), new Decimal(0)); - const calculatedCost = calculateCost(formula, maxAffordable.value); - // Check if the calculated cost is within 10% of the actual cost, - // because this is an approximation - expect( - Decimal.sub(actualCost, calculatedCost).abs().div(actualCost).toNumber() - ).toBeLessThan(0.1); - }); - test("Estimates max affordable and cost more accurately with direct sum", () => { - const purchases = ref(1); - const variable = Formula.variable(purchases); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource); - let actualAffordable = 0; - let summedCost = Decimal.dZero; - while (true) { - const nextCost = formula.evaluate(Decimal.add(actualAffordable, 1)); - if (Decimal.add(summedCost, nextCost).lte(resource.value)) { - actualAffordable++; - summedCost = Decimal.add(summedCost, nextCost); - } else { - break; - } - } - expect(maxAffordable.value).compare_tolerance(actualAffordable); - - const actualCost = new Array(actualAffordable) - .fill(null) - .reduce((acc, _, i) => acc.add(formula.evaluate(i + 1)), new Decimal(0)); - const calculatedCost = calculateCost(formula, maxAffordable.value); - // Since we're summing the last few purchases, this has a tighter deviation allowed - expect( - Decimal.sub(actualCost, calculatedCost).abs().div(actualCost).toNumber() - ).toBeLessThan(0.02); - }); - test("Handles direct sum when making few purchases", () => { - const purchases = ref(90); - const variable = Formula.variable(purchases); - const formula = Formula.pow(1.05, variable).times(100); - const maxAffordable = calculateMaxAffordable(formula, resource); - let actualAffordable = 0; - let summedCost = Decimal.dZero; - while (true) { - const nextCost = formula.evaluate(Decimal.add(actualAffordable, purchases.value)); - if (Decimal.add(summedCost, nextCost).lte(resource.value)) { - actualAffordable++; - summedCost = Decimal.add(summedCost, nextCost); - } else { - break; - } - } - expect(maxAffordable.value).compare_tolerance(actualAffordable); - - const actualCost = new Array(actualAffordable) - .fill(null) - .reduce( - (acc, _, i) => acc.add(formula.evaluate(i + purchases.value)), - new Decimal(0) - ); - const calculatedCost = calculateCost(formula, maxAffordable.value); - // Since we're summing all the purchases this should be equivalent - expect(calculatedCost).compare_tolerance(actualCost); - }); - test("Handles direct sum when making very few purchases", () => { - const purchases = ref(0); - const variable = Formula.variable(purchases); - const formula = variable.add(1); - const resource = createResource(ref(3)); - const maxAffordable = calculateMaxAffordable(formula, resource, true); - expect(maxAffordable.value).compare_tolerance(2); - - const actualCost = new Array(2) - .fill(null) - .reduce( - (acc, _, i) => acc.add(formula.evaluate(i + purchases.value)), - new Decimal(0) - ); - const calculatedCost = calculateCost(formula, maxAffordable.value); - // Since we're summing all the purchases this should be equivalent - expect(calculatedCost).compare_tolerance(actualCost); - }); - test("Handles direct sum when over e308 purchases", () => { - resource.value = "1ee308"; - const purchases = ref(0); - const variable = Formula.variable(purchases); - const formula = variable; - const maxAffordable = calculateMaxAffordable(formula, resource); - const calculatedCost = calculateCost(formula, maxAffordable.value); - expect(Decimal.isNaN(calculatedCost)).toBe(false); - expect(Decimal.isFinite(calculatedCost)).toBe(true); - resource.value = 100000; - }); - test("Handles direct sum of non-integrable formula", () => { - const purchases = ref(0); - const formula = Formula.variable(purchases).abs(); - expect(() => calculateCost(formula, 10)).not.toLogError(); - }); - }); -}); - -describe("Stringifies", () => { - test("Nested formula", () => { - const variable = Formula.variable(ref(0)); - expect(variable.add(5).pow(Formula.constant(10)).stringify()).toBe( - "pow(add(x, 5.00), 10.00)" - ); - }); - test("Indeterminate", () => { - expect(Formula.if(10, true, f => f.add(5)).stringify()).toBe("indeterminate"); - expect(Formula.step(10, 5, f => f.add(5)).stringify()).toBe("indeterminate"); - }); -}); diff --git a/tests/game/modifiers.test.ts b/tests/game/modifiers.test.ts deleted file mode 100644 index 5383523..0000000 --- a/tests/game/modifiers.test.ts +++ /dev/null @@ -1,424 +0,0 @@ -import Formula from "game/formulas/formulas"; -import { - createAdditiveModifier, - createExponentialModifier, - createModifierSection, - createMultiplicativeModifier, - createSequentialModifier, - Modifier -} from "game/modifiers"; -import Decimal, { DecimalSource } from "util/bignum"; -import { WithRequired } from "util/common"; -import { MaybeGetter } from "util/computed"; -import { render, Renderable } from "util/vue"; -import { beforeAll, describe, expect, test } from "vitest"; -import { MaybeRefOrGetter, Ref, ref, unref } from "vue"; -import "../utils"; - -export type ModifierConstructorOptions = { - [S in "addend" | "multiplier" | "exponent"]: MaybeRefOrGetter<DecimalSource>; -} & { - description?: MaybeGetter<Renderable>; - enabled?: MaybeRefOrGetter<boolean>; - smallerIsBetter?: boolean; -}; - -function testModifiers< - T extends "addend" | "multiplier" | "exponent", - S extends ModifierConstructorOptions ->( - modifierConstructor: (optionsFunc: () => S) => WithRequired<Modifier, "invert" | "getFormula">, - property: T, - operation: (lhs: DecimalSource, rhs: DecimalSource) => DecimalSource -) { - // Util because adding [property] messes up typing - function createModifier( - value: MaybeRefOrGetter<DecimalSource>, - options: Partial<ModifierConstructorOptions> = {} - ): WithRequired<Modifier, "invert" | "getFormula"> { - options[property] = value; - return modifierConstructor(() => options as S); - } - - describe("operations", () => { - let modifier: WithRequired<Modifier, "invert" | "getFormula">; - beforeAll(() => { - modifier = createModifier(ref(5)); - }); - - test("Applies correctly", () => - expect(modifier.apply(10)).compare_tolerance(operation(10, 5))); - test("Inverts correctly", () => - expect(modifier.invert(operation(10, 5))).compare_tolerance(10)); - test("getFormula returns the right formula", () => { - const value = ref(10); - expect(modifier.getFormula(Formula.variable(value)).stringify()).toBe( - `${operation.name}(x, 5.00)` - ); - }); - }); - - describe("applies description correctly", () => { - test("without description", () => expect(createModifier(0).description).toBeUndefined()); - test("with description", () => { - const desc = createModifier(0, { description: "test" }).description; - expect(desc).not.toBeUndefined(); - expect(render(desc!)).toMatchSnapshot(); - }); - }); - - describe("applies enabled correctly", () => { - test("without enabled", () => expect(createModifier(0).enabled).toBeUndefined()); - test("with enabled", () => { - const enabled = ref(false); - const modifier = createModifier(5, { enabled }); - expect(modifier.enabled).toBe(enabled); - }); - }); - - describe("applies smallerIsBetter correctly", () => { - describe("without smallerIsBetter false", () => { - test("negative value", () => - expect( - render( - createModifier(-5, { - description: "test", - smallerIsBetter: false - }).description! - ) - ).toMatchSnapshot()); - test("zero value", () => - expect( - render( - createModifier(0, { description: "test", smallerIsBetter: false }) - .description! - ) - ).toMatchSnapshot()); - test("positive value", () => - expect( - render( - createModifier(5, { description: "test", smallerIsBetter: false }) - .description! - ) - ).toMatchSnapshot()); - }); - describe("with smallerIsBetter true", () => { - test("negative value", () => - expect( - render( - createModifier(-5, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - test("zero value", () => - expect( - render( - createModifier(0, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - test("positive value", () => - expect( - render( - createModifier(5, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - }); - }); -} - -describe("Additive Modifiers", () => testModifiers(createAdditiveModifier, "addend", Decimal.add)); -describe("Multiplicative Modifiers", () => - testModifiers(createMultiplicativeModifier, "multiplier", Decimal.mul)); -describe("Exponential Modifiers", () => - testModifiers(createExponentialModifier, "exponent", Decimal.pow)); - -describe("Sequential Modifiers", () => { - function createModifier<T extends Partial<ModifierConstructorOptions>>( - value: MaybeRefOrGetter<DecimalSource>, - options?: T - ) { - return createSequentialModifier(() => [ - createAdditiveModifier(() => ({ ...(options ?? {}), addend: value })), - createMultiplicativeModifier(() => ({ ...(options ?? {}), multiplier: value })), - createExponentialModifier(() => ({ ...(options ?? {}), exponent: value })) - ]); - } - - describe("operations", () => { - let modifier: WithRequired<Modifier, "invert" | "getFormula">; - beforeAll(() => { - modifier = createModifier(5); - }); - - test("Applies correctly", () => - expect(modifier.apply(10)).compare_tolerance(Decimal.add(10, 5).times(5).pow(5))); - test("Inverts correctly", () => - expect(modifier.invert(Decimal.add(10, 5).times(5).pow(5))).compare_tolerance(10)); - test("getFormula returns the right formula", () => { - const value = ref(10); - expect(modifier.getFormula(Formula.variable(value)).stringify()).toBe( - `pow(mul(add(x, 5.00), 5.00), 5.00)` - ); - }); - }); - - describe("applies description correctly", () => { - test("without description", () => expect(createModifier(0).description).toBeUndefined()); - test("with description", () => { - const desc = createModifier(0, { description: "test" }).description; - expect(desc).not.toBeUndefined(); - expect(render(desc!)).toMatchSnapshot(); - }); - test("with both", () => { - const desc = createSequentialModifier(() => [ - createAdditiveModifier(() => ({ addend: 0 })), - createMultiplicativeModifier(() => ({ multiplier: 0, description: "test" })) - ]).description; - expect(desc).not.toBeUndefined(); - expect(render(desc!)).toMatchSnapshot(); - }); - }); - - describe("applies enabled correctly", () => { - test("without enabled", () => expect(createModifier(0).enabled).toBeUndefined()); - test("with enabled", () => { - const enabled = ref(false); - const modifier = createModifier(5, { enabled }); - expect(modifier.enabled).not.toBeUndefined(); - expect(unref(modifier.enabled)).toBe(false); - enabled.value = true; - expect(unref(modifier.enabled)).toBe(true); - }); - test("with both", () => { - const enabled = ref(false); - const modifier = createSequentialModifier(() => [ - createAdditiveModifier(() => ({ addend: 0 })), - createMultiplicativeModifier(() => ({ multiplier: 0, enabled })) - ]); - expect(modifier.enabled).not.toBeUndefined(); - // So long as one is true or undefined, enable should be true - expect(unref(modifier.enabled)).toBe(true); - }); - test("respects enabled", () => { - const value = ref(10); - const enabled = ref(false); - const modifier = createSequentialModifier(() => [ - createMultiplicativeModifier(() => ({ multiplier: 5, enabled })) - ]); - const formula = modifier.getFormula(Formula.variable(value)); - expect(formula.evaluate()).compare_tolerance(value.value); - enabled.value = true; - expect(formula.evaluate()).not.compare_tolerance(value.value); - }); - }); - - describe("applies smallerIsBetter correctly", () => { - describe("without smallerIsBetter false", () => { - test("negative value", () => - expect( - render( - createModifier(-5, { description: "test", smallerIsBetter: false }) - .description! - ) - ).toMatchSnapshot()); - test("zero value", () => - expect( - render( - createModifier(0, { description: "test", smallerIsBetter: false }) - .description! - ) - ).toMatchSnapshot()); - test("positive value", () => - expect( - render( - createModifier(5, { description: "test", smallerIsBetter: false }) - .description! - ) - ).toMatchSnapshot()); - }); - describe("with smallerIsBetter true", () => { - test("negative value", () => - expect( - render( - createModifier(-5, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - test("zero value", () => - expect( - render( - createModifier(0, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - test("positive value", () => - expect( - render( - createModifier(5, { description: "test", smallerIsBetter: true }) - .description! - ) - ).toMatchSnapshot()); - }); - describe("with both", () => { - let value: Ref<DecimalSource>; - let modifier: Modifier; - beforeAll(() => { - value = ref(0); - modifier = createSequentialModifier(() => [ - createAdditiveModifier(() => ({ - addend: value, - description: "test", - smallerIsBetter: true - })), - createAdditiveModifier(() => ({ - addend: value, - description: "test", - smallerIsBetter: false - })) - ]); - }); - test("negative value", () => { - value.value = -5; - expect(render(modifier.description!)).toMatchSnapshot(); - }); - test("zero value", () => { - value.value = 0; - expect(render(modifier.description!)).toMatchSnapshot(); - }); - test("positive value", () => { - value.value = 5; - expect(render(modifier.description!)).toMatchSnapshot(); - }); - }); - }); -}); - -describe("Create modifier sections", () => { - test("No optional values", () => - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })) - }) - ).toMatchSnapshot()); - test("With subtitle", () => - expect( - createModifierSection({ - title: "Test", - subtitle: "Subtitle", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })) - }) - ).toMatchSnapshot()); - test("With base", () => - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })), - base: 10 - }) - ).toMatchSnapshot()); - test("With unit", () => - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })), - unit: "/s" - }) - ).toMatchSnapshot()); - test("With base", () => - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })), - baseText: "Based on" - }) - ).toMatchSnapshot()); - test("With baseText", () => - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })), - baseText: "Based on" - }) - ).toMatchSnapshot()); - describe("With smallerIsBetter", () => { - test("smallerIsBetter = false", () => { - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: -5, - description: "Test Desc" - })), - smallerIsBetter: false - }) - ).toMatchSnapshot(); - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: 0, - description: "Test Desc" - })), - smallerIsBetter: false - }) - ).toMatchSnapshot(); - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: 5, - description: "Test Desc" - })), - smallerIsBetter: false - }) - ).toMatchSnapshot(); - }); - test("smallerIsBetter = true", () => { - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: -5, - description: "Test Desc" - })), - smallerIsBetter: true - }) - ).toMatchSnapshot(); - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: 0, - description: "Test Desc" - })), - smallerIsBetter: true - }) - ).toMatchSnapshot(); - expect( - createModifierSection({ - title: "Test", - modifier: createAdditiveModifier(() => ({ - addend: 5, - description: "Test Desc" - })), - smallerIsBetter: true - }) - ).toMatchSnapshot(); - }); - }); - test("With everything", () => - expect( - createModifierSection({ - title: "Test", - subtitle: "Subtitle", - modifier: createAdditiveModifier(() => ({ addend: 5, description: "Test Desc" })), - base: 10, - unit: "/s", - baseText: "Based on", - smallerIsBetter: true - }) - ).toMatchSnapshot()); -}); diff --git a/tests/game/requirements.test.ts b/tests/game/requirements.test.ts deleted file mode 100644 index 9d135c5..0000000 --- a/tests/game/requirements.test.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { Visibility } from "features/feature"; -import { createResource, Resource } from "features/resources/resource"; -import Formula from "game/formulas/formulas"; -import { - CostRequirement, - createBooleanRequirement, - createCostRequirement, - createVisibilityRequirement, - maxRequirementsMet, - payRequirements, - Requirement, - requirementsMet -} from "game/requirements"; -import Decimal from "util/bignum"; -import { beforeAll, describe, expect, test } from "vitest"; -import { isRef, ref, unref } from "vue"; -import "../utils"; - -describe("Creating cost requirement", () => { - let resource: Resource; - beforeAll(() => { - resource = createResource(ref(10)); - }); - - describe("Minimal requirement", () => { - let requirement: CostRequirement; - beforeAll(() => { - requirement = createCostRequirement(() => ({ - resource, - cost: 10 - })); - }); - - test("resource pass-through", () => expect(requirement.resource).toBe(resource)); - test("cost pass-through", () => expect(requirement.cost).toBe(10)); - - test("partialDisplay exists", () => - expect(typeof requirement.partialDisplay).toBe("function")); - test("display exists", () => expect(typeof requirement.display).toBe("function")); - test("pay exists", () => expect(typeof requirement.pay).toBe("function")); - test("requirementMet exists", () => { - expect(requirement.requirementMet).not.toBeNull(); - expect(isRef(requirement.requirementMet)).toBe(true); - }); - test("is visible", () => expect(requirement.visibility).toBe(Visibility.Visible)); - test("requires pay", () => expect(requirement.requiresPay).toBe(true)); - test("does not spend resources", () => expect(requirement.cumulativeCost).toBe(true)); - test("cannot maximize", () => expect(unref(requirement.canMaximize)).toBe(false)); - }); - - describe("Fully customized", () => { - let requirement: CostRequirement; - beforeAll(() => { - requirement = createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).times(10), - visibility: Visibility.None, - requiresPay: false, - cumulativeCost: false, - maxBulkAmount: Decimal.dInf, - directSum: 5, - // eslint-disable-next-line @typescript-eslint/no-empty-function - pay() {} - })); - }); - - test("pay is empty function", () => - requirement.pay != null && - typeof requirement.pay === "function" && - requirement.pay.length === 1); - test("is not visible", () => expect(requirement.visibility).toBe(Visibility.None)); - test("does not require pay", () => expect(requirement.requiresPay).toBe(false)); - test("spends resources", () => expect(requirement.cumulativeCost).toBe(false)); - test("can maximize", () => expect(unref(requirement.canMaximize)).toBe(true)); - test("maxBulkAmount is set", () => - expect(unref(requirement.maxBulkAmount)).compare_tolerance(Decimal.dInf)); - test("directSum is set", () => expect(unref(requirement.directSum)).toBe(5)); - }); - - test("Requirement met when meeting the cost", () => { - const requirement = createCostRequirement(() => ({ - resource, - cost: 10, - cumulativeCost: false - })); - expect(unref(requirement.requirementMet)).toBe(1); - }); - - test("Requirement not met when not meeting the cost", () => { - const requirement = createCostRequirement(() => ({ - resource, - cost: 100, - cumulativeCost: false - })); - expect(unref(requirement.requirementMet)).toBe(0); - }); - - describe("canMaximize works correctly", () => { - test("Cost function cannot maximize", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: () => 10, - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(false)); - test("Integrable formula cannot maximize if maxBulkAmount is left at 1", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: () => 10 - })).canMaximize - ) - ).toBe(false)); - test("Non-invertible formula cannot maximize when max bulk amount is above direct sum", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).abs(), - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(false)); - test("Non-invertible formula can maximize when max bulk amount is lte direct sum", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).abs(), - maxBulkAmount: 20, - directSum: 20 - })).canMaximize - ) - ).toBe(true)); - test("Invertible formula can maximize if cumulativeCost is false", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).lambertw(), - cumulativeCost: false, - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(true)); - test("Invertible formula cannot maximize if cumulativeCost is true", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).lambertw(), - cumulativeCost: true, - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(false)); - test("Integrable formula can maximize if cumulativeCost is false", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).pow(2), - cumulativeCost: false, - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(true)); - test("Integrable formula can maximize if cumulativeCost is true", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).pow(2), - cumulativeCost: true, - maxBulkAmount: Decimal.dInf - })).canMaximize - ) - ).toBe(true)); - }); - - test("Requirements met capped by maxBulkAmount", () => - expect( - unref( - createCostRequirement(() => ({ - resource, - cost: Formula.variable(resource).times(0.0001), - maxBulkAmount: 10, - cumulativeCost: false - })).requirementMet - ) - ).compare_tolerance(10)); -}); - -test("Creating visibility requirement", () => { - const visibility = ref<Visibility.None | Visibility.Visible | boolean>(Visibility.Visible); - const requirement = createVisibilityRequirement(visibility); - expect(unref(requirement.requirementMet)).toBe(true); - visibility.value = true; - expect(unref(requirement.requirementMet)).toBe(true); - visibility.value = Visibility.None; - expect(unref(requirement.requirementMet)).toBe(false); - visibility.value = false; - expect(unref(requirement.requirementMet)).toBe(false); -}); - -test("Creating boolean requirement", () => { - const req = ref(true); - const requirement = createBooleanRequirement(req); - expect(unref(requirement.requirementMet)).toBe(true); - req.value = false; - expect(unref(requirement.requirementMet)).toBe(false); -}); - -describe("Checking all requirements met", () => { - let metRequirement: Requirement; - let unmetRequirement: Requirement; - beforeAll(() => { - metRequirement = createBooleanRequirement(true); - unmetRequirement = createBooleanRequirement(false); - }); - - test("Returns true if no requirements", () => { - expect(requirementsMet([])).toBe(true); - }); - - test("Returns true if all requirements met", () => { - expect(requirementsMet([metRequirement, metRequirement])).toBe(true); - }); - - test("Returns false if any requirements unmet", () => { - expect(requirementsMet([metRequirement, unmetRequirement])).toBe(false); - }); -}); - -describe("Checking maximum levels of requirements met", () => { - test("Returns 0 if any requirement is not met", () => { - const requirements = [ - createBooleanRequirement(false), - createBooleanRequirement(true), - createCostRequirement(() => ({ - resource: createResource(ref(10)), - cost: Formula.variable(0), - cumulativeCost: false - })) - ]; - expect(maxRequirementsMet(requirements)).compare_tolerance(0); - }); - - test("Returns correct number of requirements met", () => { - const requirements = [ - createBooleanRequirement(true), - createCostRequirement(() => ({ - resource: createResource(ref(10)), - cost: Formula.variable(0), - cumulativeCost: false, - maxBulkAmount: Decimal.dInf - })) - ]; - expect(maxRequirementsMet(requirements)).compare_tolerance(10); - }); -}); - -test("Paying requirements", () => { - const resource = createResource(ref(100)); - const noPayment = createCostRequirement(() => ({ - resource, - cost: 10, - requiresPay: false, - cumulativeCost: false - })); - const payment = createCostRequirement(() => ({ - resource, - cost: 10, - cumulativeCost: false - })); - payRequirements([noPayment, payment]); - expect(resource.value).compare_tolerance(90); -}); diff --git a/tests/util/common.test.ts b/tests/util/common.test.ts deleted file mode 100644 index 619810f..0000000 --- a/tests/util/common.test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { camelToTitle, isFunction } from "util/common"; -import { describe, expect, test, vi } from "vitest"; - -describe("camelToTitle", () => { - test("Capitalizes first letter in single word", () => - expect(camelToTitle("test")).toBe("Test")); - - test("Converts three word camel case string to title case", () => - expect(camelToTitle("camelCaseTest")).toBe("Camel Case Test")); -}); - -describe("isFunction", () => { - test("Given function returns true", () => expect(isFunction(vi.fn())).toBe(true)); - - // Go through all primitives and basic types - test("Given a non-function returns false", () => { - expect(isFunction("test")).toBe(false); - expect(isFunction(10)).toBe(false); - expect(isFunction(BigInt(10))).toBe(false); - expect(isFunction(true)).toBe(false); - expect(isFunction(undefined)).toBe(false); - expect(isFunction(Symbol())).toBe(false); - expect(isFunction(null)).toBe(false); - expect(isFunction({})).toBe(false); - expect(isFunction([])).toBe(false); - }); -}); diff --git a/tests/utils.ts b/tests/utils.ts deleted file mode 100644 index d9b2b55..0000000 --- a/tests/utils.ts +++ /dev/null @@ -1,58 +0,0 @@ -import Decimal, { DecimalSource, format } from "util/bignum"; -import { Mock, expect, vi } from "vitest"; - -interface CustomMatchers<R = unknown> { - compare_tolerance(expected: DecimalSource, tolerance?: number): R; - toLogError(): R; -} - -declare module "vitest" { - // eslint-disable-next-line @typescript-eslint/no-empty-interface - interface Assertion extends CustomMatchers {} - // eslint-disable-next-line @typescript-eslint/no-empty-interface - interface AsymmetricMatchersContaining extends CustomMatchers {} -} - -expect.extend({ - compare_tolerance(received: DecimalSource, expected: DecimalSource, tolerance?: number) { - const { isNot } = this; - let pass = false; - if (!Decimal.isFinite(expected)) { - pass = !Decimal.isFinite(received); - } else if (Decimal.isNaN(expected)) { - pass = Decimal.isNaN(received); - } else { - pass = Decimal.eq_tolerance(received, expected, tolerance); - } - return { - // do not alter your "pass" based on isNot. Vitest does it for you - pass, - message: () => - `Expected ${received} to${ - (isNot as boolean) ? " not" : "" - } be close to ${expected}`, - expected: format(expected), - actual: format(received) - }; - }, - toLogError(received: () => unknown) { - const { isNot } = this; - console.error = vi.fn(); - received(); - const calls = ( - console.error as Mock< - Parameters<typeof console.error>, - ReturnType<typeof console.error> - > - ).mock.calls.length; - const pass = calls >= 1; - vi.restoreAllMocks(); - return { - pass, - message: () => - `Expected ${received} to ${(isNot as boolean) ? " not" : ""} log an error`, - expected: "1+", - actual: calls - }; - } -}); diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index a4e5495..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "compilerOptions": { - "noErrorTruncation": true, - "target": "esnext", - "module": "esnext", - "strict": true, - "checkJs": false, - "jsx": "preserve", - "jsxImportSource": "vue", - "importHelpers": true, - "moduleResolution": "node", - "resolveJsonModule": true, - "experimentalDecorators": true, - "allowJs": true, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "sourceMap": true, - "baseUrl": "src", - "types": [ - "vite/client", - "node" - ], - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ] - }, - "include": [ - "src/**/*.ts", - "src/**/*.tsx", - "src/**/*.vue", - "tests/**/*.ts", - "tests/**/*.tsx" - ], - "exclude": [ - "node_modules" - ], - "typedocOptions": { - "entryPoints": ["src"], - "entryPointStrategy": "expand", - "cleanOutputDir": true, - "name": "Profectus", - "includeVersion": true, - "categorizeByGroup": false, - "readme": "none", - "out": "../docs/api" - } -} diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index 4c48ed0..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,64 +0,0 @@ -import vue from "@vitejs/plugin-vue"; -import vueJsx from "@vitejs/plugin-vue-jsx"; -import { defineConfig } from "vite"; -import { VitePWA } from "vite-plugin-pwa"; -import tsconfigPaths from "vite-tsconfig-paths"; -import projInfo from "./src/data/projInfo.json"; - -// https://vitejs.dev/config/ -export default defineConfig({ - base: "./", - build: { - rollupOptions: { - output: { - manualChunks(id) { - if (id.includes("node_modules")) { - return id.toString().split("node_modules/")[1].split("/")[0].toString(); - } - } - } - } - }, - resolve: { - alias: { - vue: "vue/dist/vue.esm-bundler.js" - } - }, - plugins: [ - vue(), - vueJsx({ - // options are passed on to @vue/babel-plugin-jsx - }), - tsconfigPaths(), - VitePWA({ - registerType: 'autoUpdate', - workbox: { - globPatterns: ['**/*.{js,css,html,ico,png,svg}'] - }, - manifest: { - name: projInfo.title, - short_name: projInfo.title, - description: projInfo.description, - theme_color: "#2E3440", - icons: [ - { - src: "pwa-192x192.png", - sizes: "192x192", - type: "image/png" - }, - { - src: "pwa-512x512.png", - sizes: "512x512", - type: "image/png" - }, - { - src: "pwa-512x512.png", - sizes: "512x512", - type: "image/png", - purpose: "any maskable" - } - ] - } - }) - ] -}); diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 3ab791b..0000000 --- a/vitest.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { mergeConfig } from 'vite' -import { defineConfig } from 'vitest/config' -import viteConfig from './vite.config' - -export default mergeConfig(viteConfig, defineConfig({ - test: { - environment: "jsdom" - } -}))