@dialpad/dialtone 9.11.6 → 9.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dialtone.css +2 -2
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +7 -7
- package/dist/vue2/directives.cjs +1 -1
- package/dist/vue2/directives.js +1 -1
- package/dist/vue2/emoji.cjs +1 -1
- package/dist/vue2/emoji.js +4 -4
- package/dist/vue2/{emoji_picker-VBLsSlJr.js → emoji_picker-KLEZsQG3.js} +2 -2
- package/dist/vue2/{emoji_picker-dBK-pDuF.cjs → emoji_picker-vsukB8Wg.cjs} +1 -1
- package/dist/vue2/{emoji_text_wrapper-EWz0rko2.js → emoji_text_wrapper--dDdt-Nq.js} +2 -2
- package/dist/vue2/{emoji_text_wrapper-oejE4smV.cjs → emoji_text_wrapper-_FmOgJHA.cjs} +1 -1
- package/dist/vue2/{index-1uA25gIw.cjs → index-W9PuOJ1N.cjs} +1 -1
- package/dist/vue2/{index-z1KcUZEV.js → index-w3NKtwEr.js} +1 -1
- package/dist/vue2/message_input.cjs +1 -1
- package/dist/vue2/message_input.js +4 -4
- package/dist/vue2/{rich_text_editor-NqYeEyvy.js → rich_text_editor-IfF_glhr.js} +2 -2
- package/dist/vue2/{rich_text_editor-WMrPaEtv.cjs → rich_text_editor-l0je0xEP.cjs} +1 -1
- package/dist/vue2/{tooltip-cGZnAULH.cjs → tooltip-6msmWvq0.cjs} +5 -5
- package/dist/vue2/{tooltip-dvDHxTzf.js → tooltip-QB-zD49d.js} +29 -48
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +1 -33
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts +0 -2
- package/dist/vue2/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +1 -1
- package/dist/vue3/dialtone-vue.js +7 -7
- package/dist/vue3/directives.cjs +1 -1
- package/dist/vue3/directives.js +1 -1
- package/dist/vue3/{emoji-gP3RQ6he.js → emoji-5bJ2I-JN.js} +1 -1
- package/dist/vue3/{emoji-YFsdCXG-.cjs → emoji-Ran5txvJ.cjs} +1 -1
- package/dist/vue3/emoji.cjs +1 -1
- package/dist/vue3/emoji.js +4 -4
- package/dist/vue3/{emoji_picker-WMlS_JOF.cjs → emoji_picker-Rd2jqRzm.cjs} +1 -1
- package/dist/vue3/{emoji_picker-rcpQiOQJ.js → emoji_picker-uX_EjNHa.js} +2 -2
- package/dist/vue3/{emoji_text_wrapper-QCXK-wj9.cjs → emoji_text_wrapper-3gf3i4pj.cjs} +1 -1
- package/dist/vue3/{emoji_text_wrapper-BKNSxivs.js → emoji_text_wrapper-eOnmhh72.js} +1 -1
- package/dist/vue3/message_input.cjs +1 -1
- package/dist/vue3/message_input.js +4 -4
- package/dist/vue3/{rich_text_editor-z9PGlqx-.cjs → rich_text_editor-5Fj3bfLC.cjs} +1 -1
- package/dist/vue3/{rich_text_editor-myrPgtId.js → rich_text_editor-UHm3sveX.js} +2 -2
- package/dist/vue3/{tooltip-wdstf8dG.cjs → tooltip-8utqWHHH.cjs} +4 -4
- package/dist/vue3/{tooltip-eytMOTz3.js → tooltip-XSz6YAOI.js} +29 -48
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +1 -33
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts +0 -2
- package/dist/vue3/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as c, g as w, V as l, r as T, k as C, j as L, p as q } from "./tooltip-
|
|
1
|
+
import { n as c, g as w, V as l, r as T, k as C, j as L, p as q } from "./tooltip-QB-zD49d.js";
|
|
2
2
|
import b from "vue";
|
|
3
3
|
var I = function() {
|
|
4
4
|
var a = this, t = a.$createElement, e = a._self._c || t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./rich_text_editor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./rich_text_editor-l0je0xEP.cjs"),a=require("./index-W9PuOJ1N.cjs"),l=require("./emoji_picker-vsukB8Wg.cjs"),s=require("./tooltip-6msmWvq0.cjs");require("vue");const u={name:"DtRecipeMessageInput",components:{DtButton:a.DtButton,DtEmojiPicker:l.DtEmojiPicker,DtIcon:a.DtIcon,DtInput:a.DtInput,DtPopover:o.DtPopover,DtRichTextEditor:o.DtRichTextEditor,DtTooltip:s.DtTooltip},mixins:[],inheritAttrs:!1,props:{value:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(t){return typeof t=="string"?o.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(t):!0}},outputFormat:{type:String,default:"text",validator(t){return o.RICH_TEXT_EDITOR_OUTPUT_FORMATS.includes(t)}},link:{type:[Boolean,Object],default:!1},placeholder:{type:String,default:""},disableSend:{type:Boolean,default:!1},maxHeight:{type:String,default:"unset"},showEmojiPicker:{type:Boolean,default:!0},emojiPickerProps:{type:Object,default:()=>({}),validate(t){return["searchNoResultsLabel","searchResultsLabel","searchPlaceholderLabel","skinSelectorButtonTooltipLabel","tabSetLabels"].every(e=>t[e]!=null)}},emojiTooltipMessage:{type:String,default:"Emoji"},emojiButtonAriaLabel:{type:String,default:"emoji button"},showCharacterLimit:{type:[Boolean,Object],default:()=>({count:1500,warning:500,message:""})},showImagePicker:{type:[Boolean,Object],default:()=>({tooltipLabel:"Attach Image",ariaLabel:"image button"})},showSend:{type:[Boolean,Object],default:()=>({icon:"send"})},showCancel:{type:[Boolean,Object],default:()=>({text:"Cancel"})}},emits:["submit","select-media","add-media","cancel","skin-tone","selected-emoji","focus","blur","input"],data(){return{internalInputValue:this.value,hasFocus:!1,imagePickerFocus:!1,emojiPickerFocus:!1,sendButtonFocus:!1,emojiPickerOpened:!1}},computed:{inputLength(){return this.internalInputValue.length},displayCharacterLimitWarning(){return!!this.showCharacterLimit&&this.showCharacterLimit.count-this.inputLength<=this.showCharacterLimit.warning},characterLimitTooltipEnabled(){return this.showCharacterLimit.message&&this.showCharacterLimit.count-this.inputLength<0},isSendDisabled(){return this.inputLength===0||this.disableSend||this.showCharacterLimit&&this.inputLength>this.showCharacterLimit.count},computedCloseButtonProps(){return{ariaLabel:"Close"}},emojiPickerHovered(){return this.emojiPickerFocus||this.emojiPickerOpened},sendButtonKind(){return this.isSendDisabled?"muted":"default"}},watch:{value(t){this.internalInputValue=t}},methods:{onDrag(t){t.stopPropagation(),t.preventDefault()},onDrop(t){t.stopPropagation(),t.preventDefault();const e=t.dataTransfer,i=Array.from(e.files).map(r=>r.name);this.$emit("add-media",i)},onSkinTone(t){this.$emit("skin-tone",t)},onSelectEmoji(t){if(!t){this.emojiPickerOpened=!1;return}this.$refs.richTextEditor.editor.commands.insertContent({type:"emoji",attrs:{code:t.shortname}}),this.emojiPickerOpened=!1,this.$emit("selected-emoji",t)},onSelectImage(){this.$refs.messageInputImageUpload.$refs.input.click()},onImageUpload(t){this.$emit("select-media",t)},toggleEmojiPicker(){this.emojiPickerOpened=!this.emojiPickerOpened},onSend(){this.isSendDisabled||this.$emit("submit",this.internalInputValue)},onCancel(){this.$emit("cancel")},onFocus(t){this.hasFocus=!0,console.log("B",this.hasFocus),this.$refs.richTextEditor.focusEditor(),console.log("A",this.hasFocus),this.$emit("focus",t)},onBlur(t){this.hasFocus=!1,this.$emit("blur",t)},onInput(t){this.$emit("input",t)}}};var c=function(){var e=this,n=e._self._c;return n("div",{class:["d-d-flex","d-fd-column","d-bar8","d-baw1","d-ba","d-c-text",{"d-bc-black-500 d-bs-sm":e.hasFocus,"d-bc-default":!e.hasFocus}],attrs:{"data-qa":"dt-message-input",role:"presentation"},on:{click:function(i){return e.$refs.richTextEditor.focusEditor()},"drag-enter":e.onDrag,"drag-over":e.onDrag,drop:e.onDrop,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")||i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.onSend.apply(null,arguments)}}},[n("div",{staticClass:"d-of-auto d-mx16 d-mt8 d-mb4",style:{"max-height":e.maxHeight}},[n("dt-rich-text-editor",e._b({ref:"richTextEditor",attrs:{editable:e.editable,"input-aria-label":e.inputAriaLabel,"input-class":e.inputClass,"output-format":e.outputFormat,"auto-focus":e.autoFocus,link:e.link,placeholder:e.placeholder},on:{focus:e.onFocus,blur:e.onBlur,input:function(i){return e.onInput(i)}},model:{value:e.internalInputValue,callback:function(i){e.internalInputValue=i},expression:"internalInputValue"}},"dt-rich-text-editor",e.$attrs,!1))],1),e._t("middle"),n("section",{staticClass:"d-d-flex d-jc-space-between d-mx8 d-my4"},[n("div",{staticClass:"d-d-flex"},[e.showImagePicker?n("dt-tooltip",{attrs:{placement:"top-start",message:e.showImagePicker.tooltipLabel,offset:[-4,-4]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{"data-qa":"dt-message-input-image-btn",size:"sm",circle:"",kind:e.imagePickerFocus?"default":"muted",importance:"clear","aria-label":e.showImagePicker.ariaLabel},on:{click:e.onSelectImage,mouseenter:function(i){e.imagePickerFocus=!0},mouseleave:function(i){e.imagePickerFocus=!1},focus:function(i){e.imagePickerFocus=!0},blur:function(i){e.imagePickerFocus=!1}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"image",size:"300"}})]},proxy:!0}],null,!1,2561380377)}),n("dt-input",{ref:"messageInputImageUpload",staticClass:"d-ps-absolute",attrs:{"data-qa":"dt-message-input-image-input",type:"file",multiple:"",hidden:""},on:{input:e.onImageUpload}})]},proxy:!0}],null,!1,3687934814)}):e._e(),e.showEmojiPicker?n("dt-popover",{attrs:{"data-qa":"dt-message-input-emoji-picker-popover",open:e.emojiPickerOpened,"initial-focus-element":"#searchInput",padding:"none"},on:{opened:i=>{e.emojiPickerOpened=i}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-tooltip",{attrs:{message:e.emojiTooltipMessage,offset:[0,-4]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{"data-qa":"dt-message-input-emoji-picker-btn",size:"sm",circle:"",kind:e.emojiPickerHovered?"default":"muted",importance:"clear","aria-label":e.emojiButtonAriaLabel,offset:[0,0]},on:{click:e.toggleEmojiPicker,mouseenter:function(i){e.emojiPickerFocus=!0},mouseleave:function(i){e.emojiPickerFocus=!1},focus:function(i){e.emojiPickerFocus=!0},blur:function(i){e.emojiPickerFocus=!1}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:e.emojiPickerHovered?"very-satisfied":"satisfied",size:"300"}})]},proxy:!0}],null,!1,352772906)})]},proxy:!0}],null,!1,3933528398)})]},proxy:!0},{key:"content",fn:function(){return[n("dt-emoji-picker",e._b({on:{"skin-tone":e.onSkinTone,"selected-emoji":e.onSelectEmoji}},"dt-emoji-picker",e.emojiPickerProps,!1))]},proxy:!0}],null,!1,1278205067)}):e._e()],1),n("div",{staticClass:"d-d-flex"},[e.showCharacterLimit?n("dt-tooltip",{staticClass:"dt-message-input--remaining-char-tooltip",attrs:{placement:"top-end",enabled:e.characterLimitTooltipEnabled,message:e.showCharacterLimit.message,offset:[10,-8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("p",{directives:[{name:"show",rawName:"v-show",value:e.displayCharacterLimitWarning,expression:"displayCharacterLimitWarning"}],staticClass:"d-fc-error d-mr16 dt-message-input--remaining-char",attrs:{"data-qa":"dt-message-input-character-limit"}},[e._v(" "+e._s(e.showCharacterLimit.count-e.inputLength)+" ")])]},proxy:!0}],null,!1,2591914334)}):e._e(),e.showCancel?n("dt-button",{staticClass:"dt-message-input--cancel-button",attrs:{"data-qa":"dt-message-input-cancel-button",size:"sm",kind:"muted",importance:"clear","aria-label":e.showCancel.ariaLabel},on:{click:e.onCancel}},[n("p",[e._v(e._s(e.showCancel.text))])]):e._e(),e.showSend?n("dt-tooltip",{attrs:{placement:"top-end",enabled:!e.showSend,message:e.showSend.tooltipLabel,show:!e.isSendDisabled&&e.sendButtonFocus,offset:[6,-8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{class:{"message-input-button__disabled d-fc-muted":e.isSendDisabled},attrs:{"data-qa":"dt-message-input-send-btn",size:"sm",kind:e.sendButtonKind,circle:!!e.showSend.icon,importance:"primary","aria-label":e.showSend.ariaLabel,"aria-disabled":e.isSendDisabled},on:{click:e.onSend,mouseenter:function(i){e.sendButtonFocus=!0},mouseleave:function(i){e.sendButtonFocus=!1},focus:function(i){e.sendButtonFocus=!0},blur:function(i){e.sendButtonFocus=!1}},scopedSlots:e._u([e.showSend.icon?{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:e.showSend.icon,size:"300"}})]},proxy:!0}:null],null,!0)},[e.showSend.text?[n("p",[e._v(e._s(e.showSend.text))])]:e._e()],2)]},proxy:!0}],null,!1,370079737)}):e._e()],1)])],2)},d=[],m=s.normalizeComponent(u,c,d,!1,null,null,null,null);const p=m.exports;exports.DtRichTextEditor=o.DtRichTextEditor;exports.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES=o.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES;exports.RICH_TEXT_EDITOR_OUTPUT_FORMATS=o.RICH_TEXT_EDITOR_OUTPUT_FORMATS;exports.DtRecipeMessageInput=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as o, a as s, R as r, b as l } from "./rich_text_editor-
|
|
2
|
-
import { t as u, w as c, x as d } from "./index-
|
|
3
|
-
import { D as m } from "./emoji_picker-
|
|
4
|
-
import { n as p, D as f } from "./tooltip-
|
|
1
|
+
import { D as o, a as s, R as r, b as l } from "./rich_text_editor-IfF_glhr.js";
|
|
2
|
+
import { t as u, w as c, x as d } from "./index-w3NKtwEr.js";
|
|
3
|
+
import { D as m } from "./emoji_picker-KLEZsQG3.js";
|
|
4
|
+
import { n as p, D as f } from "./tooltip-QB-zD49d.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
const h = {
|
|
7
7
|
name: "DtRecipeMessageInput",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ee, g as Ti, a as Xa, u as Qa, b as Za, B as ec, c as tc, i as nc, d as rc, e as ic, f as As, t as sl, h as sc, l as oc } from "./tooltip-
|
|
1
|
+
import { n as ee, g as Ti, a as Xa, u as Qa, b as Za, B as ec, c as tc, i as nc, d as rc, e as ic, f as As, t as sl, h as sc, l as oc } from "./tooltip-QB-zD49d.js";
|
|
2
2
|
import Ie, { markRaw as ol } from "vue";
|
|
3
|
-
import { B as lc, w as hr, I as ac, L as cc, C as uc, t as ll, D as al, E as dc, m as fc, o as cl } from "./index-
|
|
3
|
+
import { B as lc, w as hr, I as ac, L as cc, C as uc, t as ll, D as al, E as dc, m as fc, o as cl } from "./index-w3NKtwEr.js";
|
|
4
4
|
const Lt = {
|
|
5
5
|
BUSY: "busy",
|
|
6
6
|
AWAY: "away",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const I=require("./tooltip-
|
|
1
|
+
"use strict";const I=require("./tooltip-6msmWvq0.cjs"),be=require("vue"),G=require("./index-W9PuOJ1N.cjs"),xt={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},ol=[xt.BUSY,xt.AWAY,xt.OFFLINE,xt.ACTIVE],uc={name:"DtPresence",props:{presence:{type:String,default:xt.ACTIVE,validator:n=>ol.includes(n)},srText:{type:String,default:null}}};var dc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?t("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),t("div",{staticClass:"d-presence__inner",class:{"d-presence__inner--active":e.presence==="active","d-presence__inner--away":e.presence==="away","d-presence__inner--busy":e.presence==="busy","d-presence__inner--offline":e.presence==="offline"}})])},fc=[],hc=I.normalizeComponent(uc,dc,fc,!1,null,null,null,null);const ll=hc.exports,Sn={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},al={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},cl={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},Mi={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},ul={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},dl=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],wi=n=>n>1;function pc(){return[void 0,...G.iconNames]}const mc=n=>{if(typeof n!="string"||!n.trim())return"";const e=n.trim().split(/\s+/g);return e.length===1?e.join("").substring(0,2):e.filter((t,r)=>r===0||r===e.length-1).map(t=>t.slice(0,1).toUpperCase()).join("")},gc=pc(),yc={name:"DtAvatar",components:{DtPresence:ll,DtIcon:G.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return I.getUniqueString()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:n=>Object.keys(Sn).includes(n)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:Mi.NONE,validator:n=>Object.values(Mi).includes(n)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:n=>wi(n)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:n=>gc.includes(n)},iconSize:{type:String,default:"",validator:n=>!n||Object.keys(G.ICON_SIZE_MODIFIERS).includes(n)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:Sn,AVATAR_KIND_MODIFIERS:al,AVATAR_PRESENCE_SIZE_MODIFIERS:cl,AVATAR_ICON_SIZES:ul,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",Sn[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return wi(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(){this.formatInitials()}},size:{immediate:!0,handler(){this.formatInitials()}},group:{immediate:!0,handler(){this.formatInitials()}},imageSrc(n){this.imageLoadedSuccessfully=null,n&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const n=this.$refs.avatarImage;n&&(n.addEventListener("load",()=>this._loadedImageEventHandler(n),{once:!0}),n.addEventListener("error",()=>this._erroredImageEventHandler(n),{once:!0}))},formatInitials(){const n=mc(this.fullName);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=n[0]:this.formattedInitials=n},getColor(){return this.color??I.getRandomElement(dl,this.seed)},_loadedImageEventHandler(n){this.imageLoadedSuccessfully=!0,n.classList.remove("d-d-none")},_erroredImageEventHandler(n){this.imageLoadedSuccessfully=!1,n.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(n){this.clickable&&this.$emit("click",n)}}};var bc=function(){var e=this,t=e._self._c;return t(e.clickable?"button":"div",{tag:"component",class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar","aria-label":e.buttonAriaLabel},on:{click:e.handleClick}},[t("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":e.imageLoadedSuccessfully}]},[e.showImage?t("img",{ref:"avatarImage",staticClass:"d-avatar__image",attrs:{"data-qa":"dt-avatar-image",src:e.imageSrc,alt:e.imageAlt||e.fullName}}):e.iconName?t("dt-icon",{class:[e.iconClass,e.AVATAR_KIND_MODIFIERS.icon],attrs:{name:e.iconName,size:e.iconSize||e.AVATAR_ICON_SIZES[e.size],"data-qa":"dt-avatar-icon"}}):t("span",{class:[e.AVATAR_KIND_MODIFIERS.initials]},[e._v(" "+e._s(e.formattedInitials)+" ")])],1),e.overlayIcon||e.overlayText?t("div",{class:e.overlayClasses},[e.overlayIcon?t("dt-icon",{staticClass:"d-avatar__overlay-icon",attrs:{name:e.overlayIcon}}):e.overlayText?t("p",{staticClass:"d-avatar__overlay-text"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?t("span",{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?t("dt-presence",e._b({class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},kc=[],Sc=I.normalizeComponent(yc,bc,kc,!1,null,null,null,null);const fl=Sc.exports,Oc={name:"DtLink",props:{kind:{type:String,default:"",validator(n){return G.LINK_VARIANTS.includes(n)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:G.LINK_KIND_MODIFIERS}}};var xc=function(){var e=this,t=e._self._c;return t("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link",href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},e.$listeners),[e._t("default")],2)},Ec=[],Tc=I.normalizeComponent(Oc,xc,Ec,!1,null,null,null,null);const hl=Tc.exports,pl={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
|
|
2
2
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},vc={name:"SrOnlyCloseButton",components:{DtIcon:G.DtIcon,DtButton:G.DtButton},props:{visuallyHiddenCloseLabel:{type:String,default:null}},emits:["close"],methods:{close(){this.$emit("close")}}};var Cc=function(){var e=this,t=e._self._c;return t("dt-button",{staticClass:"d-vi-visible-sr",attrs:{id:"sr-only-close-button","data-qa":"dt-sr-only-close-button","aria-label":e.visuallyHiddenCloseLabel},on:{click:e.close,keydown:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"space",32,r.key,[" ","Spacebar"])?null:(r.preventDefault(),r.stopPropagation(),e.close.apply(null,arguments))}}},[t("dt-icon",{attrs:{name:"close"}})],1)},Mc=[],wc=I.normalizeComponent(vc,Cc,Mc,!1,null,null,null,null);const ml=wc.exports,gl=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',Ac=`${gl}:not([tabindex="-1"])`,Nc="button,[href],input,select,textarea,details,[tabindex]",yl={methods:{async getFirstFocusableElement(n){await this.$nextTick();const e=this._getFocusableElements(n,!0);return this._getFirstFocusElement(e)},async focusFirstElement(n=this.$el){const e=await this.getFirstFocusableElement(n);e==null||e.focus({preventScroll:!0})},async focusElementById(n){var t;await this.$nextTick();const e=(t=this.$el)==null?void 0:t.querySelector(n);if(e){e.focus();return}console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'),await this.focusFirstElement()},_getFirstFocusElement(n){if(!n.length)return;let e=n[0];return e.matches('[type="radio"]:not(:checked)')&&(e=n.find(t=>t.checked&&t.name===e.name)||e),e},_getFocusableElements(n=this.$el,e=!1){return n?[...n.querySelectorAll(Nc)].filter(r=>{const i=window.getComputedStyle(r);return i.getPropertyValue("display")!=="none"&&i.getPropertyValue("visibility")!=="hidden"&&r.matches(e?gl:Ac)}):[]},focusTrappedTabPress(n,e){if(!(n.key==="Tab"))return;const r=this._getFocusableElements(e);if(!r.length){n.preventDefault();return}const i=this._getFirstFocusElement(r),s=r[r.length-1];n.shiftKey?document.activeElement===i&&(s.focus(),n.preventDefault()):document.activeElement===s&&(i.focus(),n.preventDefault())}}},On={DEFAULT:"default",CUSTOM:"custom"},$t={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"},Pc={name:"DtItemLayout",props:{as:{type:String,default:"div"}}};var Ic=function(){var e=this,t=e._self._c;return t(e.as,{tag:"component",staticClass:"dt-item-layout"},[e.$slots.left?t("section",{staticClass:"dt-item-layout--left",attrs:{"data-qa":"dt-item-layout-left-wrapper"}},[e._t("left")],2):e._e(),t("section",{staticClass:"dt-item-layout--content",attrs:{"data-qa":"dt-item-layout-content-wrapper"}},[e.$slots.default?t("div",{staticClass:"dt-item-layout--title",attrs:{"data-qa":"dt-item-layout-title-wrapper"}},[e._t("default")],2):e._e(),e.$slots.subtitle?t("div",{class:["dt-item-layout--subtitle",{"dt-item-layout--subtitle--with-title":e.$slots.default}],attrs:{"data-qa":"dt-item-layout-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?t("div",{staticClass:"dt-item-layout--bottom",attrs:{"data-qa":"dt-item-layout-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?t("section",{staticClass:"dt-item-layout--right",attrs:{"data-qa":"dt-item-layout-right-wrapper"}},[e._t("right")],2):e._e(),e.$slots.selected?t("section",{staticClass:"dt-item-layout--selected",attrs:{"data-qa":"dt-item-layout-selected-wrapper"}},[e._t("selected")],2):e._e()])},Dc=[],Rc=I.normalizeComponent(Pc,Ic,Dc,!1,null,"411cb81e",null,null);const Ai=Rc.exports,_c={name:"DtListItem",components:{DtItemLayout:Ai,DtIcon:G.DtIcon},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return I.utils.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:On.DEFAULT,validator:n=>Object.values(On).includes(n)},navigationType:{type:String,default:$t.NONE,validator:n=>Object.values($t).includes(n)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case On.DEFAULT:return Ai;default:return null}},listItemListeners(){return{...this.$listeners,keydown:n=>{["enter","space"].includes(n.code.toLowerCase())&&this.onClick(n),this.$emit("keydown",n)},mousemove:n=>{this.onMouseHover(n),this.$emit("mousemove",n)},mouseleave:n=>{this.onMouseLeave(n),this.$emit("mouseleave",n)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===$t.TAB},isHoverable(){return this.navigationType!==$t.NONE}},methods:{onClick(n){this.$emit("click",n)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var Lc=function(){var e=this,t=e._self._c;return t(e.elementType,e._g({tag:"component",class:["dt-list-item",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?t(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(r,i){return{key:i,fn:function(){return[e._t(i)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[t("dt-icon",{staticClass:"dt-list-item--selected-icon",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},Bc=[],$c=I.normalizeComponent(_c,Lc,Bc,!1,null,null,null,null);const bl=$c.exports,Ye={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},is=["sm","md","lg","xl"],gr=["0","100","200","300","400","500","600"],Ni={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},kl={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Sl=["dialog","menu","listbox","tree","grid"],Ol=["","anchor"],xl=["none","dialog","first"],El=["parent","body"],Tl=[...I.TIPPY_STICKY_VALUES],Fc=[...I.BASE_TIPPY_DIRECTIONS];let zc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hc=(n=21)=>{let e="",t=n;for(;t--;)e+=zc[Math.random()*64|0];return e};function xn(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xn=function(e){return typeof e}:xn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(n)}var vl={selector:"vue-portal-target-".concat(Hc())},jc=function(e){return vl.selector=e},ei=typeof window<"u"&&(typeof document>"u"?"undefined":xn(document))!==void 0,Vc=be.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var t=this.updatedNodes&&this.updatedNodes();return t?t.length===1&&!t[0].text?t:e(this.tag||"DIV",t):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),ss=be.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(vl.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var t=this.$scopedSlots&&this.$scopedSlots.default();return t?t.length<2&&!t[0].text?t:e(this.tag,t):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(ei)return document.querySelector(this.selector)},insertTargetEl:function(){if(ei){var e=document.querySelector("body"),t=document.createElement(this.tag);t.id=this.selector.substring(1),e.appendChild(t)}},mount:function(){if(ei){var e=this.getTargetEl(),t=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),this.container=new Vc({el:t,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function qc(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};n.component(e.name||"portal",ss),e.defaultSelector&&jc(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===be&&be.use(qc);const Kc={name:"PopoverHeaderFooter",components:{DtButton:G.DtButton,DtIcon:G.DtIcon},props:{type:{type:String,validator:function(n){return["header","footer"].includes(n)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>{}}},emits:["close"],methods:{focusCloseButton(){var e;const n=(e=this.$refs["popover__close-button"])==null?void 0:e.$el;n==null||n.focus()}}};var Wc=function(){var e=this,t=e._self._c;return t("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?t("div",{class:[{"d-popover__header__content":e.type==="header","d-popover__footer__content":e.type==="footer"},e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?t("dt-button",e._b({ref:"popover__close-button",class:{"d-popover__header__close-button":e.type==="header","d-popover__footer__close-button":e.type==="footer"},attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(r){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},Uc=[],Jc=I.normalizeComponent(Kc,Wc,Uc,!1,null,null,null,null);const Gc=Jc.exports,Yc={name:"DtPopover",components:{SrOnlyCloseButton:ml,DtLazyShow:I.DtLazyShow,PopoverHeaderFooter:Gc,Portal:ss},mixins:[yl,pl],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},elementType:{type:String,default:"div"},transition:{type:String,default:"fade"},role:{type:String,default:"dialog",validator:n=>Sl.includes(n)},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},closeButtonProps:{type:Object,default:()=>({})},padding:{type:String,default:"large",validator:n=>Object.keys(Ni).some(e=>e===n)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:n=>Ol.includes(n)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return I.getUniqueString()}},offset:{type:Array,default:()=>[0,4]},hideOnClick:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom-end"},tether:{type:Boolean,default:!0},sticky:{type:[Boolean,String],default:!1,validator:n=>Tl.includes(n)},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},showCloseButton:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},dialogClass:{type:[String,Array,Object],default:""},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:n=>xl.includes(n)||n instanceof HTMLElement||n.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:n=>El.includes(n)||n instanceof HTMLElement},hovercard:{type:Boolean,default:!1},timer:{type:[Object,null],default:null,validator:n=>n===null||n.enter&&n.leave&&Object.keys(n).includes("current")}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Ni,POPOVER_HEADER_FOOTER_PADDING_CLASSES:kl,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null,inTimer:null,outTimer:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:n=>{this.onKeydown(n),this.$emit("keydown",n)},"after-leave":n=>{this.onLeaveTransitionComplete()},"after-enter":n=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--dt-space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&I.getUniqueString("DtPopover__anchor")},currentHovercard(){var n;return(n=this.timer)==null?void 0:n.current.value}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}},modal(n){var e;(e=this.tip)==null||e.setProps({zIndex:n?650:this.calculateAnchorZindex()})},offset(n){var e;(e=this.tip)==null||e.setProps({offset:n})},sticky(n){var e;(e=this.tip)==null||e.setProps({sticky:n})},fallbackPlacements(){var n;(n=this.tip)==null||n.setProps({popperOptions:this.popperOptions()})},tether(){var n;(n=this.tip)==null||n.setProps({popperOptions:this.popperOptions()})},placement(n){var e;(e=this.tip)==null||e.setProps({placement:n})},open:{handler:function(n){n!==null&&(this.isOpen=n)},immediate:!0},isOpen(n,e){n?(this.initTippyInstance(),this.tip.show()):!n&&e!==n&&(this.removeEventListeners(),this.tip.hide())},currentHovercard(){this.hovercard&&this.timer&&(this.currentHovercard===this.id?this.isOpen=!0:this.isOpen=!1)}},mounted(){const n=this.externalAnchor?this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`):null;this.anchorEl=n??this.$refs.anchor.children[0],this.popoverContentEl=this.$refs.content.$el,this.isOpen&&(this.initTippyInstance(),this.tip.show()),this.intersectionObserver=new IntersectionObserver(this.hasIntersectedViewport),this.intersectionObserver.observe(this.popoverContentEl)},beforeDestroy(){var n;(n=this.tip)==null||n.destroy(),this.intersectionObserver.disconnect(),this.removeReferences(),this.removeEventListeners()},methods:{hasIntersectedViewport(n){var r;const e=(r=n==null?void 0:n[0])==null?void 0:r.target;if(!e)return;const t=I.isOutOfViewPort(e);this.isOutsideViewport=t.bottom||t.top},popperOptions(){return I.getPopperOptions({fallbackPlacements:this.fallbackPlacements,tether:this.tether,hasHideModifierEnabled:!0})},validateProps(){this.modal&&this.initialFocusElement==="none"&&console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement')},calculateAnchorZindex(){var n;return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||(n=this.anchorEl)!=null&&n.closest(".d-zi-drawer")?650:300},defaultToggleOpen(n){var e,t;this.hovercard||this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(n.target)&&!((t=this.anchorEl)!=null&&t.disabled)&&this.toggleOpen()))},async onContext(n){this.openOnContext&&(n.preventDefault(),this.isOpen=!0,await this.$nextTick(),this.tip.setProps({placement:"right-start",getReferenceClientRect:()=>({width:0,height:0,top:n.clientY,bottom:n.clientY,left:n.clientX,right:n.clientX})}))},toggleOpen(){this.isOpen=!this.isOpen},onArrowKeyPress(n){var e;this.open===null&&this.openWithArrowKeys&&(e=this.anchorEl)!=null&&e.contains(n.target)&&(this.isOpen||(this.isOpen=!0))},addEventListeners(){window.addEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.addEventListener("resize",this.onResize)},removeEventListeners(){window.removeEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.removeEventListener("resize",this.onResize)},closePopover(){this.isOpen=!1},preventScrolling(){var n;if(this.modal){const e=(n=this.anchorEl)==null?void 0:n.closest("body, .tippy-box");e.tagName.toLowerCase()==="body"?(e.classList.add("d-of-hidden"),this.tip.setProps({offset:this.offset})):e.classList.add("d-zi-popover")}},enableScrolling(){var e,t;const n=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");n&&(((t=n.tagName)==null?void 0:t.toLowerCase())==="body"?(n.classList.remove("d-of-hidden"),this.tip.setProps({offset:this.offset})):n.classList.remove("d-zi-popover"))},removeReferences(){this.anchorEl=null,this.popoverContentEl=null,this.tip=null},async onShow(){this.contentWidth==="anchor"&&await this.setPopoverContentAnchorWidth(),this.contentWidth===null&&(this.popoverContentEl.style.width="auto"),this.addEventListeners()},async onLeaveTransitionComplete(){var n;this.modal&&(await this.focusFirstElement(this.$refs.anchor),await this.$nextTick(),this.enableScrolling()),(n=this.tip)==null||n.unmount(),this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},async onEnterTransitionComplete(){this.focusInitialElement(),await this.$nextTick(),this.preventScrolling(),this.$emit("opened",!0,this.$refs.popover__content),this.open!==null&&this.$emit("update:open",!0)},focusInitialElement(){this.initialFocusElement==="dialog"&&this.$refs.content.$el.focus(),this.initialFocusElement.startsWith("#")&&this.focusInitialElementById(),this.initialFocusElement==="first"&&this.focusFirstElementIfNeeded(this.$refs.popover__content),this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},focusInitialElementById(){var e,t,r;const n=(t=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:t.querySelector(this.initialFocusElement);n?n.focus():console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'),n?n.focus():(r=this.$refs.content)==null||r.$el.focus()},onResize(){this.closePopover()},onClickOutside(){if(!this.hideOnClick)return;this.popoverContentEl.querySelector(".d-popover__anchor--opened")||this.closePopover()},onKeydown(n){n.key==="Tab"&&this.modal&&this.focusTrappedTabPress(n,this.popoverContentEl),n.key==="Escape"&&this.closePopover()},async setPopoverContentAnchorWidth(){var n;await this.$nextTick(),this.popoverContentEl.style.width=`${(n=this.anchorEl)==null?void 0:n.clientWidth}px`},focusFirstElementIfNeeded(n){var t,r;this._getFocusableElements(n,!0).length!==0?this.focusFirstElement(n):this.showCloseButton?(t=this.$refs.popover__header)==null||t.focusCloseButton():(r=this.$refs.content)==null||r.$el.focus()},initTippyInstance(){var n,e;this.tip=I.createTippy(this.anchorEl,{popperOptions:this.popperOptions(),contentElement:this.popoverContentEl,placement:this.placement,offset:this.offset,sticky:this.sticky,appendTo:this.appendTo==="body"?(e=(n=this.anchorEl)==null?void 0:n.getRootNode())==null?void 0:e.querySelector("body"):this.appendTo,interactive:!0,trigger:"manual",hideOnClick:!1,zIndex:this.modal?650:this.calculateAnchorZindex(),onClickOutside:this.onClickOutside,onShow:this.onShow})},setInTimer(){this.inTimer=setTimeout(()=>{this.isOpen=!0},I.TOOLTIP_DELAY_MS)},setOutTimer(){this.outTimer=setTimeout(()=>{this.isOpen=!1},I.TOOLTIP_DELAY_MS)},onEnterAnchor(){this.hovercard&&(this.timer?this.timer.enter(this.id):(clearTimeout(this.outTimer),this.setInTimer()))},onLeaveAnchor(){this.hovercard&&(this.timer?this.timer.leave():(clearTimeout(this.inTimer),this.setOutTimer()))},onEnterContent(){this.hovercard&&(this.timer?this.timer.enter(this.id):clearTimeout(this.outTimer))},onLeaveContent(){this.hovercard&&(this.timer?this.timer.leave():this.setOutTimer())}}};var Xc=function(){var e=this,t=e._self._c;return t("div",[e.modal&&e.isOpen?t("portal",[t("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(r){r.preventDefault(),r.stopPropagation()}}})]):e._e(),t(e.elementType,e._g({ref:"popover",tag:"component",class:["d-popover",{"d-popover__anchor--opened":e.isOpen}],attrs:{"data-qa":"dt-popover-container"}},e.$listeners),[t("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":e.$attrs["data-qa"]?`${e.$attrs["data-qa"]}-anchor`:"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(r){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:(r.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:(r.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"escape",void 0,r.key,void 0)?null:e.closePopover.apply(null,arguments)},mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor}},[e._t("anchor",null,{attrs:{"aria-expanded":e.isOpen.toString(),"aria-controls":e.id,"aria-haspopup":e.role}})],2),t("dt-lazy-show",e._g({ref:"content",class:["d-popover__dialog",{"d-popover__dialog--modal":e.modal},e.dialogClass],style:{"max-height":e.calculatedMaxHeight,"max-width":e.maxWidth},attrs:{id:e.id,role:e.role,"data-qa":e.$attrs["data-qa"]?`${e.$attrs["data-qa"]}__dialog`:"dt-popover","aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,"aria-modal":`${!e.modal}`,transition:e.transition,show:e.isOpen,tabindex:e.contentTabindex,appear:""},on:{mouseenter:e.onEnterContent,mouseleave:e.onLeaveContent}},e.popoverListeners),[e.$slots.headerContent||e.showCloseButton?t("popover-header-footer",{ref:"popover__header",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{"content-class":e.headerClass,type:"header","show-close-button":e.showCloseButton,"close-button-props":e.closeButtonProps},on:{close:e.closePopover},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("headerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),t("div",{ref:"popover__content",class:["d-popover__content",e.POPOVER_PADDING_CLASSES[e.padding],e.contentClass],attrs:{"data-qa":e.$attrs["data-qa"]?`${e.$attrs["data-qa"]}-content`:"dt-popover-content"}},[e._t("content",null,{close:e.closePopover})],2),e.$slots.footerContent?t("popover-header-footer",{ref:"popover__footer",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{type:"footer","content-class":e.footerClass},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("footerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),e.showVisuallyHiddenClose?t("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},Qc=[],Zc=I.normalizeComponent(Yc,Xc,Qc,!1,null,null,null,null);const eu=Zc.exports;function _s(n){return n===Ye.default}function Ls(n){if(Yt(n)==="string")return _s(n)?null:Ye[n];if(Yt(n)==="object"){const{default:e}=n;return _s(e)?null:Ye[e]}else return null}function Yt(n){return typeof n}function tu(n){return Ls(n)?`d-stack--${Ye[Ls(n)]}`:null}function nu(n){return Yt(n)==="object"?[...is.map(e=>n[e]?`d-stack--${e}--${n[e]}`:null)]:null}function ru(n){return gr.includes(n)?`d-stack--gap-${n}`:null}function iu(n){if(Yt(n)==="string")return Object.keys(Ye).includes(n);if(Yt(n)==="object"){const{default:e}=n;return Object.keys(Ye).includes(e)}else return null}function su(n){return gr.includes(n)}const ou={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:n=>iu(n)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:n=>su(n)}},data(){return{DT_STACK_DIRECTION:Ye,DT_STACK_GAP:gr,DT_STACK_RESPONSIVE_BREAKPOINTS:is}},computed:{stackGap(){return ru(this.gap)},defaultDirection(){return tu(this.direction)},stackResponsive(){return nu(this.direction)}}};var lu=function(){var e=this,t=e._self._c;return t(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},au=[],cu=I.normalizeComponent(ou,lu,au,!1,null,null,null,null);const ls=cu.exports;function V(n){this.content=n}V.prototype={constructor:V,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new V(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new V(t)},addToStart:function(n,e){return new V([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new V(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new V(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=V.from(n),n.size?new V(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=V.from(n),n.size?new V(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=V.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};V.from=function(n){if(n instanceof V)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new V(e)};function Cl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=Cl(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function Ml(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=0,u=Math.min(o.text.length,l.text.length);for(;c<u&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let c=Ml(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class b{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(s+=l.text.slice(Math.max(e,a)-a,t-a),o=!r):l.isLeaf?(i?s+=typeof i=="function"?i(l):i:l.type.spec.leafText&&(s+=l.type.spec.leafText(l)),o=!r):!o&&l.isBlock&&(s+=r,o=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new b(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new b(r,i)}cutByIndex(e,t){return e==t?b.empty:e==0&&t==this.content.length?this:new b(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new b(i,s)}addToStart(e){return new b([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new b(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return Cl(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Ml(this,e,t,r)}findIndex(e,t=-1){if(e==0)return fn(0,e);if(e==this.size)return fn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||t>0?fn(r+1,o):fn(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return b.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new b(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return b.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new b(t||e,r)}static from(e){if(!e)return b.empty;if(e instanceof b)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new b([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}b.empty=new b([],0);const ti={index:0,offset:0};function fn(n,e){return ti.index=n,ti.offset=e,ti}function Mn(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Mn(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Mn(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let _=class Pi{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Mn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Pi.none;if(e instanceof Pi)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};_.none=[];class wn extends Error{}class S{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Al(this.content,e+this.openStart,t);return r&&new S(r,this.openStart,this.openEnd)}removeBetween(e,t){return new S(wl(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return S.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new S(b.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new S(e,r,i)}}S.empty=new S(b.empty,0,0);function wl(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(wl(s.content,e-i-1,t-i-1)))}function Al(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Al(o.content,e-s-1,t);return l&&n.replaceChild(i,o.copy(l))}function uu(n,e,t){if(t.openStart>n.depth)throw new wn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new wn("Inconsistent open depths");return Nl(n,e,t,0)}function Nl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=Nl(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return at(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=du(t,n);return at(s,Il(n,o,l,e,r))}else return at(s,An(n,e,r))}function Pl(n,e){if(!e.type.compatibleContent(n.type))throw new wn("Cannot join "+e.type.name+" onto "+n.type.name)}function Ii(n,e,t){let r=n.node(t);return Pl(r,e.node(t)),r}function lt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function jt(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(lt(n.nodeAfter,r),s++));for(let l=s;l<o;l++)lt(i.child(l),r);e&&e.depth==t&&e.textOffset&<(e.nodeBefore,r)}function at(n,e){return n.type.checkContent(e),n.copy(e)}function Il(n,e,t,r,i){let s=n.depth>i&&Ii(n,e,i+1),o=r.depth>i&&Ii(t,r,i+1),l=[];return jt(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(Pl(s,o),lt(at(s,Il(n,e,t,r,i+1)),l)):(s&<(at(s,An(n,e,i+1)),l),jt(e,t,i,l),o&<(at(o,An(t,r,i+1)),l)),jt(r,null,i,l),new b(l)}function An(n,e,t){let r=[];if(jt(null,n,t,r),n.depth>t){let i=Ii(n,e,t+1);lt(at(i,An(n,e,t+1)),r)}return jt(e,null,t,r),new b(r)}function du(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(b.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class Xt{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return _.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Nn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new Xt(t,r,s)}static resolveCached(e,t){for(let i=0;i<ni.length;i++){let s=ni[i];if(s.pos==t&&s.doc==e)return s}let r=ni[ri]=Xt.resolve(e,t);return ri=(ri+1)%fu,r}}let ni=[],ri=0,fu=12;class Nn{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const hu=Object.create(null);let ct=class Di{constructor(e,t,r,i=_.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||b.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Mn(this.attrs,t||e.defaultAttrs||hu)&&_.sameSet(this.marks,r||_.none)}copy(e=null){return e==this.content?this:new Di(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Di(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return S.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new S(c,i.depth-o,s.depth-o)}replace(e,t,r){return uu(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return Xt.resolveCached(this,e)}resolveNoCache(e){return Xt.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Dl(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=b.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=_.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!_.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=b.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};ct.prototype.text=void 0;class Pn extends ct{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Dl(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Pn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Pn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Dl(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ft{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new pu(e,t);if(r.next==null)return ft.empty;let i=Rl(r);r.next&&r.err("Unexpected trailing text");let s=Ou(Su(i));return xu(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return b.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,l.concat(u));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
3
3
|
`)}}ft.empty=new ft(!0);class pu{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Rl(n){let e=[];do e.push(mu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function mu(n){let e=[];do e.push(gu(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function gu(n){let e=ku(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=yu(n,e);else break;return e}function Bs(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function yu(n,e){let t=Bs(n),r=t;return n.eat(",")&&(n.next!="}"?r=Bs(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function bu(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.groups.indexOf(e)>-1&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function ku(n){if(n.eat("(")){let e=Rl(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=bu(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Su(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=t();i(s(o.expr,a),u),a=u}if(o.max==-1)i(s(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=t();r(a,u),i(s(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function _l(n,e){return e-n}function $s(n,e){let t=[];return r(e),t.sort(_l);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&t.indexOf(a)==-1&&r(a)}}}function Ou(n){let e=Object.create(null);return t($s(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<i.length;u++)i[u][0]==l&&(c=i[u][1]);$s(n,a).forEach(u=>{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new ft(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(_l);s.next.push({type:i[o][0],next:e[l.join(",")]||t(l)})}return s}}function xu(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:c}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ll(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Bl(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let s=n[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}function $l(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new Eu(n[t]);return e}let Fs=class Fl{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=$l(r.attrs),this.defaultAttrs=Ll(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ft.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Bl(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ct(this,this.computeAttrs(e),b.from(t),_.setFrom(r))}createChecked(e=null,t,r){return t=b.from(t),this.checkContent(t),new ct(this,this.computeAttrs(e),t,_.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=b.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(b.empty,!0);return s?new ct(this,e,t.append(s),_.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:_.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Fl(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Eu{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class yr{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=$l(i.attrs),this.excluded=null;let s=Ll(this.attrs);this.instance=s?new _(this,s):null}create(e=null){return!e&&this.instance?this.instance:new _(this,Bl(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new yr(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Tu{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=V.from(e.nodes),t.marks=V.from(e.marks||{}),this.nodes=Fs.compile(this.spec.nodes,this),this.marks=yr.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;s.contentMatch=r[o]||(r[o]=ft.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.markSet=l=="_"?null:l?zs(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:zs(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Fs){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Pn(r,r.defaultAttrs,e,_.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return ct.fromJSON(this,e)}markFromJSON(e){return _.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function zs(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let l in n.marks){let a=n.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}let as=class Ri{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new js(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new js(this,t,!0);return r.addAll(e,t.from,t.to),S.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Mu(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<s)break}t.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Vs(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Vs(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ri(e,Ri.schemaRules(e)))}};const zl={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},vu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Hl={ol:!0,ul:!0},In=1,Dn=2,Vt=4;function Hs(n,e,t){return e!=null?(e?In:0)|(e==="full"?Dn:0):n&&n.whitespace=="pre"?In|Dn:t&~Vt}class hn{constructor(e,t,r,i,s,o,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=i,this.solid=s,this.options=l,this.content=[],this.activeMarks=_.none,this.stashMarks=[],this.match=o||(l&Vt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(b.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&In)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=b.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(b.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let i=r[t];(this.type?this.type.allowsMarkType(i.type):Au(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!zl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class js{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let i=t.topNode,s,o=Hs(null,t.preserveWhitespace,0)|(r?Vt:0);i?s=new hn(i.type,i.attrs,_.none,_.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new hn(null,null,_.none,_.none,!0,null,o):s=new hn(e.schema.topNodeType,null,_.none,_.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let i=this.readStyles(wu(r));if(!i)return;let[s,o]=i,l=this.top;for(let a=0;a<o.length;a++)this.removePendingMark(o[a],l);for(let a=0;a<s.length;a++)this.addPendingMark(s[a]);t();for(let a=0;a<s.length;a++)this.removePendingMark(s[a],l);for(let a=0;a<o.length;a++)this.addPendingMark(o[a])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Dn||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&In)r.options&Dn?t=t.replace(/\r\n?/g,`
|
|
4
4
|
`):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),i;Hl.hasOwnProperty(r)&&this.parser.normalizeLists&&Cu(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,t));if(s?s.ignore:vu.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let o,l=this.top,a=this.needsBlock;if(zl.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),o=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}s&&s.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),o&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?i:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";const Jn=require("vue"),le={ERROR:"error",WARNING:"warning",SUCCESS:"success"},er={LARGE:"lg",EXTRA_LARGE:"xl"},tr={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},nr={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},rr={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},tn=le.ERROR,ir="dt";let or=0,Nt;const ar=typeof setImmediate=="function"?setImmediate:setTimeout;function Et(e=ir){return`${e}${or++}`}function nn(e,t){if(t){const n=sr(t);return e[Math.abs(n)%e.length]}else return e[rn(e.length)]}function sr(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function rn(e){return Math.floor(Math.random()*e)}function on(e){return e?e.map(t=>typeof t=="string"?{message:t,type:tn}:t):[]}function an(e){const t=Ot(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Ot(e){return e?ot(e,le.ERROR)?le.ERROR:ot(e,le.WARNING)?le.WARNING:ot(e,le.SUCCESS)?le.SUCCESS:null:null}function ot(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const ur={name:"html-fragment",functional:!0,props:["html"],render(e,t){return new Jn({name:"Inner",beforeCreate(){this.$createElement=e},template:`<div>${t.props.html}</div>`}).$mount()._vnode.children}},cr=()=>new Promise(e=>{ar(e)}),lr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("");function pr(e,t=300){clearTimeout(Nt),Nt=setTimeout(e,t)}function sn(e){const t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(r=>r),n.all=Object.values(n).every(r=>r),n}const fr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,dr=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),vr=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),un=new RegExp("(?:"+[[fr.source,dr.source].join("+"),vr.source].join("|")+")"),hr=/(?:(?:[;/][^#?<>\s]*)?)/,cn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,ln=new RegExp("\\b"+[un.source,hr.source,cn.source,"(?!\\w)"].join("+")),pn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,fn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[un.source,cn.source].join("+")+"(?!\\w)");function Tt(e=7,t=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const dn=Tt(),vn=new RegExp([ln.source,pn.source,fn.source,dn.source].join("|"),"gi");function mr(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=dn.exec(e))==null?void 0:t[0])===e)}function gr(e){var t,n;return!e||typeof e!="string"?!1:((t=ln.exec(e))==null?void 0:t[0])===e||((n=pn.exec(e))==null?void 0:n[0])===e}function yr(e){var t;return!e||typeof e!="string"?!1:((t=fn.exec(e))==null?void 0:t[0])===e}function hn(e){return e.filter(t=>!!t).join(" ")}function mn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const br={getUniqueString:Et,getRandomElement:nn,getRandomInt:rn,formatMessages:on,filterFormattedMessages:an,hasFormattedMessageOfType:ot,getValidationState:Ot,htmlFragment:ur,flushPromises:cr,kebabCaseToPascalCase:lr,debounce:pr,isOutOfViewPort:sn,getPhoneNumberRegex:Tt,linkRegex:vn,isEmailAddress:yr,isPhoneNumber:mr,isURL:gr,safeConcatStrings:hn,capitalizeFirstLetter:mn};function xt(e,t,n,r,o,s,c,l){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var f;if(c?(f=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),o&&o.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(c)},a._ssrRegister=f):o&&(f=l?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var p=a.render;a.render=function(h,b){return f.call(b),p(h,b)}}else{var y=a.beforeCreate;a.beforeCreate=y?[].concat(y,f):[f]}return{exports:e,options:a}}const wr={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}}};var Er=function(){var t=this,n=t._self._c;return n("transition",t._g({attrs:{name:t.transition,appear:t.appear,css:t.isCSSEnabled}},t.$listeners),[n("div",t._g({directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},t.$listeners),[t.initialized?t._t("default"):t._e()],2)])},Or=[],Tr=xt(wr,Er,Or,!1,null,null,null,null);const gn=Tr.exports;var j="top",q="bottom",X="right",B="left",At="auto",We=[j,q,X,B],Se="start",Be="end",xr="clippingParents",yn="viewport",$e="popper",Ar="reference",Mt=We.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+Be])},[]),bn=[].concat(We,[At]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+Be])},[]),Sr="beforeRead",Dr="read",Cr="afterRead",Rr="beforeMain",Lr="main",_r="afterMain",Pr="beforeWrite",Ir="write",Nr="afterWrite",Mr=[Sr,Dr,Cr,Rr,Lr,_r,Pr,Ir,Nr];function te(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function St(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $r(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Y(s)||!te(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(c){var l=o[c];l===!1?s.removeAttribute(c):s.setAttribute(c,l===!0?"":l)}))})}function kr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=c.reduce(function(a,f){return a[f]="",a},{});!Y(o)||!te(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const wn={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:kr,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var ge=Math.max,st=Math.min,De=Math.round;function mt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function En(){return!/^((?!chrome|android).)*safari/i.test(mt())}function Ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Y(e)&&(o=e.offsetWidth>0&&De(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&De(r.height)/e.offsetHeight||1);var c=ye(e)?W(e):window,l=c.visualViewport,a=!En()&&n,f=(r.left+(a&&l?l.offsetLeft:0))/o,p=(r.top+(a&&l?l.offsetTop:0))/s,y=r.width/o,g=r.height/s;return{width:y,height:g,top:p,right:f+y,bottom:p+g,left:f,x:f,y:p}}function Dt(e){var t=Ce(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function On(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&St(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function se(e){return W(e).getComputedStyle(e)}function Vr(e){return["table","td","th"].indexOf(te(e))>=0}function pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function ct(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(St(e)?e.host:null)||pe(e)}function $t(e){return!Y(e)||se(e).position==="fixed"?null:e.offsetParent}function jr(e){var t=/firefox/i.test(mt()),n=/Trident/i.test(mt());if(n&&Y(e)){var r=se(e);if(r.position==="fixed")return null}var o=ct(e);for(St(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(te(o))<0;){var s=se(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ze(e){for(var t=W(e),n=$t(e);n&&Vr(n)&&se(n).position==="static";)n=$t(n);return n&&(te(n)==="html"||te(n)==="body"&&se(n).position==="static")?t:n||jr(e)||t}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ke(e,t,n){return ge(e,st(t,n))}function Br(e,t,n){var r=ke(e,t,n);return r>n?n:r}function Tn(){return{top:0,right:0,bottom:0,left:0}}function xn(e){return Object.assign({},Tn(),e)}function An(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ur=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xn(typeof t!="number"?t:An(t,We))};function Fr(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,l=ee(n.placement),a=Ct(l),f=[B,X].indexOf(l)>=0,p=f?"height":"width";if(!(!s||!c)){var y=Ur(o.padding,n),g=Dt(s),h=a==="y"?j:B,b=a==="y"?q:X,w=n.rects.reference[p]+n.rects.reference[a]-c[a]-n.rects.popper[p],E=c[a]-n.rects.reference[a],x=ze(s),S=x?a==="y"?x.clientHeight||0:x.clientWidth||0:0,C=w/2-E/2,i=y[h],T=S-g[p]-y[b],d=S/2-g[p]/2+C,D=ke(i,d,T),I=a;n.modifiersData[r]=(t={},t[I]=D,t.centerOffset=D-d,t)}}function Hr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||On(t.elements.popper,o)&&(t.elements.arrow=o))}const Wr={name:"arrow",enabled:!0,phase:"main",fn:Fr,effect:Hr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Re(e){return e.split("-")[1]}var zr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yr(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:De(n*o)/o||0,y:De(r*o)/o||0}}function kt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,l=e.position,a=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,y=e.isFixed,g=c.x,h=g===void 0?0:g,b=c.y,w=b===void 0?0:b,E=typeof p=="function"?p({x:h,y:w}):{x:h,y:w};h=E.x,w=E.y;var x=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=B,i=j,T=window;if(f){var d=ze(n),D="clientHeight",I="clientWidth";if(d===W(n)&&(d=pe(n),se(d).position!=="static"&&l==="absolute"&&(D="scrollHeight",I="scrollWidth")),d=d,o===j||(o===B||o===X)&&s===Be){i=q;var P=y&&d===T&&T.visualViewport?T.visualViewport.height:d[D];w-=P-r.height,w*=a?1:-1}if(o===B||(o===j||o===q)&&s===Be){C=X;var L=y&&d===T&&T.visualViewport?T.visualViewport.width:d[I];h-=L-r.width,h*=a?1:-1}}var N=Object.assign({position:l},f&&zr),_=p===!0?Yr({x:h,y:w},W(n)):{x:h,y:w};if(h=_.x,w=_.y,a){var R;return Object.assign({},N,(R={},R[i]=S?"0":"",R[C]=x?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",R))}return Object.assign({},N,(t={},t[i]=S?w+"px":"",t[C]=x?h+"px":"",t.transform="",t))}function qr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,c=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,f={placement:ee(t.placement),variation:Re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kt(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kt(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qr,data:{}};var rt={passive:!0};function Kr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,c=r.resize,l=c===void 0?!0:c,a=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,rt)}),l&&a.addEventListener("resize",n.update,rt),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,rt)}),l&&a.removeEventListener("resize",n.update,rt)}}const Gr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kr,data:{}};var Zr={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,function(t){return Zr[t]})}var Qr={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Qr[t]})}function Rt(e){var t=W(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lt(e){return Ce(pe(e)).left+Rt(e).scrollLeft}function Jr(e,t){var n=W(e),r=pe(e),o=n.visualViewport,s=r.clientWidth,c=r.clientHeight,l=0,a=0;if(o){s=o.width,c=o.height;var f=En();(f||!f&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:c,x:l+Lt(e),y:a}}function ei(e){var t,n=pe(e),r=Rt(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ge(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ge(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Lt(e),a=-r.scrollTop;return se(o||n).direction==="rtl"&&(l+=ge(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:l,y:a}}function _t(e){var t=se(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Sn(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Y(e)&&_t(e)?e:Sn(ct(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var r=Sn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=W(r),c=o?[s].concat(s.visualViewport||[],_t(r)?r:[]):r,l=t.concat(c);return o?l:l.concat(Ve(ct(c)))}function gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ti(e,t){var n=Ce(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jt(e,t,n){return t===yn?gt(Jr(e,n)):ye(t)?ti(t,n):gt(ei(pe(e)))}function ni(e){var t=Ve(ct(e)),n=["absolute","fixed"].indexOf(se(e).position)>=0,r=n&&Y(e)?ze(e):e;return ye(r)?t.filter(function(o){return ye(o)&&On(o,r)&&te(o)!=="body"}):[]}function ri(e,t,n,r){var o=t==="clippingParents"?ni(e):[].concat(t),s=[].concat(o,[n]),c=s[0],l=s.reduce(function(a,f){var p=jt(e,f,r);return a.top=ge(p.top,a.top),a.right=st(p.right,a.right),a.bottom=st(p.bottom,a.bottom),a.left=ge(p.left,a.left),a},jt(e,c,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Dn(e){var t=e.reference,n=e.element,r=e.placement,o=r?ee(r):null,s=r?Re(r):null,c=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case j:a={x:c,y:t.y-n.height};break;case q:a={x:c,y:t.y+t.height};break;case X:a={x:t.x+t.width,y:l};break;case B:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var f=o?Ct(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Se:a[f]=a[f]-(t[p]/2-n[p]/2);break;case Be:a[f]=a[f]+(t[p]/2-n[p]/2);break}}return a}function Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,c=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?xr:l,f=n.rootBoundary,p=f===void 0?yn:f,y=n.elementContext,g=y===void 0?$e:y,h=n.altBoundary,b=h===void 0?!1:h,w=n.padding,E=w===void 0?0:w,x=xn(typeof E!="number"?E:An(E,We)),S=g===$e?Ar:$e,C=e.rects.popper,i=e.elements[b?S:g],T=ri(ye(i)?i:i.contextElement||pe(e.elements.popper),a,p,c),d=Ce(e.elements.reference),D=Dn({reference:d,element:C,strategy:"absolute",placement:o}),I=gt(Object.assign({},C,D)),P=g===$e?I:d,L={top:T.top-P.top+x.top,bottom:P.bottom-T.bottom+x.bottom,left:T.left-P.left+x.left,right:P.right-T.right+x.right},N=e.modifiersData.offset;if(g===$e&&N){var _=N[o];Object.keys(L).forEach(function(R){var U=[X,q].indexOf(R)>=0?1:-1,F=[j,q].indexOf(R)>=0?"y":"x";L[R]+=_[F]*U})}return L}function ii(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,f=a===void 0?bn:a,p=Re(r),y=p?l?Mt:Mt.filter(function(b){return Re(b)===p}):We,g=y.filter(function(b){return f.indexOf(b)>=0});g.length===0&&(g=y);var h=g.reduce(function(b,w){return b[w]=Ue(e,{placement:w,boundary:o,rootBoundary:s,padding:c})[ee(w)],b},{});return Object.keys(h).sort(function(b,w){return h[b]-h[w]})}function oi(e){if(ee(e)===At)return[];var t=at(e);return[Vt(e),t,Vt(t)]}function ai(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!0:c,a=n.fallbackPlacements,f=n.padding,p=n.boundary,y=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,w=n.allowedAutoPlacements,E=t.options.placement,x=ee(E),S=x===E,C=a||(S||!b?[at(E)]:oi(E)),i=[E].concat(C).reduce(function(ne,K){return ne.concat(ee(K)===At?ii(t,{placement:K,boundary:p,rootBoundary:y,padding:f,flipVariations:b,allowedAutoPlacements:w}):K)},[]),T=t.rects.reference,d=t.rects.popper,D=new Map,I=!0,P=i[0],L=0;L<i.length;L++){var N=i[L],_=ee(N),R=Re(N)===Se,U=[j,q].indexOf(_)>=0,F=U?"width":"height",$=Ue(t,{placement:N,boundary:p,rootBoundary:y,altBoundary:g,padding:f}),k=U?R?X:B:R?q:j;T[F]>d[F]&&(k=at(k));var M=at(k),G=[];if(s&&G.push($[_]<=0),l&&G.push($[k]<=0,$[M]<=0),G.every(function(ne){return ne})){P=N,I=!1;break}D.set(N,G)}if(I)for(var Z=b?3:1,fe=function(K){var re=i.find(function(be){var ie=D.get(be);if(ie)return ie.slice(0,K).every(function(we){return we})});if(re)return P=re,"break"},Q=Z;Q>0;Q--){var de=fe(Q);if(de==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const si={name:"flip",enabled:!0,phase:"main",fn:ai,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[j,X,q,B].some(function(t){return e[t]>=0})}function ui(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Ue(t,{elementContext:"reference"}),l=Ue(t,{altBoundary:!0}),a=Bt(c,r),f=Bt(l,o,s),p=Ut(a),y=Ut(f);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const ci={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ui};function li(e,t,n){var r=ee(e),o=[B,j].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],l=s[1];return c=c||0,l=(l||0)*o,[B,X].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function pi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=bn.reduce(function(p,y){return p[y]=li(y,t.rects,s),p},{}),l=c[t.placement],a=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=c}const fi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pi};function di(e){var t=e.state,n=e.name;t.modifiersData[n]=Dn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vi={name:"popperOffsets",enabled:!0,phase:"read",fn:di,data:{}};function hi(e){return e==="x"?"y":"x"}function mi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!1:c,a=n.boundary,f=n.rootBoundary,p=n.altBoundary,y=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,w=b===void 0?0:b,E=Ue(t,{boundary:a,rootBoundary:f,padding:y,altBoundary:p}),x=ee(t.placement),S=Re(t.placement),C=!S,i=Ct(x),T=hi(i),d=t.modifiersData.popperOffsets,D=t.rects.reference,I=t.rects.popper,P=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,L=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(d){if(s){var R,U=i==="y"?j:B,F=i==="y"?q:X,$=i==="y"?"height":"width",k=d[i],M=k+E[U],G=k-E[F],Z=h?-I[$]/2:0,fe=S===Se?D[$]:I[$],Q=S===Se?-I[$]:-D[$],de=t.elements.arrow,ne=h&&de?Dt(de):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tn(),re=K[U],be=K[F],ie=ke(0,D[$],ne[$]),we=C?D[$]/2-Z-ie-re-L.mainAxis:fe-ie-re-L.mainAxis,ue=C?-D[$]/2+Z+ie+be+L.mainAxis:Q+ie+be+L.mainAxis,Ee=t.elements.arrow&&ze(t.elements.arrow),Ye=Ee?i==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,_e=(R=N==null?void 0:N[i])!=null?R:0,qe=k+we-_e-Ye,Xe=k+ue-_e,Pe=ke(h?st(M,qe):M,k,h?ge(G,Xe):G);d[i]=Pe,_[i]=Pe-k}if(l){var Ie,Ke=i==="x"?j:B,Ge=i==="x"?q:X,oe=d[T],ce=T==="y"?"height":"width",Ne=oe+E[Ke],ve=oe-E[Ge],Me=[j,B].indexOf(x)!==-1,Ze=(Ie=N==null?void 0:N[T])!=null?Ie:0,Qe=Me?Ne:oe-D[ce]-I[ce]-Ze+L.altAxis,Je=Me?oe+D[ce]+I[ce]-Ze-L.altAxis:ve,et=h&&Me?Br(Qe,oe,Je):ke(h?Qe:Ne,oe,h?Je:ve);d[T]=et,_[T]=et-oe}t.modifiersData[r]=_}}const gi={name:"preventOverflow",enabled:!0,phase:"main",fn:mi,requiresIfExists:["offset"]};function yi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bi(e){return e===W(e)||!Y(e)?Rt(e):yi(e)}function wi(e){var t=e.getBoundingClientRect(),n=De(t.width)/e.offsetWidth||1,r=De(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ei(e,t,n){n===void 0&&(n=!1);var r=Y(t),o=Y(t)&&wi(t),s=pe(t),c=Ce(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((te(t)!=="body"||_t(s))&&(l=bi(t)),Y(t)?(a=Ce(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=Lt(s))),{x:c.left+l.scrollLeft-a.x,y:c.top+l.scrollTop-a.y,width:c.width,height:c.height}}function Oi(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Ti(e){var t=Oi(e);return Mr.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ai(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Si(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Ft:o;return function(l,a,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},y=[],g=!1,h={state:p,setOptions:function(x){var S=typeof x=="function"?x(p.options):x;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ye(l)?Ve(l):l.contextElement?Ve(l.contextElement):[],popper:Ve(a)};var C=Ti(Ai([].concat(r,p.options.modifiers)));return p.orderedModifiers=C.filter(function(i){return i.enabled}),b(),h.update()},forceUpdate:function(){if(!g){var x=p.elements,S=x.reference,C=x.popper;if(Ht(S,C)){p.rects={reference:Ei(S,ze(C),p.options.strategy==="fixed"),popper:Dt(C)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(L){return p.modifiersData[L.name]=Object.assign({},L.data)});for(var i=0;i<p.orderedModifiers.length;i++){if(p.reset===!0){p.reset=!1,i=-1;continue}var T=p.orderedModifiers[i],d=T.fn,D=T.options,I=D===void 0?{}:D,P=T.name;typeof d=="function"&&(p=d({state:p,options:I,name:P,instance:h})||p)}}}},update:xi(function(){return new Promise(function(E){h.forceUpdate(),E(p)})}),destroy:function(){w(),g=!0}};if(!Ht(l,a))return h;h.setOptions(f).then(function(E){!g&&f.onFirstUpdate&&f.onFirstUpdate(E)});function b(){p.orderedModifiers.forEach(function(E){var x=E.name,S=E.options,C=S===void 0?{}:S,i=E.effect;if(typeof i=="function"){var T=i({state:p,name:x,instance:h,options:C}),d=function(){};y.push(T||d)}})}function w(){y.forEach(function(E){return E()}),y=[]}return h}}var Di=[Gr,vi,Xr,wn,fi,si,gi,Wr,ci],Ci=Si({defaultModifiers:Di}),Ri="tippy-box",Cn="tippy-content",Li="tippy-backdrop",Rn="tippy-arrow",Ln="tippy-svg-arrow",me={passive:!0,capture:!0},_n=function(){return document.body};function _i(e,t){return{}.hasOwnProperty.call(e,t)}function ft(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Pt(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Pn(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Wt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Pi(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Ii(e){return e.split(/\s+/).filter(Boolean)}function Ae(e){return[].concat(e)}function zt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ni(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Mi(e){return e.split("-")[0]}function ut(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function je(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return Pt(e,t)})}function $i(e){return Pt(e,"NodeList")}function ki(e){return Pt(e,"MouseEvent")}function Vi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ji(e){return Fe(e)?[e]:$i(e)?ut(e):Array.isArray(e)?e:ut(document.querySelectorAll(e))}function dt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function qt(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Bi(e){var t,n=Ae(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ui(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var s=o.popperRect,c=o.popperState,l=o.props,a=l.interactiveBorder,f=Mi(c.placement),p=c.modifiersData.offset;if(!p)return!0;var y=f==="bottom"?p.top.y:0,g=f==="top"?p.bottom.y:0,h=f==="right"?p.left.x:0,b=f==="left"?p.right.x:0,w=s.top-r+y>a,E=r-s.bottom-g>a,x=s.left-n+h>a,S=n-s.right-b>a;return w||E||x||S})}function vt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Xt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var J={isTouch:!1},Kt=0;function Fi(){J.isTouch||(J.isTouch=!0,window.performance&&document.addEventListener("mousemove",In))}function In(){var e=performance.now();e-Kt<20&&(J.isTouch=!1,document.removeEventListener("mousemove",In)),Kt=e}function Hi(){var e=document.activeElement;if(Vi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Wi(){document.addEventListener("touchstart",Fi,me),window.addEventListener("blur",Hi)}var zi=typeof window<"u"&&typeof document<"u",Yi=zi?!!window.msCrypto:!1;function xe(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Gt(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function qi(e){return Gt(`
|
|
1
|
+
"use strict";const Jn=require("vue"),le={ERROR:"error",WARNING:"warning",SUCCESS:"success"},er={LARGE:"lg",EXTRA_LARGE:"xl"},tr={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},nr={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},rr={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},tn=le.ERROR,ir="dt";let or=0,Nt;const ar=typeof setImmediate=="function"?setImmediate:setTimeout;function Et(e=ir){return`${e}${or++}`}function nn(e,t){if(t){const n=sr(t);return e[Math.abs(n)%e.length]}else return e[rn(e.length)]}function sr(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function rn(e){return Math.floor(Math.random()*e)}function on(e){return e?e.map(t=>typeof t=="string"?{message:t,type:tn}:t):[]}function an(e){const t=Ot(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Ot(e){return e?ot(e,le.ERROR)?le.ERROR:ot(e,le.WARNING)?le.WARNING:ot(e,le.SUCCESS)?le.SUCCESS:null:null}function ot(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const ur={name:"html-fragment",functional:!0,props:["html"],render(e,t){return new Jn({name:"Inner",beforeCreate(){this.$createElement=e},template:`<div>${t.props.html}</div>`}).$mount()._vnode.children}},cr=()=>new Promise(e=>{ar(e)}),lr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("");function fr(e,t=300){clearTimeout(Nt),Nt=setTimeout(e,t)}function sn(e){const t=e.getBoundingClientRect(),n={top:t.top<0,left:t.left<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight),right:t.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(r=>r),n.all=Object.values(n).every(r=>r),n}const pr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,dr=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),vr=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),un=new RegExp("(?:"+[[pr.source,dr.source].join("+"),vr.source].join("|")+")"),hr=/(?:(?:[;/][^#?<>\s]*)?)/,cn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,ln=new RegExp("\\b"+[un.source,hr.source,cn.source,"(?!\\w)"].join("+")),fn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,pn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[un.source,cn.source].join("+")+"(?!\\w)");function Tt(e=7,t=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${e},${t}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const dn=Tt(),vn=new RegExp([ln.source,fn.source,pn.source,dn.source].join("|"),"gi");function mr(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=dn.exec(e))==null?void 0:t[0])===e)}function gr(e){var t,n;return!e||typeof e!="string"?!1:((t=ln.exec(e))==null?void 0:t[0])===e||((n=fn.exec(e))==null?void 0:n[0])===e}function yr(e){var t;return!e||typeof e!="string"?!1:((t=pn.exec(e))==null?void 0:t[0])===e}function hn(e){return e.filter(t=>!!t).join(" ")}function mn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const br={getUniqueString:Et,getRandomElement:nn,getRandomInt:rn,formatMessages:on,filterFormattedMessages:an,hasFormattedMessageOfType:ot,getValidationState:Ot,htmlFragment:ur,flushPromises:cr,kebabCaseToPascalCase:lr,debounce:fr,isOutOfViewPort:sn,getPhoneNumberRegex:Tt,linkRegex:vn,isEmailAddress:yr,isPhoneNumber:mr,isURL:gr,safeConcatStrings:hn,capitalizeFirstLetter:mn};function xt(e,t,n,r,o,s,c,l){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var p;if(c?(p=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),o&&o.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(c)},a._ssrRegister=p):o&&(p=l?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),p)if(a.functional){a._injectStyles=p;var f=a.render;a.render=function(h,b){return p.call(b),f(h,b)}}else{var y=a.beforeCreate;a.beforeCreate=y?[].concat(y,p):[p]}return{exports:e,options:a}}const wr={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(e){!e||this.initialized||(this.initialized=!0)}}};var Er=function(){var t=this,n=t._self._c;return n("transition",t._g({attrs:{name:t.transition,appear:t.appear,css:t.isCSSEnabled}},t.$listeners),[n("div",t._g({directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},t.$listeners),[t.initialized?t._t("default"):t._e()],2)])},Or=[],Tr=xt(wr,Er,Or,!1,null,null,null,null);const gn=Tr.exports;var j="top",q="bottom",X="right",B="left",At="auto",We=[j,q,X,B],Se="start",Be="end",xr="clippingParents",yn="viewport",$e="popper",Ar="reference",Mt=We.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+Be])},[]),bn=[].concat(We,[At]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+Be])},[]),Sr="beforeRead",Dr="read",Cr="afterRead",Rr="beforeMain",Lr="main",_r="afterMain",Ir="beforeWrite",Pr="write",Nr="afterWrite",Mr=[Sr,Dr,Cr,Rr,Lr,_r,Ir,Pr,Nr];function te(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function Y(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function St(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $r(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Y(s)||!te(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(c){var l=o[c];l===!1?s.removeAttribute(c):s.setAttribute(c,l===!0?"":l)}))})}function kr(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=c.reduce(function(a,p){return a[p]="",a},{});!Y(o)||!te(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const wn={name:"applyStyles",enabled:!0,phase:"write",fn:$r,effect:kr,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var ge=Math.max,st=Math.min,De=Math.round;function mt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function En(){return!/^((?!chrome|android).)*safari/i.test(mt())}function Ce(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Y(e)&&(o=e.offsetWidth>0&&De(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&De(r.height)/e.offsetHeight||1);var c=ye(e)?W(e):window,l=c.visualViewport,a=!En()&&n,p=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,y=r.width/o,g=r.height/s;return{width:y,height:g,top:f,right:p+y,bottom:f+g,left:p,x:p,y:f}}function Dt(e){var t=Ce(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function On(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&St(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function se(e){return W(e).getComputedStyle(e)}function Vr(e){return["table","td","th"].indexOf(te(e))>=0}function fe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function ct(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(St(e)?e.host:null)||fe(e)}function $t(e){return!Y(e)||se(e).position==="fixed"?null:e.offsetParent}function jr(e){var t=/firefox/i.test(mt()),n=/Trident/i.test(mt());if(n&&Y(e)){var r=se(e);if(r.position==="fixed")return null}var o=ct(e);for(St(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(te(o))<0;){var s=se(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ze(e){for(var t=W(e),n=$t(e);n&&Vr(n)&&se(n).position==="static";)n=$t(n);return n&&(te(n)==="html"||te(n)==="body"&&se(n).position==="static")?t:n||jr(e)||t}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ke(e,t,n){return ge(e,st(t,n))}function Br(e,t,n){var r=ke(e,t,n);return r>n?n:r}function Tn(){return{top:0,right:0,bottom:0,left:0}}function xn(e){return Object.assign({},Tn(),e)}function An(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ur=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xn(typeof t!="number"?t:An(t,We))};function Fr(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,l=ee(n.placement),a=Ct(l),p=[B,X].indexOf(l)>=0,f=p?"height":"width";if(!(!s||!c)){var y=Ur(o.padding,n),g=Dt(s),h=a==="y"?j:B,b=a==="y"?q:X,w=n.rects.reference[f]+n.rects.reference[a]-c[a]-n.rects.popper[f],E=c[a]-n.rects.reference[a],x=ze(s),S=x?a==="y"?x.clientHeight||0:x.clientWidth||0:0,C=w/2-E/2,i=y[h],T=S-g[f]-y[b],d=S/2-g[f]/2+C,D=ke(i,d,T),P=a;n.modifiersData[r]=(t={},t[P]=D,t.centerOffset=D-d,t)}}function Hr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||On(t.elements.popper,o)&&(t.elements.arrow=o))}const Wr={name:"arrow",enabled:!0,phase:"main",fn:Fr,effect:Hr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Re(e){return e.split("-")[1]}var zr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yr(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:De(n*o)/o||0,y:De(r*o)/o||0}}function kt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,l=e.position,a=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,y=e.isFixed,g=c.x,h=g===void 0?0:g,b=c.y,w=b===void 0?0:b,E=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=E.x,w=E.y;var x=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=B,i=j,T=window;if(p){var d=ze(n),D="clientHeight",P="clientWidth";if(d===W(n)&&(d=fe(n),se(d).position!=="static"&&l==="absolute"&&(D="scrollHeight",P="scrollWidth")),d=d,o===j||(o===B||o===X)&&s===Be){i=q;var I=y&&d===T&&T.visualViewport?T.visualViewport.height:d[D];w-=I-r.height,w*=a?1:-1}if(o===B||(o===j||o===q)&&s===Be){C=X;var L=y&&d===T&&T.visualViewport?T.visualViewport.width:d[P];h-=L-r.width,h*=a?1:-1}}var N=Object.assign({position:l},p&&zr),_=f===!0?Yr({x:h,y:w},W(n)):{x:h,y:w};if(h=_.x,w=_.y,a){var R;return Object.assign({},N,(R={},R[i]=S?"0":"",R[C]=x?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",R))}return Object.assign({},N,(t={},t[i]=S?w+"px":"",t[C]=x?h+"px":"",t.transform="",t))}function qr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,c=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,p={placement:ee(t.placement),variation:Re(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qr,data:{}};var rt={passive:!0};function Kr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,c=r.resize,l=c===void 0?!0:c,a=W(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(f){f.addEventListener("scroll",n.update,rt)}),l&&a.addEventListener("resize",n.update,rt),function(){s&&p.forEach(function(f){f.removeEventListener("scroll",n.update,rt)}),l&&a.removeEventListener("resize",n.update,rt)}}const Gr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kr,data:{}};var Zr={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,function(t){return Zr[t]})}var Qr={start:"end",end:"start"};function Vt(e){return e.replace(/start|end/g,function(t){return Qr[t]})}function Rt(e){var t=W(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lt(e){return Ce(fe(e)).left+Rt(e).scrollLeft}function Jr(e,t){var n=W(e),r=fe(e),o=n.visualViewport,s=r.clientWidth,c=r.clientHeight,l=0,a=0;if(o){s=o.width,c=o.height;var p=En();(p||!p&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:c,x:l+Lt(e),y:a}}function ei(e){var t,n=fe(e),r=Rt(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ge(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=ge(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Lt(e),a=-r.scrollTop;return se(o||n).direction==="rtl"&&(l+=ge(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:l,y:a}}function _t(e){var t=se(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Sn(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Y(e)&&_t(e)?e:Sn(ct(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var r=Sn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=W(r),c=o?[s].concat(s.visualViewport||[],_t(r)?r:[]):r,l=t.concat(c);return o?l:l.concat(Ve(ct(c)))}function gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ti(e,t){var n=Ce(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jt(e,t,n){return t===yn?gt(Jr(e,n)):ye(t)?ti(t,n):gt(ei(fe(e)))}function ni(e){var t=Ve(ct(e)),n=["absolute","fixed"].indexOf(se(e).position)>=0,r=n&&Y(e)?ze(e):e;return ye(r)?t.filter(function(o){return ye(o)&&On(o,r)&&te(o)!=="body"}):[]}function ri(e,t,n,r){var o=t==="clippingParents"?ni(e):[].concat(t),s=[].concat(o,[n]),c=s[0],l=s.reduce(function(a,p){var f=jt(e,p,r);return a.top=ge(f.top,a.top),a.right=st(f.right,a.right),a.bottom=st(f.bottom,a.bottom),a.left=ge(f.left,a.left),a},jt(e,c,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Dn(e){var t=e.reference,n=e.element,r=e.placement,o=r?ee(r):null,s=r?Re(r):null,c=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case j:a={x:c,y:t.y-n.height};break;case q:a={x:c,y:t.y+t.height};break;case X:a={x:t.x+t.width,y:l};break;case B:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var p=o?Ct(o):null;if(p!=null){var f=p==="y"?"height":"width";switch(s){case Se:a[p]=a[p]-(t[f]/2-n[f]/2);break;case Be:a[p]=a[p]+(t[f]/2-n[f]/2);break}}return a}function Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,c=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?xr:l,p=n.rootBoundary,f=p===void 0?yn:p,y=n.elementContext,g=y===void 0?$e:y,h=n.altBoundary,b=h===void 0?!1:h,w=n.padding,E=w===void 0?0:w,x=xn(typeof E!="number"?E:An(E,We)),S=g===$e?Ar:$e,C=e.rects.popper,i=e.elements[b?S:g],T=ri(ye(i)?i:i.contextElement||fe(e.elements.popper),a,f,c),d=Ce(e.elements.reference),D=Dn({reference:d,element:C,strategy:"absolute",placement:o}),P=gt(Object.assign({},C,D)),I=g===$e?P:d,L={top:T.top-I.top+x.top,bottom:I.bottom-T.bottom+x.bottom,left:T.left-I.left+x.left,right:I.right-T.right+x.right},N=e.modifiersData.offset;if(g===$e&&N){var _=N[o];Object.keys(L).forEach(function(R){var U=[X,q].indexOf(R)>=0?1:-1,F=[j,q].indexOf(R)>=0?"y":"x";L[R]+=_[F]*U})}return L}function ii(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,c=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,p=a===void 0?bn:a,f=Re(r),y=f?l?Mt:Mt.filter(function(b){return Re(b)===f}):We,g=y.filter(function(b){return p.indexOf(b)>=0});g.length===0&&(g=y);var h=g.reduce(function(b,w){return b[w]=Ue(e,{placement:w,boundary:o,rootBoundary:s,padding:c})[ee(w)],b},{});return Object.keys(h).sort(function(b,w){return h[b]-h[w]})}function oi(e){if(ee(e)===At)return[];var t=at(e);return[Vt(e),t,Vt(t)]}function ai(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!0:c,a=n.fallbackPlacements,p=n.padding,f=n.boundary,y=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,w=n.allowedAutoPlacements,E=t.options.placement,x=ee(E),S=x===E,C=a||(S||!b?[at(E)]:oi(E)),i=[E].concat(C).reduce(function(ne,K){return ne.concat(ee(K)===At?ii(t,{placement:K,boundary:f,rootBoundary:y,padding:p,flipVariations:b,allowedAutoPlacements:w}):K)},[]),T=t.rects.reference,d=t.rects.popper,D=new Map,P=!0,I=i[0],L=0;L<i.length;L++){var N=i[L],_=ee(N),R=Re(N)===Se,U=[j,q].indexOf(_)>=0,F=U?"width":"height",$=Ue(t,{placement:N,boundary:f,rootBoundary:y,altBoundary:g,padding:p}),k=U?R?X:B:R?q:j;T[F]>d[F]&&(k=at(k));var M=at(k),G=[];if(s&&G.push($[_]<=0),l&&G.push($[k]<=0,$[M]<=0),G.every(function(ne){return ne})){I=N,P=!1;break}D.set(N,G)}if(P)for(var Z=b?3:1,pe=function(K){var re=i.find(function(be){var ie=D.get(be);if(ie)return ie.slice(0,K).every(function(we){return we})});if(re)return I=re,"break"},Q=Z;Q>0;Q--){var de=pe(Q);if(de==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const si={name:"flip",enabled:!0,phase:"main",fn:ai,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ut(e){return[j,X,q,B].some(function(t){return e[t]>=0})}function ui(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=Ue(t,{elementContext:"reference"}),l=Ue(t,{altBoundary:!0}),a=Bt(c,r),p=Bt(l,o,s),f=Ut(a),y=Ut(p);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":y})}const ci={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ui};function li(e,t,n){var r=ee(e),o=[B,j].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],l=s[1];return c=c||0,l=(l||0)*o,[B,X].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}function fi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,c=bn.reduce(function(f,y){return f[y]=li(y,t.rects,s),f},{}),l=c[t.placement],a=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=c}const pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fi};function di(e){var t=e.state,n=e.name;t.modifiersData[n]=Dn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const vi={name:"popperOffsets",enabled:!0,phase:"read",fn:di,data:{}};function hi(e){return e==="x"?"y":"x"}function mi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,c=n.altAxis,l=c===void 0?!1:c,a=n.boundary,p=n.rootBoundary,f=n.altBoundary,y=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,w=b===void 0?0:b,E=Ue(t,{boundary:a,rootBoundary:p,padding:y,altBoundary:f}),x=ee(t.placement),S=Re(t.placement),C=!S,i=Ct(x),T=hi(i),d=t.modifiersData.popperOffsets,D=t.rects.reference,P=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(d){if(s){var R,U=i==="y"?j:B,F=i==="y"?q:X,$=i==="y"?"height":"width",k=d[i],M=k+E[U],G=k-E[F],Z=h?-P[$]/2:0,pe=S===Se?D[$]:P[$],Q=S===Se?-P[$]:-D[$],de=t.elements.arrow,ne=h&&de?Dt(de):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Tn(),re=K[U],be=K[F],ie=ke(0,D[$],ne[$]),we=C?D[$]/2-Z-ie-re-L.mainAxis:pe-ie-re-L.mainAxis,ue=C?-D[$]/2+Z+ie+be+L.mainAxis:Q+ie+be+L.mainAxis,Ee=t.elements.arrow&&ze(t.elements.arrow),Ye=Ee?i==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,_e=(R=N==null?void 0:N[i])!=null?R:0,qe=k+we-_e-Ye,Xe=k+ue-_e,Ie=ke(h?st(M,qe):M,k,h?ge(G,Xe):G);d[i]=Ie,_[i]=Ie-k}if(l){var Pe,Ke=i==="x"?j:B,Ge=i==="x"?q:X,oe=d[T],ce=T==="y"?"height":"width",Ne=oe+E[Ke],ve=oe-E[Ge],Me=[j,B].indexOf(x)!==-1,Ze=(Pe=N==null?void 0:N[T])!=null?Pe:0,Qe=Me?Ne:oe-D[ce]-P[ce]-Ze+L.altAxis,Je=Me?oe+D[ce]+P[ce]-Ze-L.altAxis:ve,et=h&&Me?Br(Qe,oe,Je):ke(h?Qe:Ne,oe,h?Je:ve);d[T]=et,_[T]=et-oe}t.modifiersData[r]=_}}const gi={name:"preventOverflow",enabled:!0,phase:"main",fn:mi,requiresIfExists:["offset"]};function yi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bi(e){return e===W(e)||!Y(e)?Rt(e):yi(e)}function wi(e){var t=e.getBoundingClientRect(),n=De(t.width)/e.offsetWidth||1,r=De(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ei(e,t,n){n===void 0&&(n=!1);var r=Y(t),o=Y(t)&&wi(t),s=fe(t),c=Ce(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((te(t)!=="body"||_t(s))&&(l=bi(t)),Y(t)?(a=Ce(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=Lt(s))),{x:c.left+l.scrollLeft-a.x,y:c.top+l.scrollTop-a.y,width:c.width,height:c.height}}function Oi(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Ti(e){var t=Oi(e);return Mr.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ai(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Si(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Ft:o;return function(l,a,p){p===void 0&&(p=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},y=[],g=!1,h={state:f,setOptions:function(x){var S=typeof x=="function"?x(f.options):x;w(),f.options=Object.assign({},s,f.options,S),f.scrollParents={reference:ye(l)?Ve(l):l.contextElement?Ve(l.contextElement):[],popper:Ve(a)};var C=Ti(Ai([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(i){return i.enabled}),b(),h.update()},forceUpdate:function(){if(!g){var x=f.elements,S=x.reference,C=x.popper;if(Ht(S,C)){f.rects={reference:Ei(S,ze(C),f.options.strategy==="fixed"),popper:Dt(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(L){return f.modifiersData[L.name]=Object.assign({},L.data)});for(var i=0;i<f.orderedModifiers.length;i++){if(f.reset===!0){f.reset=!1,i=-1;continue}var T=f.orderedModifiers[i],d=T.fn,D=T.options,P=D===void 0?{}:D,I=T.name;typeof d=="function"&&(f=d({state:f,options:P,name:I,instance:h})||f)}}}},update:xi(function(){return new Promise(function(E){h.forceUpdate(),E(f)})}),destroy:function(){w(),g=!0}};if(!Ht(l,a))return h;h.setOptions(p).then(function(E){!g&&p.onFirstUpdate&&p.onFirstUpdate(E)});function b(){f.orderedModifiers.forEach(function(E){var x=E.name,S=E.options,C=S===void 0?{}:S,i=E.effect;if(typeof i=="function"){var T=i({state:f,name:x,instance:h,options:C}),d=function(){};y.push(T||d)}})}function w(){y.forEach(function(E){return E()}),y=[]}return h}}var Di=[Gr,vi,Xr,wn,pi,si,gi,Wr,ci],Ci=Si({defaultModifiers:Di}),Ri="tippy-box",Cn="tippy-content",Li="tippy-backdrop",Rn="tippy-arrow",Ln="tippy-svg-arrow",me={passive:!0,capture:!0},_n=function(){return document.body};function _i(e,t){return{}.hasOwnProperty.call(e,t)}function pt(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function It(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function In(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Wt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ii(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Pi(e){return e.split(/\s+/).filter(Boolean)}function Ae(e){return[].concat(e)}function zt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ni(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Mi(e){return e.split("-")[0]}function ut(e){return[].slice.call(e)}function Yt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function je(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function $i(e){return It(e,"NodeList")}function ki(e){return It(e,"MouseEvent")}function Vi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ji(e){return Fe(e)?[e]:$i(e)?ut(e):Array.isArray(e)?e:ut(document.querySelectorAll(e))}function dt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function qt(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Bi(e){var t,n=Ae(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ui(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var s=o.popperRect,c=o.popperState,l=o.props,a=l.interactiveBorder,p=Mi(c.placement),f=c.modifiersData.offset;if(!f)return!0;var y=p==="bottom"?f.top.y:0,g=p==="top"?f.bottom.y:0,h=p==="right"?f.left.x:0,b=p==="left"?f.right.x:0,w=s.top-r+y>a,E=r-s.bottom-g>a,x=s.left-n+h>a,S=n-s.right-b>a;return w||E||x||S})}function vt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Xt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var J={isTouch:!1},Kt=0;function Fi(){J.isTouch||(J.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pn))}function Pn(){var e=performance.now();e-Kt<20&&(J.isTouch=!1,document.removeEventListener("mousemove",Pn)),Kt=e}function Hi(){var e=document.activeElement;if(Vi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Wi(){document.addEventListener("touchstart",Fi,me),window.addEventListener("blur",Hi)}var zi=typeof window<"u"&&typeof document<"u",Yi=zi?!!window.msCrypto:!1;function xe(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Gt(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function qi(e){return Gt(`
|
|
2
2
|
%ctippy.js
|
|
3
3
|
|
|
4
4
|
%c`+Gt(e)+`
|
|
5
5
|
|
|
6
6
|
%c👷 This is a development-only message. It will be removed in production.
|
|
7
|
-
`)}function Nn(e){return[qi(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var He;process.env.NODE_ENV!=="production"&&Xi();function Xi(){He=new Set}function ae(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).warn.apply(n,Nn(t))}}function yt(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).error.apply(n,Nn(t))}}function Ki(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;yt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Mn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Gi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H=Object.assign({appendTo:_n,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mn,Gi),Zi=Object.keys(H),Qi=function(t){process.env.NODE_ENV!=="production"&&kn(t,[]);var n=Object.keys(t);n.forEach(function(r){H[r]=t[r]})};function $n(e){var t=e.plugins||[],n=t.reduce(function(r,o){var s=o.name,c=o.defaultValue;if(s){var l;r[s]=e[s]!==void 0?e[s]:(l=H[s])!=null?l:c}return r},{});return Object.assign({},e,n)}function Ji(e,t){var n=t?Object.keys($n(Object.assign({},H,{plugins:t}))):Zi,r=n.reduce(function(o,s){var c=(e.getAttribute("data-tippy-"+s)||"").trim();if(!c)return o;if(s==="content")o[s]=c;else try{o[s]=JSON.parse(c)}catch{o[s]=c}return o},{});return r}function Zt(e,t){var n=Object.assign({},t,{content:
|
|
7
|
+
`)}function Nn(e){return[qi(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var He;process.env.NODE_ENV!=="production"&&Xi();function Xi(){He=new Set}function ae(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).warn.apply(n,Nn(t))}}function yt(e,t){if(e&&!He.has(t)){var n;He.add(t),(n=console).error.apply(n,Nn(t))}}function Ki(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;yt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Mn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Gi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H=Object.assign({appendTo:_n,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mn,Gi),Zi=Object.keys(H),Qi=function(t){process.env.NODE_ENV!=="production"&&kn(t,[]);var n=Object.keys(t);n.forEach(function(r){H[r]=t[r]})};function $n(e){var t=e.plugins||[],n=t.reduce(function(r,o){var s=o.name,c=o.defaultValue;if(s){var l;r[s]=e[s]!==void 0?e[s]:(l=H[s])!=null?l:c}return r},{});return Object.assign({},e,n)}function Ji(e,t){var n=t?Object.keys($n(Object.assign({},H,{plugins:t}))):Zi,r=n.reduce(function(o,s){var c=(e.getAttribute("data-tippy-"+s)||"").trim();if(!c)return o;if(s==="content")o[s]=c;else try{o[s]=JSON.parse(c)}catch{o[s]=c}return o},{});return r}function Zt(e,t){var n=Object.assign({},t,{content:In(t.content,[e])},t.ignoreAttributes?{}:Ji(e,t.plugins));return n.aria=Object.assign({},H.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function kn(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var o=Ii(H,Object.keys(Mn)),s=!_i(o,r);s&&(s=t.filter(function(c){return c.name===r}).length===0),ae(s,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
8
8
|
|
|
9
9
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
10
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var eo=function(){return"innerHTML"};function bt(e,t){e[eo()]=t}function Qt(e){var t=je();return e===!0?t.className=Rn:(t.className=Ln,Fe(e)?t.appendChild(e):bt(t,e)),t}function Jt(e,t){Fe(t.content)?(bt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?bt(e,t.content):e.textContent=t.content)}function wt(e){var t=e.firstElementChild,n=ut(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Cn)}),arrow:n.find(function(r){return r.classList.contains(Rn)||r.classList.contains(Ln)}),backdrop:n.find(function(r){return r.classList.contains(Li)})}}function Vn(e){var t=je(),n=je();n.className=Ri,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=je();r.className=Cn,r.setAttribute("data-state","hidden"),Jt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(s,c){var l=wt(t),a=l.box,
|
|
10
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var eo=function(){return"innerHTML"};function bt(e,t){e[eo()]=t}function Qt(e){var t=je();return e===!0?t.className=Rn:(t.className=Ln,Fe(e)?t.appendChild(e):bt(t,e)),t}function Jt(e,t){Fe(t.content)?(bt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?bt(e,t.content):e.textContent=t.content)}function wt(e){var t=e.firstElementChild,n=ut(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Cn)}),arrow:n.find(function(r){return r.classList.contains(Rn)||r.classList.contains(Ln)}),backdrop:n.find(function(r){return r.classList.contains(Li)})}}function Vn(e){var t=je(),n=je();n.className=Ri,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=je();r.className=Cn,r.setAttribute("data-state","hidden"),Jt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(s,c){var l=wt(t),a=l.box,p=l.content,f=l.arrow;c.theme?a.setAttribute("data-theme",c.theme):a.removeAttribute("data-theme"),typeof c.animation=="string"?a.setAttribute("data-animation",c.animation):a.removeAttribute("data-animation"),c.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof c.maxWidth=="number"?c.maxWidth+"px":c.maxWidth,c.role?a.setAttribute("role",c.role):a.removeAttribute("role"),(s.content!==c.content||s.allowHTML!==c.allowHTML)&&Jt(p,e.props),c.arrow?f?s.arrow!==c.arrow&&(a.removeChild(f),a.appendChild(Qt(c.arrow))):a.appendChild(Qt(c.arrow)):f&&a.removeChild(f)}return{popper:t,onUpdate:o}}Vn.$$tippy=!0;var to=1,it=[],ht=[];function no(e,t){var n=Zt(e,Object.assign({},H,$n(Yt(t)))),r,o,s,c=!1,l=!1,a=!1,p=!1,f,y,g,h=[],b=Wt(qe,n.interactiveDebounce),w,E=to++,x=null,S=Ni(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:E,reference:e,popper:je(),popperInstance:x,props:n,state:C,plugins:S,clearDelayTimeouts:Qe,setProps:Je,setContent:et,show:qn,hide:Xn,hideWithInteractivity:Kn,enable:Me,disable:Ze,unmount:Gn,destroy:Zn};if(!n.render)return process.env.NODE_ENV!=="production"&&yt(!0,"render() function has not been supplied."),i;var T=n.render(i),d=T.popper,D=T.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var P=S.map(function(u){return u.fn(i)}),I=e.hasAttribute("aria-expanded");return Ee(),Z(),k(),M("onCreate",[i]),n.showOnCreate&&Ne(),d.addEventListener("mouseenter",function(){i.props.interactive&&i.state.isVisible&&i.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){i.props.interactive&&i.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",b)}),i;function L(){var u=i.props.touch;return Array.isArray(u)?u:[u,0]}function N(){return L()[0]==="hold"}function _(){var u;return!!((u=i.props.render)!=null&&u.$$tippy)}function R(){return w||e}function U(){var u=R().parentNode;return u?Bi(u):document}function F(){return wt(d)}function $(u){return i.state.isMounted&&!i.state.isVisible||J.isTouch||f&&f.type==="focus"?0:pt(i.props.delay,u?0:1,H.delay)}function k(u){u===void 0&&(u=!1),d.style.pointerEvents=i.props.interactive&&!u?"":"none",d.style.zIndex=""+i.props.zIndex}function M(u,v,m){if(m===void 0&&(m=!0),P.forEach(function(O){O[u]&&O[u].apply(O,v)}),m){var A;(A=i.props)[u].apply(A,v)}}function G(){var u=i.props.aria;if(u.content){var v="aria-"+u.content,m=d.id,A=Ae(i.props.triggerTarget||e);A.forEach(function(O){var V=O.getAttribute(v);if(i.state.isVisible)O.setAttribute(v,V?V+" "+m:m);else{var z=V&&V.replace(m,"").trim();z?O.setAttribute(v,z):O.removeAttribute(v)}})}}function Z(){if(!(I||!i.props.aria.expanded)){var u=Ae(i.props.triggerTarget||e);u.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===R()?"true":"false"):v.removeAttribute("aria-expanded")})}}function pe(){U().removeEventListener("mousemove",b),it=it.filter(function(u){return u!==b})}function Q(u){if(!(J.isTouch&&(a||u.type==="mousedown"))){var v=u.composedPath&&u.composedPath()[0]||u.target;if(!(i.props.interactive&&Xt(d,v))){if(Ae(i.props.triggerTarget||e).some(function(m){return Xt(m,v)})){if(J.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[i,u]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),l=!0,setTimeout(function(){l=!1}),i.state.isMounted||re())}}}function de(){a=!0}function ne(){a=!1}function K(){var u=U();u.addEventListener("mousedown",Q,!0),u.addEventListener("touchend",Q,me),u.addEventListener("touchstart",ne,me),u.addEventListener("touchmove",de,me)}function re(){var u=U();u.removeEventListener("mousedown",Q,!0),u.removeEventListener("touchend",Q,me),u.removeEventListener("touchstart",ne,me),u.removeEventListener("touchmove",de,me)}function be(u,v){we(u,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function ie(u,v){we(u,v)}function we(u,v){var m=F().box;function A(O){O.target===m&&(vt(m,"remove",A),v())}if(u===0)return v();vt(m,"remove",y),vt(m,"add",A),y=A}function ue(u,v,m){m===void 0&&(m=!1);var A=Ae(i.props.triggerTarget||e);A.forEach(function(O){O.addEventListener(u,v,m),h.push({node:O,eventType:u,handler:v,options:m})})}function Ee(){N()&&(ue("touchstart",_e,{passive:!0}),ue("touchend",Xe,{passive:!0})),Pi(i.props.trigger).forEach(function(u){if(u!=="manual")switch(ue(u,_e),u){case"mouseenter":ue("mouseleave",Xe);break;case"focus":ue(Yi?"focusout":"blur",Ie);break;case"focusin":ue("focusout",Ie);break}})}function Ye(){h.forEach(function(u){var v=u.node,m=u.eventType,A=u.handler,O=u.options;v.removeEventListener(m,A,O)}),h=[]}function _e(u){var v,m=!1;if(!(!i.state.isEnabled||Pe(u)||l)){var A=((v=f)==null?void 0:v.type)==="focus";f=u,w=u.currentTarget,Z(),!i.state.isVisible&&ki(u)&&it.forEach(function(O){return O(u)}),u.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||c)&&i.props.hideOnClick!==!1&&i.state.isVisible?m=!0:Ne(u),u.type==="click"&&(c=!m),m&&!A&&ve(u)}}function qe(u){var v=u.target,m=R().contains(v)||d.contains(v);if(!(u.type==="mousemove"&&m)){var A=ce().concat(d).map(function(O){var V,z=O._tippy,Oe=(V=z.popperInstance)==null?void 0:V.state;return Oe?{popperRect:O.getBoundingClientRect(),popperState:Oe,props:n}:null}).filter(Boolean);Ui(A,u)&&(pe(),ve(u))}}function Xe(u){var v=Pe(u)||i.props.trigger.indexOf("click")>=0&&c;if(!v){if(i.props.interactive){i.hideWithInteractivity(u);return}ve(u)}}function Ie(u){i.props.trigger.indexOf("focusin")<0&&u.target!==R()||i.props.interactive&&u.relatedTarget&&d.contains(u.relatedTarget)||ve(u)}function Pe(u){return J.isTouch?N()!==u.type.indexOf("touch")>=0:!1}function Ke(){Ge();var u=i.props,v=u.popperOptions,m=u.placement,A=u.offset,O=u.getReferenceClientRect,V=u.moveTransition,z=_()?wt(d).arrow:null,Oe=O?{getBoundingClientRect:O,contextElement:O.contextElement||R()}:e,Pt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(tt){var Te=tt.state;if(_()){var Qn=F(),ft=Qn.box;["placement","reference-hidden","escaped"].forEach(function(nt){nt==="placement"?ft.setAttribute("data-placement",Te.placement):Te.attributes.popper["data-popper-"+nt]?ft.setAttribute("data-"+nt,""):ft.removeAttribute("data-"+nt)}),Te.attributes.popper={}}}},he=[{name:"offset",options:{offset:A}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!V}},Pt];_()&&z&&he.push({name:"arrow",options:{element:z,padding:3}}),he.push.apply(he,(v==null?void 0:v.modifiers)||[]),i.popperInstance=Ci(Oe,d,Object.assign({},v,{placement:m,onFirstUpdate:g,modifiers:he}))}function Ge(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function oe(){var u=i.props.appendTo,v,m=R();i.props.interactive&&u===_n||u==="parent"?v=m.parentNode:v=In(u,[m]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,Ke(),process.env.NODE_ENV!=="production"&&ae(i.props.interactive&&u===H.appendTo&&m.nextElementSibling!==d,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
11
11
|
|
|
12
12
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
13
13
|
|
|
14
14
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
15
15
|
|
|
16
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ce(){return ut(d.querySelectorAll("[data-tippy-root]"))}function Ne(u){i.clearDelayTimeouts(),u&&M("onTrigger",[i,u]),K();var v=$(!0),m=L(),A=m[0],O=m[1];J.isTouch&&A==="hold"&&O&&(v=O),v?r=setTimeout(function(){i.show()},v):i.show()}function ve(u){if(i.clearDelayTimeouts(),M("onUntrigger",[i,u]),!i.state.isVisible){re();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&c)){var v=$(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):s=requestAnimationFrame(function(){i.hide()})}}function Me(){i.state.isEnabled=!0}function Ze(){i.hide(),i.state.isEnabled=!1}function Qe(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function Je(u){if(process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("setProps")),!i.state.isDestroyed){M("onBeforeUpdate",[i,u]),Ye();var v=i.props,m=Zt(e,Object.assign({},v,Yt(u),{ignoreAttributes:!0}));i.props=m,Ee(),v.interactiveDebounce!==m.interactiveDebounce&&(
|
|
16
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function ce(){return ut(d.querySelectorAll("[data-tippy-root]"))}function Ne(u){i.clearDelayTimeouts(),u&&M("onTrigger",[i,u]),K();var v=$(!0),m=L(),A=m[0],O=m[1];J.isTouch&&A==="hold"&&O&&(v=O),v?r=setTimeout(function(){i.show()},v):i.show()}function ve(u){if(i.clearDelayTimeouts(),M("onUntrigger",[i,u]),!i.state.isVisible){re();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&c)){var v=$(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):s=requestAnimationFrame(function(){i.hide()})}}function Me(){i.state.isEnabled=!0}function Ze(){i.hide(),i.state.isEnabled=!1}function Qe(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function Je(u){if(process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("setProps")),!i.state.isDestroyed){M("onBeforeUpdate",[i,u]),Ye();var v=i.props,m=Zt(e,Object.assign({},v,Yt(u),{ignoreAttributes:!0}));i.props=m,Ee(),v.interactiveDebounce!==m.interactiveDebounce&&(pe(),b=Wt(qe,m.interactiveDebounce)),v.triggerTarget&&!m.triggerTarget?Ae(v.triggerTarget).forEach(function(A){A.removeAttribute("aria-expanded")}):m.triggerTarget&&e.removeAttribute("aria-expanded"),Z(),k(),D&&D(v,m),i.popperInstance&&(Ke(),ce().forEach(function(A){requestAnimationFrame(A._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[i,u])}}function et(u){i.setProps({content:u})}function qn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("show"));var u=i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,A=J.isTouch&&!i.props.touch,O=pt(i.props.duration,0,H.duration);if(!(u||v||m||A)&&!R().hasAttribute("disabled")&&(M("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,_()&&(d.style.visibility="visible"),k(),K(),i.state.isMounted||(d.style.transition="none"),_()){var V=F(),z=V.box,Oe=V.content;dt([z,Oe],0)}g=function(){var he;if(!(!i.state.isVisible||p)){if(p=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,_()&&i.props.animation){var lt=F(),tt=lt.box,Te=lt.content;dt([tt,Te],O),qt([tt,Te],"visible")}G(),Z(),zt(ht,i),(he=i.popperInstance)==null||he.forceUpdate(),M("onMount",[i]),i.props.animation&&_()&&ie(O,function(){i.state.isShown=!0,M("onShown",[i])})}},oe()}}function Xn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("hide"));var u=!i.state.isVisible,v=i.state.isDestroyed,m=!i.state.isEnabled,A=pt(i.props.duration,1,H.duration);if(!(u||v||m)&&(M("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,p=!1,c=!1,_()&&(d.style.visibility="hidden"),pe(),re(),k(!0),_()){var O=F(),V=O.box,z=O.content;i.props.animation&&(dt([V,z],A),qt([V,z],"hidden"))}G(),Z(),i.props.animation?_()&&be(A,i.unmount):i.unmount()}}function Kn(u){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("hideWithInteractivity")),U().addEventListener("mousemove",b),zt(it,b),b(u)}function Gn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(Ge(),ce().forEach(function(u){u._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),ht=ht.filter(function(u){return u!==i}),i.state.isMounted=!1,M("onHidden",[i]))}function Zn(){process.env.NODE_ENV!=="production"&&ae(i.state.isDestroyed,xe("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),Ye(),delete e._tippy,i.state.isDestroyed=!0,M("onDestroy",[i]))}}function Le(e,t){t===void 0&&(t={});var n=H.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(Ki(e),kn(t,n)),Wi();var r=Object.assign({},t,{plugins:n}),o=ji(e);if(process.env.NODE_ENV!=="production"){var s=Fe(r.content),c=o.length>1;ae(s&&c,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
17
17
|
|
|
18
18
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
19
19
|
|
|
20
20
|
`,`1) content: element.innerHTML
|
|
21
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,
|
|
21
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,p){var f=p&&no(p,r);return f&&a.push(f),a},[]);return Fe(e)?l[0]:l}Le.defaultProps=H;Le.setDefaultProps=Qi;Le.currentInput=J;Object.assign({},wn,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var ro={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function o(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function s(p){return t.props.sticky===!0||t.props.sticky===p}var c=null,l=null;function a(){var p=s("reference")?o().getBoundingClientRect():null,f=s("popper")?r.getBoundingClientRect():null;(p&&en(c,p)||f&&en(l,f))&&t.popperInstance&&t.popperInstance.update(),c=p,l=f,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function en(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Le.setDefaultProps({render:Vn});const io=e=>({name:"arrowDetected",enabled:!0,phase:"main",fn:e,requiresIfExists:["offset"]}),jn=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Bn=[!0,!1,"reference","popper"],Un=(e,t)=>{const{contentElement:n}={...t};return delete t.contentElement,Le(e,{...t,plugins:[ro],render:()=>so(n)})},Fn=({boundary:e="clippingParents",fallbackPlacements:t=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:r=!1,tether:o=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:t,boundary:e}},{name:"hide",enabled:r},{name:"preventOverflow",options:{altAxis:!o,tether:o}},io(({state:s})=>{n(s.placement)})]}),oo=e=>{const t=document.createElement("span");return t.innerText=e.innerText||"",e.innerText="",e.appendChild(t),t},ao=e=>{const t=e==null?void 0:e.children[0];return t||oo(e)},so=e=>{const t=document.createElement("div");return t.className="tippy-box d-ps-absolute",t.appendChild(e),{popper:t}},Hn=[...jn],Wn=300,zn={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Yn=[...Bn],uo=[!0,!1,"toggle"],co={name:"DtTooltip",components:{DtLazyShow:gn},props:{id:{type:String,default(){return Et()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(e){return Hn.includes(e)}},sticky:{type:[Boolean,String],default:!1,validator:e=>Yn.includes(e)},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},enabled:{type:Boolean,default:!0},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0},externalAnchor:{type:String,default:null}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:zn,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement,isTouchDevice:!1}},computed:{isVisible(){var o,s;const e=!!((o=this.message)!=null&&o.trim()),t=!!((s=this.$slots)!=null&&s.default),n=!this.isTouchDevice;return this.isShown&&this.enabled&&(e||t)&&n},tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){return{offset:this.offset,interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:Fn({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchor?document.body.querySelector(this.externalAnchor):ao(this.$refs.anchor)}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(e){e!==null&&(this.isShown=e)},immediate:!0},isShown(e){e?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(e){this.tip.setProps({sticky:e})}},mounted(){!this.enabled&&this.show!=null&&(console.warn("Tooltip: You cannot use both the enabled and show props at the same time."),console.warn("The show prop will be ignored.")),this.externalAnchor&&this.addExternalAnchorEventListeners(),this.tip=Un(this.anchor,this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var e;this.externalAnchor&&this.removeExternalAnchorEventListeners(),this.tip&&((e=this.tip)==null||e.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return this.anchor.matches(":focus-visible")},onEnterAnchor(e){this.isTouchDevice&&!e.relatedTarget||(this.delay?this.inTimer=setTimeout((function(t){this.triggerShow(t)}).bind(this,e),Wn):this.triggerShow(e),this.isTouchDevice=!1)},triggerShow(e){e.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(e){e.type==="keydown"&&e.code!=="Escape"||(clearTimeout(this.inTimer),this.triggerHide())},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(e){this.currentPlacement=e},onLeaveTransitionComplete(){var e;(e=this.tip)==null||e.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){return{contentElement:this.$refs.content.$el,allowHTML:!0,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}},addExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.addEventListener(e,t=>this.onLeaveAnchor(t))})},removeExternalAnchorEventListeners(){["focusin","mouseenter"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onEnterAnchor(t))}),["focusout","mouseleave","keydown"].forEach(e=>{this.anchor.removeEventListener(e,t=>this.onLeaveAnchor(t))})},onTouchStart(){this.isTouchDevice=!0}}};var lo=function(){var t=this,n=t._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[t.externalAnchor?t._e():n("span",{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{focusin:t.onEnterAnchor,focusout:t.onLeaveAnchor,mouseenter:t.onEnterAnchor,mouseleave:t.onLeaveAnchor,keydown:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"esc",27,r.key,["Esc","Escape"])?null:t.onLeaveAnchor.apply(null,arguments)},touchstart:t.onTouchStart}},[t._t("anchor")],2),n("dt-lazy-show",t._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${t.currentPlacement}`,{[t.TOOLTIP_KIND_MODIFIERS.inverted]:t.inverted},t.contentClass],attrs:{id:t.id,show:t.isVisible,role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:t.transition}},t.tooltipListeners),[t._t("default",function(){return[t._v(" "+t._s(t.message)+" ")]})],2)],1)},fo=[],po=xt(co,lo,fo,!1,null,null,null,null);const vo=po.exports;exports.BASE_TIPPY_DIRECTIONS=jn;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=tn;exports.DESCRIPTION_SIZE_MODIFIERS=tr;exports.DESCRIPTION_SIZE_TYPES=er;exports.DtLazyShow=gn;exports.DtTooltip=vo;exports.EVENT_KEYNAMES=rr;exports.LABEL_SIZE_MODIFIERS=nr;exports.TIPPY_STICKY_VALUES=Bn;exports.TOOLTIP_DELAY_MS=Wn;exports.TOOLTIP_DIRECTIONS=Hn;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=uo;exports.TOOLTIP_KIND_MODIFIERS=zn;exports.TOOLTIP_STICKY_VALUES=Yn;exports.VALIDATION_MESSAGE_TYPES=le;exports.capitalizeFirstLetter=mn;exports.createTippy=Un;exports.filterFormattedMessages=an;exports.formatMessages=on;exports.getPhoneNumberRegex=Tt;exports.getPopperOptions=Fn;exports.getRandomElement=nn;exports.getUniqueString=Et;exports.getValidationState=Ot;exports.isOutOfViewPort=sn;exports.linkRegex=vn;exports.normalizeComponent=xt;exports.safeConcatStrings=hn;exports.tippy=Le;exports.utils=br;
|