diff --git a/composer.json b/composer.json index 2580d9a..4ee952c 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "drupal/leaflet": "^10.2", "drupal/leaflet_more_maps": "^2.2", "drupal/leaflet_more_markers": "^1.1", + "drupal/link_attributes": "^2.1", "drupal/linked_field": "^1.5", "drupal/metatag": "^2.0", "drupal/page_manager": "^4.0@RC", diff --git a/composer.lock b/composer.lock index d0ca064..3846fad 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5c98347c8de7dd8e83612944f9454bca", + "content-hash": "879780d144369cb20a0e07902d9d4d86", "packages": [ { "name": "asm89/stack-cors", @@ -5813,26 +5813,30 @@ }, { "name": "drupal/link_attributes", - "version": "1.14.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://git.drupalcode.org/project/link_attributes.git", - "reference": "8.x-1.14" + "reference": "2.1.1" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/link_attributes-8.x-1.14.zip", - "reference": "8.x-1.14", - "shasum": "fa4f27ecaed7e6b3c58c0adc679918a9beb7ded5" + "url": "https://ftp.drupal.org/files/projects/link_attributes-2.1.1.zip", + "reference": "2.1.1", + "shasum": "fc71571fc41adeda6b39ccefd3c8e21955c0d96f" }, "require": { - "drupal/core": "^9 || ^10" + "drupal/core": "^9 || ^10 || ^11", + "php": ">=8.0" + }, + "require-dev": { + "drupal/linkit": "~6 || ~7" }, "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-1.14", - "datestamp": "1687393687", + "version": "2.1.1", + "datestamp": "1721366572", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index cf0a0d5..023946b 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -38,6 +38,7 @@ module: datetime: 0 datetime_range: 0 dblog: 0 + decoupled: 0 devel: 0 devel_generate: 0 dynamic_page_cache: 0 @@ -77,6 +78,7 @@ module: leaflet_views: 0 link: 0 link_attributes: 0 + link_attributes_menu_link_content: 0 linkit: 0 locale: 0 maillog: 0 diff --git a/config/sync/node.type.static.yml b/config/sync/node.type.static.yml index 53e04f5..14e8b00 100644 --- a/config/sync/node.type.static.yml +++ b/config/sync/node.type.static.yml @@ -6,8 +6,9 @@ dependencies: - menu_ui third_party_settings: menu_ui: - available_menus: { } - parent: '' + available_menus: + - main + parent: 'main:' _core: default_config_hash: ktmRJ5fYRUxN-3fIuUy0g4TUrGmmNjWLKm8J_-n7og4 name: Static diff --git a/config/sync/pathauto.pattern.etape.yml b/config/sync/pathauto.pattern.etape.yml new file mode 100644 index 0000000..fab1491 --- /dev/null +++ b/config/sync/pathauto.pattern.etape.yml @@ -0,0 +1,22 @@ +uuid: bf55165a-b157-423e-9dc5-f76c61e6c396 +langcode: fr +status: true +dependencies: + module: + - node +id: etape +label: etape +type: 'canonical_entities:node' +pattern: '/etapes/[node:title]' +selection_criteria: + ebf4ccb0-3389-4327-8c96-4e6a78042e9f: + id: 'entity_bundle:node' + negate: false + uuid: ebf4ccb0-3389-4327-8c96-4e6a78042e9f + context_mapping: + node: node + bundles: + etape: etape +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/pathauto.pattern.static.yml b/config/sync/pathauto.pattern.static.yml new file mode 100644 index 0000000..51217c6 --- /dev/null +++ b/config/sync/pathauto.pattern.static.yml @@ -0,0 +1,22 @@ +uuid: cab3d3a4-1abc-4065-8278-dc650fb5c77b +langcode: fr +status: true +dependencies: + module: + - node +id: static +label: static +type: 'canonical_entities:node' +pattern: '/[node:title]' +selection_criteria: + 39d7bfd7-77dc-4287-84b3-89ee7cd08221: + id: 'entity_bundle:node' + negate: false + uuid: 39d7bfd7-77dc-4287-84b3-89ee7cd08221 + context_mapping: + node: node + bundles: + static: static +selection_logic: and +weight: -5 +relationships: { } diff --git a/config/sync/rest_menu_items.config.yml b/config/sync/rest_menu_items.config.yml new file mode 100644 index 0000000..9a1e283 --- /dev/null +++ b/config/sync/rest_menu_items.config.yml @@ -0,0 +1,15 @@ +output_values: + - key + - title + - description + - uri + - alias + - external + - absolute + - relative + - existing + - weight + - expanded + - enabled + - uuid + - options diff --git a/config/sync/views.view.etapes.yml b/config/sync/views.view.etapes.yml index 817d96c..9dc6b62 100644 --- a/config/sync/views.view.etapes.yml +++ b/config/sync/views.view.etapes.yml @@ -12,6 +12,7 @@ dependencies: module: - color_pickr - date_range_formatter + - file - geofield - image - leaflet_views @@ -348,7 +349,7 @@ display: entity_field: nid plugin_id: field label: '' - exclude: false + exclude: true alter: alter_text: false text: '' @@ -389,10 +390,8 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: number_integer - settings: - thousand_separator: '' - prefix_suffix: true + type: number_unformatted + settings: { } group_column: value group_columns: { } group_rows: true @@ -403,6 +402,121 @@ display: multi_type: separator separator: ', ' field_api_classes: false + field_couleur: + id: field_couleur + table: node__field_couleur + field: field_couleur + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: '' + exclude: true + alter: + alter_text: true + text: '{{ field_couleur__color_pickr }}' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: color_pickr + type: color_pickr_default + settings: { } + group_column: color_pickr + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: entity_link + label: '' + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: voir + output_url_as_text: true + absolute: false title: id: title table: node_field_data @@ -416,10 +530,10 @@ display: label: '' exclude: false alter: - alter_text: false - text: '' - make_link: true - path: '' + alter_text: true + text: '{{ title }}' . t('About') . ''; + $output .= '
' . t('helpers for progressive decoupling') . '
'; + return $output; + + default: + } +} + + +/** + * Implements hook_page_attachments(). + * @param array $attachments + */ +function decoupled_page_attachments(array &$attachments) { + $redirect = false; + $current_path = \Drupal::service('path.current')->getPath(); + $route_name = \Drupal::routeMatch()->getRouteName(); + // $route_parameters = \Drupal::routeMatch()->getParameters()->all(); + // ksm($route_parameters); + $current_language = \Drupal::languageManager()->getCurrentLanguage()->getId(); + $is_front = \Drupal::service('path.matcher')->isFrontPage(); + if (!$is_front) { + $redirect = true; + } + $entity_type = null; + $entity_bundle = null; + $entity_id = null; + $entity_uuid = null; + $base_alias = null; + + foreach (['node', 'taxonomy_term'] as $type) { + $entity = \Drupal::routeMatch()->getParameter($type); + if($entity){ + $entity_type = $type; + $entity_bundle = $entity->bundle(); + $entity_id = $entity->id(); + $entity_uuid = $entity->uuid(); + + // $pathauto_patterns = \Drupal::entityTypeManager()->getStorage('pathauto_pattern')->loadByProperties(['type' => "canonical_entities:".$entity_type]); + // foreach ($pathauto_patterns as $id => $pattern) { + // $conditions = $pattern->getSelectionConditions(); + // $condition_config = $conditions->getConfiguration(); + // foreach ($condition_config as $key => $config) { + // $bundles = array_keys($config['bundles']); + // if (in_array($entity_bundle, $bundles)) { + // $motif = $pattern->getPattern(); + // preg_match('/(\/.+)+\/\[[^]]+\]/', $motif, $matches); + // $base_alias = $matches[1]; + // break 2; + // } + // } + // } + + break; + } + } + + + + // route_parameters:'".json_encode($route_parameters)."',\n + $js_str = "var drupalDecoupled = {\n + sys_path:'".$current_path."',\n + route_name:'".$route_name."',\n + is_front:".($is_front ? 'true':'false').",\n + base_alias:'".$base_alias."',\n + redirect:".($redirect ? 'true':'false').",\n + lang_code:'".$current_language."',\n + entity_type:'".$entity_type."',\n + entity_bundle:'".$entity_bundle."',\n + entity_id:'".$entity_id."',\n + entity_uuid:'".$entity_uuid."',\n + };"; + + $attachments['#attached']['html_head'][] = [ + [ + '#type' => 'html_tag', + '#tag' => 'script', + '#value' => $js_str, + '#weight' => -999, + '#group' => 'decoupled' + ], + // A key, to make it possible to recognize this HTML element when altering. + 'decoupled', + ]; +} diff --git a/web/profiles/drupal-starterkit-profile b/web/profiles/drupal-starterkit-profile index 47a87c5..18c6b02 160000 --- a/web/profiles/drupal-starterkit-profile +++ b/web/profiles/drupal-starterkit-profile @@ -1 +1 @@ -Subproject commit 47a87c53193ba7b7fb7dfdee68273035c46d9440 +Subproject commit 18c6b02464fdc76846d9ed4261a9403fb7d0dc18 diff --git a/web/themes/custom/caravane/assets/dist/main.css b/web/themes/custom/caravane/assets/dist/main.css index 26d7f9d..d514976 100644 --- a/web/themes/custom/caravane/assets/dist/main.css +++ b/web/themes/custom/caravane/assets/dist/main.css @@ -1 +1 @@ -body{background-color:red} +@charset "UTF-8";@font-face{font-family:Joost;src:url(/themes/custom/caravane/assets/fonts/joost/joost-bold.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Joost;src:url(/themes/custom/caravane/assets/fonts/joost/joost-light.woff2) format("woff2");font-weight:lighter;font-style:normal}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold_Italic.woff) format("woff"),url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold_Italic.woff2) format("woff2");font-weight:700;font-style:italic}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Bold.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Light_Italic.woff2) format("woff2");font-weight:lighter;font-style:italic}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Light.woff2) format("woff2");font-weight:lighter;font-style:normal}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Regular_Italic.woff2) format("woff2");font-weight:400;font-style:italic}@font-face{font-family:Marianne;src:url(/themes/custom/caravane/assets/fonts/marianne/Marianne-Regular.woff2) format("woff2");font-weight:400;font-style:normal}body{font-family:Marianne,sans-serif;color:#1a1918;margin:0;padding:0;overflow-y:scroll}body.no-scroll{overflow-y:hidden}body .layout-container>header{z-index:2;position:relative}body .layout-container>header>div{padding:5px 30px 0;display:grid;grid-template-columns:repeat(16,1fr)}body .layout-container>header>div>#block-caravane-logorepublique{grid-column:1/span 1;display:flex;align-items:center}body .layout-container>header>div>#block-caravane-logorepublique>div>div>a>img{width:100%;height:auto}body .layout-container>header>div>#block-caravane-logoepau{grid-column:2/span 2;display:flex;align-items:center;padding-right:2.5rem}body .layout-container>header>div>#block-caravane-logoepau>div>div>a>img{width:100%;height:auto}body .layout-container>header>div>#block-caravane-logocaravane{grid-column:8/span 2;padding-top:.5rem;display:flex;align-items:center}body .layout-container>header>div>#block-caravane-logocaravane>div>div>a>img{width:100%;height:auto}body .layout-container>header>div>#block-caravane-mainnavigation{display:flex;justify-content:flex-end;grid-column:16/span 1;width:10vw;margin-top:1.8vh;position:fixed;right:30px}body .layout-container>header>div>#block-caravane-mainnavigation>#menu-title{display:flex;z-index:2;background-color:#80c8bf;position:fixed;width:15vw;right:0;top:0;padding-top:2.8vh;margin-right:30px;padding-bottom:10px;max-height:0vh;overflow:hidden;height:5vh;transition:max-height .3s ease-out,opacity .2s ease-out;opacity:0;align-items:center}body .layout-container>header>div>#block-caravane-mainnavigation>#menu-title>p{padding-left:2rem;margin:10px 0;color:#fff;font-size:1.8rem;font-family:Joost,sans-serif;font-weight:700}body .layout-container>header>div>#block-caravane-mainnavigation>#menu-title.open{opacity:1;max-height:5vh}body .layout-container>header>div>#block-caravane-mainnavigation>#menu{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>h2{z-index:2;margin-block:0;font-size:.8rem;color:#635b58;font-weight:400;margin-bottom:5px}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>h2{display:none}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger{position:fixed;height:5vh;right:0;top:0;margin-right:30px;padding-top:2.8vh;padding-bottom:10px;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;width:2.4rem;transition:transform .3s ease-out,opacity .3s ease-out}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger>div{width:100%;height:3px;margin:4px 0;border-radius:2px;background-color:#635b58;opacity:1;transition:transform .5s,opacity .2s}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger:hover{transform:scale(1.1)}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open{transform:scale(.7) translate(-20px)}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open>div{background-color:#fff}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open>div:first-of-type{transform:rotate(45deg);margin-top:50%}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open>div:last-of-type{transform:rotate(-45deg);margin-top:-50%}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open>div:nth-child(2){opacity:0}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>#hamburger.open:hover{transform:scale(.75) translate(-20px)}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul{list-style-type:none;background-color:#fff;position:fixed;width:15vw;right:30px;padding:0;padding-top:1.5rem;padding-bottom:1.5rem;top:-5vh;opacity:0;transition:top .3s ease-out,opacity .2s ease-out;z-index:1}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul>li{padding-left:2rem;margin:15px 0}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul>li>a{color:#1a1918;text-decoration:none}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul>li>a.is-active:before,body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul>li>a:hover:before{content:"→";color:#80c8bf;width:2rem;display:inline-block;opacity:1}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul>li>a:before{content:"→";color:#80c8bf;opacity:0;display:inline-block;width:0rem;transition:width .2s ease-out,opacity .2s ease-out}body .layout-container>header>div>#block-caravane-mainnavigation>#menu>ul.open{opacity:1;top:7vh}body .layout-container>main{z-index:1;position:absolute;top:0;left:0;width:100%;height:100vh}body .layout-container>main>.layout-content{z-index:1;position:fixed;top:0;width:100%;height:100%}body .layout-container>main>.layout-content>div{height:100%}body .layout-container>main>.layout-content>div>.layout{display:grid;grid-template-columns:repeat(16,1fr);align-items:center;height:100%}body .layout-container>main>.layout-content>div>.layout>.layout__region--first{display:none;padding-left:30px;grid-column:1/span 4;position:relative;z-index:2;pointer-events:none;width:fit-content}body .layout-container>main>.layout-content>div>.layout>.layout__region--first>div{pointer-events:auto}body .layout-container>main>.layout-content>div>.layout>.layout__region--second{position:absolute;z-index:1;top:0;width:100vw}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-control-zoom{border:none;margin:0;left:30px;bottom:4vh}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-control-zoom>a{display:flex;justify-content:center;align-items:center;font-size:1.4rem;font-family:marianne,sans-serif;font-weight:lighter;width:4vh;height:4vh}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-control-zoom>a:first-of-type{border-top-left-radius:2vh;border-top-right-radius:2vh}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-control-zoom>a:last-of-type{border-bottom-left-radius:2vh;border-bottom-right-radius:2vh}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-control-zoom>a:last-of-type>span{padding-bottom:10px}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-right{right:unset;left:0}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-map-divicon{width:10px;height:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:transform .3s ease-out}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-map-divicon>div{background-color:red;display:block;width:20px;height:10px}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-map-divicon>div:first-of-type{height:8px;clip-path:polygon(0 0,100% 0,50% 100%);transform:rotate(180deg)}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-container .leaflet-map-divicon>div:nth-of-type(3){height:8px;clip-path:polygon(0 0,100% 0,50% 100%)}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane{width:25vw;pointer-events:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div{padding:0;border-radius:none;box-shadow:none;opacity:1!important;border-radius:0!important;background-color:transparent;border:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div{max-height:15vh;overflow:hidden;display:grid;grid-template-columns:minmax(10px,12.5vw) 12.5vw;grid-template-rows:1.5fr .5fr;transform:translateY(-60%);background-color:#fff;opacity:0;transition:opacity .3s ease-out}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:first-of-type{grid-column:1/span 1;grid-row:1/span 1;font-family:Joost,sans-serif;font-size:1.4rem;padding-top:10px;padding-left:20px;padding-right:20px;text-wrap:wrap}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:first-of-type>a{display:inline-block;text-align:center;font-weight:700;text-decoration:none;color:#1a1918}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:first-of-type>a>span{font-weight:lighter}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:nth-of-type(2){grid-column:1/span 1;grid-row:2/span 1;text-align:center;padding:10px 0}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:nth-of-type(2)>time{font-size:.8rem;font-family:Marianne,sans-serif;font-weight:lighter}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:nth-of-type(3){width:100%;height:100%;display:block;padding:0;grid-column:2/span 1;grid-row:1/span 2;overflow:hidden}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:nth-of-type(3)>a{display:block;width:100%;height:100%;padding:0}body .layout-container>main>.layout-content>div>.layout>.layout__region--second .leaflet-tooltip-pane>div>div>div:nth-of-type(3)>a>img{padding:0;height:100%;width:auto;object-fit:cover;margin:0;display:block}body .layout-container>main>.layout-content>div>.layout>.layout__region--third{padding-right:30px;height:100%;grid-column:11/span 6;position:relative;z-index:2;background:linear-gradient(to right,transparent,#faf1eb);display:flex;align-items:center;justify-content:flex-end;pointer-events:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div{pointer-events:auto}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul{list-style:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li{display:flex;justify-content:end;align-items:center;margin:30px 0;transform:scale(1);opacity:1;transition:transform .3s ease-out,opacity .3s ease-out;cursor:pointer}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;justify-content:end;margin-right:20px}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret p{margin:0}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-nid{display:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-title{grid-column:1/span 1;grid-row:1/span 1;margin-right:10px}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-title a{text-decoration:none;color:#1a1918;font-family:Joost,sans-serif;font-weight:700;font-size:1.4rem;display:inline-block;text-align:right}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-field-adresse-postal-code{grid-column:2/span 1;grid-row:1/span 1;color:#1a1918;font-family:Joost,sans-serif;font-weight:lighter;font-size:1.4rem;align-self:end}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-field-adresse-postal-code>span>p:before{content:"("}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-field-adresse-postal-code>span>p:after{content:")"}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-field-dates{grid-column:1/span 2;grid-row:2/span 1;font-size:.8rem;font-family:Marianne,sans-serif;font-weight:lighter;text-align:right;margin-top:7px}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.infos-arret>.views-field-field-couleur{display:none}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.icone-arret{width:10px;height:30px;display:flex;flex-direction:column;justify-content:center;align-items:center}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.icone-arret>div{background-color:red;display:block;width:20px;height:10px}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.icone-arret>div:first-of-type,body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.icone-arret>div:last-of-type{height:8px;clip-path:polygon(0 0,100% 0,50% 100%)}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li>.icone-arret>div:first-of-type{transform:rotate(180deg)}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li:hover{transform:scale(1.05)}body .layout-container>main>.layout-content>div>.layout>.layout__region--third>div ul>li.inactive{opacity:.6}body .layout-container>main>.layout-content>div>.user-login-form{height:90vh;display:flex;flex-direction:column;align-items:center;justify-content:center}body .layout-container>main>.layout-content>div>.user-login-form>div{margin:20px 0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale){padding-bottom:40vh}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper{left:25vw;width:50vw;top:15vh;z-index:2;position:relative;background-color:#fff;padding-bottom:180px}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper img{width:100%;height:auto;object-fit:cover}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>div{width:100%;overflow:hidden}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header{margin-bottom:2rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.cover{max-height:60vh;display:flex;justify-content:center;overflow:hidden;position:relative;z-index:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.cartouche{position:absolute;top:2rem;padding:1rem 1.5rem;background-color:#80c8bf;z-index:1}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.cartouche>p{margin-block-start:0;margin-block-end:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.cartouche>p:last-of-type{font-weight:700}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.locality{position:relative;z-index:1;width:50%;margin-left:25%;margin-top:-245px}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.locality>.top-triangle{display:block;width:100%;height:100px;display:flex;clip-path:polygon(-1% 100%,50% 0,101% 100%);background-color:#fff;margin-bottom:-1px}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.locality>.locality-title{min-height:115px;display:block;background-color:#fff;padding:1rem 2rem;display:flex;align-items:center}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.locality>.locality-title>h1{width:100%;font-size:2.4rem;margin-block-start:0;margin-block-end:0;font-family:Joost,sans-serif;text-align:center}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>header>.locality>.locality-title>h1>em{font-style:normal;font-weight:lighter}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main{width:100%;padding:0 5vw;box-sizing:border-box}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie{width:100%;display:inline-block}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.sensible-map{margin:0;width:calc(100% + 5vw);margin-left:-2.5vw;margin-top:2.5vw}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.sensible-map .vh--message{font-size:.8rem;top:1rem;left:1rem;bottom:unset;background-color:#fff9;color:#635b58}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.sensible-map>figcaption{margin-left:2.5vw}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.partie-title>h3,body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>h3,body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.entretien>h3{position:relative;display:inline-block}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.partie-title>h3>p,body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>h3>p,body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.entretien>h3>p{display:inline;font-size:1.8rem;font-family:Joost,sans-serif;margin:0;z-index:1;position:relative;padding:0 .5rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>div{display:grid;gap:2rem;grid-template-columns:1fr 1fr 1fr;align-content:flex-start;margin:2rem 0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>div>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>div>div>.chiffre{padding-left:1rem;font-size:2.4rem;font-weight:700;font-family:Joost,sans-serif;margin:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>div>div>.chiffre>p{margin:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.chiffres-cles>div>div>.chiffre-caption{padding-left:1rem;font-size:.8rem;margin:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.diaporama{width:calc(100% + 10vw);margin-top:5rem;margin-bottom:3rem;margin-left:-5vw}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.diaporama figure{margin:0 2.5vw}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.diaporama figure>img{width:100%}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.diaporama figure>figcaption{padding-bottom:2rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main>.partie>.videos iframe{margin:2rem 0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>main .caption{font-size:.8rem;color:#635b58;margin-top:.2rem;margin-bottom:1.8rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper .brand-pattern{display:block;width:100%;height:120px}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper .brand-pattern>.pattern{display:block;width:100%;height:100%;background-image:url(/themes/custom/caravane/assets/imgs/motif-caravane-invert-tile.png);background-size:300px;background-size:repeat}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .pattern-bottom{-webkit-mask-image:linear-gradient(to top,#000,#0000);mask-image:linear-gradient(to top,#000,#0000);height:180px;position:absolute;bottom:0}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links{position:absolute;bottom:-90px;width:100%;box-sizing:border-box;padding:0 2.5vw;display:grid;grid-template-columns:1fr 1fr}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card{width:80%;display:flex;align-items:center;cursor:pointer;transition:transform .3s ease-out}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card:hover{transform:scale(1.05)}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card.next{grid-column:2/span 1;justify-self:flex-end}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.icon{z-index:2;width:10px;height:30px;display:flex;flex-direction:column;justify-content:center;align-items:center}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.icon>div{display:block;width:20px;height:10px}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.icon>div:first-of-type,body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.icon>div:last-of-type{height:8px;clip-path:polygon(0 0,100% 0,50% 100%)}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.icon>div:first-of-type{transform:rotate(180deg)}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content{z-index:1;background-color:#fff;display:flex;width:100%}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.infos{width:60%;text-align:center}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.infos>.titre{padding:1rem .5rem;font-weight:700;font-family:Joost,sans-serif;font-size:1.4rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.infos>.titre>span{font-weight:lighter}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.infos>.date{font-size:.8rem;font-family:Marianne,sans-serif;font-weight:lighter;padding-bottom:1rem}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.vignette{width:40%;position:relative}body .layout-container>main>#content-modale>div:not(.image-viewer-wrapper,.image-modale)>.content-wrapper>footer .related-etape-links>.card>.card-content>.vignette>img{top:0;position:absolute;width:100%;height:100%;object-fit:cover}.VueHoverfade-enter-active,.VueHoverfade-leave-active{transition:opacity .5s}.VueHoverfade-enter,.VueHoverfade-leave-to{opacity:0}.vh--outer[v-cloak]{display:none}.vh--flex{display:flex}.vh--jc{justify-content:center}.vh--ai{align-items:center}.vh--rel{position:relative}.vh--abs{position:absolute}.vh--outer{display:inline-block;line-height:0;font-family:Arial,Helvetica,sans-serif;color:#fff}.vh--holder{overflow:hidden;touch-action:manipulation;cursor:zoom-in;align-items:flex-start}.vh--image{top:0;left:0;pointer-events:none}.vh--message{background-color:#000000a6;padding:8px 15px;border-radius:50px;text-align:center;line-height:initial}.vh--message-top{top:20px}.vh--message-bottom{bottom:20px}.vh--icon{transform:rotate(-45deg);display:block;font-size:20px;margin-right:5px;line-height:20px}.vh--close{line-height:0;background-color:#000000a6;border-radius:50px;font-size:23px;cursor:pointer;height:28px;width:28px}.vh--top-left{top:5px;left:5px}.vh--top-right{top:5px;right:5px}.vh--top-center{top:5px;left:50%;transform:translate(-50%)}.vh--bottom-left{bottom:5px;left:5px}.vh--bottom-right{bottom:5px;right:5px}.vh--bottom-center{bottom:5px;left:50%;transform:translate(-50%)}.vh--loading-o{top:0;left:0;width:100%;height:100%;background-color:#000000a6;pointer-events:none}.vh--loading{top:50%;left:50%;font-size:60px;line-height:60px;animation:vuehoverzoomspin 1s linear infinite;width:36px;height:70px}.vh--none{opacity:0}.vh--no-click img{pointer-events:none}@keyframes vuehoverzoomspin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-enter-active[data-v-7231769d],.fade-leave-active[data-v-7231769d]{transition:opacity .3s ease}.fade-enter-from[data-v-7231769d],.fade-leave-to[data-v-7231769d]{opacity:0}.image-viewer-wrapper[data-v-7231769d]{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.image-viewer-wrapper>.img-modale[data-v-7231769d]{background-color:#000c;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-viewer-wrapper>.simple-viewer>.img-wrapper[data-v-7231769d]{max-width:60%;display:flex;flex-direction:column}.image-viewer-wrapper>.simple-viewer>.img-wrapper>img[data-v-7231769d]{width:100%}.image-viewer-wrapper>.simple-viewer>.img-wrapper>figcaption[data-v-7231769d]{margin:0;background-color:#fff;font-size:.8rem;padding:.5rem 1.5rem}.image-viewer-wrapper>.swiper-viewer[data-v-7231769d]{z-index:1}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper[data-v-7231769d]{height:100%;width:100%}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper swiper-container[data-v-7231769d]{height:95%}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper swiper-container swiper-slide[data-v-7231769d]{display:flex;justify-content:center;align-items:flex-start}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper swiper-container swiper-slide figure[data-v-7231769d]{margin-top:3%;max-width:60%;height:80%;max-height:80vh}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper swiper-container swiper-slide figure img[data-v-7231769d]{height:-webkit-fill-available!important;max-width:100%;margin-bottom:-5px;object-fit:cover}.image-viewer-wrapper>.swiper-viewer>.swiper-wrapper swiper-container swiper-slide figure figcaption[data-v-7231769d]{margin:0;background-color:#fff;font-size:.8rem;padding:.5rem 1.5rem}.image-viewer-wrapper>.close-button[data-v-7231769d]{position:fixed;top:2rem;right:30px;background-color:unset;border:none;display:block;height:3rem;width:3rem;border-radius:1.5rem;cursor:pointer;background-color:#fff;padding:0;display:flex;justify-content:center;align-items:center;z-index:2}.image-viewer-wrapper>.close-button>div[data-v-7231769d]{display:block;height:2px;border-radius:4px;width:60%;background-color:#1a1918;position:absolute;transition:transform .3s ease}.image-viewer-wrapper>.close-button>div[data-v-7231769d]:nth-of-type(1){transform:rotate(45deg) scale(1)}.image-viewer-wrapper>.close-button>div[data-v-7231769d]:nth-of-type(2){transform:rotate(-45deg) scale(1)}.image-viewer-wrapper>.close-button:hover>div[data-v-7231769d]:nth-of-type(1){transform:rotate(45deg) scale(1.1)}.image-viewer-wrapper>.close-button:hover>div[data-v-7231769d]:nth-of-type(2){transform:rotate(-45deg) scale(1.1)}.footnote{position:relative;font-weight:bolder;font-size:.7rem;margin:0 2px;padding:0 2px;background-color:var(--couleur);vertical-align:top;cursor:pointer}.footnote .footnote-text{opacity:0;transition:opacity .3s ease-out;text-wrap:nowrap;display:block;position:absolute;background-color:var(--couleur);padding:4px 10px}.footnote .footnote-text p{font-weight:400;margin:0}.footnote .footnote-text p a{color:inherit}.partie-content img{margin-top:2rem;cursor:pointer;transition:transform .3s ease-out}.partie-content img:hover{transform:scale(1.01)}:root{--swiper-navigation-color: #1a1918;--swiper-pagination-color: var(--etape-couleur);--swiper-navigation-top-offset: calc(100% - 1.5rem) ;--swiper-navigation-sides-offset: 5vw}.diaporama{--swiper-navigation-size: 1.5rem}swiper-slide figure:not(.popup-figure){max-height:40vh;padding-bottom:3rem}swiper-slide figure:not(.popup-figure) figcaption{text-align:center}swiper-slide img:not(.popup-img){max-height:35vh;cursor:pointer;transition:transform .3s ease-out;object-fit:contain!important}swiper-slide img:not(.popup-img):hover{transform:scale(1.01)}.personne[data-v-6b076244]{display:flex;align-items:center;margin:2rem 0}.personne[data-v-6b076244]:first-of-type{margin-top:1rem}.personne>figure[data-v-6b076244]{width:6rem;height:6rem;margin:0;display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:3rem}.personne>figure>img[data-v-6b076244]{object-fit:cover;width:100%;height:100%}.personne>.description[data-v-6b076244]{width:calc(100% - 6rem)}.personne>.description>p[data-v-6b076244]{margin:0;padding-left:2rem}.questions-reponses[data-v-6b076244]{margin-top:3rem}.questions-reponses>div>.question[data-v-6b076244]{font-weight:700;position:relative;padding-left:1.8rem;margin-top:2rem;margin-bottom:1rem}.questions-reponses>div>.question[data-v-6b076244]:before{position:absolute;content:"";display:block;height:100%;width:.8rem;left:0;background-color:var(--couleur);margin-right:1rem}.exergue[data-v-19738a4f]{font-size:1.3rem;font-style:italic;line-height:1.5;position:relative;padding-left:1.8rem;margin:5rem 0}.exergue[data-v-19738a4f]:before{content:"";display:block;position:absolute;background-color:var(--couleur);width:.8rem;height:100%;margin-right:1rem;left:0}.v-enter-active{transition:all .5s linear var(--modale-enter-delay)}.v-leave-active{transition:all .5s linear var(--modale-leave-delay)}.v-enter-from,.v-leave-to{transform:translateY(20vh)}.v-enter-to,.v-leave-from{transform:translateY(0)} diff --git a/web/themes/custom/caravane/assets/dist/main.js b/web/themes/custom/caravane/assets/dist/main.js index f2c4fdb..41c468c 100644 --- a/web/themes/custom/caravane/assets/dist/main.js +++ b/web/themes/custom/caravane/assets/dist/main.js @@ -1,22 +1,66 @@ /** -* @vue/shared v3.4.31 +* @vue/shared v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Wn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const z={},Ze=[],ae=()=>{},Uo=()=>!1,Jt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zn=e=>e.startsWith("onUpdate:"),Y=Object.assign,kn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Do=Object.prototype.hasOwnProperty,D=(e,t)=>Do.call(e,t),L=Array.isArray,dt=e=>Gt(e)==="[object Map]",Bo=e=>Gt(e)==="[object Set]",M=e=>typeof e=="function",Z=e=>typeof e=="string",nt=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",bs=e=>(J(e)||M(e))&&M(e.then)&&M(e.catch),Ho=Object.prototype.toString,Gt=e=>Ho.call(e),$o=e=>Gt(e).slice(8,-1),Vo=e=>Gt(e)==="[object Object]",Jn=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ht=Wn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qo=/-(\w)/g,et=Xt(e=>e.replace(qo,(t,n)=>n?n.toUpperCase():"")),Ko=/\B([A-Z])/g,rt=Xt(e=>e.replace(Ko,"-$1").toLowerCase()),ys=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),dn=Xt(e=>e?`on${ys(e)}`:""),Ge=(e,t)=>!Object.is(e,t),hn=(e,...t)=>{for(let n=0;nC?Oe(f,b,w,!0,!1,P):ce(d,m,g,b,w,R,_,E,P)},At=(f,d,m,g,b,w,R,_,E)=>{let y=0;const C=d.length;let P=f.length-1,A=C-1;for(;y<=P&&y<=A;){const N=f[y],j=d[y]=E?Le(d[y]):xe(d[y]);if(ft(N,j))O(N,j,m,null,b,w,R,_,E);else break;y++}for(;y<=P&&y<=A;){const N=f[P],j=d[A]=E?Le(d[A]):xe(d[A]);if(ft(N,j))O(N,j,m,null,b,w,R,_,E);else break;P--,A--}if(y>P){if(y<=A){const N=A+1,j=N =L&&(o=T)}if(r.initialized&&o!==u&&(!r.allowSlideNext&&(f?b>r.translate&&b>r.minTranslate():b0;)if(s=n[r],t===s.toLowerCase())return s;return null}const go=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bo=e=>!xt(e)&&e!==go;function Dn(){const{caseless:e}=bo(this)&&this||{},t={},n=(r,s)=>{const o=e&&mo(t,s)||s;Ht(t[o])&&Ht(r)?t[o]=Dn(t[o],r):Ht(r)?t[o]=Dn({},r):st(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(Rt(t,(s,o)=>{n&&de(s)?e[o]=ao(s,n):e[o]=s},{allOwnKeys:r}),e),Ic=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mc=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jc=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&dr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uc=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Dc=e=>{if(!e)return null;if(st(e))return e;let t=e.length;if(!po(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&dr(Uint8Array)),Hc=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},$c=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vc=ye("HTMLFormElement"),qc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ss=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kc=ye("RegExp"),yo=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Rt(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Wc=e=>{yo(e,(t,n)=>{if(de(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(de(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zc=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return st(e)?r(e):r(String(e).split(t)),n},kc=()=>{},Jc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xn="abcdefghijklmnopqrstuvwxyz",os="0123456789",_o={DIGIT:os,ALPHA:xn,ALPHA_DIGIT:xn+xn.toUpperCase()+os},Gc=(e=16,t=_o.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Xc(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yc=e=>{const t=new Array(10),n=(r,s)=>{if(on(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=st(r)?[]:{};return Rt(r,(i,l)=>{const c=n(i,s+1);!xt(c)&&(o[l]=c)}),t[s]=void 0,o}}return r};return n(e,0)},Zc=ye("AsyncFunction"),Qc=e=>e&&(on(e)||de(e))&&de(e.then)&&de(e.catch),h={isArray:st,isArrayBuffer:ho,isBuffer:bc,isFormData:Tc,isArrayBufferView:yc,isString:_c,isNumber:po,isBoolean:wc,isObject:on,isPlainObject:Ht,isReadableStream:Ac,isRequest:Pc,isResponse:Fc,isHeaders:Nc,isUndefined:xt,isDate:Ec,isFile:xc,isBlob:Sc,isRegExp:Kc,isFunction:de,isStream:Oc,isURLSearchParams:Cc,isTypedArray:Bc,isFileList:Rc,forEach:Rt,merge:Dn,extend:Lc,trim:vc,stripBOM:Ic,inherits:Mc,toFlatObject:jc,kindOf:rn,kindOfTest:ye,endsWith:Uc,toArray:Dc,forEachEntry:Hc,matchAll:$c,isHTMLForm:Vc,hasOwnProperty:ss,hasOwnProp:ss,reduceDescriptors:yo,freezeMethods:Wc,toObjectSet:zc,toCamelCase:qc,noop:kc,toFiniteNumber:Jc,findKey:mo,global:go,isContextDefined:bo,ALPHABET:_o,generateString:Gc,isSpecCompliantForm:Xc,toJSONObject:Yc,isAsyncFn:Zc,isThenable:Qc};function v(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}h.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wo=v.prototype,Eo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Eo[e]={value:e}});Object.defineProperties(v,Eo);Object.defineProperty(wo,"isAxiosError",{value:!0});v.from=(e,t,n,r,s,o)=>{const i=Object.create(wo);return h.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),v.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const ef=null;function Bn(e){return h.isPlainObject(e)||h.isArray(e)}function xo(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function is(e,t,n){return e?e.concat(t).map(function(s,o){return s=xo(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function tf(e){return h.isArray(e)&&!e.some(Bn)}const nf=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function ln(e,t,n){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,H){return!h.isUndefined(H[O])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(s))throw new TypeError("visitor must be a function");function a(S){if(S===null)return"";if(h.isDate(S))return S.toISOString();if(!c&&h.isBlob(S))throw new v("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(S)||h.isTypedArray(S)?c&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function u(S,O,H){let U=S;if(S&&!H&&typeof S=="object"){if(h.endsWith(O,"{}"))O=r?O:O.slice(0,-2),S=JSON.stringify(S);else if(h.isArray(S)&&tf(S)||(h.isFileList(S)||h.endsWith(O,"[]"))&&(U=h.toArray(S)))return O=xo(O),U.forEach(function(F,W){!(h.isUndefined(F)||F===null)&&t.append(i===!0?is([O],W,o):i===null?O:O+"[]",a(F))}),!1}return Bn(S)?!0:(t.append(is(H,O,o),a(S)),!1)}const p=[],x=Object.assign(nf,{defaultVisitor:u,convertValue:a,isVisitable:Bn});function T(S,O){if(!h.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+O.join("."));p.push(S),h.forEach(S,function(U,V){(!(h.isUndefined(U)||U===null)&&s.call(t,U,h.isString(V)?V.trim():V,O,x))===!0&&T(U,O?O.concat(V):[V])}),p.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return T(e),t}function ls(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hr(e,t){this._pairs=[],e&&ln(e,this,t)}const So=hr.prototype;So.append=function(t,n){this._pairs.push([t,n])};So.toString=function(t){const n=t?function(r){return t.call(this,r,ls)}:ls;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function rf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ro(e,t,n){if(!t)return e;const r=n&&n.encode||rf,s=n&&n.serialize;let o;if(s?o=s(t,n):o=h.isURLSearchParams(t)?t.toString():new hr(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cs{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){h.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Oo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sf=typeof URLSearchParams<"u"?URLSearchParams:hr,of=typeof FormData<"u"?FormData:null,lf=typeof Blob<"u"?Blob:null,cf={isBrowser:!0,classes:{URLSearchParams:sf,FormData:of,Blob:lf},protocols:["http","https","file","blob","url","data"]},pr=typeof window<"u"&&typeof document<"u",ff=(e=>pr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",af=pr&&window.location.href||"http://localhost",df=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pr,hasStandardBrowserEnv:ff,hasStandardBrowserWebWorkerEnv:uf,origin:af},Symbol.toStringTag,{value:"Module"})),be={...df,...cf};function hf(e,t){return ln(e,new be.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return be.isNode&&h.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pf(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mf(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&h.isArray(s)?s.length:i,c?(h.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!h.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&h.isArray(s[i])&&(s[i]=mf(s[i])),!l)}if(h.isFormData(e)&&h.isFunction(e.entries)){const n={};return h.forEachEntry(e,(r,s)=>{t(pf(r),s,n,0)}),n}return null}function gf(e,t,n){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ot={transitional:Oo,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=h.isObject(t);if(o&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return s?JSON.stringify(To(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t)||h.isReadableStream(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hf(t,this.formSerializer).toString();if((l=h.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ln(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),gf(t)):t}],transformResponse:[function(t){const n=this.transitional||Ot.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(h.isResponse(t)||h.isReadableStream(t))return t;if(t&&h.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?v.from(l,v.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{Ot.headers[e]={}});const bf=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yf=e=>{const t={};let n,r,s;return e&&e.split(`
-`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&bf[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fs=Symbol("internals");function ut(e){return e&&String(e).trim().toLowerCase()}function $t(e){return e===!1||e==null?e:h.isArray(e)?e.map($t):String(e)}function _f(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const wf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sn(e,t,n,r,s){if(h.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!h.isString(t)){if(h.isString(r))return t.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(t)}}function Ef(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xf(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ie{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,c,a){const u=ut(c);if(!u)throw new Error("header name must be a non-empty string");const p=h.findKey(s,u);(!p||s[p]===void 0||a===!0||a===void 0&&s[p]!==!1)&&(s[p||c]=$t(l))}const i=(l,c)=>h.forEach(l,(a,u)=>o(a,u,c));if(h.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(h.isString(t)&&(t=t.trim())&&!wf(t))i(yf(t),n);else if(h.isHeaders(t))for(const[l,c]of t.entries())o(c,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=ut(t),t){const r=h.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _f(s);if(h.isFunction(n))return n.call(this,s,r);if(h.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ut(t),t){const r=h.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ut(i),i){const l=h.findKey(r,i);l&&(!n||Sn(r,r[l],l,n))&&(delete r[l],s=!0)}}return h.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Sn(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return h.forEach(this,(s,o)=>{const i=h.findKey(r,o);if(i){n[i]=$t(s),delete n[o];return}const l=t?Ef(o):String(o).trim();l!==o&&delete n[o],n[l]=$t(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&h.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[fs]=this[fs]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=ut(i);r[l]||(xf(s,i),r[l]=!0)}return h.isArray(t)?t.forEach(o):o(t),this}}ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});h.freezeMethods(ie);function Rn(e,t){const n=this||Ot,r=t||n,s=ie.from(r.headers);let o=r.data;return h.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Co(e){return!!(e&&e.__CANCEL__)}function ot(e,t,n){v.call(this,e??"canceled",v.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(ot,v,{__CANCEL__:!0});function Ao(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Sf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rf(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const a=Date.now(),u=r[o];i||(i=a),n[s]=c,r[s]=a;let p=o,x=0;for(;p!==s;)x+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),a-i