From cd85db37b27718a631242b4ab7873018bab3a58b Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Tue, 11 Jan 2022 08:37:52 +0100 Subject: [PATCH 01/19] BUGFIX: Assign original asset collections to variant Fixes #3560 --- Neos.Media/Classes/Domain/Model/ImageVariant.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Neos.Media/Classes/Domain/Model/ImageVariant.php b/Neos.Media/Classes/Domain/Model/ImageVariant.php index 3873a9d3f49..9126004c479 100644 --- a/Neos.Media/Classes/Domain/Model/ImageVariant.php +++ b/Neos.Media/Classes/Domain/Model/ImageVariant.php @@ -17,6 +17,7 @@ use Doctrine\ORM\Mapping as ORM; use Neos\Flow\Annotations as Flow; use Neos\Flow\Configuration\Exception\InvalidConfigurationException; +use Neos\Flow\ObjectManagement\DependencyInjection\DependencyProxy; use Neos\Flow\ObjectManagement\ObjectManagerInterface; use Neos\Flow\ResourceManagement\Exception; use Neos\Flow\ResourceManagement\PersistentResource; @@ -93,6 +94,12 @@ public function __construct(Image $originalAsset) } catch (\Exception $e) { // This won't happen, because we create DateTime without any parameters. } + + $originalAssetCollections = $originalAsset->getAssetCollections(); + if ($originalAssetCollections instanceof DependencyProxy) { + $originalAssetCollections->_activateDependency(); + } + $this->setAssetCollections($originalAssetCollections); } /** From 63da4dfb7b1759a6e4f018ad420650c7772f0920 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Thu, 31 Mar 2022 17:13:09 +0200 Subject: [PATCH 02/19] TASK: Keep asset collections on ImageVariants in sync --- Neos.Media/Classes/Domain/Model/Image.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Neos.Media/Classes/Domain/Model/Image.php b/Neos.Media/Classes/Domain/Model/Image.php index 6c6eabb5adf..b8819c3d0d6 100644 --- a/Neos.Media/Classes/Domain/Model/Image.php +++ b/Neos.Media/Classes/Domain/Model/Image.php @@ -176,4 +176,19 @@ protected function calculateDimensionsFromResource(PersistentResource $resource) $this->width = is_int($imageSize['width']) ? $imageSize['width'] : null; $this->height = is_int($imageSize['height']) ? $imageSize['height'] : null; } + + /** + * Set the asset collections that include this asset and + * keeps the attached variants' collections in sync. + * + * @param Collection $assetCollections + * @return void + */ + public function setAssetCollections(Collection $assetCollections) + { + parent::setAssetCollections($assetCollections); + foreach ($this->variants as $variant) { + $variant->setAssetCollections($assetCollections); + } + } } From bc6ab7b3c11425725ef47ccbcfdb9a0fee05dc2d Mon Sep 17 00:00:00 2001 From: pKallert <91674611+pKallert@users.noreply.github.com> Date: Fri, 26 May 2023 11:00:28 +0200 Subject: [PATCH 03/19] BUGFIX: Add dimensionValues to findOneByPath --- Neos.ContentRepository/Classes/Domain/Model/NodeData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neos.ContentRepository/Classes/Domain/Model/NodeData.php b/Neos.ContentRepository/Classes/Domain/Model/NodeData.php index 32cfb597711..a7acd85164d 100644 --- a/Neos.ContentRepository/Classes/Domain/Model/NodeData.php +++ b/Neos.ContentRepository/Classes/Domain/Model/NodeData.php @@ -422,7 +422,7 @@ public function getParent() return null; } - return $this->nodeDataRepository->findOneByPath($this->parentPath, $this->workspace); + return $this->nodeDataRepository->findOneByPath($this->parentPath, $this->workspace, $this->dimensionValues); } /** From c1129d102aa3c1279a0480d9b9616cd2d6e71f59 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Mon, 17 Jul 2023 16:10:01 +0000 Subject: [PATCH 04/19] TASK: Update references [skip ci] --- Neos.Neos/Documentation/References/EelHelpersReference.rst | 2 +- .../Documentation/References/FlowQueryOperationReference.rst | 2 +- .../Documentation/References/Signals/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/Signals/Flow.rst | 2 +- Neos.Neos/Documentation/References/Signals/Media.rst | 2 +- Neos.Neos/Documentation/References/Signals/Neos.rst | 2 +- Neos.Neos/Documentation/References/Validators/Flow.rst | 2 +- Neos.Neos/Documentation/References/Validators/Media.rst | 2 +- Neos.Neos/Documentation/References/Validators/Party.rst | 2 +- .../Documentation/References/ViewHelpers/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Form.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Media.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Neos.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Neos.Neos/Documentation/References/EelHelpersReference.rst b/Neos.Neos/Documentation/References/EelHelpersReference.rst index f8a45c5f2a9..cd88f482a02 100644 --- a/Neos.Neos/Documentation/References/EelHelpersReference.rst +++ b/Neos.Neos/Documentation/References/EelHelpersReference.rst @@ -3,7 +3,7 @@ Eel Helpers Reference ===================== -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Eel Helpers Reference: Api`: diff --git a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst index 798a03a176d..7150c7d8604 100644 --- a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst +++ b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst @@ -3,7 +3,7 @@ FlowQuery Operation Reference ============================= -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`FlowQuery Operation Reference: add`: diff --git a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst index 3b1a0d51b90..2bd55a9714f 100644 --- a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository Signals Reference ==================================== -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Content Repository Signals Reference: Context (``Neos\ContentRepository\Domain\Service\Context``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Flow.rst b/Neos.Neos/Documentation/References/Signals/Flow.rst index 11a6b245aad..9f55c3cecf8 100644 --- a/Neos.Neos/Documentation/References/Signals/Flow.rst +++ b/Neos.Neos/Documentation/References/Signals/Flow.rst @@ -3,7 +3,7 @@ Flow Signals Reference ====================== -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Flow Signals Reference: AbstractAdvice (``Neos\Flow\Aop\Advice\AbstractAdvice``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Media.rst b/Neos.Neos/Documentation/References/Signals/Media.rst index 34b6cd01220..d2213580fc5 100644 --- a/Neos.Neos/Documentation/References/Signals/Media.rst +++ b/Neos.Neos/Documentation/References/Signals/Media.rst @@ -3,7 +3,7 @@ Media Signals Reference ======================= -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Media Signals Reference: AssetCollectionController (``Neos\Media\Browser\Controller\AssetCollectionController``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Neos.rst b/Neos.Neos/Documentation/References/Signals/Neos.rst index 720618f4336..ad71b773d74 100644 --- a/Neos.Neos/Documentation/References/Signals/Neos.rst +++ b/Neos.Neos/Documentation/References/Signals/Neos.rst @@ -3,7 +3,7 @@ Neos Signals Reference ====================== -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Neos Signals Reference: AbstractCreate (``Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate``)`: diff --git a/Neos.Neos/Documentation/References/Validators/Flow.rst b/Neos.Neos/Documentation/References/Validators/Flow.rst index 63842c27e0e..f235319413f 100644 --- a/Neos.Neos/Documentation/References/Validators/Flow.rst +++ b/Neos.Neos/Documentation/References/Validators/Flow.rst @@ -3,7 +3,7 @@ Flow Validator Reference ======================== -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Flow Validator Reference: AggregateBoundaryValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Media.rst b/Neos.Neos/Documentation/References/Validators/Media.rst index 833dc69701f..11126104d90 100644 --- a/Neos.Neos/Documentation/References/Validators/Media.rst +++ b/Neos.Neos/Documentation/References/Validators/Media.rst @@ -3,7 +3,7 @@ Media Validator Reference ========================= -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Media Validator Reference: ImageOrientationValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Party.rst b/Neos.Neos/Documentation/References/Validators/Party.rst index 6ae719d5eae..527ba2e54ea 100644 --- a/Neos.Neos/Documentation/References/Validators/Party.rst +++ b/Neos.Neos/Documentation/References/Validators/Party.rst @@ -3,7 +3,7 @@ Party Validator Reference ========================= -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Party Validator Reference: AimAddressValidator`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst index c42068be5ea..066e2b721ed 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository ViewHelper Reference ####################################### -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Content Repository ViewHelper Reference: PaginateViewHelper`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst index 6d3e69aa49b..498bfe08d74 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst @@ -3,7 +3,7 @@ FluidAdaptor ViewHelper Reference ################################# -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`FluidAdaptor ViewHelper Reference: f:debug`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst index e09d694a7a2..f0f01f032b7 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst @@ -3,7 +3,7 @@ Form ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Form ViewHelper Reference: neos.form:form`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst index 9db70693e9f..3d3508823ea 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst @@ -3,7 +3,7 @@ Fusion ViewHelper Reference ########################### -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Fusion ViewHelper Reference: fusion:render`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst index e6100649026..1b44916c19d 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst @@ -3,7 +3,7 @@ Media ViewHelper Reference ########################## -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Media ViewHelper Reference: neos.media:fileTypeIcon`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst index 7fd3585d54c..fd16cb1bb61 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst @@ -3,7 +3,7 @@ Neos ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`Neos ViewHelper Reference: neos:backend.authenticationProviderLabel`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst index 427a8582dad..97c3373c89a 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst @@ -3,7 +3,7 @@ TYPO3 Fluid ViewHelper Reference ################################ -This reference was automatically generated from code on 2023-06-30 +This reference was automatically generated from code on 2023-07-17 .. _`TYPO3 Fluid ViewHelper Reference: f:alias`: From 8f21cbc2d2951a4574fbe7ac2fc1b3d894fe0aef Mon Sep 17 00:00:00 2001 From: Jenkins Date: Tue, 18 Jul 2023 07:20:17 +0000 Subject: [PATCH 05/19] TASK: Add changelog for 7.3.14 [skip ci] See https://jenkins.neos.io/job/neos-release/384/ --- .../Appendixes/ChangeLogs/7314.rst | 179 ++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 Neos.Neos/Documentation/Appendixes/ChangeLogs/7314.rst diff --git a/Neos.Neos/Documentation/Appendixes/ChangeLogs/7314.rst b/Neos.Neos/Documentation/Appendixes/ChangeLogs/7314.rst new file mode 100644 index 00000000000..3d8b38ca9da --- /dev/null +++ b/Neos.Neos/Documentation/Appendixes/ChangeLogs/7314.rst @@ -0,0 +1,179 @@ +`7.3.14 (2023-07-18) `_ +================================================================================================ + +Overview of merged pull requests +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`BUGFIX: Disable content element wrapping and inline editable for references in content reference list `_ +------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + +The NeosUI tries to initialize the inline editor for rendered references in content reference list. But they are not accessable at this moment. As references shouldn't get edited anyways, we can simple disable the content element wrapping for these references. + +Fixes https://github.com/neos/neos-ui/issues/3574 + +* Packages: ``Neos`` ``NodeTypes.ContentReferences`` + +`BUGFIX: Disable publish checkmark for new pages in workspace `_ +------------------------------------------------------------------------------------------------------------------------------- + +closes `#3991 `_ + +**Review instructions** +If the document is new, I show a small disabled checkmark instead of the functioning checkmark. This will force the user to use the checkboxes on the left side to publish changes. +This does not solve the underlying problem but it will at least disable the function for Editors. + +Bildschirmfoto 2023-05-12 um 11 12 21 + + +* Packages: ``Neos`` + +`BUGFIX: Allow string position values in NodeType schema `_ +-------------------------------------------------------------------------------------------------------------------------- + +The PositionalArraySorter implementation allows string values for the position of nodetypes, tabs, groups and views since a long time but the schema validation showed warnings. + +**Review instructions** + +Open the ``NodeTypes`` tab in the ``Configuration`` module with the Neos.Demo and the previous validation warnings shouldn't show up anymore. + + +* Packages: ``Neos`` + +`BUGFIX: Undefined array key "ui" in nodeType creationDialog `_ +------------------------------------------------------------------------------------------------------------------------------ + +Currently, its not possible to use the shorthand +```yaml + creationDialog: + elements: + hasFoo: + type: boolean + # ui: {} # this must be set to an empty array +``` + +as there is an unsafe access on the ui property +> Warning: Undefined array key "ui" in /Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_NodeTypePostprocessor_DefaultPropertyEditorPostprocessor.php line 110 + + + +regression from `#3473 `_ + +**Upgrade instructions** + +**Review instructions** + + +* Packages: ``Neos`` + +`BUGFIX: flow command typo in exception in nearestContentCollection method `_ +-------------------------------------------------------------------------------------------------------------------------------------------- + +**Upgrade instructions** + +_None_ + +**Review instructions** + +Command in exception should be start with ``./flow command...`` and not ``flow command...`` + +!`SCR-20230605-jytx `_ + + + +* Packages: ``Neos`` + +`BUGFIX: CreationDialog hideable elements `_ +----------------------------------------------------------------------------------------------------------- + +closes cross repo issue: https://github.com/neos/neos-ui/issues/3483 + +In the UI it will be once https://github.com/neos/neos-ui/pull/3507 is merged possible to use the ``hidden`` property in the node creation dialog + +```yaml +ui: + creationDialog: + elements: + hiddenProperty: + type: string + ui: + hidden: true +``` + +This change adjusts neos creationDialogPostprocessor so that creationDialog items that are generated from properties via ``showInCreationDialog`` will have the hidden property copied + +```yaml +properties: + hiddenProperty: + type: string + ui: + showInCreationDialog: true + inspector: + hidden: true +``` + +**Upgrade instructions** + +**Review instructions** + + +* Packages: ``ContentRepository`` ``Fusion.Afx`` ``Neos`` + +`TASK: add default value for generatorName at kickstart command in SiteKickstarter `_ +---------------------------------------------------------------------------------------------------------------------------------------------------- + +We tried to reproduce #4053. +We can't reproduce this issue, but while reproducing we found a flow command prompt, without a default value. + +The command ``flow kickstart:site AnySite.Site`` asks for a site generator. +We added a default value by adding: +```php +array_key_first($selection) +``` + +**Review instructions** +At https://github.com/neos/neos-development-collection/blob/`79dd4e1a26b7ffceb80cc628fdbe570ff6013b16 ``_/Neos.CliSetup/Classes/Command/SetupCommandController.php#L165 ``array_key_last`` is used. Should we use ``array_key_last`` too or is ``array_key_first` fine for it? + + +* Packages: ``SiteKickstarter`` + +`TASK: PHP 8.1 deprecations compatibility `_ +----------------------------------------------------------------------------------------------------------- + +This tweaks the code so that it runs without deprecations on PHP 8.1. + +**Upgrade instructions** + +None. + +**Review instructions** + +None. + + +* Packages: ``Fusion`` ``Neos`` + +`TASK: Change variablename in Neos Fusion documentation `_ +------------------------------------------------------------------------------------------------------------------------- + +Now use "myString" in documentation, because the return value is a string and not an array. This can lead to confusion under certain circumstances. + +**Upgrade instructions** + +**Review instructions** + + +* Packages: ``Neos`` + +`TASK: Apply fixes from StyleCI `_ +------------------------------------------------------------------------------------------------- + +This pull request applies code style fixes from an analysis carried out by `StyleCI `_. + +--- + +For more information, click `here `_. + +* Packages: ``Neos`` ``ContentRepository`` ``Fusion.Afx`` ``Fusion`` ``Media`` ``SiteKickstarter`` + +`Detailed log `_ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From 51b7e68919d0a7a872f16a0f701b28ac8b7b47eb Mon Sep 17 00:00:00 2001 From: Jenkins Date: Tue, 18 Jul 2023 07:27:12 +0000 Subject: [PATCH 06/19] TASK: Add changelog for 8.0.11 [skip ci] See https://jenkins.neos.io/job/neos-release/385/ --- .../Appendixes/ChangeLogs/8011.rst | 187 ++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 Neos.Neos/Documentation/Appendixes/ChangeLogs/8011.rst diff --git a/Neos.Neos/Documentation/Appendixes/ChangeLogs/8011.rst b/Neos.Neos/Documentation/Appendixes/ChangeLogs/8011.rst new file mode 100644 index 00000000000..a16fce49016 --- /dev/null +++ b/Neos.Neos/Documentation/Appendixes/ChangeLogs/8011.rst @@ -0,0 +1,187 @@ +`8.0.11 (2023-07-18) `_ +================================================================================================ + +Overview of merged pull requests +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`BUGFIX: Disable content element wrapping and inline editable for references in content reference list `_ +------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + +The NeosUI tries to initialize the inline editor for rendered references in content reference list. But they are not accessable at this moment. As references shouldn't get edited anyways, we can simple disable the content element wrapping for these references. + +Fixes https://github.com/neos/neos-ui/issues/3574 + +* Packages: ``Neos`` ``NodeTypes.ContentReferences`` + +`BUGFIX: Disable publish checkmark for new pages in workspace `_ +------------------------------------------------------------------------------------------------------------------------------- + +closes `#3991 `_ + +**Review instructions** +If the document is new, I show a small disabled checkmark instead of the functioning checkmark. This will force the user to use the checkboxes on the left side to publish changes. +This does not solve the underlying problem but it will at least disable the function for Editors. + +Bildschirmfoto 2023-05-12 um 11 12 21 + + +* Packages: ``Neos`` + +`BUGFIX: Fusion's FilePatternResolver windows compatible `_ +-------------------------------------------------------------------------------------------------------------------------- + +resolves `#4358 ``_in combination with ``#4374 `_ + + +The FilePatternResolver is responsible to handle glob patterns in includes in fusion. +For more in depth information see the test: https://github.com/neos/neos-development-collection/blob/`a461dbc8f976588b30f34a5ed34f1eeebf5a0cd2 `_/Neos.Fusion/Tests/Unit/Core/Parser/ParserIncludeTest.php#L156-L167 + +**Upgrade instructions** + + +* Packages: ``Neos`` ``Fusion`` + +`BUGFIX: Allow string position values in NodeType schema `_ +-------------------------------------------------------------------------------------------------------------------------- + +The PositionalArraySorter implementation allows string values for the position of nodetypes, tabs, groups and views since a long time but the schema validation showed warnings. + +**Review instructions** + +Open the ``NodeTypes`` tab in the ``Configuration`` module with the Neos.Demo and the previous validation warnings shouldn't show up anymore. + + +* Packages: ``Neos`` + +`BUGFIX: Undefined array key "ui" in nodeType creationDialog `_ +------------------------------------------------------------------------------------------------------------------------------ + +Currently, its not possible to use the shorthand +```yaml + creationDialog: + elements: + hasFoo: + type: boolean + # ui: {} # this must be set to an empty array +``` + +as there is an unsafe access on the ui property +> Warning: Undefined array key "ui" in /Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_NodeTypePostprocessor_DefaultPropertyEditorPostprocessor.php line 110 + + + +regression from `#3473 `_ + +**Upgrade instructions** + + +* Packages: ``Neos`` + +`BUGFIX: flow command typo in exception in nearestContentCollection method `_ +-------------------------------------------------------------------------------------------------------------------------------------------- + +**Upgrade instructions** + +_None_ + +**Review instructions** + +Command in exception should be start with ``./flow command...`` and not ``flow command...`` + +!`SCR-20230605-jytx `_ + + + +* Packages: ``Neos`` + +`BUGFIX: CreationDialog hideable elements `_ +----------------------------------------------------------------------------------------------------------- + +closes cross repo issue: https://github.com/neos/neos-ui/issues/3483 + +In the UI it will be once https://github.com/neos/neos-ui/pull/3507 is merged possible to use the ``hidden`` property in the node creation dialog + +```yaml +ui: + creationDialog: + elements: + hiddenProperty: + type: string + ui: + hidden: true +``` + +This change adjusts neos creationDialogPostprocessor so that creationDialog items that are generated from properties via ``showInCreationDialog`` will have the hidden property copied + +```yaml +properties: + hiddenProperty: + type: string + ui: + showInCreationDialog: true + inspector: + hidden: true +``` + +**Upgrade instructions** + + +* Packages: ``ContentRepository`` ``Fusion.Afx`` ``Neos`` + +`TASK: add default value for generatorName at kickstart command in SiteKickstarter `_ +---------------------------------------------------------------------------------------------------------------------------------------------------- + +We tried to reproduce #4053. +We can't reproduce this issue, but while reproducing we found a flow command prompt, without a default value. + +The command ``flow kickstart:site AnySite.Site`` asks for a site generator. +We added a default value by adding: +```php +array_key_first($selection) +``` + +**Review instructions** +At https://github.com/neos/neos-development-collection/blob/`79dd4e1a26b7ffceb80cc628fdbe570ff6013b16 ``_/Neos.CliSetup/Classes/Command/SetupCommandController.php#L165 ``array_key_last`` is used. Should we use ``array_key_last`` too or is ``array_key_first` fine for it? + + +* Packages: ``SiteKickstarter`` + +`TASK: PHP 8.1 deprecations compatibility `_ +----------------------------------------------------------------------------------------------------------- + +This tweaks the code so that it runs without deprecations on PHP 8.1. + +**Upgrade instructions** + +None. + +**Review instructions** + +None. + + +* Packages: ``Fusion`` ``Neos`` + +`TASK: Change variablename in Neos Fusion documentation `_ +------------------------------------------------------------------------------------------------------------------------- + +Now use "myString" in documentation, because the return value is a string and not an array. This can lead to confusion under certain circumstances. + +**Upgrade instructions** + + +* Packages: ``Neos`` + +`TASK: Apply fixes from StyleCI `_ +------------------------------------------------------------------------------------------------- + +This pull request applies code style fixes from an analysis carried out by `StyleCI `_. + +--- + +For more information, click `here `_. + +* Packages: ``Neos`` ``ContentRepository`` ``Fusion.Afx`` ``Fusion`` ``Media`` ``SiteKickstarter`` + +`Detailed log `_ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From 2380cf03d959434a7d49f9622494d9932a641fb0 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Tue, 18 Jul 2023 07:27:27 +0000 Subject: [PATCH 07/19] TASK: Update references [skip ci] --- Neos.Neos/Documentation/References/EelHelpersReference.rst | 2 +- .../Documentation/References/FlowQueryOperationReference.rst | 2 +- .../Documentation/References/Signals/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/Signals/Flow.rst | 2 +- Neos.Neos/Documentation/References/Signals/Media.rst | 2 +- Neos.Neos/Documentation/References/Signals/Neos.rst | 2 +- Neos.Neos/Documentation/References/Validators/Flow.rst | 2 +- Neos.Neos/Documentation/References/Validators/Media.rst | 2 +- Neos.Neos/Documentation/References/Validators/Party.rst | 2 +- .../Documentation/References/ViewHelpers/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Form.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Media.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Neos.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Neos.Neos/Documentation/References/EelHelpersReference.rst b/Neos.Neos/Documentation/References/EelHelpersReference.rst index 58c5f7f69ca..0f018c2f9f6 100644 --- a/Neos.Neos/Documentation/References/EelHelpersReference.rst +++ b/Neos.Neos/Documentation/References/EelHelpersReference.rst @@ -3,7 +3,7 @@ Eel Helpers Reference ===================== -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Eel Helpers Reference: Api`: diff --git a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst index 004cbb22e2e..4b127064964 100644 --- a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst +++ b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst @@ -3,7 +3,7 @@ FlowQuery Operation Reference ============================= -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`FlowQuery Operation Reference: add`: diff --git a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst index 2452521e54f..d099b042726 100644 --- a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository Signals Reference ==================================== -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Content Repository Signals Reference: Context (``Neos\ContentRepository\Domain\Service\Context``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Flow.rst b/Neos.Neos/Documentation/References/Signals/Flow.rst index a4b3f347289..b46a9ccf083 100644 --- a/Neos.Neos/Documentation/References/Signals/Flow.rst +++ b/Neos.Neos/Documentation/References/Signals/Flow.rst @@ -3,7 +3,7 @@ Flow Signals Reference ====================== -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Flow Signals Reference: AbstractAdvice (``Neos\Flow\Aop\Advice\AbstractAdvice``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Media.rst b/Neos.Neos/Documentation/References/Signals/Media.rst index 6b7d68a58f6..0fcc928a759 100644 --- a/Neos.Neos/Documentation/References/Signals/Media.rst +++ b/Neos.Neos/Documentation/References/Signals/Media.rst @@ -3,7 +3,7 @@ Media Signals Reference ======================= -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Media Signals Reference: AssetCollectionController (``Neos\Media\Browser\Controller\AssetCollectionController``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Neos.rst b/Neos.Neos/Documentation/References/Signals/Neos.rst index e25a9dc926f..d62b31bd166 100644 --- a/Neos.Neos/Documentation/References/Signals/Neos.rst +++ b/Neos.Neos/Documentation/References/Signals/Neos.rst @@ -3,7 +3,7 @@ Neos Signals Reference ====================== -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Neos Signals Reference: AbstractCreate (``Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate``)`: diff --git a/Neos.Neos/Documentation/References/Validators/Flow.rst b/Neos.Neos/Documentation/References/Validators/Flow.rst index f91cd09e5f6..307551c6721 100644 --- a/Neos.Neos/Documentation/References/Validators/Flow.rst +++ b/Neos.Neos/Documentation/References/Validators/Flow.rst @@ -3,7 +3,7 @@ Flow Validator Reference ======================== -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Flow Validator Reference: AggregateBoundaryValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Media.rst b/Neos.Neos/Documentation/References/Validators/Media.rst index 12ccd32b2c8..a10cc6ff1e5 100644 --- a/Neos.Neos/Documentation/References/Validators/Media.rst +++ b/Neos.Neos/Documentation/References/Validators/Media.rst @@ -3,7 +3,7 @@ Media Validator Reference ========================= -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Media Validator Reference: ImageOrientationValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Party.rst b/Neos.Neos/Documentation/References/Validators/Party.rst index 72834e6a907..f8c4f34f3cb 100644 --- a/Neos.Neos/Documentation/References/Validators/Party.rst +++ b/Neos.Neos/Documentation/References/Validators/Party.rst @@ -3,7 +3,7 @@ Party Validator Reference ========================= -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Party Validator Reference: AimAddressValidator`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst index 8c8a45d8ecc..2371551a8bb 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository ViewHelper Reference ####################################### -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Content Repository ViewHelper Reference: PaginateViewHelper`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst index 9807255937b..ed8b719e359 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst @@ -3,7 +3,7 @@ FluidAdaptor ViewHelper Reference ################################# -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`FluidAdaptor ViewHelper Reference: f:debug`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst index 56ba7da855d..3cab231480d 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst @@ -3,7 +3,7 @@ Form ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Form ViewHelper Reference: neos.form:form`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst index 9a7917a2c03..0f5d6e7b9dd 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst @@ -3,7 +3,7 @@ Fusion ViewHelper Reference ########################### -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Fusion ViewHelper Reference: fusion:render`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst index 217c1975fff..5b3fde68d78 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst @@ -3,7 +3,7 @@ Media ViewHelper Reference ########################## -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Media ViewHelper Reference: neos.media:fileTypeIcon`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst index afce57402af..64a24d4dafb 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst @@ -3,7 +3,7 @@ Neos ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`Neos ViewHelper Reference: neos:backend.authenticationProviderLabel`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst index 543e059cb52..eb8e079c8b5 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst @@ -3,7 +3,7 @@ TYPO3 Fluid ViewHelper Reference ################################ -This reference was automatically generated from code on 2023-07-12 +This reference was automatically generated from code on 2023-07-18 .. _`TYPO3 Fluid ViewHelper Reference: f:alias`: From a069400d50ab7521dea9f40fbb7f3dd8a3be5306 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Tue, 18 Jul 2023 07:37:49 +0000 Subject: [PATCH 08/19] TASK: Update references [skip ci] --- Neos.Neos/Documentation/References/EelHelpersReference.rst | 2 +- .../Documentation/References/FlowQueryOperationReference.rst | 2 +- .../Documentation/References/Signals/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/Signals/Flow.rst | 2 +- Neos.Neos/Documentation/References/Signals/Media.rst | 2 +- Neos.Neos/Documentation/References/Signals/Neos.rst | 2 +- Neos.Neos/Documentation/References/Validators/Flow.rst | 2 +- Neos.Neos/Documentation/References/Validators/Media.rst | 2 +- Neos.Neos/Documentation/References/Validators/Party.rst | 2 +- .../Documentation/References/ViewHelpers/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Form.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Media.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Neos.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Neos.Neos/Documentation/References/EelHelpersReference.rst b/Neos.Neos/Documentation/References/EelHelpersReference.rst index cd88f482a02..6ead0fd96b3 100644 --- a/Neos.Neos/Documentation/References/EelHelpersReference.rst +++ b/Neos.Neos/Documentation/References/EelHelpersReference.rst @@ -3,7 +3,7 @@ Eel Helpers Reference ===================== -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Eel Helpers Reference: Api`: diff --git a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst index 7150c7d8604..4b127064964 100644 --- a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst +++ b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst @@ -3,7 +3,7 @@ FlowQuery Operation Reference ============================= -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`FlowQuery Operation Reference: add`: diff --git a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst index 2bd55a9714f..d099b042726 100644 --- a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository Signals Reference ==================================== -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Content Repository Signals Reference: Context (``Neos\ContentRepository\Domain\Service\Context``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Flow.rst b/Neos.Neos/Documentation/References/Signals/Flow.rst index 9f55c3cecf8..a66accd09c9 100644 --- a/Neos.Neos/Documentation/References/Signals/Flow.rst +++ b/Neos.Neos/Documentation/References/Signals/Flow.rst @@ -3,7 +3,7 @@ Flow Signals Reference ====================== -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Flow Signals Reference: AbstractAdvice (``Neos\Flow\Aop\Advice\AbstractAdvice``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Media.rst b/Neos.Neos/Documentation/References/Signals/Media.rst index d2213580fc5..0fcc928a759 100644 --- a/Neos.Neos/Documentation/References/Signals/Media.rst +++ b/Neos.Neos/Documentation/References/Signals/Media.rst @@ -3,7 +3,7 @@ Media Signals Reference ======================= -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Media Signals Reference: AssetCollectionController (``Neos\Media\Browser\Controller\AssetCollectionController``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Neos.rst b/Neos.Neos/Documentation/References/Signals/Neos.rst index ad71b773d74..9eb90d5ffaa 100644 --- a/Neos.Neos/Documentation/References/Signals/Neos.rst +++ b/Neos.Neos/Documentation/References/Signals/Neos.rst @@ -3,7 +3,7 @@ Neos Signals Reference ====================== -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Neos Signals Reference: AbstractCreate (``Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate``)`: diff --git a/Neos.Neos/Documentation/References/Validators/Flow.rst b/Neos.Neos/Documentation/References/Validators/Flow.rst index f235319413f..307551c6721 100644 --- a/Neos.Neos/Documentation/References/Validators/Flow.rst +++ b/Neos.Neos/Documentation/References/Validators/Flow.rst @@ -3,7 +3,7 @@ Flow Validator Reference ======================== -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Flow Validator Reference: AggregateBoundaryValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Media.rst b/Neos.Neos/Documentation/References/Validators/Media.rst index 11126104d90..a10cc6ff1e5 100644 --- a/Neos.Neos/Documentation/References/Validators/Media.rst +++ b/Neos.Neos/Documentation/References/Validators/Media.rst @@ -3,7 +3,7 @@ Media Validator Reference ========================= -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Media Validator Reference: ImageOrientationValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Party.rst b/Neos.Neos/Documentation/References/Validators/Party.rst index 527ba2e54ea..f8c4f34f3cb 100644 --- a/Neos.Neos/Documentation/References/Validators/Party.rst +++ b/Neos.Neos/Documentation/References/Validators/Party.rst @@ -3,7 +3,7 @@ Party Validator Reference ========================= -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Party Validator Reference: AimAddressValidator`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst index 066e2b721ed..2371551a8bb 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository ViewHelper Reference ####################################### -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Content Repository ViewHelper Reference: PaginateViewHelper`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst index 498bfe08d74..ed8b719e359 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst @@ -3,7 +3,7 @@ FluidAdaptor ViewHelper Reference ################################# -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`FluidAdaptor ViewHelper Reference: f:debug`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst index f0f01f032b7..3cab231480d 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst @@ -3,7 +3,7 @@ Form ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Form ViewHelper Reference: neos.form:form`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst index 3d3508823ea..0f5d6e7b9dd 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst @@ -3,7 +3,7 @@ Fusion ViewHelper Reference ########################### -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Fusion ViewHelper Reference: fusion:render`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst index 1b44916c19d..5b3fde68d78 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst @@ -3,7 +3,7 @@ Media ViewHelper Reference ########################## -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Media ViewHelper Reference: neos.media:fileTypeIcon`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst index fd16cb1bb61..64a24d4dafb 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst @@ -3,7 +3,7 @@ Neos ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`Neos ViewHelper Reference: neos:backend.authenticationProviderLabel`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst index 97c3373c89a..eb8e079c8b5 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst @@ -3,7 +3,7 @@ TYPO3 Fluid ViewHelper Reference ################################ -This reference was automatically generated from code on 2023-07-17 +This reference was automatically generated from code on 2023-07-18 .. _`TYPO3 Fluid ViewHelper Reference: f:alias`: From ab1bc3c5a005163a1b4305ceb4aba5cb9f061f74 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Tue, 18 Jul 2023 13:04:59 +0200 Subject: [PATCH 09/19] TASK: Avoid potential deprecation warnings `trim()` and `preg_match()` expect strings, but Eel with it's loose typing might pass in different types. --- Neos.Fusion/Classes/Service/HtmlAugmenter.php | 4 ++-- Neos.Neos/Classes/Service/LinkingService.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Neos.Fusion/Classes/Service/HtmlAugmenter.php b/Neos.Fusion/Classes/Service/HtmlAugmenter.php index 5a249ae1d95..04fcd199baf 100644 --- a/Neos.Fusion/Classes/Service/HtmlAugmenter.php +++ b/Neos.Fusion/Classes/Service/HtmlAugmenter.php @@ -58,11 +58,11 @@ public function addAttributes($html, array $attributes, $fallbackTagName = 'div' * Detects a unique root tag in the given $html string and returns its DOMNode representation - or NULL if no unique root element could be found * * @param string $html - * @return \DOMNode + * @return \DOMNode|null */ protected function getHtmlRootElement($html) { - $html = trim($html); + $html = trim((string)$html); if ($html === '') { return null; } diff --git a/Neos.Neos/Classes/Service/LinkingService.php b/Neos.Neos/Classes/Service/LinkingService.php index f22ae612a35..25ad9f90d67 100644 --- a/Neos.Neos/Classes/Service/LinkingService.php +++ b/Neos.Neos/Classes/Service/LinkingService.php @@ -129,7 +129,7 @@ public function hasSupportedScheme($uri): bool $uri = (string)$uri; } - return preg_match(self::PATTERN_SUPPORTED_URIS, $uri) === 1; + return $uri !== null && preg_match(self::PATTERN_SUPPORTED_URIS, $uri) === 1; } /** @@ -142,7 +142,7 @@ public function getScheme($uri): string return $uri->getScheme(); } - if (preg_match(self::PATTERN_SUPPORTED_URIS, $uri, $matches) === 1) { + if ($uri !== null && preg_match(self::PATTERN_SUPPORTED_URIS, $uri, $matches) === 1) { return $matches[1]; } From 05b09c3b6d9404f7d92be44f1e72a416c39d8a3f Mon Sep 17 00:00:00 2001 From: bwaidelich Date: Wed, 26 Jul 2023 17:48:01 +0200 Subject: [PATCH 10/19] BUGFIX: Fix editing of Electronic Address type in Backend module Fixes: #4418 --- .../Controller/Module/Administration/UsersController.php | 2 +- .../Resources/Private/Partials/Module/Shared/EditUser.html | 2 +- .../Private/Partials/Module/Shared/NewElectronicAddress.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php index cd8f0719728..7934bd3099e 100644 --- a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php +++ b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php @@ -500,7 +500,7 @@ protected function assignElectronicAddressOptions(): void $electronicAddressUsageTypes = []; $translationHelper = new TranslationHelper(); foreach ($electronicAddress->getAvailableUsageTypes() as $type) { - $electronicAddressUsageTypes[$type] = $translationHelper->translate('users.electronicAddress.usage.type.' . $type, $type, [], 'Modules', 'Neos.Neos'); + $electronicAddressUsageTypes[$type] = $type; } array_unshift($electronicAddressUsageTypes, ''); $this->view->assignMultiple([ diff --git a/Neos.Neos/Resources/Private/Partials/Module/Shared/EditUser.html b/Neos.Neos/Resources/Private/Partials/Module/Shared/EditUser.html index f4caf552c77..94c3b3c7e87 100644 --- a/Neos.Neos/Resources/Private/Partials/Module/Shared/EditUser.html +++ b/Neos.Neos/Resources/Private/Partials/Module/Shared/EditUser.html @@ -107,7 +107,7 @@
- +
diff --git a/Neos.Neos/Resources/Private/Partials/Module/Shared/NewElectronicAddress.html b/Neos.Neos/Resources/Private/Partials/Module/Shared/NewElectronicAddress.html index e5a2b6255a7..3c1ccdea260 100644 --- a/Neos.Neos/Resources/Private/Partials/Module/Shared/NewElectronicAddress.html +++ b/Neos.Neos/Resources/Private/Partials/Module/Shared/NewElectronicAddress.html @@ -25,7 +25,7 @@ From 88d0ab52ebd2298ed8dd9878055714c960ba5d65 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Thu, 27 Jul 2023 04:20:20 +0000 Subject: [PATCH 11/19] TASK: Update references [skip ci] --- Neos.Neos/Documentation/References/EelHelpersReference.rst | 2 +- .../Documentation/References/FlowQueryOperationReference.rst | 2 +- .../Documentation/References/Signals/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/Signals/Flow.rst | 2 +- Neos.Neos/Documentation/References/Signals/Media.rst | 2 +- Neos.Neos/Documentation/References/Signals/Neos.rst | 2 +- Neos.Neos/Documentation/References/Validators/Flow.rst | 2 +- Neos.Neos/Documentation/References/Validators/Media.rst | 2 +- Neos.Neos/Documentation/References/Validators/Party.rst | 2 +- .../Documentation/References/ViewHelpers/ContentRepository.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Form.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Media.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/Neos.rst | 2 +- Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Neos.Neos/Documentation/References/EelHelpersReference.rst b/Neos.Neos/Documentation/References/EelHelpersReference.rst index 0f018c2f9f6..7bba1a594c0 100644 --- a/Neos.Neos/Documentation/References/EelHelpersReference.rst +++ b/Neos.Neos/Documentation/References/EelHelpersReference.rst @@ -3,7 +3,7 @@ Eel Helpers Reference ===================== -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Eel Helpers Reference: Api`: diff --git a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst index 4b127064964..ec47973cc2a 100644 --- a/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst +++ b/Neos.Neos/Documentation/References/FlowQueryOperationReference.rst @@ -3,7 +3,7 @@ FlowQuery Operation Reference ============================= -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`FlowQuery Operation Reference: add`: diff --git a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst index d099b042726..c2eea94aea8 100644 --- a/Neos.Neos/Documentation/References/Signals/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/Signals/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository Signals Reference ==================================== -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Content Repository Signals Reference: Context (``Neos\ContentRepository\Domain\Service\Context``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Flow.rst b/Neos.Neos/Documentation/References/Signals/Flow.rst index b46a9ccf083..2f5d245a0a4 100644 --- a/Neos.Neos/Documentation/References/Signals/Flow.rst +++ b/Neos.Neos/Documentation/References/Signals/Flow.rst @@ -3,7 +3,7 @@ Flow Signals Reference ====================== -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Flow Signals Reference: AbstractAdvice (``Neos\Flow\Aop\Advice\AbstractAdvice``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Media.rst b/Neos.Neos/Documentation/References/Signals/Media.rst index 0fcc928a759..090d9273dfe 100644 --- a/Neos.Neos/Documentation/References/Signals/Media.rst +++ b/Neos.Neos/Documentation/References/Signals/Media.rst @@ -3,7 +3,7 @@ Media Signals Reference ======================= -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Media Signals Reference: AssetCollectionController (``Neos\Media\Browser\Controller\AssetCollectionController``)`: diff --git a/Neos.Neos/Documentation/References/Signals/Neos.rst b/Neos.Neos/Documentation/References/Signals/Neos.rst index d62b31bd166..8d5c671f4c0 100644 --- a/Neos.Neos/Documentation/References/Signals/Neos.rst +++ b/Neos.Neos/Documentation/References/Signals/Neos.rst @@ -3,7 +3,7 @@ Neos Signals Reference ====================== -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Neos Signals Reference: AbstractCreate (``Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate``)`: diff --git a/Neos.Neos/Documentation/References/Validators/Flow.rst b/Neos.Neos/Documentation/References/Validators/Flow.rst index 307551c6721..769f95837a9 100644 --- a/Neos.Neos/Documentation/References/Validators/Flow.rst +++ b/Neos.Neos/Documentation/References/Validators/Flow.rst @@ -3,7 +3,7 @@ Flow Validator Reference ======================== -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Flow Validator Reference: AggregateBoundaryValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Media.rst b/Neos.Neos/Documentation/References/Validators/Media.rst index a10cc6ff1e5..de3c91d6730 100644 --- a/Neos.Neos/Documentation/References/Validators/Media.rst +++ b/Neos.Neos/Documentation/References/Validators/Media.rst @@ -3,7 +3,7 @@ Media Validator Reference ========================= -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Media Validator Reference: ImageOrientationValidator`: diff --git a/Neos.Neos/Documentation/References/Validators/Party.rst b/Neos.Neos/Documentation/References/Validators/Party.rst index f8c4f34f3cb..afba245aa13 100644 --- a/Neos.Neos/Documentation/References/Validators/Party.rst +++ b/Neos.Neos/Documentation/References/Validators/Party.rst @@ -3,7 +3,7 @@ Party Validator Reference ========================= -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Party Validator Reference: AimAddressValidator`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst index 2371551a8bb..fd1beb907a6 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/ContentRepository.rst @@ -3,7 +3,7 @@ Content Repository ViewHelper Reference ####################################### -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Content Repository ViewHelper Reference: PaginateViewHelper`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst index ed8b719e359..79e10394401 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/FluidAdaptor.rst @@ -3,7 +3,7 @@ FluidAdaptor ViewHelper Reference ################################# -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`FluidAdaptor ViewHelper Reference: f:debug`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst index 3cab231480d..1fd3be46703 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Form.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Form.rst @@ -3,7 +3,7 @@ Form ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Form ViewHelper Reference: neos.form:form`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst index 0f5d6e7b9dd..55479a41962 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Fusion.rst @@ -3,7 +3,7 @@ Fusion ViewHelper Reference ########################### -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Fusion ViewHelper Reference: fusion:render`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst index 5b3fde68d78..4dc21e09d88 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Media.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Media.rst @@ -3,7 +3,7 @@ Media ViewHelper Reference ########################## -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Media ViewHelper Reference: neos.media:fileTypeIcon`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst index 64a24d4dafb..ce019765455 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/Neos.rst @@ -3,7 +3,7 @@ Neos ViewHelper Reference ######################### -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`Neos ViewHelper Reference: neos:backend.authenticationProviderLabel`: diff --git a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst index eb8e079c8b5..4ae3bd8490c 100644 --- a/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst +++ b/Neos.Neos/Documentation/References/ViewHelpers/TYPO3Fluid.rst @@ -3,7 +3,7 @@ TYPO3 Fluid ViewHelper Reference ################################ -This reference was automatically generated from code on 2023-07-18 +This reference was automatically generated from code on 2023-07-27 .. _`TYPO3 Fluid ViewHelper Reference: f:alias`: From aee07aa1655acfea48fd3fbbb2ca948a14b8a71b Mon Sep 17 00:00:00 2001 From: Simon Krull Date: Fri, 4 Aug 2023 10:25:38 +0200 Subject: [PATCH 12/19] BUGFIX: show title on hover in ImpersonateButton --- Neos.Neos/Resources/Public/JavaScript/Main.min.js | 2 +- Neos.Neos/Resources/Public/JavaScript/Main.min.js.map | 2 +- .../Resources/Public/JavaScript/Templates/ImpersonateButton.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Neos.Neos/Resources/Public/JavaScript/Main.min.js b/Neos.Neos/Resources/Public/JavaScript/Main.min.js index fca525d2eba..ec36e930a75 100644 --- a/Neos.Neos/Resources/Public/JavaScript/Main.min.js +++ b/Neos.Neos/Resources/Public/JavaScript/Main.min.js @@ -1,3 +1,3 @@ /*! For license information please see Main.min.js.LICENSE.txt */ -(()=>{var e={148:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>UserMenu});var o=r(586),i=r(912);class UserMenu{constructor(e){const n=document.querySelector("[data-csrf-token]");this._csrfToken=(0,o.isNil)(n)?"":n.getAttribute("data-csrf-token"),this._root=e,this._apiService=new i.sM("/neos/impersonate/",this._csrfToken),(0,o.isNil)(e)||this._checkImpersonateStatus()}_renderRestoreButton(e){const n=this._root.querySelector(".neos-dropdown-menu");if((0,o.isNil)(n)||(0,o.isNil)(e))return!1;const r=document.createElement("li");r.innerHTML=(e=>{const n={class:"neos-button restore-user"};let r="";Object.keys(n).forEach((e=>{r+=`${e}="${n[e]}" `}));const i=(0,o.isNil)(window.NeosCMS)?window.NeosCMS.I18n.translate("impersonate.label.restoreUserButton",'Back to user "{0}"',"Neos.Neos","Main",e.accountIdentifier):`Restore user "${e.accountIdentifier}"`;return``})(e),n.appendChild(r);const i=n.querySelector(".restore-user");(0,o.isNil)(i)||i.addEventListener("click",this._restoreUser.bind(this))}_checkImpersonateStatus(){this._apiService.callStatus().then((e=>{const{origin:n,status:r}=e;r&&!(0,o.isNil)(n)&&this._renderRestoreButton(n)})).catch((function(e){}))}_restoreUser(e){e.preventDefault();const n=e.currentTarget;if((0,o.isNil)(n))return!1;this._apiService.callRestore().then((e=>{const{origin:n,impersonate:r,status:o}=e,i=window.NeosCMS.I18n.translate("impersonate.success.restoreUser","Switched back from {0} to the orginal user {1}.","Neos.Neos","Main",{0:r.accountIdentifier,1:n.accountIdentifier});window.NeosCMS.Notification.ok(i),window.location.pathname="/neos"})).catch((function(e){if(window.NeosCMS){const e=window.NeosCMS.I18n.translate("impersonate.error.restoreUser","Could not switch back to the original user.","Neos.Neos");window.NeosCMS.Notification.error(e)}}))}}},791:(e,n,r)=>{"use strict";r.r(n),r.d(n,{loadStorageData:()=>loadStorageData,saveStorageData:()=>saveStorageData});var o=r(586);const i="persistedState",getStorage=()=>{const e=localStorage.getItem(i),n=JSON.parse(e);return(0,o.isNil)(n)?{}:n},loadStorageData=e=>{const n=getStorage();return(0,o.getCollectionValueByPath)(n,e)},saveStorageData=(e,n)=>{const r=getStorage(),a=(0,o.createCollectionByPath)(r,e,n);(0,o.isNil)(a)||localStorage.setItem(i,JSON.stringify(a))}},449:(e,n,r)=>{"use strict";r.d(n,{Z:()=>o});const o={getItem:e=>{try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},setItem:(e,n)=>{try{window.sessionStorage.setItem(e,JSON.stringify(n))}catch(r){window.sessionStorage.clear(),window.sessionStorage.setItem(e,JSON.stringify(n))}},removeItem:e=>{window.sessionStorage.removeItem(e)}}},912:(e,n,r)=>{"use strict";r.d(n,{sM:()=>ApiService,VK:()=>a,Wt:()=>P,WH:()=>O,P_:()=>c});var o=r(586);const i=!(0,o.isNil)(window.NeosCMS?.Configuration),a={init:()=>{(0,o.isNil)(window.NeosCMS)&&(window.NeosCMS={}),(0,o.isNil)(window.NeosCMS.Configuration)&&(window.NeosCMS.Configuration={});const e=document.querySelector('link[rel="neos-xliff"]');(0,o.isNil)(e)||(window.NeosCMS.Configuration.XliffUri=e.getAttribute("href"))},get:e=>i?(0,o.getCollectionValueByPath)(window.NeosCMS.Configuration,e):null,override:(e,n)=>{i&&e in window.NeosCMS.Configuration&&(window.NeosCMS.Configuration[e]=n)}};var s=r(944),l=r.n(s);const u=["ok","info","notice","warning","error"],_renderNotification=(e,n,r,o)=>{const i={title:e,message:n,...o};u.includes(r)&&(i.type=r),l().create(i)},ok=e=>{_renderNotification(e,"","ok")},info=e=>{_renderNotification(e,"","info")},notice=e=>{_renderNotification(e,"","notice")},warning=(e,n)=>{_renderNotification(e,n,"warning",{timeout:0,closeButton:!0})},error=(e,n)=>{_renderNotification(e,n,"error",{timeout:0,closeButton:!0})},clear=()=>{l().removeAll()},Notification_init=()=>{(0,o.isNil)(window.NeosCMS)&&(window.NeosCMS={}),(0,o.isNil)(window.NeosCMS.Notification)&&(window.NeosCMS.Notification={init:Notification_init,ok,info,notice,warning,error,clear});Array.from(document.querySelectorAll("#neos-notifications-inline li")).forEach((e=>{const n=e.getAttribute("data-type"),r=e.textContent;_renderNotification(r,"",n)}))},c={init:Notification_init,ok,info,notice,warning,error,clear};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _objectSpread(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Logger),this.init(e,n)}return _createClass(Logger,[{key:"init",value:function init(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||d,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function setDebug(e){this.debug=e}},{key:"log",value:function log(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),o=1;o-1?e.replace(/###/g,"."):e}function canNotTraverseDeeper(){return!e||"string"==typeof e}for(var o="string"!=typeof n?[].concat(n):n.split(".");o.length>1;){if(canNotTraverseDeeper())return{};var i=cleanKey(o.shift());!e[i]&&r&&(e[i]=new r),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return canNotTraverseDeeper()?{}:{obj:e,k:cleanKey(o.shift())}}function setPath(e,n,r){var o=getLastOfPath(e,n,Object);o.obj[o.k]=r}function getPath(e,n){var r=getLastOfPath(e,n),o=r.obj,i=r.k;if(o)return o[i]}function getPathWithDefaults(e,n,r){var o=getPath(e,r);return void 0!==o?o:getPath(n,r)}function deepExtend(e,n,r){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(e[o]=n[o]):deepExtend(e[o],n[o],r):e[o]=n[o]);return e}function regexEscape(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function i18next_escape(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return h[e]})):e}var g="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,m=function(e){function ResourceStore(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck(this,ResourceStore),n=_possibleConstructorReturn(this,_getPrototypeOf(ResourceStore).call(this)),g&&f.call(_assertThisInitialized(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return _inherits(ResourceStore,e),_createClass(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function removeNamespaces(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function getResource(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,n];return r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split(".")),getPath(this.data,a)}},{key:"addResource",value:function addResource(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(o=n,n=(s=e.split("."))[1]),this.addNamespaces(n),setPath(this.data,s,o),i.silent||this.emit("added",e,n,r,o)}},{key:"addResources",value:function addResources(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}},{key:"addResourceBundle",value:function addResourceBundle(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,n];e.indexOf(".")>-1&&(o=r,r=n,n=(s=e.split("."))[1]),this.addNamespaces(n);var l=getPath(this.data,s)||{};o?deepExtend(l,r,i):l=_objectSpread({},l,r),setPath(this.data,s,l),a.silent||this.emit("added",e,n,r)}},{key:"removeResourceBundle",value:function removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function hasResourceBundle(e,n){return void 0!==this.getResource(e,n)}},{key:"getResourceBundle",value:function getResourceBundle(e,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?_objectSpread({},{},this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function getDataByLanguage(e){return this.data[e]}},{key:"toJSON",value:function toJSON(){return this.data}}]),ResourceStore}(f),y={processors:{},addPostProcessor:function addPostProcessor(e){this.processors[e.name]=e},handle:function handle(e,n,r,o,i){var a=this;return e.forEach((function(e){a.processors[e]&&(n=a.processors[e].process(n,r,o,i))})),n}},v={},b=function(e){function Translator(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,Translator),n=_possibleConstructorReturn(this,_getPrototypeOf(Translator).call(this)),g&&f.call(_assertThisInitialized(n)),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,_assertThisInitialized(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=p.create("translator"),n}return _inherits(Translator,e),_createClass(Translator,[{key:"changeLanguage",value:function changeLanguage(e){e&&(this.language=e)}},{key:"exists",value:function exists(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,n);return r&&void 0!==r.res}},{key:"extractFromKey",value:function extractFromKey(e,n){var r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=n.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var s=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),e=s.join(o)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function translate(e,n,r){var o=this;if("object"!==_typeof(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,l=a.namespaces,u=l[l.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var p=n.nsSeparator||this.options.nsSeparator;return u+p+s}return s}var f=this.resolve(e,n),h=f&&f.res,g=f&&f.usedKey||s,m=f&&f.exactUsedKey||s,y=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(x&&h&&w&&v.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,n):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var S="[object Array]"===y,T=S?[]:{},C=S?m:g;for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k)){var N="".concat(C).concat(i).concat(k);T[k]=this.translate(N,_objectSpread({},n,{joinArrays:!1,ns:l})),T[k]===N&&(T[k]=h[k])}h=T}}else if(x&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var E=!1,A=!1,L=void 0!==n.count&&"string"!=typeof n.count,O=Translator.hasDefaultValue(n),P=L?this.pluralResolver.getSuffix(c,n.count):"",j=n["defaultValue".concat(P)]||n.defaultValue;!this.isValidLookup(h)&&O&&(E=!0,h=j),this.isValidLookup(h)||(A=!0,h=s);var D=O&&j!==h&&this.options.updateMissing;if(A||E||D){if(this.logger.log(D?"updateKey":"missingKey",c,u,s,D?j:h),i){var M=this.resolve(s,_objectSpread({},n,{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(n)){var u=s.extractFromKey(e,l),c=u.key;r=c;var d=u.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var p=void 0!==l.count&&"string"!=typeof l.count,f=void 0!==l.context&&"string"==typeof l.context&&""!==l.context,h=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach((function(e){s.isValidLookup(n)||(a=e,!v["".concat(h[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(a)&&(v["".concat(h[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!s.isValidLookup(n)){i=r;var a,u,d=c,h=[d];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(h,c,r,e,l);else p&&(a=s.pluralResolver.getSuffix(r,l.count)),p&&f&&h.push(d+a),f&&h.push(d+="".concat(s.options.contextSeparator).concat(l.context)),p&&h.push(d+=a);for(;u=h.pop();)s.isValidLookup(n)||(o=u,n=s.getResource(r,e,u,l))}})))}))}})),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function getResource(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}}],[{key:"hasDefaultValue",value:function hasDefaultValue(e){var n="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&void 0!==e[r])return!0;return!1}}]),Translator}(f);function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}var x=function(){function LanguageUtil(e){_classCallCheck(this,LanguageUtil),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=p.create("languageUtils")}return _createClass(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=capitalize(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=capitalize(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=capitalize(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function isWhitelisted(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(e){var n,r=this;return e?(e.forEach((function(e){if(!n){var o=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(o)||(n=o)}})),!n&&this.options.supportedLngs&&e.forEach((function(e){if(!n){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function addCode(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),o.forEach((function(e){i.indexOf(e)<0&&a(r.formatLanguageCode(e))})),i}}]),LanguageUtil}(),w=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],S={1:function _(e){return Number(e>1)},2:function _(e){return Number(1!=e)},3:function _(e){return 0},4:function _(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function _(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function _(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function _(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function _(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function _(e){return Number(e>=2)},10:function _(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function _(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function _(e){return Number(e%10!=1||e%100==11)},13:function _(e){return Number(0!==e)},14:function _(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function _(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function _(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function _(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function _(e){return Number(0==e?0:1==e?1:2)},19:function _(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function _(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function _(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function _(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function createRules(){var e={};return w.forEach((function(n){n.lngs.forEach((function(r){e[r]={numbers:n.nr,plurals:S[n.fc]}}))})),e}var T=function(){function PluralResolver(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,PluralResolver),this.languageUtils=e,this.options=n,this.logger=p.create("pluralResolver"),this.rules=createRules()}return _createClass(PluralResolver,[{key:"addRule",value:function addRule(e,n){this.rules[e]=n}},{key:"getRule",value:function getRule(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function needsPlural(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(e,n){return this.getSuffixes(e).map((function(e){return n+e}))}},{key:"getSuffixes",value:function getSuffixes(e){var n=this,r=this.getRule(e);return r?r.numbers.map((function(r){return n.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function getSuffix(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var s=function returnSuffix(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),PluralResolver}(),C=function(){function Interpolator(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Interpolator),this.logger=p.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return _createClass(Interpolator,[{key:"init",value:function init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:i18next_escape,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?regexEscape(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?regexEscape(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?regexEscape(n.nestingPrefix):n.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=n.nestingSuffix?regexEscape(n.nestingSuffix):n.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function interpolate(e,n,r,o){var i,a,s,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function regexSafe(e){return e.replace(/\$/g,"$$$$")}var c=function handleFormat(e){if(e.indexOf(l.formatSeparator)<0){var i=getPathWithDefaults(n,u,e);return l.alwaysFormat?l.format(i,void 0,r):i}var a=e.split(l.formatSeparator),s=a.shift().trim(),c=a.join(l.formatSeparator).trim();return l.format(getPathWithDefaults(n,u,s),c,r,o)};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function safeValue(e){return regexSafe(e)}},{regex:this.regexp,safeValue:function safeValue(e){return l.escapeValue?regexSafe(l.escape(e)):regexSafe(e)}}].forEach((function(n){for(s=0;i=n.regex.exec(e);){if(void 0===(a=c(i[1].trim())))if("function"==typeof d){var r=d(e,i,o);a="string"==typeof r?r:""}else{if(p){a=i[0];continue}l.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||l.useRawValueToEscape||(a=makeString(a));if(e=e.replace(i[0],n.safeValue(a)),n.regex.lastIndex=0,++s>=l.maxReplaces)break}})),e}},{key:"nest",value:function nest(e,n){var r,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=_objectSpread({},a);function handleHasOptions(e,n){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(o[1]);e=o[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),n&&(s=_objectSpread({},n,s))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),n),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],u=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((o=n(handleHasOptions.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=makeString(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),u&&(o=l.reduce((function(e,n){return i.format(e,n,a.lng,a)}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),Interpolator}();var k=function(e){function Connector(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _classCallCheck(this,Connector),o=_possibleConstructorReturn(this,_getPrototypeOf(Connector).call(this)),g&&f.call(_assertThisInitialized(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=p.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return _inherits(Connector,e),_createClass(Connector,[{key:"queueLoad",value:function queueLoad(e,n,r,o){var i=this,a=[],s=[],l=[],u=[];return e.forEach((function(e){var o=!0;n.forEach((function(n){var l="".concat(e,"|").concat(n);!r.reload&&i.store.hasResourceBundle(e,n)?i.state[l]=2:i.state[l]<0||(1===i.state[l]?s.indexOf(l)<0&&s.push(l):(i.state[l]=1,o=!1,s.indexOf(l)<0&&s.push(l),a.indexOf(l)<0&&a.push(l),u.indexOf(n)<0&&u.push(n)))})),o||l.push(e)})),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:o}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:"loaded",value:function loaded(e,n,r){var o=e.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[e]=n?-1:2;var loaded={};this.queue.forEach((function(r){!function pushPath(e,n,r,o){var i=getLastOfPath(e,n,Object),a=i.obj,s=i.k;a[s]=a[s]||[],o&&(a[s]=a[s].concat(r)),o||a[s].push(r)}(r.loaded,[i],a),function remove(e,n){for(var r=e.indexOf(n);-1!==r;)e.splice(r,1),r=e.indexOf(n)}(r.pending,e),n&&r.errors.push(n),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){loaded[e]||(loaded[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(n){loaded[e].indexOf(n)<0&&loaded[e].push(n)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",loaded),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function read(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,n,(function(l,u){l&&u&&i<5?setTimeout((function(){o.read.call(o,e,n,r,i+1,2*a,s)}),a):s(l,u)})):s(null,{})}},{key:"prepareLoading",value:function prepareLoading(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof n&&(n=[n]);var a=this.queueLoad(e,n,o,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function load(e,n,r){this.prepareLoading(e,n,{},r)}},{key:"reload",value:function reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}},{key:"loadOne",value:function loadOne(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),i=o[0],a=o[1];this.read(i,a,"read",void 0,void 0,(function(o,s){o&&n.logger.warn("".concat(r,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&s&&n.logger.log("".concat(r,"loaded namespace ").concat(a," for language ").concat(i),s),n.loaded(e,o,s)}))}},{key:"saveMissing",value:function saveMissing(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,n,r,o,null,_objectSpread({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],n,r,o))}}]),Connector}(f);function i18next_get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function handle(e){var n={};if("object"===_typeof(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"===_typeof(e[2])||"object"===_typeof(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){n[e]=r[e]}))}return n},interpolation:{escapeValue:!0,format:function format(e,n,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function transformOptions(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function noop(){}const N=new(function(e){function I18n(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(_classCallCheck(this,I18n),e=_possibleConstructorReturn(this,_getPrototypeOf(I18n).call(this)),g&&f.call(_assertThisInitialized(e)),e.options=transformOptions(n),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),_possibleConstructorReturn(e,_assertThisInitialized(e));setTimeout((function(){e.init(n,r)}),0)}return e}return _inherits(I18n,e),_createClass(I18n,[{key:"init",value:function init(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function createClassOnDemand(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof n&&(r=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=_objectSpread({},i18next_get(),this.options,transformOptions(n)),this.format=this.options.interpolation.format,r||(r=noop),!this.options.isClone){this.modules.logger?p.init(createClassOnDemand(this.modules.logger),this.options):p.init(null,this.options);var o=new x(this.options);this.store=new m(this.options.resources,this.options);var i=this.services;i.logger=p,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new T(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new C(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new k(createClassOnDemand(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(n){e[n]=function(){var r;return(r=e.store)[n].apply(r,arguments),e}}));var u=defer(),c=function load(){var n=function finish(n,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(o),r(n,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return n(null,e.t.bind(e));e.changeLanguage(e.options.lng,n)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function loadResources(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,o=r,i="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return o();var a=[],s=function append(e){e&&n.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(i)s(i);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(a,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function reloadResources(e,n,r){var o=defer();return e||(e=this.languages),n||(n=this.options.ns),r||(r=noop),this.services.backendConnector.reload(e,n,(function(e){o.resolve(),r(e)})),o}},{key:"use",value:function use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&y.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;var o=defer();this.emit("languageChanging",e);var i=function setLng(e){var i="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);i&&(r.language||(r.language=i,r.languages=r.services.languageUtils.toResolveHierarchy(i)),r.translator.language||r.translator.changeLanguage(i),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(i)),r.loadResources(i,(function(e){!function done(e,i){i?(r.language=i,r.languages=r.services.languageUtils.toResolveHierarchy(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,o.resolve((function(){return r.t.apply(r,arguments)})),n&&n(e,(function(){return r.t.apply(r,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function getFixedT(e,n){var r=this,o=function fixedT(e,n){var o;if("object"!==_typeof(n)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var s=function loadNotPending(e,r){var o=n.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===o||2===o};if(r.precheck){var l=r.precheck(this,s);if(void 0!==l)return l}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!s(o,e)||i&&!s(a,e)))}},{key:"loadNamespaces",value:function loadNamespaces(e,n){var r=this,o=defer();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),n&&n(e)})),o):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(e,n){var r=defer();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],i=e.filter((function(e){return o.indexOf(e)<0}));return i.length?(this.options.preload=o.concat(i),this.loadResources((function(e){r.resolve(),n&&n(e)})),r):(n&&n(),Promise.resolve())}},{key:"dir",value:function dir(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function createInstance(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new I18n(e,n)}},{key:"cloneInstance",value:function cloneInstance(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,o=_objectSpread({},this.options,n,{isClone:!0}),i=new I18n(o),a=["store","services","language"];return a.forEach((function(n){i[n]=e[n]})),i.services=_objectSpread({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new b(i.services,i.options),i.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o((0,o.isEmpty)(e)?E:e.replace(/\_/g,"."))+"/"+((0,o.isEmpty)(n)?A:n.replace(/\_/g,".")),checkInitialisedNamespaces=()=>{const e=L.findIndex((e=>!1===e.initialized))>=0;var n;return e||(n=!0,(0,o.createCollectionByPath)(window,"NeosCMS.I18n.initialized",Boolean(n)),window.dispatchEvent(new CustomEvent("neoscms-i18n-initialized",{bubbles:!0}))),!e},transformAndAppendXliffData=e=>{const n=N.languages[0];if((0,o.isNil)(e))return!1;const r=Object.keys(e);N.store.on("added",((e,n)=>{L.find((e=>e.name===n)).initialized=!0,checkInitialisedNamespaces()})),r.forEach((r=>{Object.keys(e[r]).forEach((i=>{const a=getTransformedNamespace(r,i),s=e[r][i];(0,o.isNil)(s)||N.addResourceBundle(n,a,(e=>(Object.keys(e).forEach((n=>{Array.isArray(e[n])&&e[n].forEach(((r,o)=>{let i=n;Number.isInteger(o)&&1===o&&(i=`${n}_plural`),e[i]=r}))})),e))(s),!0,!0)}))}))},translate=(e,n,r,i,a,s,l)=>{e=e.replace(/\./g,"_");var u,c;const d=(u=r,c=i,((0,o.isEmpty)(u)?E:u.trim())+"/"+((0,o.isEmpty)(c)?A:c.trim()))+":"+e.trim();let p={};return(0,o.isNil)(l)||(p.count=l),(0,o.isNil)(a)||(p.replace=a),(0,o.isEmpty)(n)||(p.defaultValue=n),N.t(d,p)},Localization_init=()=>{(0,o.isNil)(window.NeosCMS)&&(window.NeosCMS={}),(0,o.isNil)(window.NeosCMS.I18n)&&(window.NeosCMS.I18n={init:Localization_init,translate,initialized:!1})},O={init:Localization_init,initTranslations:e=>{const n={interpolation:{prefix:"{",suffix:"}"},resources:{}},r=(()=>{const e=(0,o.getCollectionValueByPath)(window.NeosCMS,"Configuration.XliffUri");return(0,o.isNil)(e)?"":new URL(e).searchParams.get("locale")})();if(!(0,o.isEmpty)(r)){n[r.match("[a-z]{2}(-[A-Z]{2})")?"lng":"fallbackLng"]=r}(e=>{if((0,o.isNil)(e))return!1;Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((r=>{const i=getTransformedNamespace(n,r),a=e[n][r];(0,o.isNil)(a)||L.push({name:i,initialized:!1})}))}))})(e),N.init(n,((n,r)=>{transformAndAppendXliffData(e)}))},translate};r(449);class ApiService{constructor(e,n){if((0,o.isNil)(e)){let e="Tried to create API service without a base uri. ";e+="Please initialize the API service with a base path ",e+='like "/neos/impersonate/"',console.error(e)}if(this._basePath=e,(0,o.isNil)(n)){let e="Tried to create API service without a CSFR ";e+="token. Please initialize the API service with a token",console.error(e)}this._csrfToken=n}async callUserChange(e){const n={user:e,format:"json"},r=await fetch(this._basePath+"user-change",{method:"POST",credentials:"include",headers:this._getHeader(),body:JSON.stringify(n)});return await r.json()}async callStatus(){const e=await fetch(this._basePath+"status",{method:"GET",credentials:"include",headers:this._getHeader()});return await e.json()}async callRestore(){const e=await fetch(this._basePath+"restore",{method:"POST",credentials:"include",headers:this._getHeader()});return await e.json()}_getHeader(){return{Accept:"application/json","Content-Type":"application/json","X-Flow-Csrftoken":this._csrfToken}}}const P={init:()=>{(0,o.isNil)(window.NeosCMS)&&(window.NeosCMS={}),(0,o.isNil)(window.NeosCMS.Helper)&&(window.NeosCMS.Helper={isNil:o.isNil,isEmpty:o.isEmpty,getItemByKeyValue:o.getItemByKeyValue,getCollectionValueByPath:o.getCollectionValueByPath,createCollectionByPath:o.createCollectionByPath})}}},482:function(e){e.exports=function(){"use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var n=0,r=Array(e.length);n1?r-1:0),i=1;i/gm),R=s(/^data-[\-\w.\u00B7-\uFFFF]/),I=s(/^aria-[\-\w]+$/),q=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F=s(/^(?:\w+script|data):/i),H=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),z="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};function _toConsumableArray$1(e){if(Array.isArray(e)){for(var n=0,r=Array(e.length);n0&&void 0!==arguments[0]?arguments[0]:B(),n=function DOMPurify(e){return createDOMPurify(e)};if(n.version="2.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,i=e.DocumentFragment,s=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap,W=void 0===d?e.NamedNodeMap||e.MozNamedAttrMap:d,$=e.Text,V=e.Comment,K=e.DOMParser,G=e.trustedTypes,X=u.prototype,J=lookupGetter(X,"cloneNode"),Y=lookupGetter(X,"nextSibling"),Z=lookupGetter(X,"childNodes"),Q=lookupGetter(X,"parentNode");if("function"==typeof s){var ee=o.createElement("template");ee.content&&ee.content.ownerDocument&&(o=ee.content.ownerDocument)}var te=U(G,r),ne=te&&De?te.createHTML(""):"",re=o,oe=re.implementation,ie=re.createNodeIterator,ae=re.getElementsByTagName,se=re.createDocumentFragment,le=r.importNode,ue={};try{ue=clone(o).documentMode?o.documentMode:{}}catch(e){}var ce={};n.isSupported=oe&&void 0!==oe.createHTMLDocument&&9!==ue;var de=D,pe=M,fe=R,he=I,ge=F,me=H,ye=q,ve=null,be=addToSet({},[].concat(_toConsumableArray$1(S),_toConsumableArray$1(T),_toConsumableArray$1(C),_toConsumableArray$1(N),_toConsumableArray$1(A))),xe=null,we=addToSet({},[].concat(_toConsumableArray$1(L),_toConsumableArray$1(O),_toConsumableArray$1(P),_toConsumableArray$1(j))),Se=null,Te=null,Ce=!0,ke=!0,Ne=!1,_e=!1,Ee=!1,Ae=!1,Le=!1,Oe=!1,Pe=!1,je=!0,De=!1,Me=!0,Re=!0,Ie=!1,qe={},Fe=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,ze=addToSet({},["audio","video","img","source","image","track"]),Be=null,Ue=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),We=null,$e=o.createElement("form"),Ve=function _parseConfig(e){We&&We===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=clone(e),ve="ALLOWED_TAGS"in e?addToSet({},e.ALLOWED_TAGS):be,xe="ALLOWED_ATTR"in e?addToSet({},e.ALLOWED_ATTR):we,Be="ADD_URI_SAFE_ATTR"in e?addToSet(clone(Ue),e.ADD_URI_SAFE_ATTR):Ue,He="ADD_DATA_URI_TAGS"in e?addToSet(clone(ze),e.ADD_DATA_URI_TAGS):ze,Se="FORBID_TAGS"in e?addToSet({},e.FORBID_TAGS):{},Te="FORBID_ATTR"in e?addToSet({},e.FORBID_ATTR):{},qe="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=e.SAFE_FOR_TEMPLATES||!1,Ee=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,je=!1!==e.RETURN_DOM_IMPORT,De=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,Ie=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,_e&&(ke=!1),Pe&&(Oe=!0),qe&&(ve=addToSet({},[].concat(_toConsumableArray$1(A))),xe=[],!0===qe.html&&(addToSet(ve,S),addToSet(xe,L)),!0===qe.svg&&(addToSet(ve,T),addToSet(xe,O),addToSet(xe,j)),!0===qe.svgFilters&&(addToSet(ve,C),addToSet(xe,O),addToSet(xe,j)),!0===qe.mathMl&&(addToSet(ve,N),addToSet(xe,P),addToSet(xe,j))),e.ADD_TAGS&&(ve===be&&(ve=clone(ve)),addToSet(ve,e.ADD_TAGS)),e.ADD_ATTR&&(xe===we&&(xe=clone(xe)),addToSet(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&addToSet(Be,e.ADD_URI_SAFE_ATTR),Re&&(ve["#text"]=!0),Ee&&addToSet(ve,["html","head","body"]),ve.table&&(addToSet(ve,["tbody"]),delete Se.tbody),a&&a(e),We=e)},Ke=addToSet({},["mi","mo","mn","ms","mtext"]),Ge=addToSet({},["foreignobject","desc","title","annotation-xml"]),Xe=addToSet({},T);addToSet(Xe,C),addToSet(Xe,k);var Je=addToSet({},N);addToSet(Je,E);var Ye="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",et=function _checkValidNamespace(e){var n=Q(e);n&&n.tagName||(n={namespaceURI:Qe,tagName:"template"});var r=g(e.tagName),o=g(n.tagName);if(e.namespaceURI===Ze)return n.namespaceURI===Qe?"svg"===r:n.namespaceURI===Ye?"svg"===r&&("annotation-xml"===o||Ke[o]):Boolean(Xe[r]);if(e.namespaceURI===Ye)return n.namespaceURI===Qe?"math"===r:n.namespaceURI===Ze?"math"===r&&Ge[o]:Boolean(Je[r]);if(e.namespaceURI===Qe){if(n.namespaceURI===Ze&&!Ge[o])return!1;if(n.namespaceURI===Ye&&!Ke[o])return!1;var i=addToSet({},["title","style","font","a","script"]);return!Je[r]&&(i[r]||!Xe[r])}return!1},tt=function _forceRemove(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(n){try{e.outerHTML=ne}catch(n){e.remove()}}},nt=function _removeAttribute(e,r){try{h(n.removed,{attribute:r.getAttributeNode(e),from:r})}catch(e){h(n.removed,{attribute:null,from:r})}r.removeAttribute(e)},rt=function _initDocument(e){var n=void 0,r=void 0;if(Le)e=""+e;else{var i=m(e,/^[\r\n\t ]+/);r=i&&i[0]}var a=te?te.createHTML(e):e;try{n=(new K).parseFromString(a,"text/html")}catch(e){}if(!n||!n.documentElement){var s=(n=oe.createHTMLDocument("")).body;s.parentNode.removeChild(s.parentNode.firstElementChild),s.outerHTML=a}return e&&r&&n.body.insertBefore(o.createTextNode(r),n.body.childNodes[0]||null),ae.call(n,Ee?"html":"body")[0]},ot=function _createIterator(e){return ie.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,(function(){return c.FILTER_ACCEPT}),!1)},it=function _isClobbered(e){return!(e instanceof $||e instanceof V||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof W&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},at=function _isNode(e){return"object"===(void 0===l?"undefined":z(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},st=function _executeHook(e,r,o){ce[e]&&p(ce[e],(function(e){e.call(n,r,o,We)}))},lt=function _sanitizeElements(e){var r=void 0;if(st("beforeSanitizeElements",e,null),it(e))return tt(e),!0;if(m(e.nodeName,/[\u0080-\uFFFF]/))return tt(e),!0;var o=g(e.nodeName);if(st("uponSanitizeElement",e,{tagName:o,allowedTags:ve}),!at(e.firstElementChild)&&(!at(e.content)||!at(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return tt(e),!0;if(!ve[o]||Se[o]){if(Re&&!Fe[o])for(var i=Q(e),a=Z(e),s=a.length-1;s>=0;--s)i.insertBefore(J(a[s],!0),Y(e));return tt(e),!0}return e instanceof u&&!et(e)?(tt(e),!0):"noscript"!==o&&"noembed"!==o||!x(/<\/no(script|embed)/i,e.innerHTML)?(_e&&3===e.nodeType&&(r=e.textContent,r=y(r,de," "),r=y(r,pe," "),e.textContent!==r&&(h(n.removed,{element:e.cloneNode()}),e.textContent=r)),st("afterSanitizeElements",e,null),!1):(tt(e),!0)},ut=function _isValidAttribute(e,n,r){if(Me&&("id"===n||"name"===n)&&(r in o||r in $e))return!1;if(ke&&x(fe,n));else if(Ce&&x(he,n));else{if(!xe[n]||Te[n])return!1;if(Be[n]);else if(x(ye,y(r,me,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===e||0!==v(r,"data:")||!He[e])if(Ne&&!x(ge,y(r,me,"")));else if(r)return!1}return!0},ct=function _sanitizeAttributes(e){var r=void 0,o=void 0,i=void 0,a=void 0;st("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(a=s.length;a--;){var u=r=s[a],c=u.name,d=u.namespaceURI;if(o=b(r.value),i=g(c),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,st("uponSanitizeAttribute",e,l),o=l.attrValue,!l.forceKeepAttr&&(nt(c,e),l.keepAttr))if(x(/\/>/i,o))nt(c,e);else{_e&&(o=y(o,de," "),o=y(o,pe," "));var p=e.nodeName.toLowerCase();if(ut(p,i,o))try{d?e.setAttributeNS(d,c,o):e.setAttribute(c,o),f(n.removed)}catch(e){}}}st("afterSanitizeAttributes",e,null)}},dt=function _sanitizeShadowDOM(e){var n=void 0,r=ot(e);for(st("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)st("uponSanitizeShadowNode",n,null),lt(n)||(n.content instanceof i&&_sanitizeShadowDOM(n.content),ct(n));st("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(o,a){var s=void 0,u=void 0,c=void 0,d=void 0,p=void 0;if(o||(o="\x3c!--\x3e"),"string"!=typeof o&&!at(o)){if("function"!=typeof o.toString)throw w("toString is not a function");if("string"!=typeof(o=o.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported){if("object"===z(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof o)return e.toStaticHTML(o);if(at(o))return e.toStaticHTML(o.outerHTML)}return o}if(Ae||Ve(a),n.removed=[],"string"==typeof o&&(Ie=!1),Ie);else if(o instanceof l)1===(u=(s=rt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?s=u:s.appendChild(u);else{if(!Oe&&!_e&&!Ee&&-1===o.indexOf("<"))return te&&De?te.createHTML(o):o;if(!(s=rt(o)))return Oe?null:ne}s&&Le&&tt(s.firstChild);for(var f=ot(Ie?o:s);c=f.nextNode();)3===c.nodeType&&c===d||lt(c)||(c.content instanceof i&&dt(c.content),ct(c),d=c);if(d=null,Ie)return o;if(Oe){if(Pe)for(p=se.call(s.ownerDocument);s.firstChild;)p.appendChild(s.firstChild);else p=s;return je&&(p=le.call(r,p,!0)),p}var h=Ee?s.outerHTML:s.innerHTML;return _e&&(h=y(h,de," "),h=y(h,pe," ")),te&&De?te.createHTML(h):h},n.setConfig=function(e){Ve(e),Ae=!0},n.clearConfig=function(){We=null,Ae=!1},n.isValidAttribute=function(e,n,r){We||Ve({});var o=g(e),i=g(n);return ut(o,i,r)},n.addHook=function(e,n){"function"==typeof n&&(ce[e]=ce[e]||[],h(ce[e],n))},n.removeHook=function(e){ce[e]&&f(ce[e])},n.removeHooks=function(e){ce[e]&&(ce[e]=[])},n.removeAllHooks=function(){ce={}},n}return createDOMPurify()}()},755:function(e,n){var r;!function(n,r){"use strict";"object"==typeof e.exports?e.exports=n.document?r(n,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return r(e)}:r(n)}("undefined"!=typeof window?window:this,(function(o,i){"use strict";var a=[],s=Object.getPrototypeOf,l=a.slice,u=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,d=a.indexOf,p={},f=p.toString,h=p.hasOwnProperty,g=h.toString,m=g.call(Object),y={},v=function isFunction(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},b=function isWindow(e){return null!=e&&e===e.window},x=o.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(e,n,r){var o,i,a=(r=r||x).createElement("script");if(a.text=e,n)for(o in w)(i=n[o]||n.getAttribute&&n.getAttribute(o))&&a.setAttribute(o,i);r.head.appendChild(a).parentNode.removeChild(a)}function toType(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[f.call(e)]||"object":typeof e}var S="3.6.0",jQuery=function(e,n){return new jQuery.fn.init(e,n)};function isArrayLike(e){var n=!!e&&"length"in e&&e.length,r=toType(e);return!v(e)&&!b(e)&&("array"===r||0===n||"number"==typeof n&&n>0&&n-1 in e)}jQuery.fn=jQuery.prototype={jquery:S,constructor:jQuery,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=jQuery.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return jQuery.each(this,e)},map:function(e){return this.pushStack(jQuery.map(this,(function(n,r){return e.call(n,r,n)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(jQuery.grep(this,(function(e,n){return(n+1)%2})))},odd:function(){return this.pushStack(jQuery.grep(this,(function(e,n){return n%2})))},eq:function(e){var n=this.length,r=+e+(e<0?n:0);return this.pushStack(r>=0&&r+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),$=new RegExp(I+"|>"),V=new RegExp(H),K=new RegExp("^"+q+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),funescape=function(e,n){var r="0x"+e.slice(1)-65536;return n||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(e,n){return n?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},unloadHandler=function(){f()},re=addCombinator((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(O=M.call(S.childNodes),S.childNodes),O[S.childNodes.length].nodeType}catch(e){D={apply:O.length?function(e,n){j.apply(e,M.call(n))}:function(e,n){for(var r=e.length,o=0;e[r++]=n[o++];);e.length=r-1}}}function Sizzle(e,n,o,i){var a,l,c,d,p,g,v,b=n&&n.ownerDocument,S=n?n.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return o;if(!i&&(f(n),n=n||h,m)){if(11!==S&&(p=Q.exec(e)))if(a=p[1]){if(9===S){if(!(c=n.getElementById(a)))return o;if(c.id===a)return o.push(c),o}else if(b&&(c=b.getElementById(a))&&x(n,c)&&c.id===a)return o.push(c),o}else{if(p[2])return D.apply(o,n.getElementsByTagName(e)),o;if((a=p[3])&&r.getElementsByClassName&&n.getElementsByClassName)return D.apply(o,n.getElementsByClassName(a)),o}if(r.qsa&&!A[e+" "]&&(!y||!y.test(e))&&(1!==S||"object"!==n.nodeName.toLowerCase())){if(v=e,b=n,1===S&&($.test(e)||W.test(e))){for((b=ee.test(e)&&testContext(n.parentNode)||n)===n&&r.scope||((d=n.getAttribute("id"))?d=d.replace(ne,fcssescape):n.setAttribute("id",d=w)),l=(g=s(e)).length;l--;)g[l]=(d?"#"+d:":scope")+" "+toSelector(g[l]);v=g.join(",")}try{return D.apply(o,b.querySelectorAll(v)),o}catch(n){A(e,!0)}finally{d===w&&n.removeAttribute("id")}}}return u(e.replace(B,"$1"),n,o,i)}function createCache(){var e=[];return function cache(n,r){return e.push(n+" ")>o.cacheLength&&delete cache[e.shift()],cache[n+" "]=r}}function markFunction(e){return e[w]=!0,e}function assert(e){var n=h.createElement("fieldset");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function addHandle(e,n){for(var r=e.split("|"),i=r.length;i--;)o.attrHandle[r[i]]=n}function siblingCheck(e,n){var r=n&&e,o=r&&1===e.nodeType&&1===n.nodeType&&e.sourceIndex-n.sourceIndex;if(o)return o;if(r)for(;r=r.nextSibling;)if(r===n)return-1;return e?1:-1}function createInputPseudo(e){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===e}}function createButtonPseudo(e){return function(n){var r=n.nodeName.toLowerCase();return("input"===r||"button"===r)&&n.type===e}}function createDisabledPseudo(e){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===e:n.disabled===e:n.isDisabled===e||n.isDisabled!==!e&&re(n)===e:n.disabled===e:"label"in n&&n.disabled===e}}function createPositionalPseudo(e){return markFunction((function(n){return n=+n,markFunction((function(r,o){for(var i,a=e([],r.length,n),s=a.length;s--;)r[i=a[s]]&&(r[i]=!(o[i]=r[i]))}))}))}function testContext(e){return e&&void 0!==e.getElementsByTagName&&e}for(n in r=Sizzle.support={},a=Sizzle.isXML=function(e){var n=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(n||r&&r.nodeName||"HTML")},f=Sizzle.setDocument=function(e){var n,i,s=e?e.ownerDocument||e:S;return s!=h&&9===s.nodeType&&s.documentElement?(g=(h=s).documentElement,m=!a(h),S!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",unloadHandler,!1):i.attachEvent&&i.attachEvent("onunload",unloadHandler)),r.scope=assert((function(e){return g.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),r.attributes=assert((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=assert((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=Z.test(h.getElementsByClassName),r.getById=assert((function(e){return g.appendChild(e).id=w,!h.getElementsByName||!h.getElementsByName(w).length})),r.getById?(o.filter.ID=function(e){var n=e.replace(te,funescape);return function(e){return e.getAttribute("id")===n}},o.find.ID=function(e,n){if(void 0!==n.getElementById&&m){var r=n.getElementById(e);return r?[r]:[]}}):(o.filter.ID=function(e){var n=e.replace(te,funescape);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===n}},o.find.ID=function(e,n){if(void 0!==n.getElementById&&m){var r,o,i,a=n.getElementById(e);if(a){if((r=a.getAttributeNode("id"))&&r.value===e)return[a];for(i=n.getElementsByName(e),o=0;a=i[o++];)if((r=a.getAttributeNode("id"))&&r.value===e)return[a]}return[]}}),o.find.TAG=r.getElementsByTagName?function(e,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(e):r.qsa?n.querySelectorAll(e):void 0}:function(e,n){var r,o=[],i=0,a=n.getElementsByTagName(e);if("*"===e){for(;r=a[i++];)1===r.nodeType&&o.push(r);return o}return a},o.find.CLASS=r.getElementsByClassName&&function(e,n){if(void 0!==n.getElementsByClassName&&m)return n.getElementsByClassName(e)},v=[],y=[],(r.qsa=Z.test(h.querySelectorAll))&&(assert((function(e){var n;g.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||y.push("~="),(n=h.createElement("input")).setAttribute("name",""),e.appendChild(n),e.querySelectorAll("[name='']").length||y.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),assert((function(e){e.innerHTML="";var n=h.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),g.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(r.matchesSelector=Z.test(b=g.matches||g.webkitMatchesSelector||g.mozMatchesSelector||g.oMatchesSelector||g.msMatchesSelector))&&assert((function(e){r.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",H)})),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),n=Z.test(g.compareDocumentPosition),x=n||Z.test(g.contains)?function(e,n){var r=9===e.nodeType?e.documentElement:e,o=n&&n.parentNode;return e===o||!(!o||1!==o.nodeType||!(r.contains?r.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,n){if(n)for(;n=n.parentNode;)if(n===e)return!0;return!1},sortOrder=n?function(e,n){if(e===n)return p=!0,0;var o=!e.compareDocumentPosition-!n.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(n.ownerDocument||n)?e.compareDocumentPosition(n):1)||!r.sortDetached&&n.compareDocumentPosition(e)===o?e==h||e.ownerDocument==S&&x(S,e)?-1:n==h||n.ownerDocument==S&&x(S,n)?1:d?indexOf(d,e)-indexOf(d,n):0:4&o?-1:1)}:function(e,n){if(e===n)return p=!0,0;var r,o=0,i=e.parentNode,a=n.parentNode,s=[e],l=[n];if(!i||!a)return e==h?-1:n==h?1:i?-1:a?1:d?indexOf(d,e)-indexOf(d,n):0;if(i===a)return siblingCheck(e,n);for(r=e;r=r.parentNode;)s.unshift(r);for(r=n;r=r.parentNode;)l.unshift(r);for(;s[o]===l[o];)o++;return o?siblingCheck(s[o],l[o]):s[o]==S?-1:l[o]==S?1:0},h):h},Sizzle.matches=function(e,n){return Sizzle(e,null,null,n)},Sizzle.matchesSelector=function(e,n){if(f(e),r.matchesSelector&&m&&!A[n+" "]&&(!v||!v.test(n))&&(!y||!y.test(n)))try{var o=b.call(e,n);if(o||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){A(n,!0)}return Sizzle(n,h,null,[e]).length>0},Sizzle.contains=function(e,n){return(e.ownerDocument||e)!=h&&f(e),x(e,n)},Sizzle.attr=function(e,n){(e.ownerDocument||e)!=h&&f(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!m):void 0;return void 0!==a?a:r.attributes||!m?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null},Sizzle.escape=function(e){return(e+"").replace(ne,fcssescape)},Sizzle.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Sizzle.uniqueSort=function(e){var n,o=[],i=0,a=0;if(p=!r.detectDuplicates,d=!r.sortStable&&e.slice(0),e.sort(sortOrder),p){for(;n=e[a++];)n===e[a]&&(i=o.push(a));for(;i--;)e.splice(o[i],1)}return d=null,e},i=Sizzle.getText=function(e){var n,r="",o=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;n=e[o++];)r+=i(n);return r},(o=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,funescape),e[3]=(e[3]||e[4]||e[5]||"").replace(te,funescape),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Sizzle.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var n,r=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&V.test(r)&&(n=s(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(te,funescape).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var n=k[e+" "];return n||(n=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+I+"|$)"))&&k(e,(function(e){return n.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,r){return function(o){var i=Sizzle.attr(o,e);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(z," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,n,r,o,i){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),l="of-type"===n;return 1===o&&0===i?function(e){return!!e.parentNode}:function(n,r,u){var c,d,p,f,h,g,m=a!==s?"nextSibling":"previousSibling",y=n.parentNode,v=l&&n.nodeName.toLowerCase(),b=!u&&!l,x=!1;if(y){if(a){for(;m;){for(f=n;f=f[m];)if(l?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;g=m="only"===e&&!g&&"nextSibling"}return!0}if(g=[s?y.firstChild:y.lastChild],s&&b){for(x=(h=(c=(d=(p=(f=y)[w]||(f[w]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===T&&c[1])&&c[2],f=h&&y.childNodes[h];f=++h&&f&&f[m]||(x=h=0)||g.pop();)if(1===f.nodeType&&++x&&f===n){d[e]=[T,h,x];break}}else if(b&&(x=h=(c=(d=(p=(f=n)[w]||(f[w]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===T&&c[1]),!1===x)for(;(f=++h&&f&&f[m]||(x=h=0)||g.pop())&&((l?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++x||(b&&((d=(p=f[w]||(f[w]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[T,x]),f!==n)););return(x-=i)===o||x%o==0&&x/o>=0}}},PSEUDO:function(e,n){var r,i=o.pseudos[e]||o.setFilters[e.toLowerCase()]||Sizzle.error("unsupported pseudo: "+e);return i[w]?i(n):i.length>1?(r=[e,e,"",n],o.setFilters.hasOwnProperty(e.toLowerCase())?markFunction((function(e,r){for(var o,a=i(e,n),s=a.length;s--;)e[o=indexOf(e,a[s])]=!(r[o]=a[s])})):function(e){return i(e,0,r)}):i}},pseudos:{not:markFunction((function(e){var n=[],r=[],o=l(e.replace(B,"$1"));return o[w]?markFunction((function(e,n,r,i){for(var a,s=o(e,null,i,[]),l=e.length;l--;)(a=s[l])&&(e[l]=!(n[l]=a))})):function(e,i,a){return n[0]=e,o(n,null,a,r),n[0]=null,!r.pop()}})),has:markFunction((function(e){return function(n){return Sizzle(e,n).length>0}})),contains:markFunction((function(e){return e=e.replace(te,funescape),function(n){return(n.textContent||i(n)).indexOf(e)>-1}})),lang:markFunction((function(e){return K.test(e||"")||Sizzle.error("unsupported lang: "+e),e=e.replace(te,funescape).toLowerCase(),function(n){var r;do{if(r=m?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(n){var r=e.location&&e.location.hash;return r&&r.slice(1)===n.id},root:function(e){return e===g},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:createDisabledPseudo(!1),disabled:createDisabledPseudo(!0),checked:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&!!e.checked||"option"===n&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&"button"===e.type||"button"===n},text:function(e){var n;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:createPositionalPseudo((function(){return[0]})),last:createPositionalPseudo((function(e,n){return[n-1]})),eq:createPositionalPseudo((function(e,n,r){return[r<0?r+n:r]})),even:createPositionalPseudo((function(e,n){for(var r=0;rn?n:r;--o>=0;)e.push(o);return e})),gt:createPositionalPseudo((function(e,n,r){for(var o=r<0?r+n:r;++o1?function(n,r,o){for(var i=e.length;i--;)if(!e[i](n,r,o))return!1;return!0}:e[0]}function condense(e,n,r,o,i){for(var a,s=[],l=0,u=e.length,c=null!=n;l-1&&(a[c]=!(s[c]=p))}}else v=condense(v===s?v.splice(g,v.length):v),i?i(null,s,v,u):D.apply(s,v)}))}function matcherFromTokens(e){for(var n,r,i,a=e.length,s=o.relative[e[0].type],l=s||o.relative[" "],u=s?1:0,d=addCombinator((function(e){return e===n}),l,!0),p=addCombinator((function(e){return indexOf(n,e)>-1}),l,!0),f=[function(e,r,o){var i=!s&&(o||r!==c)||((n=r).nodeType?d(e,r,o):p(e,r,o));return n=null,i}];u1&&elementMatcher(f),u>1&&toSelector(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),r,u0,i=e.length>0,superMatcher=function(a,s,l,u,d){var p,g,y,v=0,b="0",x=a&&[],w=[],S=c,C=a||i&&o.find.TAG("*",d),k=T+=null==S?1:Math.random()||.1,N=C.length;for(d&&(c=s==h||s||d);b!==N&&null!=(p=C[b]);b++){if(i&&p){for(g=0,s||p.ownerDocument==h||(f(p),l=!m);y=e[g++];)if(y(p,s||h,l)){u.push(p);break}d&&(T=k)}r&&((p=!y&&p)&&v--,a&&x.push(p))}if(v+=b,r&&b!==v){for(g=0;y=n[g++];)y(x,w,s,l);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=P.call(u));w=condense(w)}D.apply(u,w),d&&!a&&w.length>0&&v+n.length>1&&Sizzle.uniqueSort(u)}return d&&(T=k,c=S),x};return r?markFunction(superMatcher):superMatcher}(a,i))).selector=e}return l},u=Sizzle.select=function(e,n,r,i){var a,u,c,d,p,f="function"==typeof e&&e,h=!i&&s(e=f.selector||e);if(r=r||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===n.nodeType&&m&&o.relative[u[1].type]){if(!(n=(o.find.ID(c.matches[0].replace(te,funescape),n)||[])[0]))return r;f&&(n=n.parentNode),e=e.slice(u.shift().value.length)}for(a=G.needsContext.test(e)?0:u.length;a--&&(c=u[a],!o.relative[d=c.type]);)if((p=o.find[d])&&(i=p(c.matches[0].replace(te,funescape),ee.test(u[0].type)&&testContext(n.parentNode)||n))){if(u.splice(a,1),!(e=i.length&&toSelector(u)))return D.apply(r,i),r;break}}return(f||l(e,h))(i,n,!m,r,!n||ee.test(e)&&testContext(n.parentNode)||n),r},r.sortStable=w.split("").sort(sortOrder).join("")===w,r.detectDuplicates=!!p,f(),r.sortDetached=assert((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),assert((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||addHandle("type|href|height|width",(function(e,n,r){if(!r)return e.getAttribute(n,"type"===n.toLowerCase()?1:2)})),r.attributes&&assert((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||addHandle("value",(function(e,n,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),assert((function(e){return null==e.getAttribute("disabled")}))||addHandle(R,(function(e,n,r){var o;if(!r)return!0===e[n]?n.toLowerCase():(o=e.getAttributeNode(n))&&o.specified?o.value:null})),Sizzle}(o);jQuery.find=T,jQuery.expr=T.selectors,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.uniqueSort=jQuery.unique=T.uniqueSort,jQuery.text=T.getText,jQuery.isXMLDoc=T.isXML,jQuery.contains=T.contains,jQuery.escapeSelector=T.escape;var dir=function(e,n,r){for(var o=[],i=void 0!==r;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&jQuery(e).is(r))break;o.push(e)}return o},siblings=function(e,n){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&r.push(e);return r},C=jQuery.expr.match.needsContext;function nodeName(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(e,n,r){return v(n)?jQuery.grep(e,(function(e,o){return!!n.call(e,o,e)!==r})):n.nodeType?jQuery.grep(e,(function(e){return e===n!==r})):"string"!=typeof n?jQuery.grep(e,(function(e){return d.call(n,e)>-1!==r})):jQuery.filter(n,e,r)}jQuery.filter=function(e,n,r){var o=n[0];return r&&(e=":not("+e+")"),1===n.length&&1===o.nodeType?jQuery.find.matchesSelector(o,e)?[o]:[]:jQuery.find.matches(e,jQuery.grep(n,(function(e){return 1===e.nodeType})))},jQuery.fn.extend({find:function(e){var n,r,o=this.length,i=this;if("string"!=typeof e)return this.pushStack(jQuery(e).filter((function(){for(n=0;n1?jQuery.uniqueSort(r):r},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,"string"==typeof e&&C.test(e)?jQuery(e):e||[],!1).length}});var N,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(jQuery.fn.init=function(e,n,r){var o,i;if(!e)return this;if(r=r||N,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!o[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(o[1]){if(n=n instanceof jQuery?n[0]:n,jQuery.merge(this,jQuery.parseHTML(o[1],n&&n.nodeType?n.ownerDocument||n:x,!0)),k.test(o[1])&&jQuery.isPlainObject(n))for(o in n)v(this[o])?this[o](n[o]):this.attr(o,n[o]);return this}return(i=x.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==r.ready?r.ready(e):e(jQuery):jQuery.makeArray(e,this)}).prototype=jQuery.fn,N=jQuery(x);var A=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function sibling(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}jQuery.fn.extend({has:function(e){var n=jQuery(e,this),r=n.length;return this.filter((function(){for(var e=0;e-1:1===r.nodeType&&jQuery.find.matchesSelector(r,e))){a.push(r);break}return this.pushStack(a.length>1?jQuery.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?d.call(jQuery(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),jQuery.each({parent:function(e){var n=e.parentNode;return n&&11!==n.nodeType?n:null},parents:function(e){return dir(e,"parentNode")},parentsUntil:function(e,n,r){return dir(e,"parentNode",r)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return dir(e,"nextSibling")},prevAll:function(e){return dir(e,"previousSibling")},nextUntil:function(e,n,r){return dir(e,"nextSibling",r)},prevUntil:function(e,n,r){return dir(e,"previousSibling",r)},siblings:function(e){return siblings((e.parentNode||{}).firstChild,e)},children:function(e){return siblings(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(nodeName(e,"template")&&(e=e.content||e),jQuery.merge([],e.childNodes))}},(function(e,n){jQuery.fn[e]=function(r,o){var i=jQuery.map(this,n,r);return"Until"!==e.slice(-5)&&(o=r),o&&"string"==typeof o&&(i=jQuery.filter(o,i)),this.length>1&&(L[e]||jQuery.uniqueSort(i),A.test(e)&&i.reverse()),this.pushStack(i)}}));var O=/[^\x20\t\r\n\f]+/g;function Identity(e){return e}function Thrower(e){throw e}function adoptValue(e,n,r,o){var i;try{e&&v(i=e.promise)?i.call(e).done(n).fail(r):e&&v(i=e.then)?i.call(e,n,r):n.apply(void 0,[e].slice(o))}catch(e){r.apply(void 0,[e])}}jQuery.Callbacks=function(e){e="string"==typeof e?function createOptions(e){var n={};return jQuery.each(e.match(O)||[],(function(e,r){n[r]=!0})),n}(e):jQuery.extend({},e);var n,r,o,i,a=[],s=[],l=-1,fire=function(){for(i=i||e.once,o=n=!0;s.length;l=-1)for(r=s.shift();++l-1;)a.splice(r,1),r<=l&&l--})),this},has:function(e){return e?jQuery.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=r="",this},disabled:function(){return!a},lock:function(){return i=s=[],r||n||(a=r=""),this},locked:function(){return!!i},fireWith:function(e,r){return i||(r=[e,(r=r||[]).slice?r.slice():r],s.push(r),n||fire()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},jQuery.extend({Deferred:function(e){var n=[["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return jQuery.Deferred((function(r){jQuery.each(n,(function(n,o){var i=v(e[o[4]])&&e[o[4]];a[o[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[o[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var a=0;function resolve(e,n,r,i){return function(){var s=this,l=arguments,mightThrow=function(){var o,u;if(!(e=a&&(r!==Thrower&&(s=void 0,l=[o]),n.rejectWith(s,l))}};e?u():(jQuery.Deferred.getStackHook&&(u.stackTrace=jQuery.Deferred.getStackHook()),o.setTimeout(u))}}return jQuery.Deferred((function(o){n[0][3].add(resolve(0,o,v(i)?i:Identity,o.notifyWith)),n[1][3].add(resolve(0,o,v(e)?e:Identity)),n[2][3].add(resolve(0,o,v(r)?r:Thrower))})).promise()},promise:function(e){return null!=e?jQuery.extend(e,i):i}},a={};return jQuery.each(n,(function(e,o){var s=o[2],l=o[5];i[o[1]]=s.add,l&&s.add((function(){r=l}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(o[3].fire),a[o[0]]=function(){return a[o[0]+"With"](this===a?void 0:this,arguments),this},a[o[0]+"With"]=s.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var n=arguments.length,r=n,o=Array(r),i=l.call(arguments),a=jQuery.Deferred(),updateFunc=function(e){return function(r){o[e]=this,i[e]=arguments.length>1?l.call(arguments):r,--n||a.resolveWith(o,i)}};if(n<=1&&(adoptValue(e,a.done(updateFunc(r)).resolve,a.reject,!n),"pending"===a.state()||v(i[r]&&i[r].then)))return a.then();for(;r--;)adoptValue(i[r],updateFunc(r),a.reject);return a.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery.Deferred.exceptionHook=function(e,n){o.console&&o.console.warn&&e&&P.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},jQuery.readyException=function(e){o.setTimeout((function(){throw e}))};var j=jQuery.Deferred();function completed(){x.removeEventListener("DOMContentLoaded",completed),o.removeEventListener("load",completed),jQuery.ready()}jQuery.fn.ready=function(e){return j.then(e).catch((function(e){jQuery.readyException(e)})),this},jQuery.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--jQuery.readyWait:jQuery.isReady)||(jQuery.isReady=!0,!0!==e&&--jQuery.readyWait>0||j.resolveWith(x,[jQuery]))}}),jQuery.ready.then=j.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?o.setTimeout(jQuery.ready):(x.addEventListener("DOMContentLoaded",completed),o.addEventListener("load",completed));var access=function(e,n,r,o,i,a,s){var l=0,u=e.length,c=null==r;if("object"===toType(r))for(l in i=!0,r)access(e,n,l,r[l],!0,a,s);else if(void 0!==o&&(i=!0,v(o)||(s=!0),c&&(s?(n.call(e,o),n=null):(c=n,n=function(e,n,r){return c.call(jQuery(e),r)})),n))for(;l1,null,!0)},removeData:function(e){return this.each((function(){I.remove(this,e)}))}}),jQuery.extend({queue:function(e,n,r){var o;if(e)return n=(n||"fx")+"queue",o=R.get(e,n),r&&(!o||Array.isArray(r)?o=R.access(e,n,jQuery.makeArray(r)):o.push(r)),o||[]},dequeue:function(e,n){n=n||"fx";var r=jQuery.queue(e,n),o=r.length,i=r.shift(),a=jQuery._queueHooks(e,n);"inprogress"===i&&(i=r.shift(),o--),i&&("fx"===n&&r.unshift("inprogress"),delete a.stop,i.call(e,(function(){jQuery.dequeue(e,n)}),a)),!o&&a&&a.empty.fire()},_queueHooks:function(e,n){var r=n+"queueHooks";return R.get(e,r)||R.access(e,r,{empty:jQuery.Callbacks("once memory").add((function(){R.remove(e,[n+"queue",r])}))})}}),jQuery.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length\x20\t\r\n\f]*)/i,J=/^$|^module$|\/(?:java|ecma)script/i;V=x.createDocumentFragment().appendChild(x.createElement("div")),(K=x.createElement("input")).setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),V.appendChild(K),y.checkClone=V.cloneNode(!0).cloneNode(!0).lastChild.checked,V.innerHTML="",y.noCloneChecked=!!V.cloneNode(!0).lastChild.defaultValue,V.innerHTML="",y.option=!!V.lastChild;var Y={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function getAll(e,n){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(n||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(n||"*"):[],void 0===n||n&&nodeName(e,n)?jQuery.merge([e],r):r}function setGlobalEval(e,n){for(var r=0,o=e.length;r",""]);var Z=/<|&#?\w+;/;function buildFragment(e,n,r,o,i){for(var a,s,l,u,c,d,p=n.createDocumentFragment(),f=[],h=0,g=e.length;h-1)i&&i.push(a);else if(c=isAttached(a),s=getAll(p.appendChild(a),"script"),c&&setGlobalEval(s),r)for(d=0;a=s[d++];)J.test(a.type||"")&&r.push(a);return p}var Q=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function expectSync(e,n){return e===function safeActiveElement(){try{return x.activeElement}catch(e){}}()==("focus"===n)}function on(e,n,r,o,i,a){var s,l;if("object"==typeof n){for(l in"string"!=typeof r&&(o=o||r,r=void 0),n)on(e,l,r,o,n[l],a);return e}if(null==o&&null==i?(i=r,o=r=void 0):null==i&&("string"==typeof r?(i=o,o=void 0):(i=o,o=r,r=void 0)),!1===i)i=returnFalse;else if(!i)return e;return 1===a&&(s=i,(i=function(e){return jQuery().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=jQuery.guid++)),e.each((function(){jQuery.event.add(this,n,i,o,r)}))}function leverageNative(e,n,r){r?(R.set(e,n,!1),jQuery.event.add(e,n,{namespace:!1,handler:function(e){var o,i,a=R.get(this,n);if(1&e.isTrigger&&this[n]){if(a.length)(jQuery.event.special[n]||{}).delegateType&&e.stopPropagation();else if(a=l.call(arguments),R.set(this,n,a),o=r(this,n),this[n](),a!==(i=R.get(this,n))||o?R.set(this,n,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(R.set(this,n,{value:jQuery.event.trigger(jQuery.extend(a[0],jQuery.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===R.get(e,n)&&jQuery.event.add(e,n,returnTrue)}jQuery.event={global:{},add:function(e,n,r,o,i){var a,s,l,u,c,d,p,f,h,g,m,y=R.get(e);if(acceptData(e))for(r.handler&&(r=(a=r).handler,i=a.selector),i&&jQuery.find.matchesSelector(U,i),r.guid||(r.guid=jQuery.guid++),(u=y.events)||(u=y.events=Object.create(null)),(s=y.handle)||(s=y.handle=function(n){return void 0!==jQuery&&jQuery.event.triggered!==n.type?jQuery.event.dispatch.apply(e,arguments):void 0}),c=(n=(n||"").match(O)||[""]).length;c--;)h=m=(l=Q.exec(n[c])||[])[1],g=(l[2]||"").split(".").sort(),h&&(p=jQuery.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=jQuery.event.special[h]||{},d=jQuery.extend({type:h,origType:m,data:o,handler:r,guid:r.guid,selector:i,needsContext:i&&jQuery.expr.match.needsContext.test(i),namespace:g.join(".")},a),(f=u[h])||((f=u[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,o,g,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),jQuery.event.global[h]=!0)},remove:function(e,n,r,o,i){var a,s,l,u,c,d,p,f,h,g,m,y=R.hasData(e)&&R.get(e);if(y&&(u=y.events)){for(c=(n=(n||"").match(O)||[""]).length;c--;)if(h=m=(l=Q.exec(n[c])||[])[1],g=(l[2]||"").split(".").sort(),h){for(p=jQuery.event.special[h]||{},f=u[h=(o?p.delegateType:p.bindType)||h]||[],l=l[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=f.length;a--;)d=f[a],!i&&m!==d.origType||r&&r.guid!==d.guid||l&&!l.test(d.namespace)||o&&o!==d.selector&&("**"!==o||!d.selector)||(f.splice(a,1),d.selector&&f.delegateCount--,p.remove&&p.remove.call(e,d));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,g,y.handle)||jQuery.removeEvent(e,h,y.handle),delete u[h])}else for(h in u)jQuery.event.remove(e,h+n[c],r,o,!0);jQuery.isEmptyObject(u)&&R.remove(e,"handle events")}},dispatch:function(e){var n,r,o,i,a,s,l=new Array(arguments.length),u=jQuery.event.fix(e),c=(R.get(this,"events")||Object.create(null))[u.type]||[],d=jQuery.event.special[u.type]||{};for(l[0]=u,n=1;n=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],s={},r=0;r-1:jQuery.find(i,this,null,[c]).length),s[i]&&a.push(o);a.length&&l.push({elem:c,handlers:a})}return c=this,u\s*$/g;function manipulationTarget(e,n){return nodeName(e,"table")&&nodeName(11!==n.nodeType?n:n.firstChild,"tr")&&jQuery(e).children("tbody")[0]||e}function disableScript(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function restoreScript(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function cloneCopyEvent(e,n){var r,o,i,a,s,l;if(1===n.nodeType){if(R.hasData(e)&&(l=R.get(e).events))for(i in R.remove(n,"handle events"),l)for(r=0,o=l[i].length;r1&&"string"==typeof g&&!y.checkClone&&te.test(g))return e.each((function(i){var a=e.eq(i);m&&(n[0]=g.call(this,i,a.html())),domManip(a,n,r,o)}));if(f&&(a=(i=buildFragment(n,e[0].ownerDocument,!1,e,o)).firstChild,1===i.childNodes.length&&(i=a),a||o)){for(l=(s=jQuery.map(getAll(i,"script"),disableScript)).length;p0&&setGlobalEval(s,!u&&getAll(e,"script")),l},cleanData:function(e){for(var n,r,o,i=jQuery.event.special,a=0;void 0!==(r=e[a]);a++)if(acceptData(r)){if(n=r[R.expando]){if(n.events)for(o in n.events)i[o]?jQuery.event.remove(r,o):jQuery.removeEvent(r,o,n.handle);r[R.expando]=void 0}r[I.expando]&&(r[I.expando]=void 0)}}}),jQuery.fn.extend({detach:function(e){return remove(this,e,!0)},remove:function(e){return remove(this,e)},text:function(e){return access(this,(function(e){return void 0===e?jQuery.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return domManip(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||manipulationTarget(this,e).appendChild(e)}))},prepend:function(){return domManip(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=manipulationTarget(this,e);n.insertBefore(e,n.firstChild)}}))},before:function(){return domManip(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return domManip(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(jQuery.cleanData(getAll(e,!1)),e.textContent="");return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map((function(){return jQuery.clone(this,e,n)}))},html:function(e){return access(this,(function(e){var n=this[0]||{},r=0,o=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!ee.test(e)&&!Y[(X.exec(e)||["",""])[1].toLowerCase()]){e=jQuery.htmlPrefilter(e);try{for(;r=0&&(u+=Math.max(0,Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-a-u-l-.5))||0),u}function getWidthOrHeight(e,n,r){var o=getStyles(e),i=(!y.boxSizingReliable()||r)&&"border-box"===jQuery.css(e,"boxSizing",!1,o),a=i,s=curCSS(e,n,o),l="offset"+n[0].toUpperCase()+n.slice(1);if(re.test(s)){if(!r)return s;s="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&nodeName(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===jQuery.css(e,"display",!1,o))&&e.getClientRects().length&&(i="border-box"===jQuery.css(e,"boxSizing",!1,o),(a=l in e)&&(s=e[l])),(s=parseFloat(s)||0)+boxModelAdjustment(e,n,r||(i?"border":"content"),a,o,s)+"px"}function Tween(e,n,r,o,i){return new Tween.prototype.init(e,n,r,o,i)}jQuery.extend({cssHooks:{opacity:{get:function(e,n){if(n){var r=curCSS(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,n,r,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,s,l=camelCase(n),u=ue.test(n),c=e.style;if(u||(n=finalPropName(l)),s=jQuery.cssHooks[n]||jQuery.cssHooks[l],void 0===r)return s&&"get"in s&&void 0!==(i=s.get(e,!1,o))?i:c[n];"string"===(a=typeof r)&&(i=z.exec(r))&&i[1]&&(r=adjustCSS(e,n,i),a="number"),null!=r&&r==r&&("number"!==a||u||(r+=i&&i[3]||(jQuery.cssNumber[l]?"":"px")),y.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),s&&"set"in s&&void 0===(r=s.set(e,r,o))||(u?c.setProperty(n,r):c[n]=r))}},css:function(e,n,r,o){var i,a,s,l=camelCase(n);return ue.test(n)||(n=finalPropName(l)),(s=jQuery.cssHooks[n]||jQuery.cssHooks[l])&&"get"in s&&(i=s.get(e,!0,r)),void 0===i&&(i=curCSS(e,n,o)),"normal"===i&&n in de&&(i=de[n]),""===r||r?(a=parseFloat(i),!0===r||isFinite(a)?a||0:i):i}}),jQuery.each(["height","width"],(function(e,n){jQuery.cssHooks[n]={get:function(e,r,o){if(r)return!le.test(jQuery.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?getWidthOrHeight(e,n,o):swap(e,ce,(function(){return getWidthOrHeight(e,n,o)}))},set:function(e,r,o){var i,a=getStyles(e),s=!y.scrollboxSize()&&"absolute"===a.position,l=(s||o)&&"border-box"===jQuery.css(e,"boxSizing",!1,a),u=o?boxModelAdjustment(e,n,o,l,a):0;return l&&s&&(u-=Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(a[n])-boxModelAdjustment(e,n,"border",!1,a)-.5)),u&&(i=z.exec(r))&&"px"!==(i[3]||"px")&&(e.style[n]=r,r=jQuery.css(e,n)),setPositiveNumber(0,r,u)}}})),jQuery.cssHooks.marginLeft=addGetHookIf(y.reliableMarginLeft,(function(e,n){if(n)return(parseFloat(curCSS(e,"marginLeft"))||e.getBoundingClientRect().left-swap(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),jQuery.each({margin:"",padding:"",border:"Width"},(function(e,n){jQuery.cssHooks[e+n]={expand:function(r){for(var o=0,i={},a="string"==typeof r?r.split(" "):[r];o<4;o++)i[e+B[o]+n]=a[o]||a[o-2]||a[0];return i}},"margin"!==e&&(jQuery.cssHooks[e+n].set=setPositiveNumber)})),jQuery.fn.extend({css:function(e,n){return access(this,(function(e,n,r){var o,i,a={},s=0;if(Array.isArray(n)){for(o=getStyles(e),i=n.length;s1)}}),jQuery.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,n,r,o,i,a){this.elem=e,this.prop=r,this.easing=i||jQuery.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=o,this.unit=a||(jQuery.cssNumber[r]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var n,r=Tween.propHooks[this.prop];return this.options.duration?this.pos=n=jQuery.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(e){var n;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=jQuery.css(e.elem,e.prop,""))&&"auto"!==n?n:0},set:function(e){jQuery.fx.step[e.prop]?jQuery.fx.step[e.prop](e):1!==e.elem.nodeType||!jQuery.cssHooks[e.prop]&&null==e.elem.style[finalPropName(e.prop)]?e.elem[e.prop]=e.now:jQuery.style(e.elem,e.prop,e.now+e.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},jQuery.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},jQuery.fx=Tween.prototype.init,jQuery.fx.step={};var pe,fe,he=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function schedule(){fe&&(!1===x.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(schedule):o.setTimeout(schedule,jQuery.fx.interval),jQuery.fx.tick())}function createFxNow(){return o.setTimeout((function(){pe=void 0})),pe=Date.now()}function genFx(e,n){var r,o=0,i={height:e};for(n=n?1:0;o<4;o+=2-n)i["margin"+(r=B[o])]=i["padding"+r]=e;return n&&(i.opacity=i.width=e),i}function createTween(e,n,r){for(var o,i=(Animation.tweeners[n]||[]).concat(Animation.tweeners["*"]),a=0,s=i.length;a1)},removeAttr:function(e){return this.each((function(){jQuery.removeAttr(this,e)}))}}),jQuery.extend({attr:function(e,n,r){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?jQuery.prop(e,n,r):(1===a&&jQuery.isXMLDoc(e)||(i=jQuery.attrHooks[n.toLowerCase()]||(jQuery.expr.match.bool.test(n)?me:void 0)),void 0!==r?null===r?void jQuery.removeAttr(e,n):i&&"set"in i&&void 0!==(o=i.set(e,r,n))?o:(e.setAttribute(n,r+""),r):i&&"get"in i&&null!==(o=i.get(e,n))?o:null==(o=jQuery.find.attr(e,n))?void 0:o)},attrHooks:{type:{set:function(e,n){if(!y.radioValue&&"radio"===n&&nodeName(e,"input")){var r=e.value;return e.setAttribute("type",n),r&&(e.value=r),n}}}},removeAttr:function(e,n){var r,o=0,i=n&&n.match(O);if(i&&1===e.nodeType)for(;r=i[o++];)e.removeAttribute(r)}}),me={set:function(e,n,r){return!1===n?jQuery.removeAttr(e,r):e.setAttribute(r,r),r}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),(function(e,n){var r=ye[n]||jQuery.find.attr;ye[n]=function(e,n,o){var i,a,s=n.toLowerCase();return o||(a=ye[s],ye[s]=i,i=null!=r(e,n,o)?s:null,ye[s]=a),i}}));var ve=/^(?:input|select|textarea|button)$/i,be=/^(?:a|area)$/i;function stripAndCollapse(e){return(e.match(O)||[]).join(" ")}function getClass(e){return e.getAttribute&&e.getAttribute("class")||""}function classesToArray(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(O)||[]}jQuery.fn.extend({prop:function(e,n){return access(this,jQuery.prop,e,n,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[jQuery.propFix[e]||e]}))}}),jQuery.extend({prop:function(e,n,r){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&jQuery.isXMLDoc(e)||(n=jQuery.propFix[n]||n,i=jQuery.propHooks[n]),void 0!==r?i&&"set"in i&&void 0!==(o=i.set(e,r,n))?o:e[n]=r:i&&"get"in i&&null!==(o=i.get(e,n))?o:e[n]},propHooks:{tabIndex:{get:function(e){var n=jQuery.find.attr(e,"tabindex");return n?parseInt(n,10):ve.test(e.nodeName)||be.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(jQuery.propHooks.selected={get:function(e){var n=e.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(e){var n=e.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){jQuery.propFix[this.toLowerCase()]=this})),jQuery.fn.extend({addClass:function(e){var n,r,o,i,a,s,l,u=0;if(v(e))return this.each((function(n){jQuery(this).addClass(e.call(this,n,getClass(this)))}));if((n=classesToArray(e)).length)for(;r=this[u++];)if(i=getClass(r),o=1===r.nodeType&&" "+stripAndCollapse(i)+" "){for(s=0;a=n[s++];)o.indexOf(" "+a+" ")<0&&(o+=a+" ");i!==(l=stripAndCollapse(o))&&r.setAttribute("class",l)}return this},removeClass:function(e){var n,r,o,i,a,s,l,u=0;if(v(e))return this.each((function(n){jQuery(this).removeClass(e.call(this,n,getClass(this)))}));if(!arguments.length)return this.attr("class","");if((n=classesToArray(e)).length)for(;r=this[u++];)if(i=getClass(r),o=1===r.nodeType&&" "+stripAndCollapse(i)+" "){for(s=0;a=n[s++];)for(;o.indexOf(" "+a+" ")>-1;)o=o.replace(" "+a+" "," ");i!==(l=stripAndCollapse(o))&&r.setAttribute("class",l)}return this},toggleClass:function(e,n){var r=typeof e,o="string"===r||Array.isArray(e);return"boolean"==typeof n&&o?n?this.addClass(e):this.removeClass(e):v(e)?this.each((function(r){jQuery(this).toggleClass(e.call(this,r,getClass(this),n),n)})):this.each((function(){var n,i,a,s;if(o)for(i=0,a=jQuery(this),s=classesToArray(e);n=s[i++];)a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==e&&"boolean"!==r||((n=getClass(this))&&R.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":R.get(this,"__className__")||""))}))},hasClass:function(e){var n,r,o=0;for(n=" "+e+" ";r=this[o++];)if(1===r.nodeType&&(" "+stripAndCollapse(getClass(r))+" ").indexOf(n)>-1)return!0;return!1}});var xe=/\r/g;jQuery.fn.extend({val:function(e){var n,r,o,i=this[0];return arguments.length?(o=v(e),this.each((function(r){var i;1===this.nodeType&&(null==(i=o?e.call(this,r,jQuery(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=jQuery.map(i,(function(e){return null==e?"":e+""}))),(n=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))}))):i?(n=jQuery.valHooks[i.type]||jQuery.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(r=n.get(i,"value"))?r:"string"==typeof(r=i.value)?r.replace(xe,""):null==r?"":r:void 0}}),jQuery.extend({valHooks:{option:{get:function(e){var n=jQuery.find.attr(e,"value");return null!=n?n:stripAndCollapse(jQuery.text(e))}},select:{get:function(e){var n,r,o,i=e.options,a=e.selectedIndex,s="select-one"===e.type,l=s?null:[],u=s?a+1:i.length;for(o=a<0?u:s?a:0;o-1)&&(r=!0);return r||(e.selectedIndex=-1),a}}}}),jQuery.each(["radio","checkbox"],(function(){jQuery.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=jQuery.inArray(jQuery(e).val(),n)>-1}},y.checkOn||(jQuery.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in o;var we=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation()};jQuery.extend(jQuery.event,{trigger:function(e,n,r,i){var a,s,l,u,c,d,p,f,g=[r||x],m=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(s=f=l=r=r||x,3!==r.nodeType&&8!==r.nodeType&&!we.test(m+jQuery.event.triggered)&&(m.indexOf(".")>-1&&(y=m.split("."),m=y.shift(),y.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[jQuery.expando]?e:new jQuery.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:jQuery.makeArray(n,[e]),p=jQuery.event.special[m]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!b(r)){for(u=p.delegateType||m,we.test(u+m)||(s=s.parentNode);s;s=s.parentNode)g.push(s),l=s;l===(r.ownerDocument||x)&&g.push(l.defaultView||l.parentWindow||o)}for(a=0;(s=g[a++])&&!e.isPropagationStopped();)f=s,e.type=a>1?u:p.bindType||m,(d=(R.get(s,"events")||Object.create(null))[e.type]&&R.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&acceptData(s)&&(e.result=d.apply(s,n),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!acceptData(r)||c&&v(r[m])&&!b(r)&&((l=r[c])&&(r[c]=null),jQuery.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,stopPropagationCallback),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,stopPropagationCallback),jQuery.event.triggered=void 0,l&&(r[c]=l)),e.result}},simulate:function(e,n,r){var o=jQuery.extend(new jQuery.Event,r,{type:e,isSimulated:!0});jQuery.event.trigger(o,null,n)}}),jQuery.fn.extend({trigger:function(e,n){return this.each((function(){jQuery.event.trigger(e,n,this)}))},triggerHandler:function(e,n){var r=this[0];if(r)return jQuery.event.trigger(e,n,r,!0)}}),y.focusin||jQuery.each({focus:"focusin",blur:"focusout"},(function(e,n){var handler=function(e){jQuery.event.simulate(n,e.target,jQuery.event.fix(e))};jQuery.event.special[n]={setup:function(){var r=this.ownerDocument||this.document||this,o=R.access(r,n);o||r.addEventListener(e,handler,!0),R.access(r,n,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=R.access(r,n)-1;o?R.access(r,n,o):(r.removeEventListener(e,handler,!0),R.remove(r,n))}}}));var Se=o.location,Te={guid:Date.now()},Ce=/\?/;jQuery.parseXML=function(e){var n,r;if(!e||"string"!=typeof e)return null;try{n=(new o.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||jQuery.error("Invalid XML: "+(r?jQuery.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),n};var ke=/\[\]$/,Ne=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;function buildParams(e,n,r,o){var i;if(Array.isArray(n))jQuery.each(n,(function(n,i){r||ke.test(e)?o(e,i):buildParams(e+"["+("object"==typeof i&&null!=i?n:"")+"]",i,r,o)}));else if(r||"object"!==toType(n))o(e,n);else for(i in n)buildParams(e+"["+i+"]",n[i],r,o)}jQuery.param=function(e,n){var r,o=[],add=function(e,n){var r=v(n)?n():n;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!jQuery.isPlainObject(e))jQuery.each(e,(function(){add(this.name,this.value)}));else for(r in e)buildParams(r,e[r],n,add);return o.join("&")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=jQuery.prop(this,"elements");return e?jQuery.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!jQuery(this).is(":disabled")&&Ee.test(this.nodeName)&&!_e.test(e)&&(this.checked||!G.test(e))})).map((function(e,n){var r=jQuery(this).val();return null==r?null:Array.isArray(r)?jQuery.map(r,(function(e){return{name:n.name,value:e.replace(Ne,"\r\n")}})):{name:n.name,value:r.replace(Ne,"\r\n")}})).get()}});var Ae=/%20/g,Le=/#.*$/,Oe=/([?&])_=[^&]*/,Pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,De=/^\/\//,Me={},Re={},Ie="*/".concat("*"),qe=x.createElement("a");function addToPrefiltersOrTransports(e){return function(n,r){"string"!=typeof n&&(r=n,n="*");var o,i=0,a=n.toLowerCase().match(O)||[];if(v(r))for(;o=a[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(r)):(e[o]=e[o]||[]).push(r)}}function inspectPrefiltersOrTransports(e,n,r,o){var i={},a=e===Re;function inspect(s){var l;return i[s]=!0,jQuery.each(e[s]||[],(function(e,s){var u=s(n,r,o);return"string"!=typeof u||a||i[u]?a?!(l=u):void 0:(n.dataTypes.unshift(u),inspect(u),!1)})),l}return inspect(n.dataTypes[0])||!i["*"]&&inspect("*")}function ajaxExtend(e,n){var r,o,i=jQuery.ajaxSettings.flatOptions||{};for(r in n)void 0!==n[r]&&((i[r]?e:o||(o={}))[r]=n[r]);return o&&jQuery.extend(!0,e,o),e}qe.href=Se.href,jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?ajaxExtend(ajaxExtend(e,jQuery.ajaxSettings),n):ajaxExtend(jQuery.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(Me),ajaxTransport:addToPrefiltersOrTransports(Re),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,i,a,s,l,u,c,d,p,f,h=jQuery.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?jQuery(g):jQuery.event,y=jQuery.Deferred(),v=jQuery.Callbacks("once memory"),b=h.statusCode||{},w={},S={},T="canceled",C={readyState:0,getResponseHeader:function(e){var n;if(c){if(!s)for(s={};n=Pe.exec(a);)s[n[1].toLowerCase()+" "]=(s[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=s[e.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,n){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,w[e]=n),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var n;if(e)if(c)C.always(e[C.status]);else for(n in e)b[n]=[b[n],e[n]];return this},abort:function(e){var n=e||T;return r&&r.abort(n),done(0,n),this}};if(y.promise(C),h.url=((e||h.url||Se.href)+"").replace(De,Se.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(O)||[""],null==h.crossDomain){u=x.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=qe.protocol+"//"+qe.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=jQuery.param(h.data,h.traditional)),inspectPrefiltersOrTransports(Me,h,n,C),c)return C;for(p in(d=jQuery.event&&h.global)&&0==jQuery.active++&&jQuery.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!je.test(h.type),i=h.url.replace(Le,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ae,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ce.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Oe,"$1"),f=(Ce.test(i)?"&":"?")+"_="+Te.guid+++f),h.url=i+f),h.ifModified&&(jQuery.lastModified[i]&&C.setRequestHeader("If-Modified-Since",jQuery.lastModified[i]),jQuery.etag[i]&&C.setRequestHeader("If-None-Match",jQuery.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ie+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,C,h)||c))return C.abort();if(T="abort",v.add(h.complete),C.done(h.success),C.fail(h.error),r=inspectPrefiltersOrTransports(Re,h,n,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(l=o.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,r.send(w,done)}catch(e){if(c)throw e;done(-1,e)}}else done(-1,"No Transport");function done(e,n,s,u){var p,f,x,w,S,T=n;c||(c=!0,l&&o.clearTimeout(l),r=void 0,a=u||"",C.readyState=e>0?4:0,p=e>=200&&e<300||304===e,s&&(w=function ajaxHandleResponses(e,n,r){for(var o,i,a,s,l=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(i in l)if(l[i]&&l[i].test(o)){u.unshift(i);break}if(u[0]in r)a=u[0];else{for(i in r){if(!u[0]||e.converters[i+" "+u[0]]){a=i;break}s||(s=i)}a=a||s}if(a)return a!==u[0]&&u.unshift(a),r[a]}(h,C,s)),!p&&jQuery.inArray("script",h.dataTypes)>-1&&jQuery.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function ajaxConvert(e,n,r,o){var i,a,s,l,u,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(a=d.shift();a;)if(e.responseFields[a]&&(r[e.responseFields[a]]=n),!u&&o&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),u=a,a=d.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(!(s=c[u+" "+a]||c["* "+a]))for(i in c)if((l=i.split(" "))[1]===a&&(s=c[u+" "+l[0]]||c["* "+l[0]])){!0===s?s=c[i]:!0!==c[i]&&(a=l[0],d.unshift(l[1]));break}if(!0!==s)if(s&&e.throws)n=s(n);else try{n=s(n)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+a}}}return{state:"success",data:n}}(h,w,C,p),p?(h.ifModified&&((S=C.getResponseHeader("Last-Modified"))&&(jQuery.lastModified[i]=S),(S=C.getResponseHeader("etag"))&&(jQuery.etag[i]=S)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=w.state,f=w.data,p=!(x=w.error))):(x=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(n||T)+"",p?y.resolveWith(g,[f,T,C]):y.rejectWith(g,[C,T,x]),C.statusCode(b),b=void 0,d&&m.trigger(p?"ajaxSuccess":"ajaxError",[C,h,p?f:x]),v.fireWith(g,[C,T]),d&&(m.trigger("ajaxComplete",[C,h]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}return C},getJSON:function(e,n,r){return jQuery.get(e,n,r,"json")},getScript:function(e,n){return jQuery.get(e,void 0,n,"script")}}),jQuery.each(["get","post"],(function(e,n){jQuery[n]=function(e,r,o,i){return v(r)&&(i=i||o,o=r,r=void 0),jQuery.ajax(jQuery.extend({url:e,type:n,dataType:i,data:r,success:o},jQuery.isPlainObject(e)&&e))}})),jQuery.ajaxPrefilter((function(e){var n;for(n in e.headers)"content-type"===n.toLowerCase()&&(e.contentType=e.headers[n]||"")})),jQuery._evalUrl=function(e,n,r){return jQuery.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){jQuery.globalEval(e,n,r)}})},jQuery.fn.extend({wrapAll:function(e){var n;return this[0]&&(v(e)&&(e=e.call(this[0])),n=jQuery(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(n){jQuery(this).wrapInner(e.call(this,n))})):this.each((function(){var n=jQuery(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)}))},wrap:function(e){var n=v(e);return this.each((function(r){jQuery(this).wrapAll(n?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){jQuery(this).replaceWith(this.childNodes)})),this}}),jQuery.expr.pseudos.hidden=function(e){return!jQuery.expr.pseudos.visible(e)},jQuery.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},jQuery.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Fe={0:200,1223:204},He=jQuery.ajaxSettings.xhr();y.cors=!!He&&"withCredentials"in He,y.ajax=He=!!He,jQuery.ajaxTransport((function(e){var n,r;if(y.cors||He&&!e.crossDomain)return{send:function(i,a){var s,l=e.xhr();if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)l[s]=e.xhrFields[s];for(s in e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)l.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(Fe[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),r=l.onerror=l.ontimeout=n("error"),void 0!==l.onabort?l.onabort=r:l.onreadystatechange=function(){4===l.readyState&&o.setTimeout((function(){n&&r()}))},n=n("abort");try{l.send(e.hasContent&&e.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}})),jQuery.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return jQuery.globalEval(e),e}}}),jQuery.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),jQuery.ajaxTransport("script",(function(e){var n,r;if(e.crossDomain||e.scriptAttrs)return{send:function(o,i){n=jQuery("